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
Thomas Pitiot
CGoGN
Commits
5054c589
Commit
5054c589
authored
Nov 10, 2011
by
Pierre Kraemer
Browse files
global allDarts Selector
parent
72d6f882
Changes
56
Hide whitespace changes
Inline
Side-by-side
Apps/Examples/Tests/concave_rendering.cpp
View file @
5054c589
...
...
@@ -213,7 +213,6 @@ void MyQT::cb_keyPress(int code)
Algo
::
Modelisation
::
EarTriangulation
<
PFP
>
triangulation
(
myMap
);
triangulation
.
triangule
();
SelectorTrue
allDarts
;
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
updateGL
();
...
...
@@ -439,7 +438,6 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
POINTS
);
...
...
Apps/Examples/clipping.h
View file @
5054c589
...
...
@@ -79,7 +79,6 @@ public:
//Manip Carte
MAP
myMap
;
SelectorTrue
allDarts
;
TVEC3
position
;
Dart
dglobal
;
...
...
Apps/Examples/decimationVolumique.h
View file @
5054c589
...
...
@@ -55,7 +55,6 @@ struct PFP: public PFP_STANDARD
};
PFP
::
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
PFP
::
TREAL
scalar
;
Dart
dglobal
;
...
...
Apps/Examples/extrusionView.cpp
View file @
5054c589
...
...
@@ -155,7 +155,6 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
Apps/Examples/miniTest.cpp
View file @
5054c589
...
...
@@ -56,7 +56,6 @@ struct PFP: public PFP_STANDARD
typedef
PFP
::
MAP
MAP
;
MAP
myMap
;
SelectorTrue
allDarts
;
class
MyGlutWin
:
public
Utils
::
GlutWin_ATB
{
...
...
Apps/Examples/polyhedronsView.cpp
View file @
5054c589
...
...
@@ -154,7 +154,6 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
Apps/Examples/scene.cpp
View file @
5054c589
...
...
@@ -140,8 +140,6 @@ void myGlutWin::init()
void
myGlutWin
::
updateRender
()
{
SelectorTrue
allDarts
;
// create the renderer (first call only)
if
(
m_render
==
NULL
)
m_render
=
new
Algo
::
Render
::
GL2
::
MapRender_VBO
()
;
...
...
Apps/Examples/simpleGMap2.h
View file @
5054c589
...
...
@@ -50,7 +50,6 @@ class SimpleGMap2 : public Utils::QT::SimpleQT
public:
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
...
...
Apps/Examples/simpleGMap3.h
View file @
5054c589
...
...
@@ -50,7 +50,6 @@ class SimpleGMap3 : public Utils::QT::SimpleQT
public:
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
...
...
Apps/Examples/squelette3carte.h
View file @
5054c589
...
...
@@ -55,7 +55,6 @@ struct PFP: public PFP_STANDARD
PFP
::
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
Dart
dglobal
;
...
...
Apps/Examples/ter_meshes.cpp
View file @
5054c589
...
...
@@ -119,10 +119,6 @@ int main(int argc, char **argv)
// declaration of the map
PFP
::
MAP
myMap
;
// this selector is going to select all the darts
SelectorTrue
allDarts
;
std
::
vector
<
std
::
string
>
attrNames
;
if
(
!
Algo
::
Import
::
importMesh
<
PFP
>
(
myMap
,
argv
[
1
],
attrNames
))
{
...
...
Apps/Examples/texturesExample.h
View file @
5054c589
...
...
@@ -63,7 +63,6 @@ protected:
public:
MAP
myMap
;
SelectorTrue
allDarts
;
// render
Algo
::
Render
::
GL2
::
MapRender
*
m_render
;
...
...
Apps/Examples/triangulation.cpp
View file @
5054c589
...
...
@@ -144,9 +144,6 @@ int main(int argc, char **argv)
// declaration of the map
PFP
::
MAP
myMap
;
// this selector is going to select all the darts
SelectorTrue
allDarts
;
// creation of a new attribute on vertices of type 3D vector
// a handler to this attribute is returned
AttributeHandler
<
PFP
::
VEC3
>
position
=
myMap
.
addAttribute
<
PFP
::
VEC3
>
(
VERTEX
,
"position"
);
...
...
Apps/Examples/viewer.cpp
View file @
5054c589
...
...
@@ -210,6 +210,10 @@ void Viewer::importMesh(std::string& filename)
setParamObject
(
bb
.
maxSize
(),
bb
.
center
().
data
())
;
updateGLMatrices
()
;
TraversorCell
<
MAP
>
t
(
myMap
,
VERTEX
)
;
for
(
Dart
d
=
t
.
begin
();
d
!=
t
.
end
();
d
=
t
.
next
())
std
::
cout
<<
"pos -> "
<<
position
[
d
]
<<
std
::
endl
;
}
void
Viewer
::
slot_drawVertices
(
bool
b
)
...
...
Apps/Examples/viewer.h
View file @
5054c589
...
...
@@ -64,7 +64,6 @@ class Viewer : public Utils::QT::SimpleQT
public:
MAP
myMap
;
SelectorTrue
allDarts
;
Utils
::
QT
::
uiDockInterface
dock
;
...
...
Apps/Examples/volumeViewer.h
View file @
5054c589
...
...
@@ -48,7 +48,6 @@ struct PFP: public PFP_STANDARD
PFP
::
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
...
...
Apps/Tuto/tp_master.cpp
View file @
5054c589
...
...
@@ -69,9 +69,6 @@ AttributeHandler<PFP::VEC3> position;
// handler d'attribut de normale par sommet
AttributeHandler
<
PFP
::
VEC3
>
normal
;
/// fonction qui renvoit vrai (appliquée à un brin)
//SelectorTrue allDarts;
/// encore 1 typedef pour simplifier l'ecriture du code
typedef
PFP
::
VEC3
Point3D
;
...
...
@@ -615,7 +612,6 @@ int main(int argc, char **argv)
sqt
.
m_normalVBO
->
updateData
(
normal
);
// update des primitives du renderer
SelectorTrue
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
Apps/Tuto/tuto1.cpp
View file @
5054c589
...
...
@@ -173,7 +173,6 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
SelectorEdgeNoBoundary
<
PFP
::
MAP
>
insideEdges
(
myMap
);
// just to draw only inside edges
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
insideEdges
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
Apps/Tuto/tuto2.cpp
View file @
5054c589
...
...
@@ -46,8 +46,6 @@ struct PFP: public PFP_STANDARD
PFP
::
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
PFP
::
TVEC3
normal
;
AttributeHandler
<
Geom
::
Vec4f
>
color
;
...
...
@@ -251,7 +249,6 @@ int main(int argc, char **argv)
sqt
.
m_positionVBO
->
updateData
(
position
);
// update des primitives du renderer
SelectorTrue
allDarts
;
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
TRIANGLES
);
sqt
.
m_render
->
initPrimitives
<
PFP
>
(
myMap
,
allDarts
,
Algo
::
Render
::
GL2
::
LINES
);
...
...
Apps/Tuto/tuto3.cpp
View file @
5054c589
...
...
@@ -103,7 +103,6 @@ void MyQT::cb_keyPress(int code)
int
main
(
int
argc
,
char
**
argv
)
{
PFP
::
MAP
myMap
;
SelectorTrue
allDarts
;
PFP
::
TVEC3
position
;
PFP
::
TVEC3
normal
;
...
...
Prev
1
2
3
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