Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
KennethVanhoey
CGoGN
Commits
4e3c81e2
Commit
4e3c81e2
authored
Oct 06, 2011
by
thomas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bande de moebiuuuuuus
parent
d5d27224
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
Apps/Examples/simpleGMap2.cpp
Apps/Examples/simpleGMap2.cpp
+16
-3
include/Topology/gmap/gmap2.h
include/Topology/gmap/gmap2.h
+2
-2
No files found.
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 edges
(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
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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