sculpto
|
#include <trimesh.h>
Public Member Functions | |
trimesh () | |
trimesh (const std::vector< vertex > &Vertices, const std::vector< u32 > &Indieces) | |
trimesh (const std::vector< vertex > &&Vertices, const std::vector< u32 > &&Indieces) | |
~trimesh () override=default | |
virtual void | EvaluateBoundBox () |
virtual void | EvaluateNormals () |
virtual void | EvaluateTangentSpace () |
Public Member Functions inherited from scl::topology::basis< vertex > | |
const mesh_type | GetType () const |
const std::vector< vertex > | GetVertices () const |
const std::vector< u32 > | GetIndices () const |
const vec3 & | GetBoundMin () const |
const vec3 & | GetBoundMax () const |
std::vector< vertex >::const_iterator | cbegin () const |
std::vector< vertex >::const_iterator | cend () const |
basis (mesh_type MeshType) | |
basis (mesh_type MeshType, const std::vector< vertex > &Vertices, const std::vector< u32 > &Indices) | |
basis (mesh_type MeshType, std::vector< vertex > &&Vertices, std::vector< u32 > &&Indices) | |
virtual | ~basis ()=default |
Static Public Member Functions | |
static bool | EvaluateTriangleTangentSpace (vertex &P0, vertex &P1, vertex &P2) |
static void | EvaluateVertexOrthoganalTBNBasis (vertex &P) |
Additional Inherited Members | |
Public Attributes inherited from scl::topology::basis< vertex > | |
mesh_type | MeshType |
std::vector< vertex > | Vertices |
std::vector< u32 > | Indices |
vec3 | Min |
vec3 | Max |
|
inline |
scl::topology::trimesh::trimesh | ( | const std::vector< vertex > & | Vertices, |
const std::vector< u32 > & | Indieces | ||
) |
Vertices | - triangle mesh vertices. |
Indieces | - triangle mesh vertices indices. |
Definition at line 12 of file trimesh.cpp.
scl::topology::trimesh::trimesh | ( | const std::vector< vertex > && | Vertices, |
const std::vector< u32 > && | Indieces | ||
) |
Vertices | - triangle mesh vertices. |
Indieces | - triangle mesh vertices indices. |
Definition at line 17 of file trimesh.cpp.
|
overridedefault |
Topology object triangles mesh default destructor.
|
virtual |
None. |
Definition at line 22 of file trimesh.cpp.
|
virtual |
None. |
Definition at line 33 of file trimesh.cpp.
|
virtual |
None. |
Z or Y dominant axes
X dominant axis
Definition at line 47 of file trimesh.cpp.
|
static |
P0,P1,P2 | - triangle vertices. |
Definition at line 72 of file trimesh.cpp.
|
static |
P | - vertex to evaluate orthoganal tangent space basis. |
Definition at line 95 of file trimesh.cpp.