HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GU_LocalFrame Namespace Reference

Classes

class  ComputeParms
 
class  Frame
 A class representing a local frame. More...
 

Enumerations

enum  FrameType { LOCALFRAME_COMPONENT = 0, LOCALFRAME_NMLANDVEC, LOCALFRAME_OBB }
 Different types of local frames that can be computed for components. More...
 
enum  OriginType { LOCALORIGIN_BBOX = 0 }
 Different types of local origins that can be computed for components. More...
 

Functions

GU_API void computePrimLocalFrames (const ComputeParms &parms, const GEO_Detail &gdp, const GA_PrimitiveGroup *prim_group, const GA_OffsetArray &class_prims, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local frames for a list of primitive groupings. More...
 
GU_API void computePointLocalFrames (const ComputeParms &parms, const GEO_Detail &gdp, const GA_PointGroup *point_group, const GA_OffsetArray &class_points, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local frames for a list of point groupings. More...
 
GU_API void computeEdgeLocalFrames (const ComputeParms &parms, const GEO_Detail &gdp, const GA_EdgeGroup &edge_group, const UT_Array< GA_Edge > &class_edges, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local frames for a list of edge groupings. More...
 
GU_API void computeBreakpointLocalFrames (const ComputeParms &parms, const GEO_Detail &gdp, const GA_BreakpointGroup *bkpt_group, const UT_Array< GA_Breakpoint > &class_bkpts, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local frames for a list of breakpoint groupings. More...
 
GU_API void computePrimLocalOrigins (OriginType origin_type, const GEO_Detail &gdp, const GA_PrimitiveGroup *prim_group, const GA_OffsetArray &class_prims, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local origins for a list of primitive groupings. More...
 
GU_API void computePointLocalOrigins (OriginType origin_type, const GEO_Detail &gdp, const GA_PointGroup *point_group, const GA_OffsetArray &class_points, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local origins for a list of point groupings. More...
 
GU_API void computeEdgeLocalOrigins (OriginType origin_type, const GEO_Detail &gdp, const GA_EdgeGroup &edge_group, const UT_Array< GA_Edge > &class_edges, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local origins for a list of edge groupings. More...
 
GU_API void computeBreakpointLocalOrigins (OriginType origin_type, const GEO_Detail &gdp, const GA_BreakpointGroup *bkpt_group, const UT_Array< GA_Breakpoint > &class_bkpts, const UT_ExintArray &class_start_indices, UT_Array< Frame > &class_frames)
 Compute the local origins for a list of breakpoint groupings. More...
 

Enumeration Type Documentation

Different types of local frames that can be computed for components.

Enumerator
LOCALFRAME_COMPONENT 
LOCALFRAME_NMLANDVEC 
LOCALFRAME_OBB 

Definition at line 35 of file GU_LocalFrame.h.

Different types of local origins that can be computed for components.

Enumerator
LOCALORIGIN_BBOX 

Definition at line 42 of file GU_LocalFrame.h.

Function Documentation

GU_API void GU_LocalFrame::computeBreakpointLocalFrames ( const ComputeParms &  parms,
const GEO_Detail gdp,
const GA_BreakpointGroup bkpt_group,
const UT_Array< GA_Breakpoint > &  class_bkpts,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local frames for a list of breakpoint groupings.

GU_API void GU_LocalFrame::computeBreakpointLocalOrigins ( OriginType  origin_type,
const GEO_Detail gdp,
const GA_BreakpointGroup bkpt_group,
const UT_Array< GA_Breakpoint > &  class_bkpts,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local origins for a list of breakpoint groupings.

GU_API void GU_LocalFrame::computeEdgeLocalFrames ( const ComputeParms &  parms,
const GEO_Detail gdp,
const GA_EdgeGroup edge_group,
const UT_Array< GA_Edge > &  class_edges,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local frames for a list of edge groupings.

GU_API void GU_LocalFrame::computeEdgeLocalOrigins ( OriginType  origin_type,
const GEO_Detail gdp,
const GA_EdgeGroup edge_group,
const UT_Array< GA_Edge > &  class_edges,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local origins for a list of edge groupings.

GU_API void GU_LocalFrame::computePointLocalFrames ( const ComputeParms &  parms,
const GEO_Detail gdp,
const GA_PointGroup point_group,
const GA_OffsetArray class_points,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local frames for a list of point groupings.

GU_API void GU_LocalFrame::computePointLocalOrigins ( OriginType  origin_type,
const GEO_Detail gdp,
const GA_PointGroup point_group,
const GA_OffsetArray class_points,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local origins for a list of point groupings.

GU_API void GU_LocalFrame::computePrimLocalFrames ( const ComputeParms &  parms,
const GEO_Detail gdp,
const GA_PrimitiveGroup prim_group,
const GA_OffsetArray class_prims,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local frames for a list of primitive groupings.

TODO: Return status flags indicating if something went wrong during the computation. For example, failed to compute a good normal.

GU_API void GU_LocalFrame::computePrimLocalOrigins ( OriginType  origin_type,
const GEO_Detail gdp,
const GA_PrimitiveGroup prim_group,
const GA_OffsetArray class_prims,
const UT_ExintArray class_start_indices,
UT_Array< Frame > &  class_frames 
)

Compute the local origins for a list of primitive groupings.