mirror of
https://github.com/lucaspalomodevelop/meshlab.git
synced 2026-03-13 00:07:24 +00:00
MeshModel utility functions
This commit is contained in:
parent
7591cbda6c
commit
d3fc1c62c7
@ -236,6 +236,36 @@ bool MeshModel::hasDataMask(const int maskToBeTested) const
|
||||
return ((currentDataMask & maskToBeTested)!= 0);
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerVertexColor() const
|
||||
{
|
||||
return currentDataMask & MM_VERTCOLOR;
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerVertexQuality() const
|
||||
{
|
||||
return currentDataMask & MM_VERTQUALITY;
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerVertexTexCoord() const
|
||||
{
|
||||
return currentDataMask & MM_VERTTEXCOORD;
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerFaceColor() const
|
||||
{
|
||||
return currentDataMask & MM_FACECOLOR;
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerFaceQuality() const
|
||||
{
|
||||
return currentDataMask & MM_FACEQUALITY;
|
||||
}
|
||||
|
||||
bool MeshModel::hasPerFaceWedgeTexCoords() const
|
||||
{
|
||||
return currentDataMask & MM_WEDGTEXCOORD;
|
||||
}
|
||||
|
||||
void MeshModel::updateDataMask()
|
||||
{
|
||||
currentDataMask = MM_NONE;
|
||||
|
||||
@ -81,7 +81,7 @@ public:
|
||||
MM_VERTQUALITY = 0x00000010,
|
||||
MM_VERTMARK = 0x00000020,
|
||||
MM_VERTFACETOPO = 0x00000040,
|
||||
MM_VERTCURV = 0x00000080,
|
||||
MM_VERTCURV = 0x00000080,
|
||||
MM_VERTCURVDIR = 0x00000100,
|
||||
MM_VERTRADIUS = 0x00000200,
|
||||
MM_VERTTEXCOORD = 0x00000400,
|
||||
@ -182,6 +182,14 @@ public:
|
||||
void enable(int openingFileMask);
|
||||
|
||||
bool hasDataMask(const int maskToBeTested) const;
|
||||
|
||||
bool hasPerVertexColor() const;
|
||||
bool hasPerVertexQuality() const;
|
||||
bool hasPerVertexTexCoord() const;
|
||||
bool hasPerFaceColor() const;
|
||||
bool hasPerFaceQuality() const;
|
||||
bool hasPerFaceWedgeTexCoords() const;
|
||||
|
||||
void updateDataMask();
|
||||
void updateDataMask(const MeshModel* m);
|
||||
void updateDataMask(int neededDataMask);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user