HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Curves

Functions

HAPI_DECL HAPI_GetCurveInfo (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, HAPI_CurveInfo *info)
 Retrieve any meta-data about the curves, including the curve's type, order, and periodicity. More...
 
HAPI_DECL HAPI_GetCurveCounts (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, int *counts_array, int start, int length)
 Retrieve the number of vertices for each curve in the part. More...
 
HAPI_DECL HAPI_GetCurveOrders (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, int *orders_array, int start, int length)
 Retrieve the orders for each curve in the part if the curve has varying order. More...
 
HAPI_DECL HAPI_GetCurveKnots (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, float *knots_array, int start, int length)
 Retrieve the knots of the curves in this part. More...
 
HAPI_DECL HAPI_SetCurveInfo (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, const HAPI_CurveInfo *info)
 Set meta-data for the curve mesh, including the curve type, order, and periodicity. More...
 
HAPI_DECL HAPI_SetCurveCounts (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, const int *counts_array, int start, int length)
 Set the number of vertices for each curve in the part. More...
 
HAPI_DECL HAPI_SetCurveOrders (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, const int *orders_array, int start, int length)
 Set the orders for each curve in the part if the curve has varying order. More...
 
HAPI_DECL HAPI_SetCurveKnots (const HAPI_Session *session, HAPI_NodeId node_id, HAPI_PartId part_id, const float *knots_array, int start, int length)
 Set the knots of the curves in this part. More...
 

Detailed Description

Functions for working with curves

Function Documentation

HAPI_DECL HAPI_GetCurveCounts ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
int counts_array,
int  start,
int  length 
)

Retrieve the number of vertices for each curve in the part.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idThe part id.
[out]counts_arrayThe number of cvs each curve contains
[in]startThe index of the first curve.
[in]lengthThe number of curves' counts to retrieve.
HAPI_DECL HAPI_GetCurveInfo ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
HAPI_CurveInfo info 
)

Retrieve any meta-data about the curves, including the curve's type, order, and periodicity.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idThe part id.
[out]infoThe curve info represents the meta-data about the curves, including the type, order, and periodicity.
HAPI_DECL HAPI_GetCurveKnots ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
float knots_array,
int  start,
int  length 
)

Retrieve the knots of the curves in this part.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idThe part id.
[out]knots_arrayThe knots of each curve will be returned in this array.
[in]startThe index of the first curve.
[in]lengthThe number of curves' knots to retrieve. The length of all the knots on a single curve is the order of that curve plus the number of vertices (see HAPI_GetCurveOrders(), and HAPI_GetCurveCounts()).
HAPI_DECL HAPI_GetCurveOrders ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
int orders_array,
int  start,
int  length 
)

Retrieve the orders for each curve in the part if the curve has varying order.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idThe part id.
[out]orders_arrayThe order of each curve will be returned in this array.
[in]startThe index of the first curve.
[in]lengthThe number of curves' orders to retrieve.
HAPI_DECL HAPI_SetCurveCounts ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
const int counts_array,
int  start,
int  length 
)

Set the number of vertices for each curve in the part.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idCurrently unused. Input asset geos are assumed to have only one part.
[in]counts_arrayThe number of cvs each curve contains.
[in]startThe index of the first curve.
[in]lengthThe number of curves' counts to set.
HAPI_DECL HAPI_SetCurveInfo ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
const HAPI_CurveInfo info 
)

Set meta-data for the curve mesh, including the curve type, order, and periodicity.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idCurrently unused. Input asset geos are assumed to have only one part.
[in]infoThe curve info represents the meta-data about the curves, including the type, order, and periodicity.
HAPI_DECL HAPI_SetCurveKnots ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
const float knots_array,
int  start,
int  length 
)

Set the knots of the curves in this part.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idCurrently unused. Input asset geos are assumed to have only one part.
[in]knots_arrayThe knots of each curve.
[in]startThe index of the first curve.
[in]lengthThe number of curves' knots to set. The length of all the knots on a single curve is the order of that curve plus the number of vertices (see HAPI_SetCurveOrders(), and HAPI_SetCurveCounts()).
HAPI_DECL HAPI_SetCurveOrders ( const HAPI_Session session,
HAPI_NodeId  node_id,
HAPI_PartId  part_id,
const int orders_array,
int  start,
int  length 
)

Set the orders for each curve in the part if the curve has varying order.

Parameters
[in]sessionThe session of Houdini you are interacting with. See HAPI_Sessions for more on sessions. Pass NULL to just use the default in-process session.
[in]node_idThe node id.
[in]part_idCurrently unused. Input asset geos are assumed to have only one part.
[in]orders_arrayThe orders of each curve.
[in]startThe index of the first curve.
[in]lengthThe number of curves' orders to retrieve.