#include <opennurbs_mesh.h>
◆ Flip()
void ON_MeshTriangle::Flip |
( |
| ) |
|
Description: Swaps the values of m_vi[1] and m_vi[2]. m_vi[0] is not changed.
◆ GetTriangleNormal() [1/4]
bool ON_MeshTriangle::GetTriangleNormal |
( |
const class ON_3dPoint * |
dV, |
|
|
class ON_3dVector & |
triangle_normal |
|
) |
| const |
Description: Compute the triangle normal Parameters: dV - [in] double precision vertex array for the mesh fV - [in] float precision vertex array for the mesh vertex_list - [in] vertex locations triangle_normal - [out] triangle normal Returns: true if triangle_normal is valid.
◆ GetTriangleNormal() [2/4]
◆ GetTriangleNormal() [3/4]
bool ON_MeshTriangle::GetTriangleNormal |
( |
const class ON_3fPoint * |
fV, |
|
|
class ON_3dVector & |
triangle_normal |
|
) |
| const |
◆ GetTriangleNormal() [4/4]
◆ IsValid() [1/4]
◆ IsValid() [2/4]
bool ON_MeshTriangle::IsValid |
( |
size_t |
mesh_vertex_count | ) |
const |
Description: Determine if a triangle is valid by checking that the vertices are distinct. Parameters: mesh_vertex_count - [in] number of vertices in the mesh vertex_list - [in] optional list of mesh vertex locations. Returns: true The triangle is valid. false The triangle is not valid.
◆ IsValid() [3/4]
bool ON_MeshTriangle::IsValid |
( |
size_t |
mesh_vertex_count, |
|
|
const class ON_3dPoint * |
vertex_list |
|
) |
| const |
◆ IsValid() [4/4]
bool ON_MeshTriangle::IsValid |
( |
size_t |
mesh_vertex_count, |
|
|
const class ON_3fPoint * |
vertex_list |
|
) |
| const |
◆ m_vi
unsigned int ON_MeshTriangle::m_vi[3] |
◆ UnsetMeshTriangle
all vi[] values are ON_UNSET_UINT_INDEX.