HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
GEO_Convex.h File Reference
#include <GA/GA_Types.h>
#include <UT/UT_Array.h>
#include <UT/UT_Convex.h>
#include <UT/UT_OBBox.h>
#include <UT/UT_Vector3.h>
#include <SYS/SYS_Inline.h>
+ Include dependency graph for GEO_Convex.h:

Go to the source code of this file.

Classes

struct  GEO_TriOrQuadT< T >
 
class  GEO_TriOrQuadWrapper< POLY >
 

Macros

#define __GEO_Convex__
 

Typedefs

typedef GEO_TriOrQuadT< GA_SizeGEO_TriOrQuad
 

Functions

template<typename POLY >
bool GEOconvexPoly (const POLY &poly, UT_Array< GEO_TriOrQuad > &output, bool keepnonconvexquads=true, bool triangulate=false)
 
template<typename POLY >
SYS_FORCE_INLINE bool GEOtriangulatePoly (const POLY &poly, UT_Array< GEO_TriOrQuad > &output)
 

Macro Definition Documentation

#define __GEO_Convex__

Definition at line 14 of file GEO_Convex.h.

Typedef Documentation

Definition at line 48 of file GEO_Convex.h.

Function Documentation

template<typename POLY >
bool GEOconvexPoly ( const POLY &  poly,
UT_Array< GEO_TriOrQuad > &  output,
bool  keepnonconvexquads = true,
bool  triangulate = false 
)

Convexes polygon into tris and quads. Writes to output if polygon needed convexing. Returns true if output was written-to. Mantra keeps non-convex quads and doesn't triangulate, hence the default.

Definition at line 141 of file GEO_Convex.h.

template<typename POLY >
SYS_FORCE_INLINE bool GEOtriangulatePoly ( const POLY &  poly,
UT_Array< GEO_TriOrQuad > &  output 
)

Triangulates polygon. Writes to output if polygon had more than 3 vertices. Returns true if output was written-to.

Definition at line 211 of file GEO_Convex.h.