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.
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
tMiniMesh Struct Reference

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...
 
tMiniMeshoperator= (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< Vector3Duvw
 vertices itself, order - first vertex, then n1 vertices, second vertex, n2 vertices, third vertex, n3 vertices More...
 

Detailed Description

The mini mesg class used for triangulangulation.

Member Function Documentation

void tMiniMesh::Flip ( )

n1,n2,n3 -> n3,n2,n1

References Indices, n1, and uvw.

Referenced by TriPatch::TriangulatePatch().

tri_DWORD tMiniMesh::Flip ( const tri_DWORD t)
static

n1,n2,n3 -> n3,n2,n1

void tMiniMesh::frommc ( const comms::cMeshContainer mc,
int  n1,
int  n2,
int  n3 
)
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().

tri_DWORD tMiniMesh::n123 ( )
inline

convert to tri_DWORD

References n1.

tMiniMesh & tMiniMesh::operator= ( const tMiniMesh m)

copy mini mesh

References Indices, n1, and uvw.

void tMiniMesh::RotateCCW ( )

n1,n2,n3-> n3,n1,n2

References Indices, n1, and uvw.

Referenced by TriPatch::TriangulatePatch().

tri_DWORD tMiniMesh::RotateCCW ( const tri_DWORD t)
static

n1,n2,n3-> n3,n1,n2

void tMiniMesh::RotateCW ( )

n1,n2,n3-> n2,n3,n1

References Indices, n1, and uvw.

Referenced by TriPatch::TriangulatePatch().

tri_DWORD tMiniMesh::RotateCW ( const tri_DWORD t)
static

n1,n2,n3-> n2,n3,n1

void tMiniMesh::save ( const char *  name)

save mesh to binary file

References save_one().

Referenced by TriPatch::CalculatePatch().

void tMiniMesh::save_one ( BinStream &  bs)

save mesh to stream except number of meshes (just mesh itself)

References Indices, n1, and uvw.

Referenced by save().

bool tMiniMesh::selftest ( )

self test

check UV-s correctness

middle

check edges sequence

check square

zero square or flipped

check inner holes

place for breakpoint

References Indices, n1, tomc(), and uvw.

void tMiniMesh::tomc ( comms::cMeshContainer mc)

convert to cMeshContainer

References Indices, and uvw.

Referenced by selftest().

Member Data Documentation

cList<int> tMiniMesh::Indices
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().

cList<Vector3D> tMiniMesh::uvw

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().


The documentation for this struct was generated from the following files: