Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
David Cazier
CGoGN
Commits
5c271985
Commit
5c271985
authored
May 03, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AttributeHandler -> [Vertex,Edge,...]Attribute
parent
961a702b
Changes
123
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
123 changed files
with
758 additions
and
670 deletions
+758
-670
Apps/Examples/clipping.h
Apps/Examples/clipping.h
+1
-1
Apps/Examples/concave_rendering.cpp
Apps/Examples/concave_rendering.cpp
+1
-1
Apps/Examples/extrusionView.cpp
Apps/Examples/extrusionView.cpp
+1
-1
Apps/Examples/mcmesh.h
Apps/Examples/mcmesh.h
+1
-1
Apps/Examples/simpleGMap2.h
Apps/Examples/simpleGMap2.h
+1
-1
Apps/Examples/simpleGMap3.h
Apps/Examples/simpleGMap3.h
+3
-3
Apps/Examples/simpleMap3.h
Apps/Examples/simpleMap3.h
+1
-1
Apps/Examples/texturesExample.cpp
Apps/Examples/texturesExample.cpp
+1
-1
Apps/Examples/viewer.cpp
Apps/Examples/viewer.cpp
+1
-1
Apps/Examples/volumeExplorer.cpp
Apps/Examples/volumeExplorer.cpp
+2
-2
Apps/Tuto/show_traversors.cpp
Apps/Tuto/show_traversors.cpp
+1
-1
Apps/Tuto/tp_master.cpp
Apps/Tuto/tp_master.cpp
+1
-1
Apps/Tuto/tuto1.h
Apps/Tuto/tuto1.h
+1
-1
Apps/Tuto/tuto2.cpp
Apps/Tuto/tuto2.cpp
+3
-3
Apps/Tuto/tuto3.h
Apps/Tuto/tuto3.h
+1
-1
Apps/Tuto/tuto4.h
Apps/Tuto/tuto4.h
+1
-1
Apps/Tuto/tuto5.cpp
Apps/Tuto/tuto5.cpp
+1
-1
Apps/Tuto/tuto_oper2.h
Apps/Tuto/tuto_oper2.h
+1
-1
Apps/Tuto/tuto_oper3.h
Apps/Tuto/tuto_oper3.h
+1
-1
Apps/Tuto/tuto_orbits.cpp
Apps/Tuto/tuto_orbits.cpp
+1
-1
Apps/Tuto/tuto_subdivision.cpp
Apps/Tuto/tuto_subdivision.cpp
+1
-1
include/Algo/BooleanOperator/mergeVertices.h
include/Algo/BooleanOperator/mergeVertices.h
+2
-2
include/Algo/BooleanOperator/mergeVertices.hpp
include/Algo/BooleanOperator/mergeVertices.hpp
+2
-2
include/Algo/Decimation/decimation.h
include/Algo/Decimation/decimation.h
+1
-1
include/Algo/Decimation/decimation.hpp
include/Algo/Decimation/decimation.hpp
+1
-1
include/Algo/Decimation/edgeSelector.h
include/Algo/Decimation/edgeSelector.h
+14
-14
include/Algo/Decimation/geometryApproximator.h
include/Algo/Decimation/geometryApproximator.h
+5
-5
include/Algo/Decimation/geometryPredictor.h
include/Algo/Decimation/geometryPredictor.h
+4
-4
include/Algo/Decimation/halfEdgeSelector.h
include/Algo/Decimation/halfEdgeSelector.h
+3
-3
include/Algo/Decimation/lightfieldApproximator.h
include/Algo/Decimation/lightfieldApproximator.h
+2
-2
include/Algo/Decimation/selector.h
include/Algo/Decimation/selector.h
+2
-2
include/Algo/Export/export.h
include/Algo/Export/export.h
+8
-8
include/Algo/Export/export.hpp
include/Algo/Export/export.hpp
+18
-18
include/Algo/Export/exportPov.h
include/Algo/Export/exportPov.h
+5
-5
include/Algo/Filtering/average.h
include/Algo/Filtering/average.h
+3
-3
include/Algo/Filtering/average_normals.h
include/Algo/Filtering/average_normals.h
+28
-28
include/Algo/Filtering/bilateral.h
include/Algo/Filtering/bilateral.h
+3
-3
include/Algo/Filtering/functors.h
include/Algo/Filtering/functors.h
+2
-2
include/Algo/Filtering/taubin.h
include/Algo/Filtering/taubin.h
+2
-2
include/Algo/Filtering/tools.h
include/Algo/Filtering/tools.h
+2
-2
include/Algo/Geometry/area.h
include/Algo/Geometry/area.h
+10
-10
include/Algo/Geometry/area.hpp
include/Algo/Geometry/area.hpp
+10
-10
include/Algo/Geometry/basic.h
include/Algo/Geometry/basic.h
+4
-4
include/Algo/Geometry/boundingbox.h
include/Algo/Geometry/boundingbox.h
+1
-1
include/Algo/Geometry/centroid.h
include/Algo/Geometry/centroid.h
+9
-9
include/Algo/Geometry/centroid.hpp
include/Algo/Geometry/centroid.hpp
+3
-3
include/Algo/Geometry/curvature.h
include/Algo/Geometry/curvature.h
+30
-30
include/Algo/Geometry/curvature.hpp
include/Algo/Geometry/curvature.hpp
+30
-30
include/Algo/Geometry/feature.h
include/Algo/Geometry/feature.h
+25
-25
include/Algo/Geometry/feature.hpp
include/Algo/Geometry/feature.hpp
+26
-26
include/Algo/Geometry/inclusion.h
include/Algo/Geometry/inclusion.h
+9
-9
include/Algo/Geometry/inclusion.hpp
include/Algo/Geometry/inclusion.hpp
+9
-9
include/Algo/Geometry/intersection.h
include/Algo/Geometry/intersection.h
+4
-4
include/Algo/Geometry/intersection.hpp
include/Algo/Geometry/intersection.hpp
+4
-4
include/Algo/Geometry/laplacian.h
include/Algo/Geometry/laplacian.h
+7
-7
include/Algo/Geometry/laplacian.hpp
include/Algo/Geometry/laplacian.hpp
+7
-7
include/Algo/Geometry/localFrame.h
include/Algo/Geometry/localFrame.h
+4
-4
include/Algo/Geometry/normal.h
include/Algo/Geometry/normal.h
+9
-9
include/Algo/Geometry/normal.hpp
include/Algo/Geometry/normal.hpp
+9
-9
include/Algo/Geometry/orientation.h
include/Algo/Geometry/orientation.h
+1
-1
include/Algo/Geometry/plane.h
include/Algo/Geometry/plane.h
+3
-3
include/Algo/Geometry/volume.h
include/Algo/Geometry/volume.h
+4
-4
include/Algo/Geometry/volume.hpp
include/Algo/Geometry/volume.hpp
+4
-4
include/Algo/ImplicitHierarchicalMesh/subdivision.h
include/Algo/ImplicitHierarchicalMesh/subdivision.h
+4
-4
include/Algo/ImplicitHierarchicalMesh/subdivision.hpp
include/Algo/ImplicitHierarchicalMesh/subdivision.hpp
+4
-4
include/Algo/Import/import2tables.h
include/Algo/Import/import2tables.h
+1
-1
include/Algo/Import/import2tablesSurface.hpp
include/Algo/Import/import2tablesSurface.hpp
+13
-13
include/Algo/Import/import2tablesVolume.hpp
include/Algo/Import/import2tablesVolume.hpp
+1
-1
include/Algo/Import/importMRDAT.hpp
include/Algo/Import/importMRDAT.hpp
+4
-4
include/Algo/Import/importMesh.hpp
include/Algo/Import/importMesh.hpp
+4
-7
include/Algo/Import/importMoka.hpp
include/Algo/Import/importMoka.hpp
+1
-1
include/Algo/Import/importNodeEle.hpp
include/Algo/Import/importNodeEle.hpp
+2
-2
include/Algo/Import/importObjEle.hpp
include/Algo/Import/importObjEle.hpp
+2
-2
include/Algo/Import/importSvg.h
include/Algo/Import/importSvg.h
+1
-1
include/Algo/Import/importSvg.hpp
include/Algo/Import/importSvg.hpp
+1
-1
include/Algo/Import/importTet.hpp
include/Algo/Import/importTet.hpp
+2
-2
include/Algo/Import/importTs.hpp
include/Algo/Import/importTs.hpp
+3
-3
include/Algo/LinearSolving/basic.h
include/Algo/LinearSolving/basic.h
+8
-8
include/Algo/LinearSolving/matrixSetup.h
include/Algo/LinearSolving/matrixSetup.h
+16
-16
include/Algo/MC/marchingcube.h
include/Algo/MC/marchingcube.h
+2
-2
include/Algo/MC/marchingcube.hpp
include/Algo/MC/marchingcube.hpp
+1
-1
include/Algo/Modelisation/extrusion.h
include/Algo/Modelisation/extrusion.h
+8
-8
include/Algo/Modelisation/extrusion.hpp
include/Algo/Modelisation/extrusion.hpp
+8
-8
include/Algo/Modelisation/polyhedron.h
include/Algo/Modelisation/polyhedron.h
+2
-2
include/Algo/Modelisation/primitives3d.h
include/Algo/Modelisation/primitives3d.h
+2
-2
include/Algo/Modelisation/subdivision.h
include/Algo/Modelisation/subdivision.h
+5
-5
include/Algo/Modelisation/subdivision.hpp
include/Algo/Modelisation/subdivision.hpp
+10
-10
include/Algo/Modelisation/subdivision3.h
include/Algo/Modelisation/subdivision3.h
+3
-3
include/Algo/Modelisation/subdivision3.hpp
include/Algo/Modelisation/subdivision3.hpp
+2
-6
include/Algo/Modelisation/triangulation.h
include/Algo/Modelisation/triangulation.h
+2
-2
include/Algo/MovingObjects/particle_cell_2D.h
include/Algo/MovingObjects/particle_cell_2D.h
+1
-1
include/Algo/MovingObjects/particle_cell_2D_memo.h
include/Algo/MovingObjects/particle_cell_2D_memo.h
+1
-1
include/Algo/MovingObjects/particle_cell_2DandHalf.h
include/Algo/MovingObjects/particle_cell_2DandHalf.h
+1
-1
include/Algo/MovingObjects/particle_cell_3D.h
include/Algo/MovingObjects/particle_cell_3D.h
+1
-1
include/Algo/ProgressiveMesh/pmesh.h
include/Algo/ProgressiveMesh/pmesh.h
+2
-2
include/Algo/ProgressiveMesh/pmesh.hpp
include/Algo/ProgressiveMesh/pmesh.hpp
+1
-1
include/Algo/Remeshing/pliant.h
include/Algo/Remeshing/pliant.h
+1
-1
include/Algo/Remeshing/pliant.hpp
include/Algo/Remeshing/pliant.hpp
+2
-2
include/Algo/Render/GL1/map_glRender.h
include/Algo/Render/GL1/map_glRender.h
+4
-4
include/Algo/Render/GL1/map_glRender.hpp
include/Algo/Render/GL1/map_glRender.hpp
+4
-4
include/Algo/Render/GL1/renderFunctor.h
include/Algo/Render/GL1/renderFunctor.h
+13
-13
include/Algo/Render/GL1/renderFunctor.hpp
include/Algo/Render/GL1/renderFunctor.hpp
+4
-4
include/Algo/Render/GL1/topo_render.h
include/Algo/Render/GL1/topo_render.h
+5
-5
include/Algo/Render/GL1/topo_render.hpp
include/Algo/Render/GL1/topo_render.hpp
+19
-19
include/Algo/Render/GL2/drawerCells.h
include/Algo/Render/GL2/drawerCells.h
+14
-14
include/Algo/Render/GL2/drawerCells.hpp
include/Algo/Render/GL2/drawerCells.hpp
+14
-14
include/Algo/Render/GL2/explodeVolumeRender.h
include/Algo/Render/GL2/explodeVolumeRender.h
+2
-2
include/Algo/Render/GL2/explodeVolumeRender.hpp
include/Algo/Render/GL2/explodeVolumeRender.hpp
+4
-4
include/Algo/Render/GL2/mapRender.h
include/Algo/Render/GL2/mapRender.h
+6
-6
include/Algo/Render/GL2/mapRender.hpp
include/Algo/Render/GL2/mapRender.hpp
+7
-7
include/Algo/Render/GL2/topo3Render.h
include/Algo/Render/GL2/topo3Render.h
+4
-4
include/Algo/Render/GL2/topo3Render.hpp
include/Algo/Render/GL2/topo3Render.hpp
+13
-15
include/Algo/Render/GL2/topoRender.h
include/Algo/Render/GL2/topoRender.h
+3
-3
include/Algo/Render/GL2/topoRender.hpp
include/Algo/Render/GL2/topoRender.hpp
+9
-9
include/Algo/Render/SVG/mapSVGRender.h
include/Algo/Render/SVG/mapSVGRender.h
+4
-4
include/Algo/Render/SVG/mapSVGRender.hpp
include/Algo/Render/SVG/mapSVGRender.hpp
+4
-4
include/Algo/Selection/collector.h
include/Algo/Selection/collector.h
+3
-3
include/Algo/Selection/raySelectFunctor.hpp
include/Algo/Selection/raySelectFunctor.hpp
+11
-11
include/Algo/Selection/raySelector.h
include/Algo/Selection/raySelector.h
+5
-5
include/Topology/generic/attribmap.h
include/Topology/generic/attribmap.h
+0
-3
include/Topology/generic/attributeHandler.h
include/Topology/generic/attributeHandler.h
+12
-0
include/Topology/generic/autoAttributeHandler.h
include/Topology/generic/autoAttributeHandler.h
+112
-28
include/Topology/generic/genericmap.h
include/Topology/generic/genericmap.h
+5
-1
No files found.
Apps/Examples/clipping.h
View file @
5c271985
...
...
@@ -81,7 +81,7 @@ public:
//Manip Carte
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
Dart
dglobal
;
//Render
...
...
Apps/Examples/concave_rendering.cpp
View file @
5c271985
...
...
@@ -132,7 +132,7 @@ typedef PFP::VEC3 VEC3 ;
// declaration of the map
MAP
myMap
;
// and attribute of position
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
unsigned
int
nb_ears
;
...
...
Apps/Examples/extrusionView.cpp
View file @
5c271985
...
...
@@ -102,7 +102,7 @@ int main(int argc, char **argv)
QApplication
app
(
argc
,
argv
);
MyQT
sqt
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
=
myMap
.
addAttribute
<
VEC3
,
VERTEX
>
(
"position"
)
;
Vertex
Attribute
<
VEC3
>
position
=
myMap
.
addAttribute
<
VEC3
,
VERTEX
>
(
"position"
)
;
// define the face extruded (here a cross)
std
::
vector
<
PFP
::
VEC3
>
objV
;
...
...
Apps/Examples/mcmesh.h
View file @
5c271985
...
...
@@ -73,7 +73,7 @@ public:
bool
m_drawEdges
;
bool
m_drawFaces
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
Algo
::
Render
::
GL2
::
MapRender
*
m_render
;
...
...
Apps/Examples/simpleGMap2.h
View file @
5c271985
...
...
@@ -51,7 +51,7 @@ class SimpleGMap2 : public Utils::QT::SimpleQT
public:
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
SimpleGMap2
()
;
...
...
Apps/Examples/simpleGMap3.h
View file @
5c271985
...
...
@@ -52,9 +52,9 @@ class SimpleGMap3 : public Utils::QT::SimpleQT
public:
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Attribute
Handler
<
VEC3
,
VERTEX
>
normal
;
Attribute
Handler
<
VEC3
,
VOLUME
>
volume
;
Vertex
Attribute
<
VEC3
>
position
;
Vertex
Attribute
<
VEC3
>
normal
;
Volume
Attribute
<
VEC3
>
volume
;
SimpleGMap3
()
;
...
...
Apps/Examples/simpleMap3.h
View file @
5c271985
...
...
@@ -52,7 +52,7 @@ public:
MAP
myMap
;
SelectorTrue
allDarts
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
SimpleMap3
()
;
...
...
Apps/Examples/texturesExample.cpp
View file @
5c271985
...
...
@@ -204,7 +204,7 @@ int main(int argc, char**argv)
PFP
::
MAP
&
m
=
tv
.
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
=
m
.
addAttribute
<
VEC3
,
VERTEX
>
(
"position"
);
Vertex
Attribute
<
VEC3
>
position
=
m
.
addAttribute
<
VEC3
,
VERTEX
>
(
"position"
);
AttributeHandler
<
Geom
::
Vec2f
,
VERTEX
>
texcoord
=
m
.
addAttribute
<
Geom
::
Vec2f
,
VERTEX
>
(
"texcoord"
);
#define NB 96
...
...
Apps/Examples/viewer.cpp
View file @
5c271985
...
...
@@ -248,7 +248,7 @@ void Viewer::exportMesh(std::string& filename)
Algo
::
Export
::
exportOFF
<
PFP
>
(
myMap
,
position
,
filename
.
c_str
(),
allDarts
)
;
else
if
(
extension
.
compare
(
0
,
4
,
std
::
string
(
".ply"
))
==
0
)
{
std
::
vector
<
Attribute
Handler
<
VEC3
,
VERTEX
>*>
attributes
;
std
::
vector
<
Vertex
Attribute
<
VEC3
>*>
attributes
;
attributes
.
push_back
(
&
position
)
;
Algo
::
Export
::
exportPLYnew
<
PFP
>
(
myMap
,
attributes
,
filename
.
c_str
(),
true
,
allDarts
)
;
}
...
...
Apps/Examples/volumeExplorer.cpp
View file @
5c271985
...
...
@@ -33,8 +33,8 @@
PFP
::
MAP
myMap
;
Attribute
Handler
<
PFP
::
VEC3
,
VERTEX
>
position
;
Attribute
Handler
<
PFP
::
VEC3
,
VOLUME
>
color
;
Vertex
Attribute
<
PFP
::
VEC3
>
position
;
Volume
Attribute
<
PFP
::
VEC3
>
color
;
void
MyQT
::
volumes_onoff
(
bool
x
)
{
...
...
Apps/Tuto/show_traversors.cpp
View file @
5c271985
...
...
@@ -40,7 +40,7 @@
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
Dart
dglobal
;
void
MyQT
::
cb_checkTopo
(
bool
b
)
...
...
Apps/Tuto/tp_master.cpp
View file @
5c271985
...
...
@@ -64,7 +64,7 @@ typedef PFP::VEC3 Point3D;
// handler d'attribut de position par sommet
AttributeHandler
<
Point3D
,
VERTEX
>
position
;
// handler d'attribut de normale par sommet
Attribute
Handler
<
PFP
::
VEC3
,
VERTEX
>
normal
;
Vertex
Attribute
<
PFP
::
VEC3
>
normal
;
/// Fonctions a connaitre:
...
...
Apps/Tuto/tuto1.h
View file @
5c271985
...
...
@@ -73,7 +73,7 @@ protected:
MAP
myMap
;
// attribute for vertices positions
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
// render (for the topo)
Algo
::
Render
::
GL2
::
TopoRender
*
m_render_topo
;
...
...
Apps/Tuto/tuto2.cpp
View file @
5c271985
...
...
@@ -53,7 +53,7 @@ void MyQT::createMap()
Dart
d1
=
myMap
.
newFace
(
3
);
Dart
d2
=
myMap
.
newFace
(
4
);
myMap
.
sewFaces
(
d1
,
d2
);
Attribute
Handler
<
VEC3
,
VERTEX
>
position
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"position"
);
Vertex
Attribute
<
VEC3
>
position
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"position"
);
position
[
d1
]
=
PFP
::
VEC3
(
0
,
0
,
0
);
position
[
PHI1
(
d1
)]
=
PFP
::
VEC3
(
2
,
0
,
0
);
position
[
PHI_1
(
d1
)]
=
PFP
::
VEC3
(
1
,
2
,
0
);
...
...
@@ -61,7 +61,7 @@ void MyQT::createMap()
position
[
PHI_1
(
d2
)]
=
PFP
::
VEC3
(
2
,
-
2
,
0
);
// create another attribute on vertices (for faces drawing)
Attribute
Handler
<
VEC3
,
VERTEX
>
colorF
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"colorF"
);
Vertex
Attribute
<
VEC3
>
colorF
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"colorF"
);
colorF
[
d1
]
=
Geom
::
Vec3f
(
1.0
f
,
0.0
f
,
0.0
f
);
colorF
[
PHI1
(
d1
)]
=
Geom
::
Vec3f
(
0.0
f
,
1.0
f
,
0.0
f
);
...
...
@@ -70,7 +70,7 @@ void MyQT::createMap()
colorF
[
PHI_1
(
d2
)]
=
Geom
::
Vec3f
(
0.0
f
,
1.0
f
,
1.0
f
);
// create another attribute on vertices (for edges drawing)
Attribute
Handler
<
VEC3
,
VERTEX
>
colorE
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"colorE"
);
Vertex
Attribute
<
VEC3
>
colorE
=
myMap
.
addAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
"colorE"
);
colorE
[
d1
]
=
Geom
::
Vec3f
(
0.0
f
,
0.5
f
,
0.5
f
);
colorE
[
PHI1
(
d1
)]
=
Geom
::
Vec3f
(
0.5
f
,
0.0
f
,
0.5
f
);
...
...
Apps/Tuto/tuto3.h
View file @
5c271985
...
...
@@ -75,7 +75,7 @@ protected:
MAP
myMap
;
// attribute handler on position;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
// render (for the topo)
Algo
::
Render
::
GL2
::
TopoRender
*
m_render_topo
;
...
...
Apps/Tuto/tuto4.h
View file @
5c271985
...
...
@@ -63,7 +63,7 @@ protected:
MAP
myMap
;
// attribute handler on position;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
// render (for the topo)
Algo
::
Render
::
GL2
::
TopoRender
*
m_render_topo
;
...
...
Apps/Tuto/tuto5.cpp
View file @
5c271985
...
...
@@ -35,7 +35,7 @@
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
Dart
dglobal
;
void
MyQT
::
balls_onoff
(
bool
x
)
...
...
Apps/Tuto/tuto_oper2.h
View file @
5c271985
...
...
@@ -84,7 +84,7 @@ protected:
// declaration of the map
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
AttributeHandler
<
VEC3
,
DART
>
colorDarts
;
SelectorDartNoBoundary
<
PFP
::
MAP
>
nb
;
...
...
Apps/Tuto/tuto_oper3.h
View file @
5c271985
...
...
@@ -84,7 +84,7 @@ protected:
// declaration of the map
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
SelectorDartNoBoundary
<
PFP
::
MAP
>
nb
;
...
...
Apps/Tuto/tuto_orbits.cpp
View file @
5c271985
...
...
@@ -37,7 +37,7 @@
#include "Algo/Import/import.h"
MAP
myMap
;
Attribute
Handler
<
VEC3
,
VERTEX
>
position
;
Vertex
Attribute
<
VEC3
>
position
;
AttributeHandler
<
VEC3
,
DART
>
middleDarts
;
...
...
Apps/Tuto/tuto_subdivision.cpp
View file @
5c271985
...
...
@@ -67,7 +67,7 @@ int main(int argc, char **argv)
Algo
::
Import
::
importMesh
<
PFP
>
(
myMap
,
argv
[
1
],
attrNames
);
// get a handler to the 3D vector attribute created by the import
Attribute
Handler
<
PFP
::
VEC3
,
VERTEX
>
position
=
myMap
.
getAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
attrNames
[
0
]);
Vertex
Attribute
<
PFP
::
VEC3
>
position
=
myMap
.
getAttribute
<
PFP
::
VEC3
,
VERTEX
>
(
attrNames
[
0
]);
for
(
unsigned
int
i
=
0
;
i
<
nbSteps
;
++
i
)
Algo
::
Modelisation
::
LoopSubdivision
<
PFP
>
(
myMap
,
position
);
...
...
include/Algo/BooleanOperator/mergeVertices.h
View file @
5c271985
...
...
@@ -39,10 +39,10 @@ namespace BooleanOperator
{
template
<
typename
PFP
>
void
mergeVertex
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
positions
,
Dart
d
,
Dart
e
);
void
mergeVertex
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
positions
,
Dart
d
,
Dart
e
);
template
<
typename
PFP
>
void
mergeVertices
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
positions
);
void
mergeVertices
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
positions
);
}
...
...
include/Algo/BooleanOperator/mergeVertices.hpp
View file @
5c271985
...
...
@@ -32,7 +32,7 @@ namespace BooleanOperator
{
template
<
typename
PFP
>
void
mergeVertex
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
positions
,
Dart
d
,
Dart
e
)
void
mergeVertex
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
positions
,
Dart
d
,
Dart
e
)
{
assert
(
Geom
::
arePointsEquals
(
positions
[
d
],
positions
[
e
])
&&
!
map
.
sameVertex
(
d
,
e
));
Dart
dd
;
...
...
@@ -55,7 +55,7 @@ void mergeVertex(typename PFP::MAP& map, const AttributeHandler<typename PFP::VE
}
template
<
typename
PFP
>
void
mergeVertices
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
positions
)
void
mergeVertices
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
positions
)
{
for
(
Dart
d
=
map
.
begin
()
;
d
!=
map
.
end
()
;
map
.
next
(
d
))
{
...
...
include/Algo/Decimation/decimation.h
View file @
5c271985
...
...
@@ -44,7 +44,7 @@ void decimate(
typename
PFP
::
MAP
&
map
,
SelectorType
s
,
ApproximatorType
a
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
position
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
position
,
unsigned
int
nbWantedVertices
,
const
FunctorSelect
&
selected
=
allDarts
)
;
...
...
include/Algo/Decimation/decimation.hpp
View file @
5c271985
...
...
@@ -34,7 +34,7 @@ namespace Decimation
template
<
typename
PFP
>
void
decimate
(
typename
PFP
::
MAP
&
map
,
SelectorType
s
,
ApproximatorType
a
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
position
,
unsigned
int
nbWantedVertices
,
const
FunctorSelect
&
selected
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
position
,
unsigned
int
nbWantedVertices
,
const
FunctorSelect
&
selected
)
{
std
::
vector
<
ApproximatorGen
<
PFP
>*>
approximators
;
...
...
include/Algo/Decimation/edgeSelector.h
View file @
5c271985
...
...
@@ -54,7 +54,7 @@ private:
Dart
cur
;
public:
EdgeSelector_MapOrder
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_MapOrder
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{}
~
EdgeSelector_MapOrder
()
...
...
@@ -81,7 +81,7 @@ private:
bool
allSkipped
;
public:
EdgeSelector_Random
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_Random
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{}
~
EdgeSelector_Random
()
...
...
@@ -121,7 +121,7 @@ private:
void
computeEdgeInfo
(
Dart
d
,
EdgeInfo
&
einfo
)
;
public:
EdgeSelector_Length
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_Length
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
edgeInfo
=
m
.
template
addAttribute
<
EdgeInfo
,
EDGE
>(
"edgeInfo"
)
;
...
...
@@ -168,7 +168,7 @@ private:
void
computeEdgeInfo
(
Dart
d
,
EdgeInfo
&
einfo
)
;
public:
EdgeSelector_QEM
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_QEM
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
edgeInfo
=
m
.
template
addAttribute
<
EdgeInfo
,
EDGE
>(
"edgeInfo"
)
;
...
...
@@ -217,7 +217,7 @@ private:
void
recomputeQuadric
(
const
Dart
d
,
const
bool
recomputeNeighbors
=
false
)
;
public:
EdgeSelector_QEMml
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_QEMml
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
edgeInfo
=
m
.
template
addAttribute
<
EdgeInfo
,
EDGE
>(
"edgeInfo"
)
;
...
...
@@ -255,14 +255,14 @@ private:
Geom
::
BoundingBox
<
VEC3
>
bb
;
REAL
radius
;
Attribute
Handler
<
VEC3
,
VERTEX
>
normal
;
Vertex
Attribute
<
VEC3
>
normal
;
AttributeHandler
<
EdgeInfo
,
EDGE
>
edgeInfo
;
Attribute
Handler
<
REAL
,
EDGE
>
edgeangle
;
Attribute
Handler
<
REAL
,
VERTEX
>
kmax
;
Attribute
Handler
<
REAL
,
VERTEX
>
kmin
;
Attribute
Handler
<
VEC3
,
VERTEX
>
Kmax
;
Attribute
Handler
<
VEC3
,
VERTEX
>
Kmin
;
Attribute
Handler
<
VEC3
,
VERTEX
>
Knormal
;
Edge
Attribute
<
REAL
>
edgeangle
;
Vertex
Attribute
<
REAL
>
kmax
;
Vertex
Attribute
<
REAL
>
kmin
;
Vertex
Attribute
<
VEC3
>
Kmax
;
Vertex
Attribute
<
VEC3
>
Kmin
;
Vertex
Attribute
<
VEC3
>
Knormal
;
std
::
multimap
<
float
,
Dart
>
edges
;
typename
std
::
multimap
<
float
,
Dart
>::
iterator
cur
;
...
...
@@ -274,7 +274,7 @@ private:
void
computeEdgeInfo
(
Dart
d
,
EdgeInfo
&
einfo
)
;
public:
EdgeSelector_Curvature
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_Curvature
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
bb
=
Algo
::
Geometry
::
computeBoundingBox
<
PFP
>
(
m
,
pos
)
;
...
...
@@ -359,7 +359,7 @@ private:
void
computeEdgeInfo
(
Dart
d
,
EdgeInfo
&
einfo
)
;
public:
EdgeSelector_MinDetail
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector_MinDetail
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
edgeInfo
=
m
.
template
addAttribute
<
EdgeInfo
,
EDGE
>(
"edgeInfo"
)
;
...
...
include/Algo/Decimation/geometryApproximator.h
View file @
5c271985
...
...
@@ -48,7 +48,7 @@ protected:
AttributeHandler
<
Quadric
<
REAL
>
,
VERTEX
>
m_quadric
;
public:
Approximator_QEM
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator_QEM
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator
<
PFP
,
VEC3
>
(
m
,
pos
,
pred
)
{}
~
Approximator_QEM
()
...
...
@@ -70,7 +70,7 @@ protected:
AttributeHandler
<
Quadric
<
REAL
>
,
VERTEX
>
m_quadric
;
public:
Approximator_QEMhalfEdge
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator_QEMhalfEdge
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator
<
PFP
,
VEC3
>
(
m
,
pos
,
pred
)
{}
~
Approximator_QEMhalfEdge
()
...
...
@@ -88,7 +88,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Approximator_MidEdge
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator_MidEdge
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator
<
PFP
,
VEC3
>
(
m
,
pos
,
pred
)
{}
~
Approximator_MidEdge
()
...
...
@@ -106,7 +106,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Approximator_HalfCollapse
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator_HalfCollapse
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator
<
PFP
,
VEC3
>
(
m
,
pos
,
pred
)
{}
~
Approximator_HalfCollapse
()
...
...
@@ -124,7 +124,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Approximator_CornerCutting
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator_CornerCutting
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
,
Predictor
<
PFP
,
VEC3
>*
pred
=
NULL
)
:
Approximator
<
PFP
,
VEC3
>
(
m
,
pos
,
pred
)
{}
~
Approximator_CornerCutting
()
...
...
include/Algo/Decimation/geometryPredictor.h
View file @
5c271985
...
...
@@ -44,7 +44,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Predictor_HalfCollapse
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
)
:
Predictor_HalfCollapse
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
)
:
Predictor
<
PFP
,
VEC3
>
(
m
,
pos
)
{}
PredictorType
getType
()
{
return
P_HalfCollapse
;
}
...
...
@@ -60,7 +60,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Predictor_CornerCutting
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
)
:
Predictor_CornerCutting
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
)
:
Predictor
<
PFP
,
VEC3
>
(
m
,
pos
)
{}
PredictorType
getType
()
{
return
P_CornerCutting
;
}
...
...
@@ -77,7 +77,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Predictor_TangentPredict1
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
)
:
Predictor_TangentPredict1
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
)
:
Predictor
<
PFP
,
VEC3
>
(
m
,
pos
)
{}
PredictorType
getType
()
{
return
P_TangentPredict1
;
}
...
...
@@ -94,7 +94,7 @@ public:
typedef
typename
PFP
::
VEC3
VEC3
;
typedef
typename
PFP
::
REAL
REAL
;
Predictor_TangentPredict2
(
MAP
&
m
,
Attribute
Handler
<
VEC3
,
VERTEX
>&
pos
)
:
Predictor_TangentPredict2
(
MAP
&
m
,
Vertex
Attribute
<
VEC3
>&
pos
)
:
Predictor
<
PFP
,
VEC3
>
(
m
,
pos
)
{}
PredictorType
getType
()
{
return
P_TangentPredict2
;
}
...
...
include/Algo/Decimation/halfEdgeSelector.h
View file @
5c271985
...
...
@@ -67,7 +67,7 @@ private:
void
recomputeQuadric
(
const
Dart
d
,
const
bool
recomputeNeighbors
=
false
)
;
public:
HalfEdgeSelector_QEMml
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
=
allDarts
)
:
HalfEdgeSelector_QEMml
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
=
allDarts
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
halfEdgeInfo
=
m
.
template
addAttribute
<
HalfEdgeInfo
,
DART
>(
"halfEdgeInfo"
)
;
...
...
@@ -124,7 +124,7 @@ private:
void
recomputeQuadric
(
const
Dart
d
,
const
bool
recomputeNeighbors
)
;
public:
HalfEdgeSelector_Lightfield
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
=
allDarts
)
:
HalfEdgeSelector_Lightfield
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
=
allDarts
)
:
EdgeSelector
<
PFP
>
(
m
,
pos
,
approx
,
select
)
{
m_frame
=
m
.
template
getAttribute
<
MATRIX33
,
VERTEX
>(
"frame"
)
;
...
...
@@ -188,7 +188,7 @@ private:
void computeEdgeInfo(Dart d, EdgeInfo& einfo) ;
public:
EdgeSelector_Lightfield(MAP& m, Attribute
Handler
<typename PFP::VEC3
, VERTEX
>& pos, std::vector<ApproximatorGen<PFP>*>& approx, const FunctorSelect& select = allDarts) :
EdgeSelector_Lightfield(MAP& m,
Vertex
Attribute<typename PFP::VEC3>& pos, std::vector<ApproximatorGen<PFP>*>& approx, const FunctorSelect& select = allDarts) :
EdgeSelector<PFP>(m, pos, approx, select)
{
m_frame = m.template getAttribute<FRAME, VERTEX>("frame") ;
...
...
include/Algo/Decimation/lightfieldApproximator.h
View file @
5c271985
...
...
@@ -98,8 +98,8 @@ public:
typedef
Geom
::
Matrix
<
3
,
6
,
REAL
>
MATRIX36
;
protected:
Attribute
Handler
<
VEC3
,
VERTEX
>
m_position
;
Attribute
Handler
<
VEC3
,
EDGE
>
m_approxPosition
;
Vertex
Attribute
<
VEC3
>
m_position
;
Edge
Attribute
<
VEC3
>
m_approxPosition
;
public:
Approximator_Frame
(
MAP
&
m
,
AttributeHandler
<
MATRIX33
,
VERTEX
>&
frame
,
Predictor
<
PFP
,
MATRIX33
>*
pred
=
NULL
)
:
...
...
include/Algo/Decimation/selector.h
View file @
5c271985
...
...
@@ -60,12 +60,12 @@ public:
protected:
MAP
&
m_map
;
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
m_position
;
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
m_position
;
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
m_approximators
;
const
FunctorSelect
&
m_select
;
public:
EdgeSelector
(
MAP
&
m
,
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
EdgeSelector
(
MAP
&
m
,
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
pos
,
std
::
vector
<
ApproximatorGen
<
PFP
>*>&
approx
,
const
FunctorSelect
&
select
)
:
m_map
(
m
),
m_position
(
pos
),
m_approximators
(
approx
),
m_select
(
select
)
{}
virtual
~
EdgeSelector
()
...
...
include/Algo/Export/export.h
View file @
5c271985
...
...
@@ -46,7 +46,7 @@ namespace Export
* @return true
*/
template
<
typename
PFP
>
bool
exportPLY
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
position
,
const
char
*
filename
,
const
bool
binary
,
const
FunctorSelect
&
good
=
allDarts
)
;
bool
exportPLY
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
position
,
const
char
*
filename
,
const
bool
binary
,
const
FunctorSelect
&
good
=
allDarts
)
;
/**
* export the map into a PLY file
...
...
@@ -57,7 +57,7 @@ bool exportPLY(typename PFP::MAP& map, const AttributeHandler<typename PFP::VEC3
* @return true
*/
template
<
typename
PFP
>
bool
exportPLYnew
(
typename
PFP
::
MAP
&
map
,
const
std
::
vector
<
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>*
>&
attributeHandlers
,
const
char
*
filename
,
const
bool
binary
,
const
FunctorSelect
&
good
=
allDarts
)
;
bool
exportPLYnew
(
typename
PFP
::
MAP
&
map
,
const
std
::
vector
<
Vertex
Attribute
<
typename
PFP
::
VEC3
>*
>&
attributeHandlers
,
const
char
*
filename
,
const
bool
binary
,
const
FunctorSelect
&
good
=
allDarts
)
;
/**
* export the map into a OFF file
...
...
@@ -66,7 +66,7 @@ bool exportPLYnew(typename PFP::MAP& map, const std::vector<AttributeHandler<typ
* @return true
*/
template
<
typename
PFP
>
bool
exportOFF
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
position
,
const
char
*
filename
,
const
FunctorSelect
&
good
=
allDarts
)
;
bool
exportOFF
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
position
,
const
char
*
filename
,
const
FunctorSelect
&
good
=
allDarts
)
;
/**
* export the map into a Trian file
...
...
@@ -75,7 +75,7 @@ bool exportOFF(typename PFP::MAP& map, const AttributeHandler<typename PFP::VEC3
* @return true
*/
template
<
typename
PFP
>
bool
exportTrian
(
typename
PFP
::
MAP
&
map
,
const
Attribute
Handler
<
typename
PFP
::
VEC3
,
VERTEX
>&
position
,
char
*
filename
,
const
FunctorSelect
&
good
=
allDarts
)
;
bool
exportTrian
(
typename
PFP
::
MAP
&
map
,
const
Vertex
Attribute
<
typename
PFP
::
VEC3
>&
position
,
char
*
filename
,
const
FunctorSelect
&
good
=
allDarts
)
;
/**
* export the map into a PLYPTMgeneric file (K. Vanhoey generic format).
...
...
@@ -90,7 +90,7 @@ bool exportTrian(typename PFP::MAP& map, const AttributeHandler<typename PFP::VE
* @return true
*/