AnyCAD Rapid API 2023
Help you to create a better world!
ShapeBuilder Class Reference

Static Public Member Functions

static TopoShape MakeCompound (TopoShapeList shapes)
 
static TopoShape MakeSphere (GPnt center, double radius)
 
static TopoShape MakeBox (GAx2 ax, double dx, double dy, double dz)
 
static TopoShape MakeCylinder (GAx2 ax, double radius, double height, double angle)
 
static TopoShape MakeCone (GAx2 ax, double radius, double radiusTop, double height, double angle)
 
static TopoShape MakeTorus (double majorR, double minorR, GAx2 ax, double closeAngle)
 
static TopoShape MakeTube (GPnt center, GDir dir, double innerRadius, double thickness, double len)
 
static TopoShape MakePyramid (GAx2 ax, long number, double radius, double height)
 
static TopoShape MakeHalfSpace (TopoShape face, GPnt refPoint)
 
static TopoShape MakeHalfSpace (GPnt point, GDir dir)
 
static TopoShape MakeSolid (TopoShape compound)
 
static TopoShape FixSolid (TopoShape solid)
 
static TopoShape FixShape (TopoShape shape)
 

Detailed Description

<>
ShapeBuilder

Method to build basic primitive shapes.

Member Function Documentation

◆ FixShape()

static TopoShape ShapeBuilder.FixShape ( TopoShape  shape)
static

Fix the shape.

Parameters
shapethe shape.
Returns
the new Shape.

◆ FixSolid()

static TopoShape ShapeBuilder.FixSolid ( TopoShape  solid)
static

Fix the potentional issues of the solid.

Parameters
solidthe input solid.
Returns
the shape.

◆ MakeBox()

static TopoShape ShapeBuilder.MakeBox ( GAx2  ax,
double  dx,
double  dy,
double  dz 
)
static

Make box

Parameters
axthe position and direction of the box.
dxx length
dyy length
dzz length
Returns
the shape.

◆ MakeCompound()

static TopoShape ShapeBuilder.MakeCompound ( TopoShapeList  shapes)
static

Make compound shape for the input shapes.

Parameters
shapesthe shape list.
Returns
the new shape.

◆ MakeCone()

static TopoShape ShapeBuilder.MakeCone ( GAx2  ax,
double  radius,
double  radiusTop,
double  height,
double  angle 
)
static

Make cone shape.

Parameters
axthe position and direction of the cone.
radiusthe botton radius
radiusTopthe top radius. if 0.
heightthe height value.
anglethe opening angle with rad.
Returns

◆ MakeCylinder()

static TopoShape ShapeBuilder.MakeCylinder ( GAx2  ax,
double  radius,
double  height,
double  angle 
)
static

Make the cylinder shape.

Parameters
axthe position and direction of the cylinder.
radiusthe radius value.
heightthe height of the cylindeer.
anglethe opening angle with rad. closed if 0.
Returns
the cylinder.

◆ MakeHalfSpace()

static TopoShape ShapeBuilder.MakeHalfSpace ( TopoShape  face,
GPnt  refPoint 
)
static

Make half space. Not for visualization.

Parameters
face
refPoint
Returns
the shape.

◆ MakePyramid()

static TopoShape ShapeBuilder.MakePyramid ( GAx2  ax,
long  number,
double  radius,
double  height 
)
static

Make pyramid.

Parameters
axthe local axis for position and direction.
numberthe number of the ridges.
radiusthe radius.
heightthe height.
Returns
the solid.

◆ MakeSolid()

static TopoShape ShapeBuilder.MakeSolid ( TopoShape  compound)
static

Make solid from compound of face.

Parameters
compoundthe faces
Returns
new solid

◆ MakeSphere()

static TopoShape ShapeBuilder.MakeSphere ( GPnt  center,
double  radius 
)
static

Make sphere.

Parameters
centerthe center of the sphere.
radiusthe radius value fo the shpere.
Returns
the shape.

◆ MakeTorus()

static TopoShape ShapeBuilder.MakeTorus ( double  majorR,
double  minorR,
GAx2  ax,
double  closeAngle 
)
static

Make torus shape.

Parameters
majorRthe outing radius.
minorRthe inner radius.
axthe position and direction.
closeAnglethe closed angle.
Returns
the shape.

◆ MakeTube()

static TopoShape ShapeBuilder.MakeTube ( GPnt  center,
GDir  dir,
double  innerRadius,
double  thickness,
double  len 
)
static

Make tube shape.

Parameters
centerthe center value.
dirthe direction.
innerRadiusthe inner radius.
thicknessthe thickness.
lenthe length.
Returns
the shape.