FacetTriIndex Class Reference

#include <FacetBaseData.h>

List of all members.

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

Detailed Description

Definition at line 40 of file FacetBaseData.h.


Constructor & Destructor Documentation

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);}

Here is the call graph for this function:

virtual ~FacetTriIndex ( void   )  [inline, virtual]

Definition at line 49 of file FacetBaseData.h.

00049 {}


Member Function Documentation

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

00051 { set(w1,w2,w3,m1,m2,m3,u1,u2,u3);}

Here is the caller graph for this function:

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.

00021 {
00022      v1 = d1;  v2 = d2;  v3 = d3;
00023      n1 = d1;  n2 = d2;  n3 = d3;
00024     uv1 = d1; uv2 = d2, uv3 = d3;
00025 }

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.

00013 {
00014      v1 = w1;  v2 = w2;  v3 = w3;
00015      n1 = m1;  n2 = m2;  n3 = m3;
00016     uv1 = u1; uv2 = u2, uv3 = u3;
00017 }

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     }

Here is the call graph for this function:

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     }

Here is the call graph for this function:


Member Data Documentation

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
int v2
int v3

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

Generated on 15 Nov 2023 for JunkBox_Lib++ (for Windows) by  doxygen 1.6.1