|
Action:
|
Creates a solid cylinder or cone given two positions on the axis.
|
|
|
Prototype:
|
outcome api_solid_cylinder_cone (
|
|
|
const SPAposition& pt1,
|
// position at bottom
|
|
|
const SPAposition& pt2,
|
// position at top
|
|
|
double major_radius,
|
// major radius at bottom
|
|
|
double minor_radius,
|
// minor radius at bottom
|
|
|
double top_radius,
|
// major radius at top
|
|
|
const SPAposition* xpt,
|
// position in direction
|
|
|
|
|
// of major axis or NULL
|
|
|
BODY*& cyl_or_cone,
|
// created cylinder or
|
|
|
|
|
// cone 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 "baseutil/vector/position.hxx"
|
|
#include "kernel/kernapi/api/acis_options.hxx"
|
|
|
Description:
|
This API creates a solid cylinder or cone. The cylinder or cone may be circular or elliptical.
|
|
|
For a circular cylinder or cone, specify the same values for
major_radius and
minor_radius. For an elliptical cylinder or cone, specify two different values.
|
|
|
For a cylinder, specify the same values for
top_radius and
major_radius. For a cone, specify two different values. When creating elliptical cones or cylinders, control the orientation of the major axis with
xpt. If
xpt is non-NULL, then
xpt projects onto the plane defined by
pt1 and the axis is along the major axis. If
xpt is
NULL, the system determines the orientation of the major axis from the active WCS.
|
|
|
Library:
|
constrct
|
|
|
Filename:
|
cstr/constrct/kernapi/api/cstrapi.hxx
|
|
|
Effect:
|
Changes model
|