#include <MeshIO.h>
Public Member Functions | |
MeshCleanup (MeshPointArray &p, MeshFacetArray &f) | |
Construction. More... | |
void | RemoveInvalids () |
Remove unreferenced and invalid facets. More... | |
void | SetMaterial (Material *mat) |
Set the material array. In case the material array sets the colors per vertex and RemoveInvalids() removes points from the array the material array will be adjusted. More... | |
~MeshCleanup () | |
The MeshCleanup class is a helper class to remove points from the point array that are not referenced by any facet. It also removes facet with point indices that are out of range.
MeshCleanup::MeshCleanup | ( | MeshPointArray & | p, |
MeshFacetArray & | f | ||
) |
Construction.
p | – the point array |
f | – the facet array |
MeshCleanup::~MeshCleanup | ( | ) |
void MeshCleanup::RemoveInvalids | ( | ) |
Remove unreferenced and invalid facets.
References MeshCore::MeshPoint::INVALID, MeshCore::MeshPointArray::ResetInvalid(), and MeshCore::MeshPointArray::SetFlag().
Referenced by MeshCore::MeshKernel::Cleanup(), MeshCore::MeshInput::LoadMeshNode(), MeshCore::MeshInput::LoadOBJ(), MeshCore::MeshInput::LoadOFF(), MeshCore::MeshInput::LoadPLY(), and MeshCore::MeshInput::LoadSMF().
void MeshCleanup::SetMaterial | ( | Material * | mat | ) |
Set the material array. In case the material array sets the colors per vertex and RemoveInvalids() removes points from the array the material array will be adjusted.
Referenced by MeshCore::MeshInput::LoadOBJ(), MeshCore::MeshInput::LoadOFF(), and MeshCore::MeshInput::LoadPLY().