Go to the documentation of this file.
46 #ifndef geomCellLooper_H
47 #define geomCellLooper_H
87 const plane& cutPlane,
177 const plane& cutPlane,
static scalar snapTol_
Tolerance for cut through edges to get snapped to edge end point.
label snapToVert(const scalar tol, const label edgeI, const scalar weight) const
Snaps cut through edge by cut through vertex (if weight closer than.
Mesh consisting of general polyhedral cells.
Geometric class that creates a 2D plane and can return the intersection point between a line and the ...
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
Pre-declare SubField and related Field type.
void getBase(const vector &n, vector &e0, vector &e1) const
Gets two (random) vectors perpendicular to n and each other to be.
Abstract base class. Concrete implementations know how to cut a cell (i.e. determine a loop around th...
Implementation of cellLooper. Does pure geometric cut through cell.
TypeName("geomCellLooper")
Runtime type information.
bool cutEdge(const plane &cutPlane, const label edgeI, scalar &weight) const
Return true and set weight if edge is cut.
geomCellLooper(const geomCellLooper &)
Disallow default bitwise copy construct.
static const scalar pointEqualTol_
Tolerance for point equal test. Fraction of edge length.
static void setSnapTol(const scalar tol)
virtual ~geomCellLooper()
Destructor.
scalar minEdgeLen(const label vertI) const
Min length of attached edges.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void operator=(const geomCellLooper &)
Disallow default bitwise assignment.
bool edgeEndsCut(const labelList &, const label index) const
Return true if the cut edge at loop[index] is inbetween the cuts.
const polyMesh & mesh() const
virtual bool cut(const vector &refDir, const label cellI, const boolList &vertIsCut, const boolList &edgeIsCut, const scalarField &edgeWeight, labelList &loop, scalarField &loopWeights) const
Create cut along circumference of cellI. Gets current mesh cuts.