All Frameworks  Class Hierarchy  This Framework  Indexes

SPAds Global Function DM_set_default_shape


void DM_set_default_shape(int& rtn_err,
DS_dmod* dmod,
int shape_flag,
int walk_flag=0,
SDM_options* sdmo=NULL)
Sets the deformable model's default shape and returns 0 for success or an error.

Role: 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.

Effect: Changes model

Parameters:
rtn_err
out: 0=success or negative err code.
dmod
in: dmod to modify.
shape_flag
in: 0=disable default shapes 1=set current shape as default shape.
walk_flag
in: specify how deep to go 0=dmod only, 1=dmod and offspring 2=dmod, siblings, and offspring..
sdmo
in:SDM_options pointer.

This object is included in the file: dmapi.hxx

Copyright (c) 1989-2007 by Spatial Corp. All rights reserved.