Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Community
integration-cfmesh
Commits
479160b3
Commit
479160b3
authored
May 26, 2015
by
Franjo
Browse files
Updated removeSurfaceFacets
parent
312a7c34
Changes
1
Hide whitespace changes
Inline
Side-by-side
meshLibrary/utilities/triSurfaceTools/triSurfaceRemoveFacets/triSurfaceRemoveFacetsFunctions.C
View file @
479160b3
...
...
@@ -143,6 +143,10 @@ void triSurfaceRemoveFacets::removeFacets()
//- update feature edges
const
edgeLongList
&
featureEdges
=
surf_
.
featureEdges
();
const
VRWGraph
&
pointEdges
=
surf_
.
pointEdges
();
const
edgeLongList
&
edges
=
surf_
.
edges
();
const
VRWGraph
&
edgeFacets
=
surf_
.
edgeFacets
();
label
edgeCounter
(
0
);
labelLongList
newFeatureEdgeLabel
(
featureEdges
.
size
(),
-
1
);
...
...
@@ -153,6 +157,31 @@ void triSurfaceRemoveFacets::removeFacets()
if
(
(
newPointLabel
[
e
.
start
()]
<
0
)
||
(
newPointLabel
[
e
.
end
()]
<
0
)
)
continue
;
//- find global edge label
label
eI
(
-
1
);
forAllRow
(
pointEdges
,
e
.
start
(),
peI
)
{
const
label
eJ
=
pointEdges
(
e
.
start
(),
peI
);
if
(
edges
[
eJ
]
==
e
)
{
eI
=
eJ
;
break
;
}
}
//- check if the edge is attached to at least one triangle
bool
foundTriangle
(
false
);
forAllRow
(
edgeFacets
,
eI
,
efI
)
{
if
(
newTriangleLabel
[
edgeFacets
(
eI
,
efI
)]
>=
0
)
{
foundTriangle
=
true
;
break
;
}
}
if
(
!
foundTriangle
)
continue
;
newFeatureEdgeLabel
[
feI
]
=
edgeCounter
++
;
}
...
...
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