Class for working with the 3DCoat's scene. More...
Classes | |
class | FaceInfo |
Info about face. More... | |
class | LayerInfo |
Info about layer. More... | |
class | LayerOnFace |
Represent a layer on face. More... | |
class | LayerPoint |
Info about layer point. More... | |
class | RenderTarget |
Represent a render target. More... | |
class | SubObject |
Represent a subobject. More... | |
class | SurfacePoint |
Represent a surface point. More... | |
class | VertexPos |
Represent a vertex position. More... | |
class | VertexUV |
Represent a vertex of UV. More... | |
Public Types | |
enum | FreezeState : BYTE { Not = 0, Mixed, Fully, count } |
State for freeze. More... | |
enum | UVEdgeMask : BYTE { Undefined = 0, Left, Top, Right, Bottom, count } |
Mask for edge. More... | |
typedef PolyMesh | Parent |
typedef ::PolyMesh | pm_t |
Public Member Functions | |
const About & | about () const |
bool | hasFaces () const |
bool | hasFacesInfo () const |
bool | hasRenderTargets () const |
bool | hasSubObjects () const |
bool | hasVerticesPos () const |
bool | hasVerticesUV () const |
int | countFaces () const |
int | countFacesInfo () const |
int | countRenderTargets () const |
int | countSubObjects () const |
int | countVerticesPos () const |
int | countVerticesUV () const |
const ::FaceList & | faces () const |
PolyMesh & | insertFaces (DWORD k, DWORD v) |
Work with faces. More... | |
PolyMesh & | beginFaces () |
For moving forward by faces. More... | |
bool | endFaces () const |
bool | nextFaces () const |
DWORD | currentKeyFaces () const |
DWORD | currentValueFaces () const |
PolyMesh & | faceInfo (int i, const PolyMesh::FaceInfo &v) |
PolyMesh::FaceInfo | faceInfo (int i) const |
PolyMesh & | operator+= (const PolyMesh::FaceInfo &v) |
PolyMesh & | add (const PolyMesh::FaceInfo &v) |
PolyMesh & | add (int i, const PolyMesh::FaceInfo &v) |
PolyMesh & | addToStart (const PolyMesh::FaceInfo &v) |
PolyMesh & | renderTarget (int i, const PolyMesh::RenderTarget &v) |
PolyMesh::RenderTarget | renderTarget (int i) const |
PolyMesh & | operator+= (const PolyMesh::RenderTarget &v) |
PolyMesh & | add (const PolyMesh::RenderTarget &v) |
PolyMesh & | add (int i, const PolyMesh::RenderTarget &v) |
PolyMesh & | addToStart (const PolyMesh::RenderTarget &v) |
PolyMesh & | subObject (int i, const PolyMesh::SubObject &v) |
PolyMesh::SubObject | subObject (int i) const |
PolyMesh & | operator+= (const PolyMesh::SubObject &v) |
PolyMesh & | add (const PolyMesh::SubObject &v) |
PolyMesh & | add (int i, const PolyMesh::SubObject &v) |
PolyMesh & | addToStart (const PolyMesh::SubObject &v) |
PolyMesh & | vertexPos (int i, const PolyMesh::VertexPos &v) |
PolyMesh::VertexPos | vertexPos (int i) const |
PolyMesh & | operator+= (const PolyMesh::VertexPos &v) |
PolyMesh & | add (const PolyMesh::VertexPos &v) |
PolyMesh & | add (int i, const PolyMesh::VertexPos &v) |
PolyMesh & | addToStart (const PolyMesh::VertexPos &v) |
PolyMesh & | vertexUV (int i, const PolyMesh::VertexUV &v) |
PolyMesh::VertexUV | vertexUV (int i) const |
PolyMesh & | operator+= (const PolyMesh::VertexUV &v) |
PolyMesh & | add (const PolyMesh::VertexUV &v) |
PolyMesh & | add (int i, const PolyMesh::VertexUV &v) |
PolyMesh & | addToStart (const PolyMesh::VertexUV &v) |
PolyMesh & | clear () |
Clear the meshes from the 3DCoat's scene. More... | |
Static Public Member Functions | |
static PolyMesh * | instance () |
Class for working with the 3DCoat's scene.
|
strong |
State for freeze.
Debug dbg;
DebugLog log = dbg.log();
log += "PolyMesh::FreezeState";
log += PolyMesh::FreezeState::Mixed;
log += PolyMesh::FreezeState::Fully;
|
strong |
Mask for edge.
Debug dbg;
DebugLog log = dbg.log();
log += "PolyMesh::UVEdgeMask";
log += PolyMesh::UVEdgeMask::Top;
log += PolyMesh::UVEdgeMask::Bottom;
PolyMesh & coat::scripto::PolyMesh::insertFaces | ( | DWORD | k, |
DWORD | v | ||
) |
Work with faces.
PolyMesh pm;
pm.insertFaces( 12, 222 );
pm.insertFaces( 13, 333 );
pm.insertFaces( 11, 111 );
for ( pm.beginFaces(); !pm.endFaces(); pm.nextFaces() ) {
const auto fk = pm.currentKeyFaces();
const auto fv = pm.currentValueFaces();
...
}
PolyMesh & coat::scripto::PolyMesh::beginFaces | ( | ) |
For moving forward by faces.
bool coat::scripto::PolyMesh::endFaces | ( | ) | const |
bool coat::scripto::PolyMesh::nextFaces | ( | ) | const |
DWORD coat::scripto::PolyMesh::currentKeyFaces | ( | ) | const |
DWORD coat::scripto::PolyMesh::currentValueFaces | ( | ) | const |
|
inline |
FaceInfo
above.
|
inline |
FaceInfo
above.
|
inline |
FaceInfo
above.
|
inline |
FaceInfo
above.
|
inline |
Clear the meshes from the 3DCoat's scene.
PolyMesh pm;
pm.clear();