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
KennethVanhoey
CGoGN
Commits
4f0b45f5
Commit
4f0b45f5
authored
Oct 03, 2011
by
Thomas
Browse files
Merge branch 'master' of cgogn.u-strasbg.fr:~cgogn/CGoGN
parents
2ebf6b07
bb7dfccd
Changes
1
Hide whitespace changes
Inline
Side-by-side
include/Topology/generic/embeddedMap2.hpp
View file @
4f0b45f5
...
...
@@ -316,45 +316,45 @@ void EmbeddedMap2<MAP2>::sewFaces(Dart d, Dart e)
template
<
typename
MAP2
>
void
EmbeddedMap2
<
MAP2
>::
unsewFaces
(
Dart
d
)
{
//
bool boundaryD = false ;
//
bool boundaryE = false ;
//
if (MAP2::isOrbitEmbedded(VERTEX))
//
{
//
if(MAP2::isBoundaryVertex(d))
//
boundaryD = true ;
//
if(MAP2::isBoundaryVertex(MAP2::phi1(d)))
//
boundaryE = true ;
//
}
//
//
Dart e = MAP2::phi2(d) ;
bool
boundaryD
=
false
;
bool
boundaryE
=
false
;
if
(
MAP2
::
isOrbitEmbedded
(
VERTEX
))
{
if
(
MAP2
::
isBoundaryVertex
(
d
))
boundaryD
=
true
;
if
(
MAP2
::
isBoundaryVertex
(
MAP2
::
phi1
(
d
)))
boundaryE
=
true
;
}
Dart
e
=
MAP2
::
phi2
(
d
)
;
MAP2
::
unsewFaces
(
d
)
;
//
if (MAP2::isOrbitEmbedded(VERTEX))
//
{
//
if(boundaryD)
//
{
//
if(e != d)
//
{
//
Dart ee = MAP2::phi1(e) ;
//
MAP2::embedNewCell(VERTEX, ee) ;
//
MAP2::copyCell(VERTEX, ee, d) ;
//
}
//
}
//
//
if(boundaryE)
//
{
//
if(e != d)
//
{
//
MAP2::embedNewCell(VERTEX, e) ;
//
MAP2::copyCell(VERTEX, e, MAP2::phi1(d)) ;
//
}
//
}
//
}
//
if (MAP2::isOrbitEmbedded(EDGE))
//
{
//
MAP2::embedNewCell(EDGE, e) ;
//
MAP2::copyCell(EDGE, e, d) ;
//
}
if
(
MAP2
::
isOrbitEmbedded
(
VERTEX
))
{
if
(
boundaryD
)
{
if
(
e
!=
d
)
{
Dart
ee
=
MAP2
::
phi1
(
e
)
;
MAP2
::
embedNewCell
(
VERTEX
,
ee
)
;
MAP2
::
copyCell
(
VERTEX
,
ee
,
d
)
;
}
}
if
(
boundaryE
)
{
if
(
e
!=
d
)
{
MAP2
::
embedNewCell
(
VERTEX
,
e
)
;
MAP2
::
copyCell
(
VERTEX
,
e
,
MAP2
::
phi1
(
d
))
;
}
}
}
if
(
MAP2
::
isOrbitEmbedded
(
EDGE
))
{
MAP2
::
embedNewCell
(
EDGE
,
e
)
;
MAP2
::
copyCell
(
EDGE
,
e
,
d
)
;
}
}
template
<
typename
MAP2
>
...
...
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