#include <FacetBaseData.h>
Public Member Functions | |
FacetTriIndex (int w1=0, int w2=0, int w3=0, int m1=0, int m2=0, int m3=0) | |
virtual | ~FacetTriIndex (void) |
void | init (int w1=0, int w2=0, int w3=0, int m1=0, int m2=0, int m3=0, int u1=0, int u2=0, int u3=0) |
void | set (int w1=0, int w2=0, int w3=0, int m1=0, int m2=0, int m3=0, int u1=0, int u2=0, int u3=0) |
void | mlt_set (int d1=0, int d2=0, int d3=0) |
Vector< double > | SurfaceNormal (FACET_VECTOR_ARRAY *coords) |
Vector< float > | SurfaceNormal (FACET_VECTOR_ARRAY32 *coords) |
Public Attributes | |
int | v1 |
int | v2 |
int | v3 |
int | n1 |
int | n2 |
int | n3 |
int | uv1 |
int | uv2 |
int | uv3 |
Definition at line 40 of file FacetBaseData.h.
FacetTriIndex | ( | int | w1 = 0 , |
|
int | w2 = 0 , |
|||
int | w3 = 0 , |
|||
int | m1 = 0 , |
|||
int | m2 = 0 , |
|||
int | m3 = 0 | |||
) | [inline] |
Definition at line 48 of file FacetBaseData.h.
References FacetTriIndex::init().
00048 { init(w1,w2,w3,m1,m2,m3);}
virtual ~FacetTriIndex | ( | void | ) | [inline, virtual] |
Definition at line 49 of file FacetBaseData.h.
void init | ( | int | w1 = 0 , |
|
int | w2 = 0 , |
|||
int | w3 = 0 , |
|||
int | m1 = 0 , |
|||
int | m2 = 0 , |
|||
int | m3 = 0 , |
|||
int | u1 = 0 , |
|||
int | u2 = 0 , |
|||
int | u3 = 0 | |||
) | [inline] |
Definition at line 51 of file FacetBaseData.h.
Referenced by FacetTriIndex::FacetTriIndex().
void mlt_set | ( | int | d1 = 0 , |
|
int | d2 = 0 , |
|||
int | d3 = 0 | |||
) |
Definition at line 20 of file FacetBaseData.cpp.
References FacetTriIndex::n1, FacetTriIndex::n2, FacetTriIndex::n3, FacetTriIndex::uv1, FacetTriIndex::uv2, FacetTriIndex::uv3, FacetTriIndex::v1, FacetTriIndex::v2, and FacetTriIndex::v3.
void set | ( | int | w1 = 0 , |
|
int | w2 = 0 , |
|||
int | w3 = 0 , |
|||
int | m1 = 0 , |
|||
int | m2 = 0 , |
|||
int | m3 = 0 , |
|||
int | u1 = 0 , |
|||
int | u2 = 0 , |
|||
int | u3 = 0 | |||
) |
Definition at line 12 of file FacetBaseData.cpp.
References FacetTriIndex::n1, FacetTriIndex::n2, FacetTriIndex::n3, FacetTriIndex::uv1, FacetTriIndex::uv2, FacetTriIndex::uv3, FacetTriIndex::v1, FacetTriIndex::v2, and FacetTriIndex::v3.
Vector<float> SurfaceNormal | ( | FACET_VECTOR_ARRAY32 * | coords | ) | [inline] |
Definition at line 62 of file FacetBaseData.h.
References Vector< T >::normalize(), FacetTriIndex::v1, FacetTriIndex::v2, and FacetTriIndex::v3.
00062 { 00063 Vector<float> normal = NewellMethod<float>((*coords)[v1], (*coords)[v2], (*coords)[v3]); 00064 return normal.normalize(); 00065 }
Vector<double> SurfaceNormal | ( | FACET_VECTOR_ARRAY * | coords | ) | [inline] |
Definition at line 56 of file FacetBaseData.h.
References Vector< T >::normalize(), FacetTriIndex::v1, FacetTriIndex::v2, and FacetTriIndex::v3.
00056 { 00057 Vector<double> normal = NewellMethod<double>((*coords)[v1],(*coords)[v2],(*coords)[v3]); 00058 return normal.normalize(); 00059 }
int n1 |
Definition at line 44 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int n2 |
Definition at line 44 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int n3 |
Definition at line 44 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int uv1 |
Definition at line 45 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int uv2 |
Definition at line 45 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int uv3 |
Definition at line 45 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), and FacetTriIndex::set().
int v1 |
Definition at line 43 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), FacetTriIndex::set(), and FacetTriIndex::SurfaceNormal().
int v2 |
Definition at line 43 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), FacetTriIndex::set(), and FacetTriIndex::SurfaceNormal().
int v3 |
Definition at line 43 of file FacetBaseData.h.
Referenced by FacetTriIndex::mlt_set(), FacetTriIndex::set(), and FacetTriIndex::SurfaceNormal().