Description of surface in form of 'cloud of edges'. More...
#include <meshTools/edgeSurface.H>
Description of surface in form of 'cloud of edges'.
(pointEdges constructed from above data)
Constructed from triSurface and surfaceIntersection. (uses localPoints of surface of course)
Used to easily insert cuts and split faces.
Definition at line 74 of file edgeSurface.H.
Public Member Functions | |
ClassName ("edgeSurface") | |
edgeSurface (const triSurface &surf, const bool isFirstSurface, const surfaceIntersection &inter) | |
Construct from surface and intersection description.
| |
const pointField & | points () const |
label | nSurfacePoints () const |
const edgeList & | edges () const |
label | nSurfaceEdges () const |
bool | isSurfaceEdge (const label edgeI) const |
label | parentEdge (const label edgeI) const |
Parent edge (original surface edge this edge came from).
| |
const labelListList & | faceEdges () const |
From face to our edges_.
| |
const labelListList & | pointEdges () const |
point to edge addressing
| |
void | addIntersectionEdges (const label faceI, const edgeList &) |
Add intersection edges to a face. Used for connecting.
|
edgeSurface | ( | const triSurface & | surf, |
const bool | isFirstSurface, | ||
const surfaceIntersection & | inter | ||
) |
Construct from surface and intersection description.
Definition at line 127 of file edgeSurface.C.
References List< T >::append(), HashTable< T, Key, Hash >::begin(), HashTable< label, FixedList< label, 2 >, FixedList< label, 2 >::Hash<> >::const_iterator, surfaceIntersection::cutEdges(), surfaceIntersection::cutPoints(), surfaceIntersection::edgeCuts(), PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), UList< T >::empty(), HashTable< T, Key, Hash >::end(), edge::end(), Foam::endl(), surfaceIntersection::facePairToEdge(), forAll, PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), Foam::name(), PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), Foam::Pout, List< T >::size(), edge::start(), FixedList< T, Size >::transfer(), and Foam::meshTools::writeOBJ().
ClassName | ( | "edgeSurface" | ) |
const pointField& points | ( | ) | const [inline]
|
Definition at line 139 of file edgeSurface.H.
Referenced by intersectedSurface::intersectedSurface().
label nSurfacePoints | ( | ) | const [inline]
|
Definition at line 144 of file edgeSurface.H.
Referenced by intersectedSurface::intersectedSurface().
const edgeList& edges | ( | ) | const [inline]
|
Definition at line 149 of file edgeSurface.H.
Referenced by intersectedSurface::intersectedSurface().
label nSurfaceEdges | ( | ) | const [inline]
|
Definition at line 154 of file edgeSurface.H.
Referenced by intersectedSurface::intersectedSurface().
bool isSurfaceEdge | ( | const label | edgeI ) | const [inline]
|
Definition at line 159 of file edgeSurface.H.
label parentEdge | ( | const label | edgeI ) | const [inline]
|
Parent edge (original surface edge this edge came from).
Valid only for edgeI < nSurfaceEdges_.
Definition at line 166 of file edgeSurface.H.
References Foam::abort(), Foam::FatalError, and FatalErrorIn.
const labelListList& faceEdges | ( | ) | const [inline]
|
From face to our edges_.
Definition at line 185 of file edgeSurface.H.
Referenced by intersectedSurface::intersectedSurface().
const labelListList& pointEdges | ( | ) | const [inline]
|
point to edge addressing
Definition at line 191 of file edgeSurface.H.
void addIntersectionEdges | ( | const label | faceI, |
const edgeList & | additionalEdges | ||
) |
Add intersection edges to a face. Used for connecting.
floating intersection on face to rest of face.
Definition at line 347 of file edgeSurface.C.
References edge::end(), Foam::endl(), forAll, Foam::Pout, List< T >::setSize(), List< T >::size(), and edge::start().