Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
6ffcc03d
Commit
6ffcc03d
authored
Sep 06, 2013
by
laurence
Browse files
BUG: foamyHexMesh: Missing include and find all intersections function
parent
0df0edf3
Changes
3
Hide whitespace changes
Inline
Side-by-side
applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformalVoronoiMesh/conformalVoronoiMeshIO.C
View file @
6ffcc03d
...
...
@@ -40,6 +40,7 @@ License
#include
"polyModifyFace.H"
#include
"syncTools.H"
#include
"regionSplit.H"
#include
"OBJstream.H"
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
...
...
applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.C
View file @
6ffcc03d
...
...
@@ -872,6 +872,42 @@ void Foam::conformationSurfaces::findSurfaceAnyIntersection
}
void
Foam
::
conformationSurfaces
::
findSurfaceAllIntersections
(
const
point
&
start
,
const
point
&
end
,
List
<
pointIndexHit
>&
surfHit
,
labelList
&
hitSurface
)
const
{
labelListList
hitSurfaces
;
List
<
List
<
pointIndexHit
>
>
hitInfo
;
searchableSurfacesQueries
::
findAllIntersections
(
allGeometry_
,
surfaces_
,
pointField
(
1
,
start
),
pointField
(
1
,
end
),
hitSurfaces
,
hitInfo
);
surfHit
=
hitInfo
[
0
];
hitSurface
.
setSize
(
hitSurfaces
[
0
].
size
());
forAll
(
hitSurfaces
[
0
],
surfI
)
{
// hitSurfaces has returned the index of the entry in surfaces_ that was
// found, not the index of the surface in allGeometry_, translating this
// to allGeometry_
hitSurface
[
surfI
]
=
surfaces_
[
hitSurfaces
[
0
][
surfI
]];
}
}
void
Foam
::
conformationSurfaces
::
findSurfaceNearestIntersection
(
const
point
&
start
,
...
...
applications/utilities/mesh/generation/foamyHexMesh/conformalVoronoiMesh/conformationSurfaces/conformationSurfaces.H
View file @
6ffcc03d
...
...
@@ -257,6 +257,14 @@ public:
label
&
hitSurface
)
const
;
void
findSurfaceAllIntersections
(
const
point
&
start
,
const
point
&
end
,
List
<
pointIndexHit
>&
surfHit
,
labelList
&
hitSurface
)
const
;
//- Finding the nearestIntersection of the surface to start
void
findSurfaceNearestIntersection
(
...
...
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