HC_Show_NURBS_Curve
-
void
HC_Show_NURBS_Curve(Key key, int *degree, int *cp_count, Point points[], float weights[], float knots[], float *start_u, float *end_u) - void HC_Show_NURBS_Curve(Key key, int degree, int cp_count, Point points, float weights, float knots, float start_u, float end_u)
Returns the previous definition of a NURBS curve, as referenced by a key.
Show_NURBS_Curve() reads back the values currently stored in a NURBS curve. The key for the NURBS curve might come from Show_Selection_Element() or Find_Contents() , or it might have been saved by your program when the NURBS curve was created (via Insert_NURBS_Curve() ).
Use Show_NURBS_Curve_Size() to determine how large the points, weights and knots arrays are going to be, before you actually call Show_NURBS_Curve() .
The size of the weights array will always be equal to cp_count
Flagging enabled events causes confusion when a window with events enabled becomes invisible. The work around is to disable events before setting the visibility to off.
HC_Edit_NURBS_Curve, HC_Show_Selection_Element, HC_Insert_NURBS_Curve, HC_Get_Selection, HC_Begin_Contents_Search, HC_Compute_Coordinates.Parameters
key: Unique numeric identifier pointing to a NURBS curve in the database.
degree: Degree of the curve. Returned to caller. Passed by reference always. Can be NULL if not interested.
cp_count: Number of valid points in points. Returned to caller. Passed by reference always. Can be NULL if not interested.
points: Vector of x-y-z triplets for the coordinates of the control . (A simple N x 3 array may also be used.) Returned to caller Passed by reference always. Can be NULL if not interested.
weights: Control point weights. Returned to caller. Passed by reference always. Can be NULL if not interested.
knots: Knot sequence. Returned to caller. Passed by reference always. Can be NULL if not interested.
start_u: Start parameter. Returned to caller. Passed by reference always. Can be NULL if not interested.
end_u: End parameter. Returned to caller. Passed by reference always. Can be NULL if not interested.