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
fda2918a
Commit
fda2918a
authored
Jan 15, 2013
by
untereiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
merge
parent
569c7111
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
32 additions
and
32 deletions
+32
-32
src/Topology/map/map3.cpp
src/Topology/map/map3.cpp
+32
-32
No files found.
src/Topology/map/map3.cpp
View file @
fda2918a
...
@@ -1239,20 +1239,20 @@ void Map3::reverseOrientation()
...
@@ -1239,20 +1239,20 @@ void Map3::reverseOrientation()
void
Map3
::
computeDual
()
void
Map3
::
computeDual
()
{
{
unsigned
int
count
=
0
;
//
unsigned int count = 0;
CellMarkerNoUnmark
<
VERTEX
>
cv
(
*
this
);
//
CellMarkerNoUnmark<VERTEX> cv(*this);
std
::
vector
<
Dart
>
v
;
//
std::vector<Dart> v;
for
(
Dart
d
=
begin
();
d
!=
end
();
next
(
d
))
//
for(Dart d = begin(); d != end(); next(d))
{
//
{
if
(
!
cv
.
isMarked
(
d
)
&&
isBoundaryMarked3
(
d
))
//
if(!cv.isMarked(d) && isBoundaryMarked3(d))
{
//
{
++
count
;
//
++count;
v
.
push_back
(
d
);
//
v.push_back(d);
cv
.
mark
(
d
);
//
cv.mark(d);
}
//
}
}
//
}
//
std
::
cout
<<
"boundary vertices : "
<<
count
<<
std
::
endl
;
//
std::cout << "boundary vertices : " << count << std::endl;
DartAttribute
<
Dart
>
old_phi1
=
getAttribute
<
Dart
,
DART
>
(
"phi1"
)
;
DartAttribute
<
Dart
>
old_phi1
=
getAttribute
<
Dart
,
DART
>
(
"phi1"
)
;
DartAttribute
<
Dart
>
old_phi_1
=
getAttribute
<
Dart
,
DART
>
(
"phi_1"
)
;
DartAttribute
<
Dart
>
old_phi_1
=
getAttribute
<
Dart
,
DART
>
(
"phi_1"
)
;
...
@@ -1283,28 +1283,28 @@ void Map3::computeDual()
...
@@ -1283,28 +1283,28 @@ void Map3::computeDual()
swapEmbeddingContainers
(
VERTEX
,
VOLUME
)
;
swapEmbeddingContainers
(
VERTEX
,
VOLUME
)
;
for
(
std
::
vector
<
Dart
>::
iterator
it
=
v
.
begin
()
;
it
!=
v
.
end
()
;
++
it
)
// for(std::vector<Dart>::iterator it = v.begin() ; it != v.end() ; ++it)
{
// {
boundaryUnmarkOrbit
<
VOLUME
,
3
>
(
*
it
);
// boundaryUnmarkOrbit<VOLUME,3>(*it);
}
// }
//
// for(std::vector<Dart>::iterator it = v.begin() ; it != v.end() ; ++it)
// {
// deleteVolume(*it);
// }
//
// closeMap();
for
(
std
::
vector
<
Dart
>::
iterator
it
=
v
.
begin
()
;
it
!=
v
.
end
()
;
++
it
)
//boundary management
for
(
Dart
d
=
begin
();
d
!=
end
();
next
(
d
))
{
{
deleteVolume
(
*
it
);
if
(
isBoundaryMarked3
(
d
))
}
{
boundaryMarkOrbit
<
VOLUME
,
3
>
(
deleteVertex
(
phi1
(
d
)));
closeMap
();
// //boundary management
// for(Dart d = begin(); d != end(); next(d))
// {
// if(isBoundaryMarked3(d))
// {
// //boundaryMarkOrbit<VOLUME,3>(d) ;//deleteVertex(d));
// boundaryUnmarkOrbit<VOLUME,3>(d);
// boundaryUnmarkOrbit<VOLUME,3>(d);
// deleteVolume(d);
// deleteVolume(d);
//
}
}
//
}
}
// closeMap();
// closeMap();
}
}
...
...
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