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

 

 


SAA_splineEdit

SAA_splineEditExtended()

Edits the geometry and topology of a spline.

These functions attempt to preserve cluster and envelope information. You use geomtype and shapeid to specify a reference spline. The function compares the geometry and topology of the reference spline with that of the new spline defined by type, closed, nbCtrlVertices, and ctrlVertices.

When matching vertices are found, cluster and envelope information is copied from the reference vertices to the new vertices. For new vertices that have no match in the reference model, cluster and envelope information is set to default values.

These functions do not preserve local material assignments or shape animation (the new geometry is copied to all shape keys).

SAA_splineEditExtended() replaces SAA_splineEdit, which remains in the API for backwards compatibility. SAA_splineEdit now calls SAA_splineEditExtended() with geomtype set to SAA_GEOM_ORIGINAL and shapeid set to 0.

set scene [SAA_AllocScene]

set spline [SAA_AllocElem]

.

.

set closed 0 or 1

set ctrlVertices [ SAA_AllocDVector $nbCtrlVertices]

SAA_splineEdit  $scene $spline $SAA_Constants(SAA_SPL_xxx) $closed $nbCtrlVertices $ctrlVertices 


set scene [SAA_AllocScene]
set spline [SAA_AllocElem]
.
.
set shapeid [get_shape_id] or "NULL" set type [SAA_AllocSplineType]
set closed 0 or 1
set ctrlVertices [ SAA_AllocDVector $nbCtrlVertices]
SAA_splineEditExtended $scene $spline $geomtype $shapeid $SAA_Constants(SAA_SPL_xxx) $closed $nbCtrlVertices $ctrlVertices

spline
A spline.
geomtype
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.
shapeid
Identifies the shape if the geometry type is SAA_GEOM_SHAPE. To get the shape IDs, use SAA_modelGetNbShapes.
type
Type of spline to create. Possible spline types are:
  • SAA_SPL_LINEAR
  • SAA_SPL_BEZIER
  • SAA_SPL_BSPLINE
  • SAA_SPL_CARDINAL
closed
Specifies whether the spine is closed (1) or open (0).
nbCtrlVertices

Number of control vertices in the spline.
ctrlVertices

Array of control vertices.

Return Value


Return correct usage if incorrect parameters are passed


SAA Index ] Examples SAA calls index ]

copyright Video-Collage Inc.