Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
CGoGN
CGoGN
Commits
5c271985
Commit
5c271985
authored
May 03, 2012
by
Pierre Kraemer
Browse files
AttributeHandler -> [Vertex,Edge,...]Attribute
parent
961a702b
Changes
123
Hide whitespace changes
Inline
Side-by-side
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
;
...
...
Prev
1
2
3
4
5
…
7
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment