KiCad PCB EDA Suite
CTRIANGLE Class Reference

A triangle object. More...

#include <ctriangle.h>

Inheritance diagram for CTRIANGLE:
COBJECT

Public Member Functions

 CTRIANGLE (const SFVEC3F &aV1, const SFVEC3F &aV2, const SFVEC3F &aV3)
 
 CTRIANGLE (const SFVEC3F &aV1, const SFVEC3F &aV2, const SFVEC3F &aV3, const SFVEC3F &aFaceNormal)
 
 CTRIANGLE (const SFVEC3F &aV1, const SFVEC3F &aV2, const SFVEC3F &aV3, const SFVEC3F &aN1, const SFVEC3F &aN2, const SFVEC3F &aN3)
 
void SetColor (const SFVEC3F &aColor)
 
void SetColor (const SFVEC3F &aVC0, const SFVEC3F &aVC1, const SFVEC3F &aVC2)
 
void SetColor (unsigned int aFaceColorRGBA)
 
void SetColor (unsigned int aVertex1ColorRGBA, unsigned int aVertex2ColorRGBA, unsigned int aVertex3ColorRGBA)
 
void SetUV (const SFVEC2F &aUV1, const SFVEC2F &aUV2, const SFVEC2F &aUV3)
 
bool Intersect (const RAY &aRay, HITINFO &aHitInfo) const override
 Functions Intersect. More...
 
bool IntersectP (const RAY &aRay, float aMaxDistance) const override
 Functions Intersect for shadow test. More...
 
bool Intersects (const CBBOX &aBBox) const override
 Function Intersects. More...
 
SFVEC3F GetDiffuseColor (const HITINFO &aHitInfo) const override
 
void SetMaterial (const CMATERIAL *aMaterial)
 
const CMATERIALGetMaterial () const
 
const CBBOXGetBBox () const
 
const SFVEC3FGetCentroid () const
 

Protected Attributes

CBBOX m_bbox
 
SFVEC3F m_centroid
 
OBJECT3D_TYPE m_obj_type
 
const CMATERIALm_material
 

Private Member Functions

void pre_calc_const ()
 

Private Attributes

SFVEC3F m_normal [3]
 
SFVEC3F m_vertex [3]
 
SFVEC3F m_n
 
SFVEC2F m_uv [3]
 
unsigned int m_vertexColorRGBA [3]
 
float m_nu
 
float m_nv
 
float m_nd
 
unsigned int m_k
 
float m_bnu
 
float m_bnv
 
float m_cnu
 
float m_cnv
 

Detailed Description

A triangle object.

Definition at line 42 of file ctriangle.h.

Constructor & Destructor Documentation

CTRIANGLE::CTRIANGLE ( const SFVEC3F aV1,
const SFVEC3F aV2,
const SFVEC3F aV3 
)

Definition at line 101 of file ctriangle.cpp.

References m_vertex, m_vertexColorRGBA, and pre_calc_const().

104 {
105  m_vertex[0] = aV1;
106  m_vertex[1] = aV2;
107  m_vertex[2] = aV3;
108 
109  m_vertexColorRGBA[0] = 0xFFFFFFFF;
110  m_vertexColorRGBA[1] = 0xFFFFFFFF;
111  m_vertexColorRGBA[2] = 0xFFFFFFFF;
112 
113  pre_calc_const();
114 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
void pre_calc_const()
Definition: ctriangle.cpp:37
COBJECT(OBJECT3D_TYPE aObjType)
Definition: cobject.cpp:38
CTRIANGLE::CTRIANGLE ( const SFVEC3F aV1,
const SFVEC3F aV2,
const SFVEC3F aV3,
const SFVEC3F aFaceNormal 
)

Definition at line 117 of file ctriangle.cpp.

References m_normal, m_vertex, m_vertexColorRGBA, and pre_calc_const().

121 {
122  m_vertex[0] = aV1;
123  m_vertex[1] = aV2;
124  m_vertex[2] = aV3;
125 
126  m_vertexColorRGBA[0] = 0xFFFFFFFF;
127  m_vertexColorRGBA[1] = 0xFFFFFFFF;
128  m_vertexColorRGBA[2] = 0xFFFFFFFF;
129 
130  pre_calc_const();
131 
132  m_normal[0] = aFaceNormal;
133  m_normal[1] = aFaceNormal;
134  m_normal[2] = aFaceNormal;
135 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
void pre_calc_const()
Definition: ctriangle.cpp:37
COBJECT(OBJECT3D_TYPE aObjType)
Definition: cobject.cpp:38
SFVEC3F m_normal[3]
Definition: ctriangle.h:76
CTRIANGLE::CTRIANGLE ( const SFVEC3F aV1,
const SFVEC3F aV2,
const SFVEC3F aV3,
const SFVEC3F aN1,
const SFVEC3F aN2,
const SFVEC3F aN3 
)

Definition at line 138 of file ctriangle.cpp.

References m_normal, m_vertex, m_vertexColorRGBA, and pre_calc_const().

144 {
145  m_vertex[0] = aV1;
146  m_vertex[1] = aV2;
147  m_vertex[2] = aV3;
148 
149  m_vertexColorRGBA[0] = 0xFFFFFFFF;
150  m_vertexColorRGBA[1] = 0xFFFFFFFF;
151  m_vertexColorRGBA[2] = 0xFFFFFFFF;
152 
153  pre_calc_const();
154 
155  m_normal[0] = aN1;
156  m_normal[1] = aN2;
157  m_normal[2] = aN3;
158 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
void pre_calc_const()
Definition: ctriangle.cpp:37
COBJECT(OBJECT3D_TYPE aObjType)
Definition: cobject.cpp:38
SFVEC3F m_normal[3]
Definition: ctriangle.h:76

Member Function Documentation

const CBBOX& COBJECT::GetBBox ( ) const
inlineinherited

Definition at line 94 of file cobject.h.

References COBJECT::m_bbox.

Referenced by CGENERICCONTAINER::Add(), and CBVH_PBRT::Intersect().

94 { return m_bbox; }
CBBOX m_bbox
Definition: cobject.h:53
const SFVEC3F& COBJECT::GetCentroid ( ) const
inlineinherited

Definition at line 96 of file cobject.h.

References COBJECT::m_centroid.

96 { return m_centroid; }
SFVEC3F m_centroid
Definition: cobject.h:54
SFVEC3F CTRIANGLE::GetDiffuseColor ( const HITINFO aHitInfo) const
overridevirtual

Implements COBJECT.

Definition at line 323 of file ctriangle.cpp.

References HITINFO::m_UV, and m_vertexColorRGBA.

324 {
325  const unsigned int rgbC1 = m_vertexColorRGBA[0];
326  const unsigned int rgbC2 = m_vertexColorRGBA[1];
327  const unsigned int rgbC3 = m_vertexColorRGBA[2];
328 
329  const SFVEC3F c1 = SFVEC3F( (float)((rgbC1 >> 24) & 0xFF) / 255.0f,
330  (float)((rgbC1 >> 16) & 0xFF) / 255.0f,
331  (float)((rgbC1 >> 8) & 0xFF) / 255.0f );
332  const SFVEC3F c2 = SFVEC3F( (float)((rgbC2 >> 24) & 0xFF) / 255.0f,
333  (float)((rgbC2 >> 16) & 0xFF) / 255.0f,
334  (float)((rgbC2 >> 8) & 0xFF) / 255.0f );
335  const SFVEC3F c3 = SFVEC3F( (float)((rgbC3 >> 24) & 0xFF) / 255.0f,
336  (float)((rgbC3 >> 16) & 0xFF) / 255.0f,
337  (float)((rgbC3 >> 8) & 0xFF) / 255.0f );
338 
339  const float u = aHitInfo.m_UV.x;
340  const float v = aHitInfo.m_UV.y;
341  const float w = 1.0f - u - v;
342 
343  return w * c1 + u * c2 + v * c3;
344 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47
SFVEC2F m_UV
( 8) 2-D texture coordinates
Definition: hitinfo.h:46
const CMATERIAL* COBJECT::GetMaterial ( ) const
inlineinherited

Definition at line 63 of file cobject.h.

References COBJECT::m_material.

Referenced by CBVH_PBRT::IntersectP(), and C3D_RENDER_RAYTRACING::shadeHit().

63 { return m_material; }
const CMATERIAL * m_material
Definition: cobject.h:56
bool CTRIANGLE::Intersect ( const RAY aRay,
HITINFO aHitInfo 
) const
overridevirtual

Functions Intersect.

Intersect

Parameters
aRay
aHitInfo
Returns
true if the aRay intersects the object

TODO: precalc this, improove it

Implements COBJECT.

Definition at line 217 of file ctriangle.cpp.

References RAY::at(), D, ku, kv, m_bnu, m_bnv, m_cnu, m_cnv, RAY::m_Dir, HITINFO::m_HitNormal, HITINFO::m_HitPoint, m_k, COBJECT::m_material, m_n, m_nd, m_normal, m_nu, m_nv, RAY::m_Origin, HITINFO::m_tHit, m_vertex, CMATERIAL::PerturbeNormal(), and HITINFO::pHitObject.

218 {
220 #define ku s_modulo[m_k + 1]
221 #define kv s_modulo[m_k + 2]
222 
223  const SFVEC3F &O = aRay.m_Origin;
224  const SFVEC3F &D = aRay.m_Dir;
225  const SFVEC3F &A = m_vertex[0];
226 
227  const float lnd = 1.0f / (D[m_k] + m_nu * D[ku] + m_nv * D[kv]);
228  const float t = (m_nd - O[m_k] - m_nu * O[ku] - m_nv * O[kv]) * lnd;
229 
230  if( !( (aHitInfo.m_tHit > t) && (t > 0.0f) ) )
231  return false;
232 
233  const float hu = O[ku] + t * D[ku] - A[ku];
234  const float hv = O[kv] + t * D[kv] - A[kv];
235  const float beta = hv * m_bnu + hu * m_bnv;
236 
237  if( beta < 0.0f )
238  return false;
239 
240  const float gamma = hu * m_cnu + hv * m_cnv;
241 
242  if( gamma < 0 )
243  return false;
244 
245  const float v = gamma;
246  const float u = beta;
247 
248  if( (u + v) > 1.0f )
249  return false;
250 
251  if( glm::dot( D, m_n ) > 0.0f )
252  return false;
253 
254  aHitInfo.m_tHit = t;
255  aHitInfo.m_HitPoint = aRay.at( t );
256 
257  // interpolate vertex normals with UVW using Gouraud's shading
258  aHitInfo.m_HitNormal = glm::normalize( (1.0f - u - v) * m_normal[0] +
259  u * m_normal[1] +
260  v * m_normal[2] );
261 
262  m_material->PerturbeNormal( aHitInfo.m_HitNormal, aRay, aHitInfo );
263 
264  aHitInfo.pHitObject = this;
265 
266  return true;
267 #undef ku
268 #undef kv
269 }
float m_bnu
Definition: ctriangle.h:83
#define ku
SFVEC3F m_n
Definition: ctriangle.h:78
float m_nd
Definition: ctriangle.h:81
SFVEC3F at(float t) const
Definition: ray.h:65
float m_nv
Definition: ctriangle.h:81
const CMATERIAL * m_material
Definition: cobject.h:56
#define kv
float m_tHit
( 4) distance
Definition: hitinfo.h:43
SFVEC3F m_HitPoint
(12) hit position
Definition: hitinfo.h:49
float m_bnv
Definition: ctriangle.h:83
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
void PerturbeNormal(SFVEC3F &aNormal, const RAY &aRay, const HITINFO &aHitInfo) const
Definition: cmaterial.cpp:88
unsigned int m_k
Definition: ctriangle.h:82
float m_cnu
Definition: ctriangle.h:84
const COBJECT * pHitObject
( 4) Object that was hitted
Definition: hitinfo.h:45
SFVEC3F m_Dir
Definition: ray.h:48
SFVEC3F m_Origin
Definition: ray.h:45
#define D(x)
Definition: ptree.cpp:41
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47
SFVEC3F m_HitNormal
(12) normal at the hit point
Definition: hitinfo.h:42
SFVEC3F m_normal[3]
Definition: ctriangle.h:76
float m_cnv
Definition: ctriangle.h:84
float m_nu
Definition: ctriangle.h:81
bool CTRIANGLE::IntersectP ( const RAY aRay,
float  aMaxDistance 
) const
overridevirtual

Functions Intersect for shadow test.

Intersect

Parameters
aRay
aMaxDistance- max distance of the test
Returns
true if the aRay intersects the object

TODO: precalc this

Implements COBJECT.

Definition at line 272 of file ctriangle.cpp.

References D, ku, kv, m_bnu, m_bnv, m_cnu, m_cnv, RAY::m_Dir, m_k, m_n, m_nd, m_nu, m_nv, RAY::m_Origin, and m_vertex.

274 {
276 #define ku s_modulo[m_k + 1]
277 #define kv s_modulo[m_k + 2]
278 
279  const SFVEC3F O = aRay.m_Origin;
280  const SFVEC3F D = aRay.m_Dir;
281  const SFVEC3F A = m_vertex[0];
282 
283  const float lnd = 1.0f / (D[m_k] + m_nu * D[ku] + m_nv * D[kv]);
284  const float t = (m_nd - O[m_k] - m_nu * O[ku] - m_nv * O[kv]) * lnd;
285 
286  if( !( (aMaxDistance > t) && (t > 0.0f) ) )
287  return false;
288 
289  const float hu = O[ku] + t * D[ku] - A[ku];
290  const float hv = O[kv] + t * D[kv] - A[kv];
291  const float beta = hv * m_bnu + hu * m_bnv;
292 
293  if( beta < 0.0f )
294  return false;
295 
296  const float gamma = hu * m_cnu + hv * m_cnv;
297 
298  if( gamma < 0.0f )
299  return false;
300 
301  const float v = gamma;
302  const float u = beta;
303 
304  if( (u + v) > 1.0f )
305  return false;
306 
307  if( glm::dot( D, m_n ) > 0.0f )
308  return false;
309 
310  return true;
311 #undef ku
312 #undef kv
313 }
float m_bnu
Definition: ctriangle.h:83
#define ku
SFVEC3F m_n
Definition: ctriangle.h:78
float m_nd
Definition: ctriangle.h:81
float m_nv
Definition: ctriangle.h:81
#define kv
float m_bnv
Definition: ctriangle.h:83
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
unsigned int m_k
Definition: ctriangle.h:82
float m_cnu
Definition: ctriangle.h:84
SFVEC3F m_Dir
Definition: ray.h:48
SFVEC3F m_Origin
Definition: ray.h:45
#define D(x)
Definition: ptree.cpp:41
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47
float m_cnv
Definition: ctriangle.h:84
float m_nu
Definition: ctriangle.h:81
bool CTRIANGLE::Intersects ( const CBBOX aBBox) const
overridevirtual

Function Intersects.

Intersects - a.Intersects(b) ⇔ !a.Disjoint(b) ⇔ !(a ∩ b = ∅) It intersects if the result intersection is not null

Parameters
aBBox
Returns

TODO: improove

Implements COBJECT.

Definition at line 316 of file ctriangle.cpp.

References CBBOX::Intersects(), and COBJECT::m_bbox.

317 {
319  return m_bbox.Intersects( aBBox );
320 }
bool Intersects(const CBBOX &aBBox) const
Function Intersects test if a bounding box intersects this box.
Definition: cbbox.cpp:230
CBBOX m_bbox
Definition: cobject.h:53
void CTRIANGLE::pre_calc_const ( )
private

Definition at line 37 of file ctriangle.cpp.

References abs, CBBOX::GetCenter(), COBJECT::m_bbox, m_bnu, m_bnv, COBJECT::m_centroid, m_cnu, m_cnv, m_k, m_n, m_nd, m_normal, m_nu, m_nv, m_vertex, CBBOX::Reset(), CBBOX::ScaleNextUp(), CBBOX::Set(), and CBBOX::Union().

Referenced by CTRIANGLE().

38 {
39  const SFVEC3F &A = m_vertex[0];
40  const SFVEC3F &B = m_vertex[1];
41  const SFVEC3F &C = m_vertex[2];
42  const SFVEC3F c = B - A;
43  const SFVEC3F b = C - A;
44 
45  m_bbox.Reset();
46  m_bbox.Set( A );
47  m_bbox.Union( B );
48  m_bbox.Union( C );
51 
52  m_n = glm::cross( b, c );
53 
54  if( glm::abs( m_n.x ) > glm::abs( m_n.y ) )
55  {
56  if( glm::abs( m_n.x ) > glm::abs( m_n.z ) )
57  m_k = 0;
58  else
59  m_k = 2;
60  }
61  else
62  {
63  if( glm::abs( m_n.y ) > glm::abs( m_n.z ) )
64  m_k = 1;
65  else
66  m_k = 2;
67  }
68 
69  int u = (m_k + 1) % 3;
70  int v = (m_k + 2) % 3;
71 
72 
73  // precomp
74  float krec = 1.0f / m_n[m_k];
75 
76  m_nu = m_n[u] * krec;
77  m_nv = m_n[v] * krec;
78  m_nd = glm::dot( m_n, A ) * krec;
79 
80 
81  // first line equation
82  float reci = 1.0f / (b[u] * c[v] - b[v] * c[u]);
83 
84  m_bnu = b[u] * reci;
85  m_bnv = -b[v] * reci;
86 
87 
88  // second line equation
89  m_cnu = c[v] * reci;
90  m_cnv = -c[u] * reci;
91 
92  // finalize normal
93  m_n = glm::normalize( m_n );
94 
95  m_normal[0] = m_n;
96  m_normal[1] = m_n;
97  m_normal[2] = m_n;
98 }
float m_bnu
Definition: ctriangle.h:83
SFVEC3F m_centroid
Definition: cobject.h:54
SFVEC3F m_n
Definition: ctriangle.h:78
float m_nd
Definition: ctriangle.h:81
float m_nv
Definition: ctriangle.h:81
CBBOX m_bbox
Definition: cobject.h:53
#define abs(a)
Definition: auxiliary.h:84
void Set(const SFVEC3F &aPbMin, const SFVEC3F &aPbMax)
Function Set Set bounding box with new parameters.
Definition: cbbox.cpp:67
void Union(const SFVEC3F &aPoint)
Function Union recalculate the bounding box adding a point.
Definition: cbbox.cpp:105
float m_bnv
Definition: ctriangle.h:83
SFVEC3F m_vertex[3]
Definition: ctriangle.h:77
unsigned int m_k
Definition: ctriangle.h:82
float m_cnu
Definition: ctriangle.h:84
void ScaleNextUp()
Function ScaleNextUp scales a bounding box to the next float representation making it larger...
Definition: cbbox.cpp:206
SFVEC3F GetCenter() const
Function GetCenter return the center point of the bounding box.
Definition: cbbox.cpp:135
glm::vec3 SFVEC3F
Definition: xv3d_types.h:47
SFVEC3F m_normal[3]
Definition: ctriangle.h:76
float m_cnv
Definition: ctriangle.h:84
void Reset()
Function Reset reset the bounding box to zero and de-initialized it.
Definition: cbbox.cpp:98
float m_nu
Definition: ctriangle.h:81
void CTRIANGLE::SetColor ( const SFVEC3F aColor)

Definition at line 161 of file ctriangle.cpp.

References m_vertexColorRGBA.

Referenced by C3D_RENDER_RAYTRACING::add_3D_models(), and C3D_RENDER_RAYTRACING::reload().

162 {
163  m_vertexColorRGBA[0] = ((unsigned int)(aColor.r * 255) << 24) |
164  ((unsigned int)(aColor.g * 255) << 16) |
165  ((unsigned int)(aColor.b * 255) << 8) | 0xFF;
168 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
void CTRIANGLE::SetColor ( const SFVEC3F aVC0,
const SFVEC3F aVC1,
const SFVEC3F aVC2 
)

Definition at line 171 of file ctriangle.cpp.

References m_vertexColorRGBA.

174 {
175  m_vertexColorRGBA[0] = ((unsigned int)(aVC0.r * 255) << 24) |
176  ((unsigned int)(aVC0.g * 255) << 16) |
177  ((unsigned int)(aVC0.b * 255) << 8) | 0xFF;
178  m_vertexColorRGBA[1] = ((unsigned int)(aVC1.r * 255) << 24) |
179  ((unsigned int)(aVC1.g * 255) << 16) |
180  ((unsigned int)(aVC1.b * 255) << 8) | 0xFF;
181  m_vertexColorRGBA[2] = ((unsigned int)(aVC2.r * 255) << 24) |
182  ((unsigned int)(aVC2.g * 255) << 16) |
183  ((unsigned int)(aVC2.b * 255) << 8) | 0xFF;
184 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
void CTRIANGLE::SetColor ( unsigned int  aFaceColorRGBA)

Definition at line 187 of file ctriangle.cpp.

References m_vertexColorRGBA.

188 {
189  m_vertexColorRGBA[0] = aFaceColorRGBA;
190  m_vertexColorRGBA[1] = aFaceColorRGBA;
191  m_vertexColorRGBA[2] = aFaceColorRGBA;
192 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
void CTRIANGLE::SetColor ( unsigned int  aVertex1ColorRGBA,
unsigned int  aVertex2ColorRGBA,
unsigned int  aVertex3ColorRGBA 
)

Definition at line 195 of file ctriangle.cpp.

References m_vertexColorRGBA.

198 {
199  m_vertexColorRGBA[0] = aVertex1ColorRGBA;
200  m_vertexColorRGBA[1] = aVertex2ColorRGBA;
201  m_vertexColorRGBA[2] = aVertex3ColorRGBA;
202 }
unsigned int m_vertexColorRGBA[3]
Definition: ctriangle.h:80
void COBJECT::SetMaterial ( const CMATERIAL aMaterial)
inlineinherited
void CTRIANGLE::SetUV ( const SFVEC2F aUV1,
const SFVEC2F aUV2,
const SFVEC2F aUV3 
)

Definition at line 205 of file ctriangle.cpp.

References m_uv.

208 {
209  m_uv[0] = aUV1;
210  m_uv[1] = aUV2;
211  m_uv[2] = aUV3;
212 }
SFVEC2F m_uv[3]
Definition: ctriangle.h:79

Member Data Documentation

float CTRIANGLE::m_bnu
private

Definition at line 83 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

float CTRIANGLE::m_bnv
private

Definition at line 83 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

float CTRIANGLE::m_cnu
private

Definition at line 84 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

float CTRIANGLE::m_cnv
private

Definition at line 84 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

unsigned int CTRIANGLE::m_k
private

Definition at line 82 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

SFVEC3F CTRIANGLE::m_n
private

Definition at line 78 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

float CTRIANGLE::m_nd
private

Definition at line 81 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

SFVEC3F CTRIANGLE::m_normal[3]
private

Definition at line 76 of file ctriangle.h.

Referenced by CTRIANGLE(), Intersect(), and pre_calc_const().

float CTRIANGLE::m_nu
private

Definition at line 81 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

float CTRIANGLE::m_nv
private

Definition at line 81 of file ctriangle.h.

Referenced by Intersect(), IntersectP(), and pre_calc_const().

OBJECT3D_TYPE COBJECT::m_obj_type
protectedinherited

Definition at line 55 of file cobject.h.

Referenced by COBJECT::COBJECT().

SFVEC2F CTRIANGLE::m_uv[3]
private

Definition at line 79 of file ctriangle.h.

Referenced by SetUV().

SFVEC3F CTRIANGLE::m_vertex[3]
private

Definition at line 77 of file ctriangle.h.

Referenced by CTRIANGLE(), Intersect(), IntersectP(), and pre_calc_const().

unsigned int CTRIANGLE::m_vertexColorRGBA[3]
private

Definition at line 80 of file ctriangle.h.

Referenced by CTRIANGLE(), GetDiffuseColor(), and SetColor().


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