Clarisse 5.0 SP8 SDK  5.0.5.8.0
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
Public Types | Static Public Member Functions | List of all members
GeometryPrimitive Class Reference
Inheritance diagram for GeometryPrimitive:
GeometryCylinder_XSampler< REAL > GeometryCylinder_XSampler<> GeometryDiskSampler< REAL > GeometryDiskSampler<> GeometrySphereSampler< REAL > GeometrySphereSampler<> GeometrySquareSampler< REAL > GeometrySquareSampler<> PrimitiveCylinder< REAL > PrimitiveCylinder<>

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]dnduthe geometric partial derivative of the normal for the U paramater of the primitive
[out]dndvthe geometric partial derivative of the normal for the V paramater of the primitive
[in]dpduthe partial derivative of the position for the U paramater of the primitive
[in]dpdvthe partial derivative of the position for the V paramater of the primitive
[in]normalthe geometric normal on the surface
[in]d2pduuthe second partial derivative of the position for the U then U paramater of the primitive
[in]d2pduvthe second partial derivative of the position for the U then V paramater of the primitive
[in]d2pdvvthe second partial derivative of the position for the V then V paramater of the primitive