Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Community
integration-cfmesh
Commits
4c2044ec
Commit
4c2044ec
authored
Jul 14, 2015
by
Franjo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
The face that owns the edge is the first one in the list of edgeFaces
parent
b48c5f3e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
0 deletions
+18
-0
meshLibrary/utilities/surfaceTools/meshSurfaceEngine/meshSurfaceEngineCalculateBoundaryNodesAndFaces.C
...eEngine/meshSurfaceEngineCalculateBoundaryNodesAndFaces.C
+18
-0
No files found.
meshLibrary/utilities/surfaceTools/meshSurfaceEngine/meshSurfaceEngineCalculateBoundaryNodesAndFaces.C
View file @
4c2044ec
...
@@ -1220,6 +1220,7 @@ void meshSurfaceEngine::calculateEdgeFacesAddressing() const
...
@@ -1220,6 +1220,7 @@ void meshSurfaceEngine::calculateEdgeFacesAddressing() const
const
edge
&
ee
=
edges
[
edgeI
];
const
edge
&
ee
=
edges
[
edgeI
];
const
label
bpI
=
bp
[
ee
.
start
()];
const
label
bpI
=
bp
[
ee
.
start
()];
//- find boundary faces attached to this edge
DynList
<
label
>
eFaces
;
DynList
<
label
>
eFaces
;
forAllRow
(
pointFaces
,
bpI
,
pfI
)
forAllRow
(
pointFaces
,
bpI
,
pfI
)
{
{
...
@@ -1237,6 +1238,23 @@ void meshSurfaceEngine::calculateEdgeFacesAddressing() const
...
@@ -1237,6 +1238,23 @@ void meshSurfaceEngine::calculateEdgeFacesAddressing() const
}
}
}
}
//- the face that owns the edge shall be the first one in the list
// TODO: find out whether this will be necessary
if
(
eFaces
.
size
()
==
2
)
{
const
face
&
bf
=
bFaces
[
eFaces
[
1
]];
const
label
pos
=
bf
.
which
(
ee
.
start
());
if
(
bf
.
nextLabel
(
pos
)
==
ee
.
end
()
)
{
//- this face shall be the first one in the list
const
label
helper
=
eFaces
[
0
];
eFaces
[
0
]
=
eFaces
[
1
];
eFaces
[
1
]
=
helper
;
}
}
edgeFaces
.
setRow
(
edgeI
,
eFaces
);
edgeFaces
.
setRow
(
edgeI
,
eFaces
);
}
}
}
}
...
...
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