Houdini Engine 7.0
|
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... | |
Functions for working with curves
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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | The part id. |
[out] | counts_array | The number of cvs each curve contains |
[in] | start | The index of the first curve. |
[in] | length | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | The part id. |
[out] | info | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | The part id. |
[out] | knots_array | The knots of each curve will be returned in this array. |
[in] | start | The index of the first curve. |
[in] | length | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | The part id. |
[out] | orders_array | The order of each curve will be returned in this array. |
[in] | start | The index of the first curve. |
[in] | length | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | Currently unused. Input asset geos are assumed to have only one part. |
[in] | counts_array | The number of cvs each curve contains. |
[in] | start | The index of the first curve. |
[in] | length | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | Currently unused. Input asset geos are assumed to have only one part. |
[in] | info | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | Currently unused. Input asset geos are assumed to have only one part. |
[in] | knots_array | The knots of each curve. |
[in] | start | The index of the first curve. |
[in] | length | The 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.
[in] | session | The session of Houdini you are interacting with. See Sessions for more on sessions. Pass NULL to just use the default in-process session. |
[in] | node_id | The node id. |
[in] | part_id | Currently unused. Input asset geos are assumed to have only one part. |
[in] | orders_array | The orders of each curve. |
[in] | start | The index of the first curve. |
[in] | length | The number of curves' orders to retrieve. |