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

静态 Public 成员函数

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 Fillet (TopoShape shape, Int32List edgeIdx, DoubleList radius)
 
static TopoShape FilletByEdges (TopoShape shape, Int32List edgeIdx, DoubleList radius)
 
static TopoShape Chamfer (TopoShape shape, double dis1, double dis2)
 
static TopoShape ChamferByBody (TopoShape shape, double dis1, double dis2)
 
static TopoShape Chamfer (TopoShape shape, Uint32List edgeIdx, DoubleList dis1, DoubleList dis2)
 
static TopoShape ChamferByEdges (TopoShape shape, Uint32List edgeIdx, DoubleList dis1, DoubleList dis2)
 
static TopoShape Revolve (TopoShape base, GAx1 ax, double angle)
 
static TopoShape Loft (TopoShapeList sketches, boolean bSolid, boolean bRuled, boolean bCheckCompatibility, double pres3d)
 
static TopoShape LoftBy (TopoShapeList sketches, boolean bSolid, boolean bRuled, boolean bCheckCompatibility, double pres3d)
 
static TopoShape Loft (TopoShapeList sketches, boolean bSolid, boolean bCheckCompatibility)
 
static TopoShape LoftByRule (TopoShapeList sketches, boolean bSolid, boolean bCheckCompatibility)
 
static TopoShape Loft (TopoShape wireA, TopoShape wireB, boolean bSolid)
 
static TopoShape LoftByTwoWires (TopoShape wireA, TopoShape wireB, boolean bSolid)
 
static TopoShape Loft (TopoShape wire, GPnt pt)
 
static TopoShape LoftByPoint (TopoShape wire, GPnt pt)
 
static TopoShape Thickness (TopoShape solid, double offset, Uint32List faceIdx)
 
static TopoShape Thickness (TopoShape solid, double offset, Int32List faceIdx)
 
static TopoShape ThicknessByFaceIndex (TopoShape solid, double offset, Int32List 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 OffsetShapeByJointType (TopoShape shape, double offset, EnumGeomJoinType jointType)
 
static TopoShape OffsetShape (TopoShape shape, double offset)
 
static TopoShape OffsetShapeBySimple (TopoShape shape, double offset)
 
static TopoShape ThickenSolid (TopoShape face, double offset)
 
static TopoShape MiddlePath (TopoShape shape, TopoShape base1, TopoShape base2)
 
static GPntList CeneterLine (TopoShape face)
 
static ParametricCurve ExtractCircle (TopoShape shape)
 
static TopoShape Evolved (TopoShape section, TopoShape spine, EnumGeomJoinType joinType, boolean bSolid)
 
static TopoShape Sweep (TopoShape section, TopoShape path, EnumGeomFillTrihedron type)
 
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 SweepBySections (TopoShapeList sections, TopoShape path, EnumSweepTransitionMode mode, boolean bSolid, boolean withContact, boolean withCorrection)
 
static TopoShape ExtendFace (TopoShape face, double extend)
 

详细描述

<>
FeatureTool
特征造型的工具.

成员函数说明

◆ CeneterLine()

static GPntList FeatureTool.CeneterLine ( TopoShape face)
static

抽取圆柱面的中心线

参数
face圆柱面.
返回
the 中心线的端点.

◆ Chamfer() [1/2]

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

倒直角。对输入体的所有的边倒直角。

参数
shape输入的体对象.
dis1左边的倒角长度
dis2右边的倒角长度.
返回
新对象.

◆ Chamfer() [2/2]

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

倒直角。仅对指定的边倒直角。

参数
shape输入的体对象.
edgeIdx需要倒角的边的ID.
dis1左边的倒角长度
dis2右边的倒角长度.
返回
新对象.

◆ Evolved()

static TopoShape FeatureTool.Evolved ( TopoShape section,
TopoShape spine,
EnumGeomJoinType joinType,
boolean bSolid )
static

从平面上的面、曲线沿着脊椎线生成几何对象

参数
section平面、平面曲线
spine脊椎线
joinType交点结合类型
bSolid是否生成体
返回
新对象.

◆ ExtendFace()

static TopoShape FeatureTool.ExtendFace ( TopoShape face,
double extend )
static

延伸曲面

参数
face
extend延伸的距离
返回
新的面

◆ ExtractCircle()

static ParametricCurve FeatureTool.ExtractCircle ( TopoShape shape)
static

抽取圆弧线.

参数
shape面或者边.
返回
圆弧线

◆ Extrude()

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

创建拉伸. 面拉伸为体,曲线拉伸为面,点拉伸为线。

参数
base可以为面、Wire、曲线、点。
height拉伸高度.
_dir拉伸方向.
返回
生成的拉伸对象.

◆ Fillet() [1/2]

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

倒圆角. 输入的体对象所有的边进行倒角。

参数
shape输入的体对象.
radius半径.
返回
新对象.

◆ Fillet() [2/2]

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

对指定的边进行倒圆角.

参数
shape输入的体对象.
edgeIdx需要倒角的边的ID.
radius与边对应的半径.
返回
新对象.

◆ Loft() [1/4]

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

放样:点+曲线

参数
wire曲线
pt
返回
新对象.

◆ Loft() [2/4]

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

放样:生成直纹面

参数
wireA第一个wire.
wireB第二个wire.
bSolid是否生成实体,否则生成面
返回
新对象.

◆ Loft() [3/4]

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

放样:生成直纹面

参数
sketches放样曲线列表
bSolid是否生成实体,否则生成面
bCheckCompatibility是否检查兼容性.
返回
新对象.

◆ Loft() [4/4]

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

放样

参数
sketches放样曲线列表
bSolid是否生成实体,否则生成面
bRuled是否生成直纹面.
bCheckCompatibility是否检查兼容性.
pres3d表达精度.
返回
新对象.

◆ MiddlePath()

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

抽取管子一类对象的中心线。

参数
shape输入的体.
base1管子的第一个端面.
base2管子的第二个端面.
返回
中心线.

◆ OffsetShape() [1/2]

static TopoShape FeatureTool.OffsetShape ( TopoShape shape,
double offset )
static

偏移对象. 壳、曲面、曲线...

参数
shape任意的几何对象.
offset偏移距离
返回
新对象.

◆ OffsetShape() [2/2]

static TopoShape FeatureTool.OffsetShape ( TopoShape shape,
double offset,
EnumGeomJoinType jointType )
static

偏移对象. 壳、曲面、曲线...

参数
shape任意的几何对象.
offset偏移距离
jointType链接曲线的类型.
返回
新对象.

◆ OffsetWire()

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

偏移曲线.

参数
wire曲线.
offset偏移距离
altitude偏移高度.
jointType链接曲线的类型.
openning开口还是闭合.
返回
新对象.

◆ Revolve()

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

创建回转/旋转体对象.
根据输入类型,生成如下对应的结果:

  • Vertex -> Edge.
  • Edge -> Face.
  • Wire -> Shell.
  • Face -> Solid.
  • Shell -> CompSolid.
    参数
    base输入对象
    ax旋转轴
    angle旋转角度[0, 2*PI]
    返回
    新对象.

◆ Sweep()

static TopoShape FeatureTool.Sweep ( TopoShape section,
TopoShape path,
EnumGeomFillTrihedron type )
static

扫掠

参数
section扫掠的面、边
path扫掠路径
type填充类型
返回
新对象.

◆ SweepByFrenet() [1/3]

static TopoShape FeatureTool.SweepByFrenet ( TopoShape section,
TopoShape path,
EnumSweepTransitionMode mode,
boolean bSolid )
static

单截面沿着路径扫掠

参数
section截面
path路径
mode扫掠模式
bSolid是否生成实体


返回
新对象

◆ SweepByFrenet() [2/3]

static TopoShape FeatureTool.SweepByFrenet ( TopoShape section,
TopoShape path,
EnumSweepTransitionMode mode,
boolean bSolid,
boolean withContact )
static

单截面沿着路径扫掠

参数
section截面
path路径
mode扫掠模式
bSolid是否生成实体
withContact截面是否需要变换到跟路径接触

返回
新对象

◆ SweepByFrenet() [3/3]

static TopoShape FeatureTool.SweepByFrenet ( TopoShape section,
TopoShape path,
EnumSweepTransitionMode mode,
boolean bSolid,
boolean withContact,
boolean withCorrection )
static

单截面沿着路径扫掠

参数
section截面
path路径
mode扫掠模式
bSolid是否生成实体
withContact截面是否需要变换到跟路径接触
withCorrection截面是否需要旋转跟路径切线正交
返回
新对象

◆ SweepBySections()

static TopoShape FeatureTool.SweepBySections ( TopoShapeList sections,
TopoShape path,
EnumSweepTransitionMode mode,
boolean bSolid,
boolean withContact,
boolean withCorrection )
static

用多个截面沿着指定的路径扫掠

参数
sections截面
path路径
mode模式
bSolid是否生成实体
withContact设置成true则截面会变换与路径接触
withCorrection设置成true则截面会被旋转,使得其与路径的切线正交。
返回

◆ ThickenSolid()

static TopoShape FeatureTool.ThickenSolid ( TopoShape face,
double offset )
static

对曲面加厚生成体

参数
face曲面
offset厚度
返回
实体

◆ Thickness() [1/2]

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

抽壳.

参数
solid输入的体对象
offset厚度. 正负代表内外。
faceIdx挖孔面的索引.
返回
新对象.

◆ Thickness() [2/2]

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

抽壳.

参数
solid输入的体对象
offset厚度. 正负代表内外。
faceIdx挖孔面的索引.
返回
新对象.