AnyCAD Rapid SDK 2022
The Rapid CAD SDK
Static Public Member Functions | List of all members
FeatureTool Class Reference

Static Public Member Functions

static TopoShape Extrude (TopoShape base, double height, GDir _dir)
 
static TopoShape Fillet (TopoShape shape, double radius)
 
static TopoShape Fillet (TopoShape shape, Uint32List edgeIdx, DoubleList radius)
 
static TopoShape Chamfer (TopoShape shape, double dis1, double dis2)
 
static TopoShape Chamfer (TopoShape shape, Uint32List edgeIdx, DoubleList dis1, DoubleList dis2)
 
static TopoShape Revol (TopoShape base, GAx1 ax, double angle)
 
static TopoShape Loft (TopoShapeList sketches, boolean bSolid, boolean bRuled, boolean bCheckCompatibility, double pres3d)
 
static TopoShape Loft (TopoShapeList sketches, boolean bSolid, boolean bCheckCompatibility)
 
static TopoShape Loft (TopoShape wireA, TopoShape wireB, boolean bSolid)
 
static TopoShape Loft (TopoShape wire, GPnt pt)
 
static TopoShape Thickness (TopoShape solid, double offset, Uint32List faceIdx)
 
static TopoShape OffsetWire (TopoShape wire, double offset, double altitude, EnumGeomJoinType jointType, boolean openning)
 
static TopoShape OffsetShape (TopoShape shape, double offset, EnumGeomJoinType jointType)
 
static TopoShape MiddlePath (TopoShape shape, TopoShape base1, TopoShape base2)
 
static TopoShape Evolved (TopoShape section, TopoShape path, EnumGeomJoinType joinType, boolean bSolid)
 
static TopoShape Sweep (TopoShape section, TopoShape path, EnumGeomFillTrihedron type)
 
static TopoShape SweepByEvolution (TopoShape section, TopoShape path, TopoShape evolutionSpline, boolean bSolid)
 
static TopoShape SweepByFrenet (TopoShape section, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid, boolean withContact, boolean withCorrection)
 
static TopoShape SweepByFrenet (TopoShape section, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid, boolean withContact)
 
static TopoShape SweepByFrenet (TopoShape section, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid)
 
static TopoShape SweepByFrenet2 (TopoShapeList sections, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid)
 
static TopoShape SweepBySections (TopoShapeList sections, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid)
 
static TopoShape SweepBySections (TopoShapeList sections, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid, boolean withContact, boolean withCorrection)
 
static TopoShape Defeaturing (TopoShape solid, TopoShapeList faceToRemove)
 
static TopoShape ExtendFace (TopoShape face, double extend)
 

Detailed Description

<>
ShapeBuilder

Method to build feature shapes.

Member Function Documentation

◆ Chamfer() [1/2]

static TopoShape FeatureTool.Chamfer ( TopoShape  shape,
double  dis1,
double  dis2 
)
static

Make chamfer for the all the edges of the shape.

Parameters
shapethe input shape.
dis1the chamfer length of side left.
dis2the chamfer length of side right.
Returns
the shape.

◆ Chamfer() [2/2]

static TopoShape FeatureTool.Chamfer ( TopoShape  shape,
Uint32List  edgeIdx,
DoubleList  dis1,
DoubleList  dis2 
)
static

Make chamfer for the specified edges of the shape.

Parameters
shapethe input solid.
edgeIdxthe edge indices to be filleted.
dis1the first values of chamfer length for each edge.
dis2the second values of chamfer length for each edge.
Returns
the new shape.

◆ Extrude()

static TopoShape FeatureTool.Extrude ( TopoShape  base,
double  height,
GDir  _dir 
)
static

Extrude shape. Make solid from face, sketch to face, point to line.

Parameters
basecan be face, wire sketch, line, or vertex.
heightthe length to extrude.
_dirthe direction of extruding.
Returns
the shape.

◆ Fillet() [1/2]

static TopoShape FeatureTool.Fillet ( TopoShape  shape,
double  radius 
)
static

Make fillet for all the egdes of the shape.

Parameters
shapethe input solid.
radiusthe fillet radius.
Returns
the new shape.

◆ Fillet() [2/2]

static TopoShape FeatureTool.Fillet ( TopoShape  shape,
Uint32List  edgeIdx,
DoubleList  radius 
)
static

Make fillet for the specified edges of the shape.

Parameters
shapethe input solid.
edgeIdxthe edge indices to be filleted.
radiusthe values of radius for each edge.
Returns
the new shape.

◆ Loft() [1/4]

static TopoShape FeatureTool.Loft ( TopoShape  wire,
GPnt  pt 
)
static

Loft with point

Parameters
wirethe base sketch
ptthe ending point
Returns
the shape.

◆ Loft() [2/4]

static TopoShape FeatureTool.Loft ( TopoShape  wireA,
TopoShape  wireB,
boolean  bSolid 
)
static

Make loft with two wires.

Parameters
wireAthe first wire.
wireBthe second wire.
bSolidif make solid.
Returns
the result.

◆ Loft() [3/4]

static TopoShape FeatureTool.Loft ( TopoShapeList  sketches,
boolean  bSolid,
boolean  bCheckCompatibility 
)
static

Make ruled surface for loft

Parameters
sketchesthe sections
bSolidtrue for solid
bCheckCompatibilitytrue to check.
Returns
the result.

◆ Loft() [4/4]

static TopoShape FeatureTool.Loft ( TopoShapeList  sketches,
boolean  bSolid,
boolean  bRuled,
boolean  bCheckCompatibility,
double  pres3d 
)
static

Make loft surface or solid

Parameters
sketchesthe sections
bSolidtrue for solid
bRuledtrue for ruled.
bCheckCompatibilitytrue to check.
pres3dthe presitioin.
Returns
the result.

◆ MiddlePath()

static TopoShape FeatureTool.MiddlePath ( TopoShape  shape,
TopoShape  base1,
TopoShape  base2 
)
static

Create the middle path for pipe-like shapes.

Parameters
shapethe shape, likes pipe.
base1the first face or wire of the pipe.
base2the second face or wire of the pip.
Returns
the middle path.

◆ OffsetWire()

static TopoShape FeatureTool.OffsetWire ( TopoShape  wire,
double  offset,
double  altitude,
EnumGeomJoinType  jointType,
boolean  openning 
)
static

Make offset wire for the input wire.

Parameters
wirethe input wire.
offsetthe offset value
altitudealtitude value.
jointTypejointing type.
openningclosed or openning.
Returns
the new shape.

◆ Revol()

static TopoShape FeatureTool.Revol ( TopoShape  base,
GAx1  ax,
double  angle 
)
static

Make evolved sweep topologies.
The result is a topology with a higher dimension:

  • Vertex -> Edge.
  • Edge -> Face.
  • Wire -> Shell.
  • Face -> Solid.
  • Shell -> CompSolid.
    Parameters
    basethe input shape
    axthe axis
    anglethe angle [0, 2*PI]
    Returns
    the revoled shape.

◆ Thickness()

static TopoShape FeatureTool.Thickness ( TopoShape  solid,
double  offset,
Uint32List  faceIdx 
)
static

Make thick shape for the input solid.

Parameters
solidthe input solid.
offsetthe offset value.
faceIdxthe face indices.
Returns