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
9e8736d8
Commit
9e8736d8
authored
May 05, 2014
by
untereiner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix : isBoundaryMarked3
parent
a387d890
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
26 additions
and
23 deletions
+26
-23
Apps/Examples/volumeExplorer.cpp
Apps/Examples/volumeExplorer.cpp
+25
-22
include/Topology/map/map3.hpp
include/Topology/map/map3.hpp
+1
-1
No files found.
Apps/Examples/volumeExplorer.cpp
View file @
9e8736d8
...
@@ -171,16 +171,19 @@ void MyQT::cb_Open()
...
@@ -171,16 +171,19 @@ void MyQT::cb_Open()
float
maxV
=
0.0
f
;
float
maxV
=
0.0
f
;
for
(
Dart
d
=
tra
.
begin
();
d
!=
tra
.
end
();
d
=
tra
.
next
())
for
(
Dart
d
=
tra
.
begin
();
d
!=
tra
.
end
();
d
=
tra
.
next
())
{
{
float
v
=
Algo
::
Geometry
::
tetrahedronVolume
<
PFP
>
(
myMap
,
d
,
position
);
// float v = Algo::Geometry::tetrahedronVolume<PFP>(myMap, d, position);
color
[
d
]
=
PFP
::
VEC3
(
v
,
0
,
0
);
// color[d] = PFP::VEC3(v,0,0);
if
(
v
>
maxV
)
// if (v>maxV)
maxV
=
v
;
// maxV=v;
}
for
(
unsigned
int
i
=
color
.
begin
();
i
!=
color
.
end
();
color
.
next
(
i
))
if
(
myMap
.
isBoundaryAdjacentVolume
(
d
))
{
color
[
d
]
=
PFP
::
VEC3
(
0
,
0
,
0
);
color
[
i
][
0
]
/=
maxV
;
color
[
i
][
2
]
=
1.0
f
-
color
[
i
][
0
];
}
}
// for (unsigned int i = color.begin(); i != color.end(); color.next(i))
// {
// color[i][0] /= maxV;
// color[i][2] = 1.0f - color[i][0];
// }
// SelectorDartNoBoundary<PFP::MAP> nb(myMap);
// SelectorDartNoBoundary<PFP::MAP> nb(myMap);
m_topo_render
->
updateData
(
myMap
,
position
,
0.8
f
,
0.8
f
,
0.8
f
);
m_topo_render
->
updateData
(
myMap
,
position
,
0.8
f
,
0.8
f
,
0.8
f
);
...
@@ -414,20 +417,20 @@ int main(int argc, char **argv)
...
@@ -414,20 +417,20 @@ int main(int argc, char **argv)
for
(
Dart
d
=
tra
.
begin
();
d
!=
tra
.
end
();
d
=
tra
.
next
())
for
(
Dart
d
=
tra
.
begin
();
d
!=
tra
.
end
();
d
=
tra
.
next
())
{
{
float
v
=
Algo
::
Geometry
::
tetrahedronVolume
<
PFP
>
(
myMap
,
d
,
position
);
float
v
=
Algo
::
Geometry
::
tetrahedronVolume
<
PFP
>
(
myMap
,
d
,
position
);
color
[
d
]
=
PFP
::
VEC3
(
v
,
0
,
0
);
//
color[d] = PFP::VEC3(v,0,0);
if
(
v
>
maxV
)
//
if (v>maxV)
maxV
=
v
;
//
maxV=v;
}
for
(
unsigned
int
i
=
color
.
begin
();
i
!=
color
.
end
();
color
.
next
(
i
))
if
(
myMap
.
isBoundaryAdjacentVolume
(
d
))
{
color
[
d
]
=
PFP
::
VEC3
(
0
,
0
,
0
);
color
[
i
][
0
]
/=
maxV
;
else
color
[
i
][
2
]
=
1.0
f
-
color
[
i
][
0
]
;
color
[
d
]
=
PFP
::
VEC3
(
v
,
0
,
0
)
;
}
}
//
Algo::Volume::Export::exportNAS<PFP>(myMap,position,"/tmp/test2.nas");
//
for (unsigned int i = color.begin(); i != color.end(); color.next(i))
//
Algo::Volume::Export::exportMSH<PFP>(myMap,position,"/tmp/test2.msh");
//
{
//
Algo::Volume::Export::exportTet<PFP>(myMap,position,"/tmp/test2.tet")
;
//
color[i][0] /= maxV
;
//
Algo::Volume::Export::exportNodeEle<PFP>(myMap,position,"/tmp/test2")
;
//
color[i][2] = 1.0f - color[i][0]
;
//
Algo::Volume::Export::exportVTU<PFP>(myMap,position,"/tmp/test4.vtu");
//
}
}
}
else
else
...
...
include/Topology/map/map3.hpp
View file @
9e8736d8
...
@@ -1029,7 +1029,7 @@ bool Map3<MAP_IMPL>::isBoundaryAdjacentVolume(Dart d) const
...
@@ -1029,7 +1029,7 @@ bool Map3<MAP_IMPL>::isBoundaryAdjacentVolume(Dart d) const
Traversor3WF<Map3<MAP_IMPL> > tra(*this, d);
Traversor3WF<Map3<MAP_IMPL> > tra(*this, d);
for(Dart dit = tra.begin() ; dit != tra.end() ; dit = tra.next())
for(Dart dit = tra.begin() ; dit != tra.end() ; dit = tra.next())
{
{
if(
isBoundaryMarked3
(phi3(dit)))
if(
this->template isBoundaryMarked<3>
(phi3(dit)))
return true ;
return true ;
}
}
return false;
return false;
...
...
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