AnyCAD Rapid API 2023
Help you to create a better world!
载入中...
搜索中...
未找到
ShapeBuilder类 参考

静态 Public 成员函数

static TopoShape MakeCompound (TopoShapeList shapes)
 
static TopoShape MakeSphere (GPnt center, double radius)
 
static TopoShape MakeSphere (GAx2 ax, double radius, double angle1)
 
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 angle)
 
static TopoShape MakeTorus (double majorR, double minorR, GAx2 ax)
 
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 TopoShapeList MakeSolid (TopoShapeList faceList, boolean avoidInternals)
 

详细描述

<>
ShapeBuilder 用于创建三维基本体.

成员函数说明

◆ MakeBox()

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

Make box

参数
axthe position and direction of the box.
dxx length
dyy length
dzz length
返回
the shape.

◆ MakeCompound()

static TopoShape ShapeBuilder.MakeCompound ( TopoShapeList  shapes)
static

Make compound shape for the input shapes.

参数
shapesthe shape list.
返回
the new shape.

◆ MakeCone()

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

Make cone shape.

参数
axthe position and direction of the cone.
radiusthe botton radius
radiusTopthe top radius. if 0.
heightthe height value.
anglethe opening angle with rad.
返回

◆ MakeCylinder()

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

Make the cylinder shape.

参数
axthe position and direction of the cylinder.
radiusthe radius value.
heightthe height of the cylindeer.
anglethe opening angle with rad. closed if 0.
返回
the cylinder.

◆ MakeHalfSpace()

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

Make half space. Not for visualization.

参数
face
refPoint
返回
the shape.

◆ MakePyramid()

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

Make pyramid.

参数
axthe local axis for position and direction.
numberthe number of the ridges.
radiusthe radius.
heightthe height.
返回
the solid.

◆ MakeSolid() [1/2]

static TopoShape ShapeBuilder.MakeSolid ( TopoShape  compound)
static

Make solid from compound of face.

参数
compoundthe faces
返回
new solid

◆ MakeSolid() [2/2]

static TopoShapeList ShapeBuilder.MakeSolid ( TopoShapeList  faceList,
boolean  avoidInternals 
)
static

加多个面创建Solid

参数
faceList面的列表
avoidInternals是否避免构造内部的环
返回
构造好的体对象列表

◆ MakeSphere() [1/2]

static TopoShape ShapeBuilder.MakeSphere ( GAx2  ax,
double  radius,
double  angle1 
)
static

创建球截形

参数
ax
radius半径
angle1定义球截形的角度 0 - 2PI
返回

◆ MakeSphere() [2/2]

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

Make sphere.

参数
centerthe center of the sphere.
radiusthe radius value fo the shpere.
返回
the shape.

◆ MakeTorus() [1/2]

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

Make torus shape.

参数
majorRDistance from the center of the pipe to the center of the torus.
minorRRadius of the pipe.
axthe position and direction.
返回
the shape.

◆ MakeTorus() [2/2]

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

Make torus shape.

参数
majorRDistance from the center of the pipe to the center of the torus.
minorRRadius of the pipe.
axthe position and direction.
anglethe closed angle.
返回
the shape.

◆ MakeTube()

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

Make tube shape.

参数
centerthe center value.
dirthe direction.
innerRadiusthe inner radius.
thicknessthe thickness.
lenthe length.
返回
the shape.