Description of surface in form of 'cloud of edges'. More...
Public Member Functions | |
ClassName ("edgeSurface") | |
edgeSurface (const triSurface &surf, const bool isFirstSurface, const surfaceIntersection &inter) | |
Construct from surface and intersection description. More... | |
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). More... | |
const labelListList & | faceEdges () const |
From face to our edges_. More... | |
const labelListList & | pointEdges () const |
Point to edge addressing. More... | |
void | addIntersectionEdges (const label faceI, const edgeList &) |
Add intersection edges to a face. Used for connecting. More... | |
Private Member Functions | |
void | calcPointEdges () |
Calculate pointEdges. More... | |
Static Private Member Functions | |
static void | writeOBJ (const pointField &, const edgeList &, Ostream &) |
Dump edges in obj format. More... | |
static void | writeOBJ (const pointField &, const edgeList &, const labelList &, Ostream &) |
Dump selected edges in obj format. More... | |
Private Attributes | |
pointField | points_ |
All points (0 .. nSurfacePoints_-1 are points from surface) More... | |
label | nSurfacePoints_ |
edgeList | edges_ |
All edges (0 .. nSurfaceEdges_-1 are (possibly split) surface edges) More... | |
label | nSurfaceEdges_ |
labelList | parentEdges_ |
Original surface edge. Valid only surfaceEdges. More... | |
labelListList | faceEdges_ |
From face to our edges_. More... | |
labelListList | pointEdges_ |
Constructed from above: pointEdges. More... | |
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 73 of file edgeSurface.H.
edgeSurface | ( | const triSurface & | surf, |
const bool | isFirstSurface, | ||
const surfaceIntersection & | inter | ||
) |
Construct from surface and intersection description.
Definition at line 128 of file edgeSurface.C.
References List::append(), DynamicList::append(), surfaceIntersection::cutEdges(), surfaceIntersection::cutPoints(), Foam::e, surfaceIntersection::edgeCuts(), PrimitivePatch< Face, FaceList, PointField, PointType >::edgeFaces(), PrimitivePatch< Face, FaceList, PointField, PointType >::edges(), Foam::endl(), surfaceIntersection::facePairToEdge(), forAll, forAllConstIter(), PrimitivePatch< Face, FaceList, PointField, PointType >::localPoints(), Foam::name(), PrimitivePatch< Face, FaceList, PointField, PointType >::nEdges(), Foam::Pout, List::size(), and writeOBJ().
|
staticprivate |
Dump edges in obj format.
Definition at line 44 of file edgeSurface.C.
References Foam::constant::electromagnetic::e, Foam::endl(), forAll, points, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
staticprivate |
Dump selected edges in obj format.
Definition at line 67 of file edgeSurface.C.
References Foam::constant::electromagnetic::e, Foam::endl(), forAll, points, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::z().
|
private |
Calculate pointEdges.
Definition at line 90 of file edgeSurface.C.
References Foam::e, edgeSurface::edges_, forAll, edgeSurface::pointEdges_, edgeSurface::points_, and List::setSize().
ClassName | ( | "edgeSurface" | ) |
|
inline |
Definition at line 137 of file edgeSurface.H.
References edgeSurface::points_.
Referenced by intersectedSurface::calcPointEdgeAddressing(), intersectedSurface::findNearestVisited(), intersectedSurface::intersectedSurface(), intersectedSurface::nextEdge(), intersectedSurface::resplitFace(), intersectedSurface::splitFace(), and intersectedSurface::walkFace().
|
inline |
Definition at line 142 of file edgeSurface.H.
References edgeSurface::nSurfacePoints_.
Referenced by intersectedSurface::intersectedSurface().
|
inline |
Definition at line 147 of file edgeSurface.H.
References edgeSurface::edges_.
Referenced by intersectedSurface::calcPointEdgeAddressing(), intersectedSurface::findNearestVisited(), intersectedSurface::intersectedSurface(), intersectedSurface::nextEdge(), intersectedSurface::resplitFace(), intersectedSurface::splitFace(), and intersectedSurface::walkFace().
|
inline |
Definition at line 152 of file edgeSurface.H.
References edgeSurface::nSurfaceEdges_.
Referenced by intersectedSurface::intersectedSurface().
|
inline |
Definition at line 157 of file edgeSurface.H.
References edgeSurface::nSurfaceEdges_.
Referenced by intersectedSurface::splitFace().
Parent edge (original surface edge this edge came from).
Valid only for edgeI < nSurfaceEdges_.
Definition at line 164 of file edgeSurface.H.
Referenced by intersectedSurface::splitFace().
|
inline |
From face to our edges_.
Definition at line 181 of file edgeSurface.H.
References edgeSurface::faceEdges_.
Referenced by intersectedSurface::calcPointEdgeAddressing(), intersectedSurface::findNearestVisited(), intersectedSurface::intersectedSurface(), intersectedSurface::nextEdge(), intersectedSurface::resplitFace(), intersectedSurface::splitFace(), and intersectedSurface::walkFace().
|
inline |
Point to edge addressing.
Definition at line 187 of file edgeSurface.H.
References edgeSurface::pointEdges_.
Add intersection edges to a face. Used for connecting.
floating intersection on face to rest of face.
Definition at line 343 of file edgeSurface.C.
References Foam::e, Foam::endl(), forAll, Foam::Pout, List::setSize(), and List::size().
Referenced by intersectedSurface::resplitFace().
|
private |
All points (0 .. nSurfacePoints_-1 are points from surface)
Definition at line 80 of file edgeSurface.H.
Referenced by edgeSurface::calcPointEdges(), and edgeSurface::points().
|
private |
Definition at line 82 of file edgeSurface.H.
Referenced by edgeSurface::nSurfacePoints().
|
private |
All edges (0 .. nSurfaceEdges_-1 are (possibly split) surface edges)
Definition at line 85 of file edgeSurface.H.
Referenced by edgeSurface::calcPointEdges(), and edgeSurface::edges().
|
private |
Definition at line 87 of file edgeSurface.H.
Referenced by edgeSurface::isSurfaceEdge(), and edgeSurface::nSurfaceEdges().
|
private |
Original surface edge. Valid only surfaceEdges.
Definition at line 90 of file edgeSurface.H.
|
private |
From face to our edges_.
Definition at line 93 of file edgeSurface.H.
Referenced by edgeSurface::faceEdges().
|
private |
Constructed from above: pointEdges.
Definition at line 97 of file edgeSurface.H.
Referenced by edgeSurface::calcPointEdges(), and edgeSurface::pointEdges().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.