|
SAA_modelSetVertices
Sets the vertices of a model.
set scene [SAA_AllocScene]
set model [SAA_AllocElem]
.
.
.
set shape_id [get_shape_id] or "NULL"
set nb_vertices [get_number_of_vertices_in_model]
set vertices [ SAA_AllocDVector $nb_vertices]
SAA_modelSetVertices $scene $model $SAA_constants(SAA_GEOM_xxx) $shape_id $nb_vertices $vertices
scene
- Scene containing the model.
model
- A model.
gtype
- Specifies the geometry type:
SAA_GEOM_ORIGINAL for the original non-deformed geometry.
SAA_GEOM_DEFORMED for the deformed geometry (if any deformation is
applied).
SAA_GEOM_SHAPE to access shapes, if any.
shape_id
- Identifies the shape if the geometry type is
SAA_GEOM_SHAPE. To get the
shape IDs, use SAA_modelGetNbShapes.
nb_vertices
- Number of vertices. You get this value by calling
SAA_modelGetNbVertices.
vertices
- An array of vertices.
Return Value
Return correct usage if incorrect parameters are passed
|