3DCoat
3D-COAT 4.9.xx
3DCoat is the one application that has all the tools you need to take your 3D idea from a block of digital clay all the way to a production ready, fully textured organic or hard surface model.
|
The mini mesg class used for triangulangulation. More...
#include <TriangularPatch.h>
Public Member Functions | |
void | save (const char *name) |
save mesh to binary file More... | |
void | save_one (BinStream &bs) |
save mesh to stream except number of meshes (just mesh itself) More... | |
void | load (const char *name) |
load one mesh from binary, binary should include at least one mesh item More... | |
void | load_one (BinStream &bs) |
loat one mesh from binary stream More... | |
void | tomc (comms::cMeshContainer *mc) |
convert to cMeshContainer More... | |
void | frommc (const comms::cMeshContainer *mc, int n1, int n2, int n3) |
convert from cMeshContainer More... | |
tMiniMesh & | operator= (const tMiniMesh &m) |
copy mini mesh More... | |
tri_DWORD | n123 () |
convert to tri_DWORD More... | |
void | RotateCCW () |
n1,n2,n3-> n3,n1,n2 More... | |
void | RotateCW () |
n1,n2,n3-> n2,n3,n1 More... | |
void | Flip () |
n1,n2,n3 -> n3,n2,n1 More... | |
bool | selftest () |
self test More... | |
Static Public Member Functions | |
static tri_DWORD | RotateCCW (const tri_DWORD &t) |
n1,n2,n3-> n3,n1,n2 More... | |
static tri_DWORD | RotateCW (const tri_DWORD &t) |
n1,n2,n3-> n2,n3,n1 More... | |
static tri_DWORD | Flip (const tri_DWORD &t) |
n1,n2,n3 -> n3,n2,n1 More... | |
Public Attributes | |
int | n1 |
amount of intermediate vertices over the each edge More... | |
cList< int > | Indices |
indices of triangles vertices More... | |
cList< Vector3D > | uvw |
vertices itself, order - first vertex, then n1 vertices, second vertex, n2 vertices, third vertex, n3 vertices More... | |
The mini mesg class used for triangulangulation.
void tMiniMesh::Flip | ( | ) |
void tMiniMesh::frommc | ( | const comms::cMeshContainer * | mc, |
int | n1, | ||
int | n2, | ||
int | n3 | ||
) |
convert from cMeshContainer
References comms::cMeshContainer::GetPosition(), Indices, n1, and uvw.
Referenced by TriPatch::CalculatePatch().
void tMiniMesh::load | ( | const char * | name | ) |
load one mesh from binary, binary should include at least one mesh item
References load_one().
Referenced by TriPatch::PreLoadMeshes().
void tMiniMesh::load_one | ( | BinStream & | bs | ) |
loat one mesh from binary stream
References Indices, n1, and uvw.
Referenced by load(), and TriPatch::LoadAll().
void tMiniMesh::RotateCCW | ( | ) |
void tMiniMesh::RotateCW | ( | ) |
void tMiniMesh::save | ( | const char * | name | ) |
void tMiniMesh::save_one | ( | BinStream & | bs | ) |
bool tMiniMesh::selftest | ( | ) |
void tMiniMesh::tomc | ( | comms::cMeshContainer * | mc | ) |
cList<int> tMiniMesh::Indices |
indices of triangles vertices
Referenced by Flip(), frommc(), load_one(), operator=(), comms::cMeshContainer::PatchedDivision(), RotateCCW(), RotateCW(), save_one(), selftest(), and tomc().
int tMiniMesh::n1 |
amount of intermediate vertices over the each edge
Referenced by Flip(), frommc(), load_one(), TriPatch::LoadAll(), n123(), operator=(), TriPatch::PreLoadMeshes(), RotateCCW(), RotateCW(), save_one(), and selftest().
vertices itself, order - first vertex, then n1 vertices, second vertex, n2 vertices, third vertex, n3 vertices
Referenced by Flip(), frommc(), load_one(), operator=(), comms::cMeshContainer::PatchedDivision(), RotateCCW(), RotateCW(), save_one(), selftest(), and tomc().