|
Action:
|
Sets the deformable model's default shape and returns 0 for success or an error.
|
|
|
Prototype:
|
void DM_set_default_shape (
|
|
|
int& rtn_err,
|
// out: 0=success
|
|
|
|
|
// or negative err code
|
|
|
DS_dmod* dmod,
|
// in: dmod to modify
|
|
|
int shape_flag,
|
// in: 0=disable
|
|
|
|
|
// default shapes
|
|
|
|
|
// 1=set current shape as
|
|
|
|
|
// default shape
|
|
|
int walk_flag
|
// in: specify how deep
|
|
|
|
= 0,
|
// to go
|
|
|
|
|
// 0=dmod only,
|
|
|
|
|
// 1=dmod and offspring
|
|
|
|
|
// 2=dmod, siblings,
|
|
|
|
|
// and offspring.
|
|
|
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
deformable model->dmo_default_shape
|
|
|
Sets the deformable model's resistance to displacement default shape values. A
walk_flag value of 0 specifies that just the deformable model is modified, a
walk_flag value of 1 specifies that the deformable model and all its offspring are modified, and a value of 2 specifies that the deformable model, its siblings, and all of their offspring are modified.
|
|
|
Errors:
|
DM_NULL_INPUT_PTR
|
|
The deformable model cannot be NULL on entry.
|
|
|
|
DM_BAD_SHAPE_FLAG_VALUE
|
|
The default shape must be 0 or 1.
|
|
|
|
DM_BAD_WALK_FLAG_VALUE
|
|
The
walk_flag must be 0, 1 or 2.
|
|
|
Library:
|
dshusk
|
|
|
Filename:
|
ds/dshusk/dskernel/dmapi.hxx
|
|
|
Effect:
|
Changes model
|