Triangulated surface description with patch information. More...
Public Types | |
typedef bool | BoundaryMesh |
Placeholder only, but do not remove - it is needed for GeoMesh. More... | |
Public Types inherited from PrimitivePatch<::Foam::List< labelledTri >, pointField > | |
enum | surfaceTopo |
Enumeration defining the surface type. Used in check routines. More... | |
typedef ::Foam::List< labelledTri > | FaceListType |
typedef std::remove_reference< ::Foam::List< labelledTri > >::type::value_type | FaceType |
typedef pointField | PointFieldType |
typedef std::remove_reference< pointField >::type::value_type | PointType |
Public Types inherited from List< labelledTri > | |
typedef SubList< labelledTri > | subList |
Declare type of subList. More... | |
Public Types inherited from UList< T > | |
typedef T | value_type |
Type of values the UList contains. More... | |
typedef T & | reference |
Type that can be used for storing into. More... | |
typedef const T & | const_reference |
Type that can be used for storing into. More... | |
typedef label | difference_type |
The type that can represent the difference between any two. More... | |
typedef label | size_type |
The type that can represent the size of a UList. More... | |
typedef T * | iterator |
Random access iterator for traversing UList. More... | |
typedef const T * | const_iterator |
Random access iterator for traversing UList. More... | |
typedef std::reverse_iterator< iterator > | reverse_iterator |
Reverse iterator for reverse traversal of UList. More... | |
typedef std::reverse_iterator< const_iterator > | const_reverse_iterator |
Reverse iterator for reverse traversal of constant UList. More... | |
Public Member Functions | |
ClassName ("triSurface") | |
Runtime type information. More... | |
triSurface () | |
Construct null. More... | |
triSurface (const List< labelledTri > &, const geometricSurfacePatchList &, const pointField &) | |
Construct from triangles, patches, points. More... | |
triSurface (List< labelledTri > &, const geometricSurfacePatchList &, pointField &, const bool reuse) | |
Construct from triangles, patches, points. Reuse storage. More... | |
triSurface (List< labelledTri > &&, const geometricSurfacePatchList &, pointField &&) | |
Construct from triangles, patches, points. More... | |
triSurface (const List< labelledTri > &, const pointField &) | |
Construct from triangles, points. Set patchnames to default. More... | |
triSurface (const triFaceList &, const pointField &) | |
Construct from triangles, points. Set region to 0 and default. More... | |
triSurface (const fileName &) | |
Construct from file name (uses extension to determine type) More... | |
triSurface (Istream &) | |
Construct from Istream. More... | |
triSurface (const Time &d) | |
Construct from objectRegistry. More... | |
triSurface (const triSurface &) | |
Copy constructor. More... | |
triSurface (triSurface &&) | |
Move constructor. More... | |
virtual | ~triSurface () |
Destructor. More... | |
void | clearOut () |
void | clearTopology () |
void | clearPatchMeshAddr () |
const geometricSurfacePatchList & | patches () const |
geometricSurfacePatchList & | patches () |
const labelListList & | sortedEdgeFaces () const |
Return edge-face addressing sorted (for edges with more than. More... | |
const labelList & | edgeOwner () const |
If 2 face neighbours: label of face where ordering of edge. More... | |
virtual void | movePoints (const pointField &) |
Move points. More... | |
virtual void | scalePoints (const scalar) |
Scale points. A non-positive factor is ignored. More... | |
void | checkTriangles (const bool verbose) |
Check/remove duplicate/degenerate triangles. More... | |
void | checkEdges (const bool verbose) |
Check triply (or more) connected edges. More... | |
void | cleanup (const bool verbose) |
Remove non-valid triangles. More... | |
void | markZone (const boolList &borderEdge, const label facei, const label currentZone, labelList &faceZone) const |
Fill faceZone with currentZone for every face reachable. More... | |
label | markZones (const boolList &borderEdge, labelList &faceZone) const |
(size and) fills faceZone with zone of face. Zone is area More... | |
void | subsetMeshMap (const boolList &include, labelList &pointMap, labelList &faceMap) const |
'Create' sub mesh, including only faces for which More... | |
triSurface | subsetMesh (const boolList &include, labelList &pointMap, labelList &faceMap) const |
Return new surface. Returns pointMap, faceMap from. More... | |
faceList | faces () const |
Return the list of triangles as a faceList. More... | |
tmp< scalarField > | curvature () const |
Return the curvature of surface at the points. More... | |
void | write (Ostream &) const |
Write to Ostream in simple FOAM format. More... | |
void | write (const fileName &, const bool sortByRegion=false) const |
Generic write routine. Chooses writer based on extension. More... | |
void | write (const Time &) const |
Write to database. More... | |
void | writeStats (Ostream &) const |
Write some statistics. More... | |
void | operator= (const triSurface &) |
void | operator= (triSurface &&) |
Public Member Functions inherited from PrimitivePatch<::Foam::List< labelledTri >, pointField > | |
PrimitivePatch (const ::Foam::List< labelledTri > &faces, const Field< PointType > &points) | |
Construct from components. More... | |
PrimitivePatch (::Foam::List< labelledTri > &&faces, Field< PointType > &&points) | |
Move constructor from components. More... | |
PrimitivePatch (::Foam::List< labelledTri > &faces, Field< PointType > &points, const bool reuse) | |
Construct from components, reuse storage. More... | |
PrimitivePatch (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &) | |
Copy constructor. More... | |
PrimitivePatch (PrimitivePatch< ::Foam::List< labelledTri >, pointField > &&) | |
Move constructor. More... | |
autoPtr< PrimitivePatch< ::Foam::List< labelledTri >, pointField > > | clone () const |
Construct and return a clone. More... | |
~PrimitivePatch () | |
Destructor. More... | |
const Field< PointType > & | points () const |
Return reference to global points. More... | |
label | nPoints () const |
Return number of points supporting patch faces. More... | |
label | nEdges () const |
Return number of edges in patch. More... | |
const edgeList & | edges () const |
Return list of edges, address into LOCAL point list. More... | |
label | nInternalEdges () const |
Number of internal edges. More... | |
bool | isInternalEdge (const label edgeI) const |
Is internal edge? More... | |
const labelList & | boundaryPoints () const |
Return list of boundary points,. More... | |
const labelListList & | faceFaces () const |
Return face-face addressing. More... | |
const labelListList & | edgeFaces () const |
Return edge-face addressing. More... | |
const labelListList & | faceEdges () const |
Return face-edge addressing. More... | |
const labelListList & | pointEdges () const |
Return point-edge addressing. More... | |
const labelListList & | pointFaces () const |
Return point-face addressing. More... | |
const List< FaceType > & | localFaces () const |
Return patch faces addressing into local point list. More... | |
const labelList & | meshPoints () const |
Return labelList of mesh points in patch. They are constructed. More... | |
const Map< label > & | meshPointMap () const |
Mesh point map. Given the global point index find its. More... | |
const Field< PointType > & | localPoints () const |
Return pointField of points in patch. More... | |
const labelList & | localPointOrder () const |
Return orders the local points for most efficient search. More... | |
label | whichPoint (const label gp) const |
Given a global point index, return the local point index. More... | |
label | whichEdge (const edge &) const |
Given an edge in local point labels, return its. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &cellEdges, const labelList &faceCells) const |
Return labels of patch edges in the global edge list using. More... | |
labelList | meshEdges (const edgeList &allEdges, const labelListList &pointEdges) const |
Return labels of patch edges in the global edge list using. More... | |
const Field< PointType > & | faceCentres () const |
Return face centres for patch. More... | |
const Field< PointType > & | faceAreas () const |
Return face areas for patch. More... | |
const Field< PointType > & | faceNormals () const |
Return face normals for patch. More... | |
const Field< PointType > & | pointNormals () const |
Return point normals for patch. More... | |
List< objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
Foam::List< Foam::objectHit > | projectPoints (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
List< objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm=intersection::algorithm::fullRay, const intersection::direction=intersection::direction::vector) const |
Project vertices of patch onto another patch. More... | |
Foam::List< Foam::objectHit > | projectFaceCentres (const ToPatch &targetPatch, const Field< PointType > &projectionDirection, const intersection::algorithm alg, const intersection::direction dir) const |
const labelListList & | edgeLoops () const |
Return list of closed loops of boundary vertices. More... | |
surfaceTopo | surfaceType () const |
Calculate surface type formed by patch. More... | |
bool | checkTopology (const bool report=false, labelHashSet *setPtr=nullptr) const |
Check surface formed by patch for manifoldness (see above). More... | |
bool | checkPointManifold (const bool report=false, labelHashSet *setPtr=nullptr) const |
Checks primitivePatch for faces sharing point but not edge. More... | |
void | clearOut () |
void | clearGeom () |
void | clearTopology () |
void | clearPatchMeshAddr () |
void | operator= (const PrimitivePatch< ::Foam::List< labelledTri >, pointField > &) |
Assignment operator. More... | |
void | operator= (PrimitivePatch< ::Foam::List< labelledTri >, pointField > &&) |
Move assignment operator. More... | |
Public Member Functions inherited from List< labelledTri > | |
List () | |
Null constructor. More... | |
List (const label) | |
Construct with given size. More... | |
List (const label, const labelledTri &) | |
Construct with given size and value for all elements. More... | |
List (const label, const zero) | |
Construct with given size initialising all elements to zero. More... | |
List (const List< labelledTri > &) | |
Copy constructor. More... | |
List (const List< T2 > &) | |
Copy constructor from list containing another type. More... | |
List (List< labelledTri > &&) | |
Move constructor. More... | |
List (List< labelledTri > &, bool reuse) | |
Construct as copy or re-use as specified. More... | |
List (const UList< labelledTri > &, const labelUList &mapAddressing) | |
Construct as subset. More... | |
List (InputIterator first, InputIterator last) | |
Construct given start and end iterators. More... | |
List (const FixedList< labelledTri, Size > &) | |
Construct as copy of FixedList<T, Size> More... | |
List (const PtrList< labelledTri > &) | |
Construct as copy of PtrList<T> More... | |
List (const SLList< labelledTri > &) | |
Construct as copy of SLList<T> More... | |
List (const UIndirectList< labelledTri > &) | |
Construct as copy of UIndirectList<T> More... | |
List (const BiIndirectList< labelledTri > &) | |
Construct as copy of BiIndirectList<T> More... | |
List (std::initializer_list< labelledTri >) | |
Construct from an initialiser list. More... | |
List (Istream &) | |
Construct from Istream. More... | |
label | size () const |
Return the number of elements in the UList. More... | |
autoPtr< List< labelledTri > > | clone () const |
Clone. More... | |
~List () | |
Destructor. More... | |
void | resize (const label) |
Alias for setSize(const label) More... | |
void | resize (const label, const labelledTri &) |
Alias for setSize(const label, const T&) More... | |
void | setSize (const label) |
Reset size of List. More... | |
void | setSize (const label, const labelledTri &) |
Reset size of List and value for new elements. More... | |
void | clear () |
Clear the list, i.e. set size to zero. More... | |
void | append (const labelledTri &) |
Append an element at the end of the list. More... | |
void | append (const UList< labelledTri > &) |
Append a List at the end of this list. More... | |
void | append (const UIndirectList< labelledTri > &) |
Append a UIndirectList at the end of this list. More... | |
void | transfer (List< labelledTri > &) |
Transfer the contents of the argument List into this list. More... | |
void | transfer (DynamicList< labelledTri, SizeInc, SizeMult, SizeDiv > &) |
Transfer the contents of the argument List into this list. More... | |
void | transfer (SortableList< labelledTri > &) |
Transfer the contents of the argument List into this list. More... | |
labelledTri & | newElmt (const label) |
Return subscript-checked element of UList. More... | |
void | shallowCopy (const UList< labelledTri > &)=delete |
Disallow implicit shallowCopy. More... | |
void | operator= (const UList< labelledTri > &) |
Assignment to UList operator. Takes linear time. More... | |
void | operator= (const List< labelledTri > &) |
Assignment operator. Takes linear time. More... | |
void | operator= (List< labelledTri > &&) |
Move assignment operator. More... | |
void | operator= (const SLList< labelledTri > &) |
Assignment to SLList operator. Takes linear time. More... | |
void | operator= (const UIndirectList< labelledTri > &) |
Assignment to UIndirectList operator. Takes linear time. More... | |
void | operator= (const BiIndirectList< labelledTri > &) |
Assignment to BiIndirectList operator. Takes linear time. More... | |
void | operator= (std::initializer_list< labelledTri >) |
Assignment to an initialiser list. More... | |
void | operator= (const labelledTri &) |
Assignment of all entries to the given value. More... | |
void | operator= (const zero) |
Assignment of all entries to zero. More... | |
Public Member Functions inherited from UList< T > | |
UList () | |
Null constructor. More... | |
UList (T *__restrict__ v, label size) | |
Construct from components. More... | |
label | fcIndex (const label i) const |
Return the forward circular index, i.e. the next index. More... | |
label | rcIndex (const label i) const |
Return the reverse circular index, i.e. the previous index. More... | |
std::streamsize | byteSize () const |
Return the binary size in number of characters of the UList. More... | |
const T * | cdata () const |
Return a const pointer to the first data element,. More... | |
T * | data () |
Return a pointer to the first data element,. More... | |
T & | first () |
Return the first element of the list. More... | |
const T & | first () const |
Return first element of the list. More... | |
T & | last () |
Return the last element of the list. More... | |
const T & | last () const |
Return the last element of the list. More... | |
void | checkStart (const label start) const |
Check start is within valid range (0 ... size-1) More... | |
void | checkSize (const label size) const |
Check size is within valid range (0 ... size) More... | |
void | checkIndex (const label i) const |
Check index i is within valid range (0 ... size-1) More... | |
void | shallowCopy (const UList< T > &) |
Copy the pointer held by the given UList. More... | |
void | deepCopy (const UList< T > &) |
Copy elements of the given UList. More... | |
T & | operator[] (const label) |
Return element of UList. More... | |
const T & | operator[] (const label) const |
Return element of constant UList. More... | |
operator const Foam::List< T > & () const | |
Allow cast to a const List<T>&. More... | |
void | operator= (const T &) |
Assignment of all entries to the given value. More... | |
void | operator= (const zero) |
Assignment of all entries to zero. More... | |
iterator | begin () |
Return an iterator to begin traversing the UList. More... | |
iterator | end () |
Return an iterator to end traversing the UList. More... | |
const_iterator | cbegin () const |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | cend () const |
Return const_iterator to end traversing the constant UList. More... | |
const_iterator | begin () const |
Return const_iterator to begin traversing the constant UList. More... | |
const_iterator | end () const |
Return const_iterator to end traversing the constant UList. More... | |
reverse_iterator | rbegin () |
Return reverse_iterator to begin reverse traversing the UList. More... | |
reverse_iterator | rend () |
Return reverse_iterator to end reverse traversing the UList. More... | |
const_reverse_iterator | crbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. More... | |
const_reverse_iterator | crend () const |
Return const_reverse_iterator to end reverse traversing the UList. More... | |
const_reverse_iterator | rbegin () const |
Return const_reverse_iterator to begin reverse traversing the UList. More... | |
const_reverse_iterator | rend () const |
Return const_reverse_iterator to end reverse traversing the UList. More... | |
label | size () const |
Return the number of elements in the UList. More... | |
label | max_size () const |
Return size of the largest possible UList. More... | |
bool | empty () const |
Return true if the UList is empty (ie, size() is zero) More... | |
void | swap (UList< T > &) |
Swap two ULists of the same type in constant time. More... | |
bool | operator== (const UList< T > &) const |
Equality operation on ULists of the same type. More... | |
bool | operator!= (const UList< T > &) const |
The opposite of the equality operation. Takes linear time. More... | |
bool | operator< (const UList< T > &) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator> (const UList< T > &) const |
Compare two ULists lexicographically. Takes linear time. More... | |
bool | operator<= (const UList< T > &) const |
Return true if !(a > b). Takes linear time. More... | |
bool | operator>= (const UList< T > &) const |
Return true if !(a < b). Takes linear time. More... | |
template<> | |
const bool & | operator[] (const label i) const |
Static Public Member Functions | |
static fileName | triSurfInstance (const Time &) |
Name of triSurface directory to use. More... | |
Static Public Member Functions inherited from List< labelledTri > | |
static const List< labelledTri > & | null () |
Return a null List. More... | |
Static Public Member Functions inherited from UList< T > | |
static const UList< T > & | null () |
Return a null UList. More... | |
Protected Member Functions | |
pointField & | storedPoints () |
Non-const access to global points. More... | |
List< Face > & | storedFaces () |
Non-const access to the faces. More... | |
Protected Member Functions inherited from List< labelledTri > | |
void | size (const label) |
Override size to be inconsistent with allocated storage. More... | |
Friends | |
Ostream & | operator<< (Ostream &, const triSurface &) |
Triangulated surface description with patch information.
Definition at line 66 of file triSurface.H.
typedef bool BoundaryMesh |
Placeholder only, but do not remove - it is needed for GeoMesh.
Definition at line 242 of file triSurface.H.
triSurface | ( | ) |
Construct null.
Definition at line 534 of file triSurface.C.
Referenced by booleanSurface::booleanSurface(), distributedTriSurfaceMesh::distribute(), intersectedSurface::intersectedSurface(), meshTriangulation::meshTriangulation(), Foam::parseNASCoord(), Foam::readUpto(), triSurface::subsetMesh(), and triSurface::triSurface().
triSurface | ( | const List< labelledTri > & | triangles, |
const geometricSurfacePatchList & | patches, | ||
const pointField & | points | ||
) |
Construct from triangles, patches, points.
Definition at line 544 of file triSurface.C.
References triSurface::triSurface().
triSurface | ( | List< labelledTri > & | triangles, |
const geometricSurfacePatchList & | patches, | ||
pointField & | points, | ||
const bool | reuse | ||
) |
Construct from triangles, patches, points. Reuse storage.
Definition at line 558 of file triSurface.C.
References triSurface::triSurface().
triSurface | ( | List< labelledTri > && | triangles, |
const geometricSurfacePatchList & | patches, | ||
pointField && | points | ||
) |
Construct from triangles, patches, points.
Definition at line 573 of file triSurface.C.
References triSurface::triSurface().
triSurface | ( | const List< labelledTri > & | triangles, |
const pointField & | points | ||
) |
Construct from triangles, points. Set patchnames to default.
Definition at line 587 of file triSurface.C.
References triSurface::triSurface().
triSurface | ( | const triFaceList & | triangles, |
const pointField & | points | ||
) |
Construct from triangles, points. Set region to 0 and default.
patchName.
Definition at line 602 of file triSurface.C.
triSurface | ( | const fileName & | name | ) |
Construct from file name (uses extension to determine type)
Definition at line 616 of file triSurface.C.
References fileName::ext().
triSurface | ( | Istream & | is | ) |
Construct from Istream.
Definition at line 631 of file triSurface.C.
triSurface | ( | const Time & | d | ) |
Construct from objectRegistry.
Definition at line 644 of file triSurface.C.
References TimePaths::caseName(), TimePaths::path(), and triSurface::triSurfInstance().
triSurface | ( | const triSurface & | ts | ) |
Copy constructor.
Definition at line 663 of file triSurface.C.
triSurface | ( | triSurface && | ts | ) |
Move constructor.
Definition at line 672 of file triSurface.C.
|
virtual |
Destructor.
Definition at line 683 of file triSurface.C.
References triSurface::clearOut().
|
inlineprotected |
Non-const access to global points.
Definition at line 225 of file triSurface.H.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
Referenced by triSurface::movePoints(), triSurface::operator=(), and triSurface::scalePoints().
Non-const access to the faces.
Definition at line 231 of file triSurface.H.
ClassName | ( | "triSurface" | ) |
Runtime type information.
|
static |
Name of triSurface directory to use.
Definition at line 50 of file triSurface.C.
References Foam::abort(), plane::aPoint(), triFace::area(), TimePaths::caseName(), TimePaths::constant(), Foam::endl(), Foam::exists(), Foam::exit(), fileName::ext(), f(), Foam::faceMap(), Foam::FatalError, FatalErrorInFunction, FixedList< T, Size >::fcIndex(), Foam::findIndex(), forAll, geometricSurfacePatch::geometricType(), ISstream::getLine(), IOstream::good(), geometricSurfacePatch::index(), SortableList< T >::indices(), Foam::isFile(), UList< T >::last(), fileName::lessExt(), Foam::mag(), Foam::magSqr(), Foam::max(), OSstream::name(), geometricSurfacePatch::name(), Foam::name(), fileName::name(), IOstream::name(), nPoints, p, patchi, TimePaths::path(), pFaces, Foam::constant::mathematical::pi(), points, Foam::Pout, Foam::read(), tmp< T >::ref(), labelledTri::region(), surfacePatch::size(), List< T >::size(), SortableList< T >::sort(), Foam::sort(), surfacePatch::start(), Time::times(), triad::unset, Time::userTimeValue(), Foam::vtkWriteOps::write(), Foam::meshTools::writeOBJ(), Foam::writeVTK(), and Foam::Zero.
Referenced by triSurface::triSurface(), and triSurface::write().
void clearOut | ( | ) |
Definition at line 705 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::clearOut(), triSurface::clearPatchMeshAddr(), and triSurface::clearTopology().
Referenced by triSurface::checkTriangles(), triSurface::cleanup(), triSurfaceMesh::clearOut(), triSurface::operator=(), and triSurface::~triSurface().
void clearTopology | ( | ) |
Definition at line 691 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::clearTopology(), and Foam::deleteDemandDrivenData().
Referenced by triSurface::clearOut(), and triSurface::scalePoints().
void clearPatchMeshAddr | ( | ) |
Definition at line 699 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::clearPatchMeshAddr().
Referenced by triSurface::clearOut().
|
inline |
Definition at line 322 of file triSurface.H.
Referenced by triSurfaceTools::collapseEdges(), distributedTriSurfaceMesh::distribute(), triSurfaceTools::greenRefine(), intersectedSurface::intersectedSurface(), triSurfaceTools::mergePoints(), meshTriangulation::meshTriangulation(), NamedEnum< compressibleField, 8 >::names(), triSurface::operator=(), Foam::parseNASCoord(), repatchMesh::readTriSurface(), Foam::readUpto(), triSurfaceMesh::regions(), triSurface::subsetMesh(), triSurfaceTools::triangulate(), triSurfaceTools::triangulateFaceCentre(), and triSurface::write().
|
inline |
Definition at line 327 of file triSurface.H.
References triSurface::checkEdges(), triSurface::checkTriangles(), triSurface::cleanup(), triSurface::curvature(), triSurface::edgeOwner(), triSurface::faces(), triSurface::markZone(), triSurface::markZones(), triSurface::movePoints(), triSurface::operator<<, triSurface::operator=(), triSurface::scalePoints(), triSurface::sortedEdgeFaces(), triSurface::subsetMesh(), triSurface::subsetMeshMap(), and triSurface::writeStats().
const Foam::labelListList & sortedEdgeFaces | ( | ) | const |
Return edge-face addressing sorted (for edges with more than.
2 faces) according to the angle around the edge. Orientation is anticlockwise looking from edge.vec(localPoints())
Definition at line 714 of file triSurface.C.
Referenced by triSurface::patches().
const Foam::labelList & edgeOwner | ( | ) | const |
If 2 face neighbours: label of face where ordering of edge.
is consistent with righthand walk. If 1 neighbour: label of only face. If >2 neighbours: undetermined.
Definition at line 725 of file triSurface.C.
Referenced by triSurface::patches().
|
virtual |
Move points.
Reimplemented in triSurfaceMesh.
Definition at line 736 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::clearGeom(), Foam::deleteDemandDrivenData(), and triSurface::storedPoints().
Referenced by triSurfaceMesh::movePoints(), and triSurface::patches().
|
virtual |
Scale points. A non-positive factor is ignored.
Definition at line 749 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::clearGeom(), triSurface::clearTopology(), and triSurface::storedPoints().
Referenced by triSurface::patches(), and triSurfaceMesh::triSurfaceMesh().
void checkTriangles | ( | const bool | verbose | ) |
Check/remove duplicate/degenerate triangles.
Definition at line 765 of file triSurface.C.
References triSurface::clearOut(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::edgeFaces(), Foam::endl(), Foam::exit(), f(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::faceEdges(), Foam::FatalError, FatalErrorInFunction, forAll, n, PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), List< T >::size(), List< labelledTri >::size(), Foam::Warning, and WarningInFunction.
Referenced by triSurface::cleanup(), and triSurface::patches().
void checkEdges | ( | const bool | verbose | ) |
Check triply (or more) connected edges.
Definition at line 894 of file triSurface.C.
References PrimitivePatch<::Foam::List< labelledTri >, pointField >::edgeFaces(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::edges(), UList< T >::empty(), Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, forAll, List< T >::size(), and WarningInFunction.
Referenced by triSurface::cleanup(), and triSurface::patches().
void cleanup | ( | const bool | verbose | ) |
Remove non-valid triangles.
Definition at line 920 of file triSurface.C.
References triSurface::checkEdges(), triSurface::checkTriangles(), triSurface::clearOut(), and triSurface::markZone().
Referenced by triSurface::patches().
void markZone | ( | const boolList & | borderEdge, |
const label | facei, | ||
const label | currentZone, | ||
labelList & | faceZone | ||
) | const |
Fill faceZone with currentZone for every face reachable.
from facei without crossing edge marked in borderEdge. Note: faceZone has to be sized nFaces before calling this fun.
Definition at line 935 of file triSurface.C.
References Foam::abort(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::edgeFaces(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::faceEdges(), Foam::FatalError, FatalErrorInFunction, forAll, triSurface::markZones(), List< T >::size(), and List< T >::transfer().
Referenced by triSurface::cleanup(), triSurface::markZones(), and triSurface::patches().
Foam::label markZones | ( | const boolList & | borderEdge, |
labelList & | faceZone | ||
) | const |
(size and) fills faceZone with zone of face. Zone is area
reachable by edge crossing without crossing borderEdge (bool for every edge in surface). Returns number of zones.
Definition at line 998 of file triSurface.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, triSurface::markZone(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nEdges(), List< T >::setSize(), List< T >::size(), List< labelledTri >::size(), and triSurface::subsetMeshMap().
Referenced by booleanSurface::booleanSurface(), triSurface::markZone(), orientedSurface::orient(), and triSurface::patches().
'Create' sub mesh, including only faces for which
boolList entry is true Sets: pointMap: from new to old localPoints faceMap: new to old faces
Definition at line 1043 of file triSurface.C.
References forAll, PrimitivePatch<::Foam::List< labelledTri >, pointField >::localFaces(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nPoints(), List< T >::setSize(), List< T >::size(), and triSurface::subsetMesh().
Referenced by triSurface::markZones(), triSurface::patches(), and triSurface::subsetMesh().
Foam::triSurface subsetMesh | ( | const boolList & | include, |
labelList & | pointMap, | ||
labelList & | faceMap | ||
) | const |
Return new surface. Returns pointMap, faceMap from.
subsetMeshMap
Definition at line 1089 of file triSurface.C.
References forAll, PrimitivePatch<::Foam::List< labelledTri >, pointField >::localFaces(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::localPoints(), triSurface::patches(), List< T >::size(), triSurface::subsetMeshMap(), and triSurface::triSurface().
Referenced by booleanSurface::booleanSurface(), triSurface::patches(), and triSurface::subsetMeshMap().
Foam::faceList faces | ( | ) | const |
Return the list of triangles as a faceList.
Definition at line 1130 of file triSurface.C.
References forAll, UList< T >::operator[](), and List< labelledTri >::size().
Referenced by meshTriangulation::meshTriangulation(), Foam::parseNASCoord(), triSurface::patches(), and Foam::readUpto().
Foam::tmp< Foam::scalarField > curvature | ( | ) | const |
Return the curvature of surface at the points.
Definition at line 1143 of file triSurface.C.
References triFace::area(), Foam::e, triFace::edges(), Foam::eigenValues(), forAll, Foam::LUsolve(), Foam::mag(), Foam::magSqr(), Foam::max(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::meshPointMap(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::meshPoints(), triad::normalise(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nPoints(), UList< T >::operator[](), Foam::constant::mathematical::pi(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::pointNormals(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), tmp< T >::ref(), Foam::rotationTensor(), triad::set(), FixedList< T, Size >::size(), Foam::sqr(), Foam::T(), edge::vec(), x, Tensor2D< Cmpt >::x(), y, Tensor2D< Cmpt >::y(), and Foam::Zero.
Referenced by triSurface::patches().
void write | ( | Ostream & | os | ) | const |
Write to Ostream in simple FOAM format.
Definition at line 1327 of file triSurface.C.
References IOstream::check(), Foam::endl(), Foam::nl, triSurface::patches(), and PrimitivePatch<::Foam::List< labelledTri >, pointField >::points().
Referenced by booleanSurface::booleanSurface(), distributedTriSurfaceMesh::globalSize(), and triSurfaceMesh::writeData().
Generic write routine. Chooses writer based on extension.
Definition at line 1318 of file triSurface.C.
References fileName::ext().
void write | ( | const Time & | d | ) | const |
Write to database.
Definition at line 1340 of file triSurface.C.
References TimePaths::caseName(), TimePaths::path(), and triSurface::triSurfInstance().
void writeStats | ( | Ostream & | os | ) | const |
Write some statistics.
Definition at line 1352 of file triSurface.C.
References Foam::endl(), forAll, boundBox::invertedBox, Foam::max(), boundBox::max(), Foam::min(), boundBox::min(), PrimitivePatch<::Foam::List< labelledTri >, pointField >::nPoints(), UList< T >::operator[](), PrimitivePatch<::Foam::List< labelledTri >, pointField >::points(), PackedBoolList::set(), and List< labelledTri >::size().
Referenced by booleanSurface::booleanSurface(), and triSurface::patches().
void operator= | ( | const triSurface & | ts | ) |
Definition at line 1385 of file triSurface.C.
References triSurface::clearOut(), List< T >::operator=(), triSurface::patches(), PrimitivePatch< FaceList, PointField >::points(), and triSurface::storedPoints().
Referenced by booleanSurface::booleanSurface(), distributedTriSurfaceMesh::distribute(), intersectedSurface::intersectedSurface(), and triSurface::patches().
void operator= | ( | triSurface && | ts | ) |
Definition at line 1394 of file triSurface.C.
References triSurface::clearOut(), List< T >::operator=(), and triSurface::storedPoints().
|
friend |
Referenced by triSurface::patches().