Public Member Functions | |
ClassName ("conformationSurfaces") | |
Runtime type information. More... | |
conformationSurfaces (const Time &runTime, Random &rndGen, const searchableSurfaces &allGeometry, const dictionary &surfaceConformationDict) | |
Construct from dictionary and references to conformalVoronoiMesh and. More... | |
~conformationSurfaces () | |
Destructor. More... | |
const searchableSurfaces & | geometry () const |
Return reference to the searchableSurfaces object containing all. More... | |
const PtrList< extendedFeatureEdgeMesh > & | features () const |
Return the object holding the feature points and edges. More... | |
const point & | locationInMesh () const |
Return the location to mesh. More... | |
const labelList & | surfaces () const |
Return the surface indices. More... | |
const List< word > & | patchNames () const |
Return the patch names. More... | |
const PtrList< surfaceZonesInfo > & | surfZones () const |
Return the surfaceZonesInfo. More... | |
const PtrList< dictionary > & | patchInfo () const |
Return the patch info. More... | |
const treeBoundBox & | globalBounds () const |
Return the global bounds. More... | |
bool | overlaps (const treeBoundBox &bb) const |
Check if the supplied bound box overlaps any part of any of. More... | |
Field< bool > | inside (const pointField &samplePts) const |
Check if points are inside surfaces to conform to. More... | |
bool | inside (const point &samplePt) const |
Check if point is inside surfaces to conform to. More... | |
Field< bool > | outside (const pointField &samplePts) const |
Check if points are outside surfaces to conform to. More... | |
bool | outside (const point &samplePt) const |
Check if point is outside surfaces to conform to. More... | |
Field< bool > | wellInOutSide (const pointField &samplePts, const scalarField &testDistSqr, bool testForInside) const |
Check if point is closer to the surfaces to conform to than. More... | |
Field< bool > | wellInside (const pointField &samplePts, const scalarField &testDistSqr) const |
Check if point is inside surfaces to conform to by at least. More... | |
bool | wellInside (const point &samplePt, scalar testDistSqr) const |
Field< bool > | wellOutside (const pointField &samplePts, const scalarField &testDistSqr) const |
Check if point is outside surfaces to conform to by at least. More... | |
bool | wellOutside (const point &samplePt, scalar testDistSqr) const |
bool | findSurfaceAnyIntersection (const point &start, const point &end) const |
void | findSurfaceAnyIntersection (const point &start, const point &end, pointIndexHit &surfHit, label &hitSurface) const |
Finding if the line joining start and end intersects the surface. More... | |
void | findSurfaceAllIntersections (const point &start, const point &end, List< pointIndexHit > &surfHit, labelList &hitSurface) const |
void | findSurfaceNearestIntersection (const point &start, const point &end, pointIndexHit &surfHit, label &hitSurface) const |
Finding the nearestIntersection of the surface to start. More... | |
void | findSurfaceNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &surfHit, label &hitSurface) const |
Find the nearest point to the sample and return it to the. More... | |
void | findSurfaceNearest (const pointField &samples, const scalarField &nearestDistSqr, List< pointIndexHit > &hitInfo, labelList &hitSurfaces) const |
void | findFeaturePointNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &fpHit, label &featureHit) const |
Find the nearest point on any feature edge. More... | |
void | findEdgeNearest (const point &sample, scalar nearestDistSqr, pointIndexHit &edgeHit, label &featureHit) const |
Find the nearest point on any feature edge. More... | |
void | findEdgeNearest (const pointField &samples, const scalarField &nearestDistsSqr, List< pointIndexHit > &edgeHits, labelList &featuresHit) const |
void | findEdgeNearestByType (const point &sample, scalar nearestDistSqr, List< pointIndexHit > &edgeHit, List< label > &featuresHit) const |
Find the nearest point on each type of feature edge. More... | |
void | findAllNearestEdges (const point &sample, const scalar searchRadiusSqr, List< List< pointIndexHit >> &edgeHitsByFeature, List< label > &featuresHit) const |
Find the nearest points on each feature edge that is within. More... | |
label | getPatchID (const label hitSurface, const pointIndexHit &surfHit) const |
Get the region number of a hit surface. More... | |
label | findPatch (const point &ptA, const point &ptB) const |
Find which patch is intersected by the line from one point to. More... | |
label | findPatch (const point &pt) const |
Find which patch is closest to the point. More... | |
extendedFeatureEdgeMesh::sideVolumeType | meshableSide (const label hitSurface, const pointIndexHit &surfHit) const |
Is the surface a baffle. More... | |
void | getNormal (const label hitSurface, const List< pointIndexHit > &surfHit, vectorField &normal) const |
void | writeFeatureObj (const fileName &prefix) const |
Write all components of all the extendedFeatureEdgeMeshes as. More... | |
Definition at line 53 of file conformationSurfaces.H.
conformationSurfaces | ( | const Time & | runTime, |
Random & | rndGen, | ||
const searchableSurfaces & | allGeometry, | ||
const dictionary & | surfaceConformationDict | ||
) |
Construct from dictionary and references to conformalVoronoiMesh and.
~conformationSurfaces | ( | ) |
Destructor.
ClassName | ( | "conformationSurfaces" | ) |
Runtime type information.
|
inline |
Return reference to the searchableSurfaces object containing all.
of the geometry
Definition at line 28 of file conformationSurfacesI.H.
|
inline |
Return the object holding the feature points and edges.
Definition at line 35 of file conformationSurfacesI.H.
|
inline |
Return the location to mesh.
Definition at line 41 of file conformationSurfacesI.H.
|
inline |
Return the surface indices.
Definition at line 47 of file conformationSurfacesI.H.
|
inline |
Return the patch names.
Definition at line 53 of file conformationSurfacesI.H.
|
inline |
Return the surfaceZonesInfo.
Definition at line 60 of file conformationSurfacesI.H.
|
inline |
Return the patch info.
Definition at line 67 of file conformationSurfacesI.H.
|
inline |
Return the global bounds.
Definition at line 73 of file conformationSurfacesI.H.
Referenced by conformalVoronoiMesh::maxSurfaceProtrusion().
bool overlaps | ( | const treeBoundBox & | bb | ) | const |
Check if the supplied bound box overlaps any part of any of.
the surfaces
Field<bool> inside | ( | const pointField & | samplePts | ) | const |
Check if points are inside surfaces to conform to.
Referenced by conformalVoronoiMesh::maxSurfaceProtrusion().
bool inside | ( | const point & | samplePt | ) | const |
Check if point is inside surfaces to conform to.
Field<bool> outside | ( | const pointField & | samplePts | ) | const |
Check if points are outside surfaces to conform to.
bool outside | ( | const point & | samplePt | ) | const |
Check if point is outside surfaces to conform to.
Field<bool> wellInOutSide | ( | const pointField & | samplePts, |
const scalarField & | testDistSqr, | ||
bool | testForInside | ||
) | const |
Check if point is closer to the surfaces to conform to than.
testDistSqr, in which case return false, otherwise assess in or outside and return a result depending on the testForInside flag
Field<bool> wellInside | ( | const pointField & | samplePts, |
const scalarField & | testDistSqr | ||
) | const |
Check if point is inside surfaces to conform to by at least.
testDistSqr
bool wellInside | ( | const point & | samplePt, |
scalar | testDistSqr | ||
) | const |
Field<bool> wellOutside | ( | const pointField & | samplePts, |
const scalarField & | testDistSqr | ||
) | const |
Check if point is outside surfaces to conform to by at least.
testDistSqr
bool wellOutside | ( | const point & | samplePt, |
scalar | testDistSqr | ||
) | const |
void findSurfaceAnyIntersection | ( | const point & | start, |
const point & | end, | ||
pointIndexHit & | surfHit, | ||
label & | hitSurface | ||
) | const |
Finding if the line joining start and end intersects the surface.
and returning the hit and surface information
void findSurfaceAllIntersections | ( | const point & | start, |
const point & | end, | ||
List< pointIndexHit > & | surfHit, | ||
labelList & | hitSurface | ||
) | const |
void findSurfaceNearestIntersection | ( | const point & | start, |
const point & | end, | ||
pointIndexHit & | surfHit, | ||
label & | hitSurface | ||
) | const |
Finding the nearestIntersection of the surface to start.
void findSurfaceNearest | ( | const point & | sample, |
scalar | nearestDistSqr, | ||
pointIndexHit & | surfHit, | ||
label & | hitSurface | ||
) | const |
Find the nearest point to the sample and return it to the.
pointIndexHit
void findSurfaceNearest | ( | const pointField & | samples, |
const scalarField & | nearestDistSqr, | ||
List< pointIndexHit > & | hitInfo, | ||
labelList & | hitSurfaces | ||
) | const |
void findFeaturePointNearest | ( | const point & | sample, |
scalar | nearestDistSqr, | ||
pointIndexHit & | fpHit, | ||
label & | featureHit | ||
) | const |
Find the nearest point on any feature edge.
void findEdgeNearest | ( | const point & | sample, |
scalar | nearestDistSqr, | ||
pointIndexHit & | edgeHit, | ||
label & | featureHit | ||
) | const |
Find the nearest point on any feature edge.
void findEdgeNearest | ( | const pointField & | samples, |
const scalarField & | nearestDistsSqr, | ||
List< pointIndexHit > & | edgeHits, | ||
labelList & | featuresHit | ||
) | const |
void findEdgeNearestByType | ( | const point & | sample, |
scalar | nearestDistSqr, | ||
List< pointIndexHit > & | edgeHit, | ||
List< label > & | featuresHit | ||
) | const |
Find the nearest point on each type of feature edge.
void findAllNearestEdges | ( | const point & | sample, |
const scalar | searchRadiusSqr, | ||
List< List< pointIndexHit >> & | edgeHitsByFeature, | ||
List< label > & | featuresHit | ||
) | const |
Find the nearest points on each feature edge that is within.
a given distance from the sample point. Will need to check for a hit or a miss because near edges may not have a nearest point on them which is perpendicular to the sample point.
label getPatchID | ( | const label | hitSurface, |
const pointIndexHit & | surfHit | ||
) | const |
Get the region number of a hit surface.
Find which patch is intersected by the line from one point to.
another
extendedFeatureEdgeMesh::sideVolumeType meshableSide | ( | const label | hitSurface, |
const pointIndexHit & | surfHit | ||
) | const |
Is the surface a baffle.
void getNormal | ( | const label | hitSurface, |
const List< pointIndexHit > & | surfHit, | ||
vectorField & | normal | ||
) | const |
void writeFeatureObj | ( | const fileName & | prefix | ) | const |
Write all components of all the extendedFeatureEdgeMeshes as.
an obj file