Clarisse 5.0 SP8 SDK  5.0.5.8.0
GeometryPrimitive Class Reference
Inheritance diagram for GeometryPrimitive: ## Public Types

enum  SideFlags {
SIDE_FRONT = 1,
SIDE_BACK = 2,
SIDE_BOTH = 3
}
Visible side flags. More...

## Static Public Member Functions

template<typename REAL >
static bool is_visible (SideFlags side, REAL dot_normal)

template<typename REAL >
static void compute_dndu_dndv (GMathVec3< REAL > &dndu, GMathVec3< REAL > &dndv, const GMathVec3< REAL > &dpdu, const GMathVec3< REAL > &dpdv, const GMathVec3< REAL > &normal, const GMathVec3< REAL > &d2pduu, const GMathVec3< REAL > &d2pduv, const GMathVec3< REAL > &d2pdvv)
Compute the partial derivatives of the normal.

## Member Enumeration Documentation

Visible side flags.

Enumerator:
 SIDE_FRONT front side is visible SIDE_BACK back side is visible SIDE_BOTH both sides are visible

## Member Function Documentation

template<typename REAL >
 template void GeometryPrimitive::compute_dndu_dndv< float > ( GMathVec3< REAL > & dndu, GMathVec3< REAL > & dndv, const GMathVec3< REAL > & dpdu, const GMathVec3< REAL > & dpdv, const GMathVec3< REAL > & normal, const GMathVec3< REAL > & d2pduu, const GMathVec3< REAL > & d2pduv, const GMathVec3< REAL > & d2pdvv )
static

Compute the partial derivatives of the normal.

Parameters
 [out] dndu the geometric partial derivative of the normal for the U paramater of the primitive [out] dndv the geometric partial derivative of the normal for the V paramater of the primitive [in] dpdu the partial derivative of the position for the U paramater of the primitive [in] dpdv the partial derivative of the position for the V paramater of the primitive [in] normal the geometric normal on the surface [in] d2pduu the second partial derivative of the position for the U then U paramater of the primitive [in] d2pduv the second partial derivative of the position for the U then V paramater of the primitive [in] d2pdvv the second partial derivative of the position for the V then V paramater of the primitive