#include <GU_Measure.h>
Static Public Member Functions | |
| static void | computePerimeter (GU_Detail &gdp, GEO_AttributeHandle &perimeter, const GB_PrimitiveGroup *group) |
| static void | computeArea (GU_Detail &gdp, GEO_AttributeHandle &area, const GB_PrimitiveGroup *group) |
| static void | computeCurvature (GU_Detail &gdp, GEO_AttributeHandle &curvature, GEO_AttributeHandle &normal, const GB_PointGroup *pgroup, fpreal min, fpreal max) |
| static void | computeVolume (GU_Detail &gdp, UT_Vector3 &refpt, GEO_AttributeHandle &volume, const GB_PrimitiveGroup *group) |
Definition at line 31 of file GU_Measure.h.
| static void GU_Measure::computeArea | ( | GU_Detail & | gdp, | |
| GEO_AttributeHandle & | area, | |||
| const GB_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, | |
| GEO_AttributeHandle & | curvature, | |||
| GEO_AttributeHandle & | normal, | |||
| const GB_PointGroup * | pgroup, | |||
| 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.
| static void GU_Measure::computePerimeter | ( | GU_Detail & | gdp, | |
| GEO_AttributeHandle & | perimeter, | |||
| const GB_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, | |
| UT_Vector3 & | refpt, | |||
| GEO_AttributeHandle & | volume, | |||
| const GB_PrimitiveGroup * | group | |||
| ) | [static] |
1.5.9