Class to store XmUGrid triangles. Tracks where midpoints and triangles came from.
More...
Class to store XmUGrid triangles. Tracks where midpoints and triangles came from.
Definition at line 38 of file XmUGridTriangles2d.h.
◆ BuildEarcutTriangles()
virtual void xms::XmUGridTriangles2d::BuildEarcutTriangles |
( |
const XmUGrid & |
a_ugrid | ) |
|
|
pure virtual |
Generate triangles for the UGrid using earcut algorithm.
- Parameters
-
[in] | a_ugrid | The UGrid for which triangles are generated. |
◆ BuildTriangles()
virtual void xms::XmUGridTriangles2d::BuildTriangles |
( |
const XmUGrid & |
a_ugrid, |
|
|
bool |
a_addTriangleCenters |
|
) |
| |
|
pure virtual |
Generate triangles for the UGrid.
- Parameters
-
[in] | a_ugrid | The UGrid for which triangles are generated. |
[in] | a_addTriangleCenters | Whether or not triangle cells get a centroid added. |
◆ GetCellCentroid()
virtual int xms::XmUGridTriangles2d::GetCellCentroid |
( |
int |
a_cellIdx | ) |
const |
|
pure virtual |
Get the centroid of a cell.
- Parameters
-
[in] | a_cellIdx | The cell index. |
- Returns
- The index of the cell point.
◆ GetIntersectedCell()
virtual int xms::XmUGridTriangles2d::GetIntersectedCell |
( |
const Pt3d & |
a_point, |
|
|
VecInt & |
a_idxs, |
|
|
VecDbl & |
a_weights |
|
) |
| |
|
pure virtual |
Get the cell index and interpolation values intersected by a point.
- Parameters
-
[in] | a_point | The point to intersect with the UGrid. |
[out] | a_idxs | The interpolation points. |
[out] | a_weights | The interpolation weights. |
- Returns
- The cell intersected by the point or -1 if outside of the UGrid.
◆ GetPoints()
virtual const VecPt3d& xms::XmUGridTriangles2d::GetPoints |
( |
| ) |
const |
|
pure virtual |
Get the generated triangle points.
- Returns
- The triangle points
◆ GetPointsPtr()
virtual BSHP<VecPt3d> xms::XmUGridTriangles2d::GetPointsPtr |
( |
| ) |
|
|
pure virtual |
Get the generated triangle points as a shared pointer.
- Returns
- The triangle points
◆ GetTriangles()
virtual const VecInt& xms::XmUGridTriangles2d::GetTriangles |
( |
| ) |
const |
|
pure virtual |
Get the generated triangles.
- Returns
- a vector of indices for the triangles.
◆ GetTrianglesPtr()
virtual BSHP<VecInt> xms::XmUGridTriangles2d::GetTrianglesPtr |
( |
| ) |
|
|
pure virtual |
Get the generated triangles as a shared pointer.
- Returns
- a vector of indices for the triangles.
◆ New()
◆ SetCellActivity()
virtual void xms::XmUGridTriangles2d::SetCellActivity |
( |
const DynBitset & |
a_cellActivity | ) |
|
|
pure virtual |
Set triangle activity based on each triangles cell.
- Parameters
-
[in] | a_cellActivity | The cell activity to set on the triangles. |
The documentation for this class was generated from the following files: