All Frameworks  Class Hierarchy  This Framework  Indexes

SPAcstr Global Function api_wiggle


outcome api_wiggle(double width,
double depth,
double height,
int low_v_type,
int high_v_type,
int low_u_type,
int high_u_type,
logical height_given,
BODY*& bodyOut,
AcisOptions* ao= NULL )
Creates a "wiggle" body for testing purposes.

Role: This API creates a body that contains an "interesting" spline patch for testing purposes.

Construct four splines for the edges. Each is a cubic B-spline with two spans, passing through three colinear points. The splines' shapes are specified by the integer type argument where:

0 is a straight line
1 is an "s" shape, starting at low parameter value with a 45 degree upward (+ve z) tangent, and ending at high parameter in the same direction.
2 is a double hump, starting going upwards and ending downwards.
-1 is the same as 1, but inverted.
-2 is the same as 2, but inverted.

Errors: Width, depth, or height not greater than zero.
 Invalid spline type specified.

Effect: Changes model

Journal: Not Available

Parameters:
width
width of wiggle.
depth
depth of wiggle.
height
height of wiggle.
low_v_type
spline shape.
high_v_type
spline shape.
low_u_type
spline shape.
high_u_type
spline shape.
height_given
FALSE if should have no height.
bodyOut
wiggle body returned.
ao
acis options.

This object is included in the file: cstrapi.hxx

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