Public Member Functions | |
triSurf () | |
Default construct. More... | |
triSurf (const LongList< labelledTri > &triangles, const geometricSurfacePatchList &patches, const edgeLongList &featureEdges_, const pointField &points) | |
Construct from parts. More... | |
triSurf (const fileName &fName) | |
Read from file. More... | |
~triSurf () | |
void | readSurface (const fileName &) |
read and write the surface More... | |
void | writeSurface (const fileName &) const |
![]() | |
triSurfPoints () | |
Null constructor. More... | |
triSurfPoints (const pointField &points) | |
Construct from vertices. More... | |
~triSurfPoints () | |
label | nPoints () const |
return the number of points More... | |
const pointField & | points () const |
access to points More... | |
void | appendVertex (const point &p) |
append a vertex to the end of the list More... | |
label | addPointSubset (const word &) |
point subsets More... | |
void | removePointSubset (const label) |
word | pointSubsetName (const label) const |
label | pointSubsetIndex (const word &) const |
void | addPointToSubset (const label, const label) |
void | removePointFromSubset (const label, const label) |
void | pointInSubsets (const label, DynList< label > &) const |
void | pointSubsetIndices (DynList< label > &) const |
template<class ListType > | |
void | pointsInSubset (const label, ListType &) const |
template<class ListType > | |
void | updatePointSubsets (const ListType &) |
![]() | |
triSurfFacets () | |
Null constructor. More... | |
triSurfFacets (const LongList< labelledTri > &triangles) | |
Construct from components without the boundary. More... | |
triSurfFacets (const LongList< labelledTri > &triangles, const geometricSurfacePatchList &patches) | |
Construct from components. More... | |
~triSurfFacets () | |
label | size () const |
return the number of triangles More... | |
const LongList< labelledTri > & | facets () const |
access to facets More... | |
const geometricSurfacePatchList & | patches () const |
access to patches More... | |
wordList | patchNames () const |
return list of patches in the boundary More... | |
labelList | findPatches (const word &patchName) const |
return a list of patch indices corresponding to the given More... | |
void | appendTriangle (const labelledTri &tria) |
append a triangle to the end of the list More... | |
label | addFacetSubset (const word &) |
point subsets More... | |
void | removeFacetSubset (const label) |
word | facetSubsetName (const label) const |
label | facetSubsetIndex (const word &) const |
void | addFacetToSubset (const label, const label) |
void | removeFacetFromSubset (const label, const label) |
void | facetInSubsets (const label, DynList< label > &) const |
void | facetSubsetIndices (DynList< label > &) const |
template<class ListType > | |
void | facetsInSubset (const label, ListType &) const |
template<class ListType > | |
void | updateFacetsSubsets (const ListType &) |
const labelledTri & | operator[] (const label) const |
access to a triangle More... | |
![]() | |
triSurfFeatureEdges () | |
Null constructor. More... | |
triSurfFeatureEdges (const edgeLongList &triangles) | |
Construct from feature edges. More... | |
~triSurfFeatureEdges () | |
label | nFeatureEdges () const |
return the number of feature edges More... | |
const edgeLongList & | featureEdges () const |
access to feature edges More... | |
void | appendFeatureEdge (const edge &e) |
append an edge to the end of the list More... | |
label | addEdgeSubset (const word &) |
point subsets More... | |
void | removeEdgeSubset (const label) |
word | edgeSubsetName (const label) const |
label | edgeSubsetIndex (const word &) const |
void | addEdgeToSubset (const label, const label) |
void | removeEdgeFromSubset (const label, const label) |
void | edgeInSubsets (const label, DynList< label > &) const |
void | edgeSubsetIndices (DynList< label > &) const |
template<class ListType > | |
void | edgesInSubset (const label, ListType &) const |
template<class ListType > | |
void | updateEdgeSubsets (const ListType &) |
![]() | |
triSurfAddressing (const pointField &points, const LongList< labelledTri > &triangles) | |
Construct from surface triangles. More... | |
~triSurfAddressing () | |
const VRWGraph & | pointFacets () const |
return point-facets addressing More... | |
const LongList< edge > & | edges () const |
return edges More... | |
const VRWGraph & | facetEdges () const |
return facet-edges addressing More... | |
const VRWGraph & | edgeFacets () const |
return edge-facets addressing More... | |
const VRWGraph & | pointEdges () const |
return point-edges addressing More... | |
const VRWGraph & | facetFacets () const |
return facet-facets addressing More... | |
const pointField & | pointNormals () const |
return point normals More... | |
const vectorField & | facetNormals () const |
return normals of facets More... | |
const vectorField & | facetCentres () const |
return centres of facets More... | |
void | clearAddressing () |
delete all data More... | |
void | clearGeometry () |
delete geometry data More... | |
Private Member Functions | |
void | readFromFTR (const fileName &) |
void | writeToFTR (const fileName &) const |
void | readFromFMS (const fileName &) |
void | writeToFMS (const fileName &) const |
LongList< labelledTri > & | accessToFacets () |
geometricSurfacePatchList & | accessToPatches () |
void | topologyCheck () |
void | operator= (const triSurf &) |
Disallow default bitwise assignment. More... | |
Friends | |
class | triSurfModifer |
Additional Inherited Members | |
![]() | |
void | operator= (const triSurfPoints &) |
triSurfPoints (const triSurfPoints &) | |
![]() | |
void | operator= (const triSurfFacets &) |
triSurfFacets (const triSurfFacets &) | |
![]() | |
void | operator= (const triSurfFeatureEdges &) |
triSurfFeatureEdges (const triSurfFeatureEdges &) | |
![]() | |
pointField | points_ |
list of vertices More... | |
Map< meshSubset > | pointSubsets_ |
map of point subsets More... | |
![]() | |
LongList< labelledTri > | triangles_ |
list of triangles More... | |
geometricSurfacePatchList | patches_ |
list of boundary patches and their properties More... | |
Map< meshSubset > | facetSubsets_ |
map of point subsets More... | |
![]() | |
edgeLongList | featureEdges_ |
list of feature edges More... | |
Map< meshSubset > | featureEdgeSubsets_ |
map of edge subsets More... | |
triSurf | ( | const LongList< labelledTri > & | triangles, |
const geometricSurfacePatchList & | patches, | ||
const edgeLongList & | featureEdges_, | ||
const pointField & | points | ||
) |
Read from file.
Definition at line 382 of file triSurf.C.
References triSurf::readSurface(), and triSurf::topologyCheck().
|
private |
Definition at line 44 of file triSurf.C.
References triSurfFacets::patches_, triSurfPoints::points_, and triSurfFacets::triangles_.
Referenced by triSurf::readSurface().
|
private |
Definition at line 55 of file triSurf.C.
References Foam::nl, triSurfFacets::patches_, triSurfPoints::points_, and triSurfFacets::triangles_.
Referenced by triSurf::writeSurface().
|
private |
read the list of patches defined on the surface mesh
read points
read surface triangles
read feature edges
read point subsets
read facet subsets
read subsets on feature edges
Definition at line 70 of file triSurf.C.
References triSurfFacets::facetSubsets_, triSurfFeatureEdges::featureEdges_, triSurfFeatureEdges::featureEdgeSubsets_, forAll, triSurfFacets::patches_, triSurfPoints::points_, triSurfPoints::pointSubsets_, and triSurfFacets::triangles_.
Referenced by triSurf::readSurface().
|
private |
write patches
write points
write triangles
write feature edges
write point subsets
write subsets of facets
write subets of feature edges
Definition at line 112 of file triSurf.C.
References triSurfFacets::facetSubsets_, triSurfFeatureEdges::featureEdges_, triSurfFeatureEdges::featureEdgeSubsets_, forAllConstIter(), Foam::nl, triSurfFacets::patches_, triSurfPoints::points_, triSurfPoints::pointSubsets_, List::setSize(), triSurfFacets::size(), and triSurfFacets::triangles_.
Referenced by triSurf::writeSurface().
|
inlineprivate |
Definition at line 37 of file triSurfI.H.
References triSurfFacets::triangles_.
|
inlineprivate |
Definition at line 42 of file triSurfI.H.
References triSurfFacets::patches_.
|
private |
check for inf and nan points
check whether the nodes are within the scope report duplicate nodes in the same triangle
check feature edges
check point subsets
check face subsets
check feature edge subsets
Definition at line 168 of file triSurf.C.
References DynList< T, staticSize >::clear(), triSurfFeatureEdges::edgesInSubset(), triSurfFeatureEdges::edgeSubsetIndices(), triSurfFeatureEdges::edgeSubsetName(), edge::end(), Foam::endl(), Foam::exit(), triSurfFacets::facets(), triSurfFacets::facetsInSubset(), triSurfFacets::facetSubsetIndices(), triSurfFacets::facetSubsetName(), Foam::FatalError, FatalErrorIn, triSurfFeatureEdges::featureEdges(), forAll, Foam::help::isinf(), Foam::help::isnan(), p, triSurfPoints::points(), triSurfPoints::pointsInSubset(), triSurfPoints::pointSubsetIndices(), triSurfPoints::pointSubsetName(), LongList< T, Offset >::size(), edge::start(), and WarningIn.
Referenced by triSurf::triSurf().
|
private |
Disallow default bitwise assignment.
void readSurface | ( | const fileName & | fName | ) |
read and write the surface
copy the points
copy the triangles
copy patches
Definition at line 401 of file triSurf.C.
References fileName::ext(), forAll, triSurface::patches(), triSurfFacets::patches_, PrimitivePatch< Face, FaceList, PointField, PointType >::points(), triSurfPoints::points_, triSurf::readFromFMS(), triSurf::readFromFTR(), List::size(), and triSurfFacets::triangles_.
Referenced by triSurf::triSurf().
void writeSurface | ( | const fileName & | fName | ) | const |
Definition at line 430 of file triSurf.C.
References fileName::ext(), triSurfFacets::facets(), forAll, triSurfFacets::patches(), triSurfPoints::points(), triSurface::write(), triSurf::writeToFMS(), and triSurf::writeToFTR().
Referenced by meshSurfaceOptimizer::calculateTrianglesAndAddressing(), cartesian2DMeshGenerator::cartesian2DMeshGenerator(), edgeExtractor::checkCorners(), edgeExtractor::checkFacePatchesGeometry(), edgeExtractor::checkFacePatchesTopology(), Foam::triSurfaceChecks::checkOverlaps(), edgeExtractor::extractEdges(), main(), and meshSurfaceOptimizer::transformIntoPlane().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.