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
Operations
Operations
Incidents
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
David Cazier
CGoGN
Commits
5b625afc
Commit
5b625afc
authored
Jan 04, 2012
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
micro modifs
parent
f1c64e00
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
include/Algo/Modelisation/polyhedron.hpp
include/Algo/Modelisation/polyhedron.hpp
+7
-6
No files found.
include/Algo/Modelisation/polyhedron.hpp
View file @
5b625afc
...
...
@@ -597,7 +597,7 @@ Dart Polyhedron<PFP>::cube_topo(unsigned int x, unsigned int y, unsigned int z)
{
if
(
m_kind
!=
NONE
)
return
m_dart
;
m_dart
=
cylinder_topo
(
2
*
(
x
+
y
),
z
,
false
,
false
);
m_dart
=
cylinder_topo
(
2
*
(
x
+
y
),
z
,
false
,
false
);
m_kind
=
CUBE
;
m_nx
=
x
;
m_ny
=
y
;
...
...
@@ -697,17 +697,17 @@ Dart Polyhedron<PFP>::tore_topo(unsigned int m, unsigned int n)
if
(
m_kind
!=
NONE
)
return
m_dart
;
m_dart
=
cylinder_topo
(
n
,
m
,
false
,
false
);
m_nx
=
n
;
m_ny
=
m
;
m_nx
=
n
;
m_ny
=
m
;
m_kind
=
TORE
;
// just
e
finish to sew
// just finish to sew
for
(
unsigned
int
i
=
0
;
i
<
n
;
++
i
)
{
Dart
d
=
m_tableVertDarts
[
i
];
Dart
e
=
m_tableVertDarts
[(
m
*
n
)
+
i
];
e
=
m_map
.
phi_1
(
e
);
m_map
.
sewFaces
(
d
,
e
,
true
);
m_map
.
sewFaces
(
d
,
e
);
}
// remove the last n vertex darts that are no more necessary (sewed with n first)
...
...
@@ -722,7 +722,8 @@ void Polyhedron<PFP>::embedGrid(float x, float y, float z)
{
typedef
typename
PFP
::
VEC3
VEC3
;
if
(
m_kind
!=
GRID
)
{
if
(
m_kind
!=
GRID
)
{
CGoGNerr
<<
"Warning try to embedGrid something that is not a grid"
<<
CGoGNendl
;
return
;
}
...
...
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