|
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
- 参数
-
ax | the position and direction of the box.
|
dx | x length
|
dy | y length
|
dz | z length
|
- 返回
- the shape.
◆ MakeCompound()
Make compound shape for the input shapes.
- 参数
-
- 返回
- the new shape.
◆ MakeCone()
static TopoShape ShapeBuilder.MakeCone |
( |
GAx2 |
ax, |
|
|
double |
radius, |
|
|
double |
radiusTop, |
|
|
double |
height, |
|
|
double |
angle |
|
) |
| |
|
static |
Make cone shape.
- 参数
-
ax | the position and direction of the cone.
|
radius | the botton radius
|
radiusTop | the top radius. if 0.
|
height | the height value.
|
angle | the opening angle with rad.
|
- 返回
◆ MakeCylinder()
static TopoShape ShapeBuilder.MakeCylinder |
( |
GAx2 |
ax, |
|
|
double |
radius, |
|
|
double |
height, |
|
|
double |
angle |
|
) |
| |
|
static |
Make the cylinder shape.
- 参数
-
ax | the position and direction of the cylinder.
|
radius | the radius value.
|
height | the height of the cylindeer.
|
angle | the opening angle with rad. closed if 0.
|
- 返回
- the cylinder.
◆ MakeHalfSpace()
Make half space. Not for visualization.
- 参数
-
- 返回
- the shape.
◆ MakePyramid()
static TopoShape ShapeBuilder.MakePyramid |
( |
GAx2 |
ax, |
|
|
long |
number, |
|
|
double |
radius, |
|
|
double |
height |
|
) |
| |
|
static |
Make pyramid.
- 参数
-
ax | the local axis for position and direction.
|
number | the number of the ridges.
|
radius | the radius.
|
height | the height.
|
- 返回
- the solid.
◆ MakeSolid() [1/2]
Make solid from compound of face.
- 参数
-
- 返回
- new solid
◆ MakeSolid() [2/2]
加多个面创建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.
- 参数
-
center | the center of the sphere.
|
radius | the radius value fo the shpere.
|
- 返回
- the shape.
◆ MakeTorus() [1/2]
static TopoShape ShapeBuilder.MakeTorus |
( |
double |
majorR, |
|
|
double |
minorR, |
|
|
GAx2 |
ax |
|
) |
| |
|
static |
Make torus shape.
- 参数
-
majorR | Distance from the center of the pipe to the center of the torus.
|
minorR | Radius of the pipe.
|
ax | the position and direction.
|
- 返回
- the shape.
◆ MakeTorus() [2/2]
static TopoShape ShapeBuilder.MakeTorus |
( |
double |
majorR, |
|
|
double |
minorR, |
|
|
GAx2 |
ax, |
|
|
double |
angle |
|
) |
| |
|
static |
Make torus shape.
- 参数
-
majorR | Distance from the center of the pipe to the center of the torus.
|
minorR | Radius of the pipe.
|
ax | the position and direction.
|
angle | the closed angle.
|
- 返回
- the shape.
◆ MakeTube()
static TopoShape ShapeBuilder.MakeTube |
( |
GPnt |
center, |
|
|
GDir |
dir, |
|
|
double |
innerRadius, |
|
|
double |
thickness, |
|
|
double |
len |
|
) |
| |
|
static |
Make tube shape.
- 参数
-
center | the center value.
|
dir | the direction.
|
innerRadius | the inner radius.
|
thickness | the thickness.
|
len | the length.
|
- 返回
- the shape.