49 inline unsigned int getNumFaces()
const override {
return _quads.num(); }
Defines the mesh component: face.
Dynamic vector, based on a memory pool. Keeps track on entry numbers of stored primitives.
Base class for triangle and quad patches.
This represents a WEMPatch consisting of quads only.
WEMIndexVector< WEMQuad > * getFaces()
Returns the pointer to the internal faces structure.
const WEMIndexVector< WEMQuad > * getFaces() const
Returns the pointer to the internal faces structure.
WEMFace * addFace() override
Instantiates a new WEMQuad and adds it to the internal faces vector. Returns a pointer to this newly ...
WEMQuadPatch(WEM *wem, unsigned int bs=8192)
Constructor which takes a pointer to the WEM this WEMPatch is in.
PatchTypes getPatchType() const override
Get mesh type.
void delQuad(WEMQuad *quad)
Deletes a quad and erases it from the internal faces vector.
WEMQuadPatch(unsigned int bs=8192)
Standard constructor.
WEMPatch * copy() override
Create a (deep) copy of the patch.
WEMQuad * addQuad()
Instantiates a new WEMQuad and adds it to the internal faces vector.
const WEMQuad * getQuadAt(unsigned int index) const
Returns the WEMQuad at the given index.
~WEMQuadPatch() override
Standard destructor.
WEMFace * getFaceAt(unsigned int index) override
Returns the face at the given index.
WEMQuadPatch(WEMQuadPatch &&wemPatch) noexcept
WEMQuad * getQuadAt(unsigned int index)
Returns the WEMQuad at the given index.
WEMQuadPatch(const WEMQuadPatch &wemPatch)
Copy constructor.
void sortFacesByZPosition() override
Sorts the faces by the z-position of their centroids.
virtual void dispose()
Disposes of internal data structures.
WEMQuad * addQuadNoUpdatePrimitiveValueLists()
Creates and return a new quad without adding any entry to the the face PVLs.
const WEMFace * getFaceAt(unsigned int index) const override
Returns the face at the given index.
unsigned int getNumFaces() const override
Returns the number of faces in the patch.
WEMQuadPatch & operator=(WEMQuadPatch &&wemPatch) noexcept
Defines the mesh component: quad.
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_QUADS
Patch type: all faces are quads.