|
Action:
|
Creates an elliptical cone or cylinder of given height and radii.
|
|
|
Prototype:
|
outcome api_make_frustum (
|
|
|
double height,
|
// height
|
|
|
double rad1,
|
// radius in x-direction
|
|
|
|
|
// at base
|
|
|
double rad2,
|
// radius in y-direction
|
|
|
|
|
// at base
|
|
|
double top,
|
// radius in x-direction
|
|
|
|
|
// at top
|
|
|
BODY*& body,
|
// created frustum
|
|
|
|
|
// returned
|
|
|
AcisOptions* ao = NULL
|
// acis options
|
|
|
);
|
|
|
Includes:
|
#include "kernel/acis.hxx"
|
|
#include "constrct/kernapi/api/cstrapi.hxx"
|
|
#include "kernel/kernapi/api/api.hxx"
|
|
#include "kernel/kerndata/top/body.hxx"
|
|
#include "kernel/kernapi/api/acis_options.hxx"
|
|
|
Description:
|
This API creates an elliptical cone or cylinder of given height and radii.
|
|
|
Centers the frustum at the origin, with main axis along the
z-axis and one axis (major or minor) of its cross-section in the
z = 0 plane along the x-axis.
|
|
|
All arguments must be greater than
SPAresabs.
|
|
|
Errors:
|
Either
height,
rad1, or
rad2 is not greater than
SPAresabs or
top is not greater than or equal to 0.
|
|
|
Library:
|
constrct
|
|
|
Filename:
|
cstr/constrct/kernapi/api/cstrapi.hxx
|
|
|
Effect:
|
Changes model
|