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

Trim loops specified by a number of individual NURBS curves. More...

#include <GT_TrimNuCurves.h>

Public Member Functions

 GT_TrimNuCurves ()
 Default constructor. More...
 
 GT_TrimNuCurves (const GT_TrimNuCurves &src)
 Copy constructor. More...
 
 GT_TrimNuCurves (const GT_DataArrayHandle &loop_counts, const GT_DataArrayHandle &curve_counts, const GT_DataArrayHandle &curve_orders, const GT_DataArrayHandle &knots, const GT_DataArrayHandle &min, const GT_DataArrayHandle &max, const GT_DataArrayHandle &uv)
 
 ~GT_TrimNuCurves ()
 
bool isValid () const
 
GT_Size getCurveCount () const
 Return the total number of segments. More...
 
GT_Size getCurveCount (int loop) const
 
GT_Size getCurveOffset (int loop) const
 
GT_Size getVertexCount () const
 Return the number of cv's. More...
 
GT_Size getVertexCount (GT_Offset curve) const
 Return the number of vertices for the Nth curve. More...
 
int getOrder (GT_Offset curve) const
 Get the order for the given curve. More...
 
bool save (UT_JSONWriter &w) const
 
void dump () const
 
void harden ()
 Harden all arrays. More...
 
const GT_CountArraygetLoopCountArray () const
 
const GT_CountArraygetCurveCountArray () const
 
const GT_DataArrayHandlegetOrders () const
 
const GT_DataArrayHandlegetKnots () const
 
const GT_DataArrayHandlegetMin () const
 
const GT_DataArrayHandlegetMax () const
 
const GT_DataArrayHandlegetUV () const
 

Detailed Description

Trim loops specified by a number of individual NURBS curves.

Definition at line 22 of file GT_TrimNuCurves.h.

Constructor & Destructor Documentation

GT_TrimNuCurves::GT_TrimNuCurves ( )

Default constructor.

GT_TrimNuCurves::GT_TrimNuCurves ( const GT_TrimNuCurves src)

Copy constructor.

GT_TrimNuCurves::GT_TrimNuCurves ( const GT_DataArrayHandle loop_counts,
const GT_DataArrayHandle curve_counts,
const GT_DataArrayHandle curve_orders,
const GT_DataArrayHandle knots,
const GT_DataArrayHandle min,
const GT_DataArrayHandle max,
const GT_DataArrayHandle uv 
)

The loop_counts array is a list of the number of curves per loop. For example, a trim loop may be made of multiple curves.

The curve_counts array is a list of the number of vertices in each curve. The array should be sum(curve_counts) entries long (one entry for each individual curve).

The curve_orders array is a list of the order of the NURBS curves for each curve. The array should be sum(curve_counts) entries long (one entry for each individual curve).

The knots array is a single array storing the knots of the curves concatenated together. The array should be sum(curve_orders) + sum(vertex_counts) entries long.

The min and max arrays represent the basis extents for each curve. The arrays should be sum(curve_counts) entries long (one for each individual curve).

The uv array is the list of point positions, either 2D (non-rational) or 3D (rational). There should be sum(vertex_counts) uv positions.

GT_TrimNuCurves::~GT_TrimNuCurves ( )

Member Function Documentation

void GT_TrimNuCurves::dump ( ) const
GT_Size GT_TrimNuCurves::getCurveCount ( ) const
inline

Return the total number of segments.

Definition at line 63 of file GT_TrimNuCurves.h.

GT_Size GT_TrimNuCurves::getCurveCount ( int  loop) const
inline

Definition at line 64 of file GT_TrimNuCurves.h.

const GT_CountArray& GT_TrimNuCurves::getCurveCountArray ( ) const
inline

Accessors

Definition at line 82 of file GT_TrimNuCurves.h.

GT_Size GT_TrimNuCurves::getCurveOffset ( int  loop) const
inline

Definition at line 66 of file GT_TrimNuCurves.h.

const GT_DataArrayHandle& GT_TrimNuCurves::getKnots ( ) const
inline

Accessors

Definition at line 84 of file GT_TrimNuCurves.h.

const GT_CountArray& GT_TrimNuCurves::getLoopCountArray ( ) const
inline

Accessors

Definition at line 81 of file GT_TrimNuCurves.h.

const GT_DataArrayHandle& GT_TrimNuCurves::getMax ( ) const
inline

Accessors

Definition at line 86 of file GT_TrimNuCurves.h.

const GT_DataArrayHandle& GT_TrimNuCurves::getMin ( ) const
inline

Accessors

Definition at line 85 of file GT_TrimNuCurves.h.

int GT_TrimNuCurves::getOrder ( GT_Offset  curve) const
inline

Get the order for the given curve.

Definition at line 76 of file GT_TrimNuCurves.h.

const GT_DataArrayHandle& GT_TrimNuCurves::getOrders ( ) const
inline

Accessors

Definition at line 83 of file GT_TrimNuCurves.h.

const GT_DataArrayHandle& GT_TrimNuCurves::getUV ( ) const
inline

Accessors

Definition at line 87 of file GT_TrimNuCurves.h.

GT_Size GT_TrimNuCurves::getVertexCount ( ) const
inline

Return the number of cv's.

Definition at line 70 of file GT_TrimNuCurves.h.

GT_Size GT_TrimNuCurves::getVertexCount ( GT_Offset  curve) const
inline

Return the number of vertices for the Nth curve.

Definition at line 73 of file GT_TrimNuCurves.h.

void GT_TrimNuCurves::harden ( )

Harden all arrays.

bool GT_TrimNuCurves::isValid ( void  ) const
inline

Definition at line 60 of file GT_TrimNuCurves.h.

bool GT_TrimNuCurves::save ( UT_JSONWriter w) const

Save the primitive to a JSON stream. The default method does nothing and returns false.


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