HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_Measure Class Reference

#include <GU_Measure.h>

Public Types

enum  CurvatureType { CURVE_ALL, CURVE_CONCAVE, CURVE_CONVEX }
 

Static Public Member Functions

static void computePerimeter (GU_Detail &gdp, const GA_RWHandleF &perimeter, const GA_PrimitiveGroup *group)
 
static void computeArea (GU_Detail &gdp, const GA_RWHandleF &area, const GA_PrimitiveGroup *group)
 
static void computeCurvature (GU_Detail &gdp, const GA_RWHandleF &curvature, const GA_ROHandleV3 &normal, const GA_PointGroup *pgroup, const CurvatureType type, fpreal min, fpreal max)
 
static void computeVolume (GU_Detail &gdp, const UT_Vector3 &refpt, const GA_RWHandleF &volume, const GA_PrimitiveGroup *group)
 

Detailed Description

Definition at line 23 of file GU_Measure.h.

Member Enumeration Documentation

Enumerator
CURVE_ALL 
CURVE_CONCAVE 
CURVE_CONVEX 

Definition at line 26 of file GU_Measure.h.

Member Function Documentation

static void GU_Measure::computeArea ( GU_Detail gdp,
const GA_RWHandleF area,
const GA_PrimitiveGroup group 
)
static

Measure the area of primitives The area of each primitive will be computed and stored in the attribute handle passed in. The attribute handle MUST point to a primitive attribute.

static void GU_Measure::computeCurvature ( GU_Detail gdp,
const GA_RWHandleF curvature,
const GA_ROHandleV3 normal,
const GA_PointGroup pgroup,
const CurvatureType  type,
fpreal  min,
fpreal  max 
)
static

Measure the curvature of points The curvature of each point will be computed and stored in the attribute handle passed in. The normal attribute handle should point to an attribute containing the normal for each point (which does not have to be normalized). This is used in the curvature computations. The curvature computed is an approximation which is more accurate for polygon meshes. No special code is used to compute curvature on higher order surfaces. mode

static void GU_Measure::computePerimeter ( GU_Detail gdp,
const GA_RWHandleF perimeter,
const GA_PrimitiveGroup group 
)
static

Measure the perimeter of primitives The perimeter of each primitive will be computed and stored in the attribute handle passed in. The attribute handle MUST point to a primitive attribute.

static void GU_Measure::computeVolume ( GU_Detail gdp,
const UT_Vector3 refpt,
const GA_RWHandleF volume,
const GA_PrimitiveGroup group 
)
static

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