50 inline unsigned int getNumFaces()
const override {
return _polygons.num(); }
Defines the mesh component: face.
Dynamic vector, based on a memory pool. Keeps track on entry numbers of stored primitives.
Defines the mesh component: an face holding a list of up to 100 indices.
Base class for triangle and quad patches.
This represents a WEMPatch consisting of polygons only.
void convertIndexedFace(WEMIndexedFace *indexedFace)
Adds the given indexed face to this patch.
WEMPatch * copy() override
Create a (deep) copy of the patch.
WEMPolygon * getPolygonAt(unsigned int index)
Returns the WEMPolygon at the given index.
WEMPolygonPatch(WEM *wem, unsigned int bs=8192)
Constructor which takes a pointer to the WEM this WEMPatch is in.
virtual void dispose()
Disposes of internal data structures.
const WEMFace * getFaceAt(unsigned int index) const override
Returns the face at the given index.
WEMPolygonPatch(unsigned int bs=8192)
Standard constructor.
WEMPolygonPatch(WEMPolygonPatch &&wemPatch) noexcept
PatchTypes getPatchType() const override
Returns the mesh type of this patch.
const WEMIndexVector< WEMPolygon > * getFaces() const
Returns the pointer to the internal faces structure.
WEMPolygon * addPolygon()
Instantiates a new WEMPolygon and adds it to the internal faces vector.
WEMPolygonPatch & operator=(WEMPolygonPatch &&wemPatch) noexcept
void sortFacesByZPosition() override
Sorts the faces by the z-position of their centroids.
WEMIndexVector< WEMPolygon > * getFaces()
Returns the pointer to internal faces structure.
~WEMPolygonPatch() override
Standard destructor.
WEMPolygonPatch(const WEMPolygonPatch &wemPatch)
Copy constructor.
WEMFace * addFace() override
Instantiates a new WEMPolygon and adds it to the internal faces vector. Returns a pointer to this new...
WEMFace * getFaceAt(unsigned int index) override
Returns the face at the given index.
const WEMPolygon * getPolygonAt(unsigned int index) const
Returns the WEMPolygon at the given index.
unsigned int getNumFaces() const override
Returns the number of faces in the patch.
void delPolygon(WEMPolygon *polygon)
Deletes a polygon and erases it from the internal faces vector.
WEMPolygon * addPolygonNoUpdatePrimitiveValueLists()
Creates and returns a new polygon without adding an entry to the face PLVs.
Defines the mesh component: polygon.
A WEM comprises a number of WEMPatches.
Target mlrange_cast(Source arg)
Generic version of checked ML casts.
PatchTypes
Enumeration of mesh types.
@ WEM_PATCH_POLYGONS
Patch type: the faces can be n-polygons with up to WEM_MAX_NUM_NODES.