|
Action:
|
Gets the deformable model's
elem_count values and returns 0 for success or an error.
|
|
|
Prototype:
|
void DM_get_elem_count (
|
|
|
int& rtn_err,
|
// out: 0=success
|
|
|
|
|
// or negative err code
|
|
|
DS_dmod* dmod,
|
// in: dmod to be queried
|
|
|
int& elem_count,
|
// out: total dmod elem
|
|
|
|
|
// count
|
|
|
int& u_span_count,
|
// out: span count in
|
|
|
|
|
// u_direction
|
|
|
int& v_span_count,
|
// out: span count in
|
|
|
|
|
// v_direction (only set
|
|
|
|
|
// for surfaces)
|
|
|
SDM_options* sdmo
|
// in:SDM_options pointer
|
|
|
|
= NULL
|
//
|
|
|
);
|
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "dshusk/dskernel/dmapi.hxx"
|
|
#include "dshusk/dskernel/dsdmod.hxx"
|
|
#include "dshusk/dskernel/sdm_options.hxx"
|
|
|
Description:
|
Modifies
elem_count,
u_span_count,
v_span_count.
|
|
|
Returns the deformable model's
elem_count. Places the deformable model's total
elem_count in
elem_count. For tensor product deformable models (like B-splines and NURBs) places the number
u direction spans in the
u_span_count and the number of
v-direction spans in the
v_span_count.
v_span_count is not set when the input deformable model is a deformable curve.
|
|
|
Errors:
|
DM_NULL_INPUT_PTR
|
|
The deformable model cannot be
NULL on entry.
|
|
|
Library:
|
dshusk
|
|
|
Filename:
|
ds/dshusk/dskernel/dmapi.hxx
|
|
|
Effect:
|
Changes model
|