|
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) |
|
<>
ShapeBuilder
Method to build basic primitive shapes.
◆ FixShape()
Fix the shape.
- Parameters
-
- Returns
- the new Shape.
◆ FixSolid()
Fix the potentional issues of the solid.
- Parameters
-
- Returns
- the shape.
◆ MakeBox()
static TopoShape ShapeBuilder.MakeBox |
( |
GAx2 |
ax, |
|
|
double |
dx, |
|
|
double |
dy, |
|
|
double |
dz |
|
) |
| |
|
static |
Make box
- Parameters
-
ax | the position and direction of the box.
|
dx | x length
|
dy | y length
|
dz | z length
|
- Returns
- the shape.
◆ MakeCompound()
Make compound shape for the input shapes.
- Parameters
-
- Returns
- the new shape.
◆ MakeCone()
static TopoShape ShapeBuilder.MakeCone |
( |
GAx2 |
ax, |
|
|
double |
radius, |
|
|
double |
radiusTop, |
|
|
double |
height, |
|
|
double |
angle |
|
) |
| |
|
static |
Make cone shape.
- Parameters
-
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.
|
- Returns
◆ MakeCylinder()
static TopoShape ShapeBuilder.MakeCylinder |
( |
GAx2 |
ax, |
|
|
double |
radius, |
|
|
double |
height, |
|
|
double |
angle |
|
) |
| |
|
static |
Make the cylinder shape.
- Parameters
-
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.
|
- Returns
- the cylinder.
◆ MakeHalfSpace()
Make half space. Not for visualization.
- Parameters
-
- Returns
- the shape.
◆ MakePyramid()
static TopoShape ShapeBuilder.MakePyramid |
( |
GAx2 |
ax, |
|
|
long |
number, |
|
|
double |
radius, |
|
|
double |
height |
|
) |
| |
|
static |
Make pyramid.
- Parameters
-
ax | the local axis for position and direction.
|
number | the number of the ridges.
|
radius | the radius.
|
height | the height.
|
- Returns
- the solid.
◆ MakeSolid()
Make solid from compound of face.
- Parameters
-
- Returns
- new solid
◆ MakeSphere()
static TopoShape ShapeBuilder.MakeSphere |
( |
GPnt |
center, |
|
|
double |
radius |
|
) |
| |
|
static |
Make sphere.
- Parameters
-
center | the center of the sphere.
|
radius | the 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
-
majorR | the outing radius.
|
minorR | the inner radius.
|
ax | the position and direction.
|
closeAngle | the 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
-
center | the center value.
|
dir | the direction.
|
innerRadius | the inner radius.
|
thickness | the thickness.
|
len | the length.
|
- Returns
- the shape.