| 
    HDK
    
   | 
 
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_CountArray & | getLoopCountArray () const | 
| const GT_CountArray & | getCurveCountArray () const | 
| const GT_DataArrayHandle & | getOrders () const | 
| const GT_DataArrayHandle & | getKnots () const | 
| const GT_DataArrayHandle & | getMin () const | 
| const GT_DataArrayHandle & | getMax () const | 
| const GT_DataArrayHandle & | getUV () const | 
Trim loops specified by a number of individual NURBS curves.
Definition at line 22 of file GT_TrimNuCurves.h.
| 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 | ( | ) | 
| void GT_TrimNuCurves::dump | ( | ) | const | 
      
  | 
  inline | 
Return the total number of segments.
Definition at line 63 of file GT_TrimNuCurves.h.
Definition at line 64 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 82 of file GT_TrimNuCurves.h.
Definition at line 66 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 84 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 81 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 86 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 85 of file GT_TrimNuCurves.h.
Get the order for the given curve.
Definition at line 76 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 83 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Accessors
Definition at line 87 of file GT_TrimNuCurves.h.
      
  | 
  inline | 
Return the number of cv's.
Definition at line 70 of file GT_TrimNuCurves.h.
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.
      
  | 
  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.