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
4e3c81e2
Commit
4e3c81e2
authored
Oct 06, 2011
by
thomas
Browse files
bande de moebiuuuuuus
parent
d5d27224
Changes
2
Hide whitespace changes
Inline
Side-by-side
Apps/Examples/simpleGMap2.cpp
View file @
4e3c81e2
...
...
@@ -34,9 +34,22 @@ SimpleGMap2::SimpleGMap2()
Dart
d
=
Algo
::
Modelisation
::
Polyhedron
<
PFP
>::
createOrientedTetra
(
myMap
);
position
[
d
]
=
VEC3
(
0
,
0
,
0
);
position
[
myMap
.
phi1
(
d
)]
=
VEC3
(
10
,
0
,
0
);
position
[
myMap
.
phi_1
(
d
)]
=
VEC3
(
10
,
20
,
0
);
position
[
myMap
.
phi_1
(
myMap
.
phi2
(
d
))]
=
VEC3
(
0
,
0
,
15
);
position
[
myMap
.
phi1
(
d
)]
=
VEC3
(
10
,
0
,
15
);
position
[
myMap
.
phi_1
(
d
)]
=
VEC3
(
10
,
20
,
15
);
position
[
myMap
.
phi_1
(
myMap
.
phi2
(
d
))]
=
VEC3
(
0
,
0
,
30
);
Algo
::
Modelisation
::
Polyhedron
<
PFP
>
poly
(
myMap
,
position
);
d
=
poly
.
cylinder_topo
(
5
,
1
,
false
,
false
);
poly
.
embedCylinder
(
10
,
10
,
5
);
d
=
myMap
.
phi1
(
d
);
Dart
dd
=
myMap
.
beta2
(
d
);
myMap
.
unsewFaces
(
d
);
myMap
.
sewFaces
(
d
,
dd
);
position
[
d
][
1
]
+=
3.0
f
;
}
void
SimpleGMap2
::
initGUI
()
...
...
include/Topology/gmap/gmap2.h
View file @
4e3c81e2
...
...
@@ -163,14 +163,14 @@ public:
*/
virtual
void
removeEdgeFromVertex
(
Dart
d
);
//! Sew two
oriented
faces along
oriented
edge
s
(pay attention to the orientation !)
//! Sew two faces along
an
edge (pay attention to the orientation !)
/*! \pre Darts d & e MUST be fixed point of phi2 relation
* @param d a dart of the first face
* @param e a dart of the second face
*/
virtual
void
sewFaces
(
Dart
d
,
Dart
e
);
//! Unsew two
oriented
faces along
oriented
edges
//! Unsew two faces along
an
edges
/*! @param d a dart of one face
*/
virtual
void
unsewFaces
(
Dart
d
);
...
...
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