vcanim.gif (8357 bytes)SAA_meshGetEdges
Home ] Sales ] Products ] Services ] Support ] Downloads ]

 

 


SAA_meshGetEdges

Retrieves the edges in a mesh.

set scene [SAA_AllocScene]

set element [SAA_AllocElem]

set gtype [SAA_AllocGeomType]

.

.

.

shape_id [get_shape_id] or "NULL"

set edges [ SAA_AllocSubElem $nbEdges]


SAA_meshGetEdges  $scene $element $gtype $shape_id $nbEdges $edges

element
A mesh.
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.
nbEdges
Number of edges to retrieve.
To get the number of edges in a mesh, use SAA_meshGetNbEdges().
edges
Returns an array of edges.
The calling function is responsible for allocating this array. The required size is given by nbEdges.

Return Value


Return correct usage if incorrect parameters are passed
Returns an SI_ERR_WRONG_COUNT warning if nbEdge is not equal to the actual number of edges.

SAA_meshGetEdges still fills in the edges array with the requested number of edges. If nbEdge exceeds the actual number of edges, then SAA_meshGetEdges retrieves all edges.


SAA Index ] Examples SAA calls index ]

copyright Video-Collage Inc.