AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
AnyCAD::API::BrepTools类 参考

造型工具集 更多...

#include <APIBrepTools.h>

Public 成员函数

TopoShape LoadFile (const Path &strFile)
 
bool SaveFile (const TopoShapeGroup &shapeGroup, const Path &strFileName)
 
bool SaveFile (const TopoShape &shape, const Path &strFileName)
 
TopoShape LoadBuffer (const CharBuffer &buffer)
 
CharBuffer SaveBuffer (const TopoShape &shape)
 
String ToJson (const TopoShapeGroup &meshGroup, Real precision)
 
TopoShape MakePoint (const Vector3 &position)
 
TopoShape MakeLine (const Vector3 &start, const Vector3 &end)
 
TopoShape MakeCircle (const Vector3 &center, double radius, const Vector3 &dir)
 
TopoShape MakeEllipse (const Vector3 &center, double majorRadius, double minorRadius, const Vector3 &dir)
 
TopoShape MakeArc (const Vector3 &start, const Vector3 &end, const Vector3 &center, const Vector3 &dir)
 
TopoShape MakeArc (const Vector3 &center, Real radius, Real startAngle, Real endAngle, const Vector3 &dir)
 
TopoShape MakeArc3Pts (const Vector3 &start, const Vector3 &end, const Vector3 &middle)
 
TopoShape MakeEllipseArc (const Vector3 &center, Real majorRadius, Real minorRadius, Real startAngle, Real endAngle, const Vector3 &dir)
 
TopoShape MakeSpline (const Vector3List &pts)
 
TopoShape MakeSpline (const TopoShapeGroup &edges)
 
TopoShape MakeSpiralCurve (Real radius, Real interval, Real count, const Coordinate3 &coord)
 
TopoShape MakePolyline (const Vector3List &pts)
 
TopoShape MakePolygon (const Vector3List &pts)
 
TopoShape MakePolygon (const Vector3List &pts, Real radius)
 
TopoShape MakeRectangle (Real len, Real width, Real radius, const Coordinate3 &coord)
 
TopoShape MakeFan (Real radius, Real startAngle, Real endAngle, const Coordinate3 &coord)
 
TopoShape MakeFan (const Vector2 &start, Real angle, const Coordinate3 &coord)
 
TopoShape MakeMeshShell (const Vector3List &pts)
 
TopoShape MakeWire (const TopoShapeGroup &edges)
 
TopoShape MakeWire (const TopoShape &edge)
 
TopoShape MakeWire (const TopoShape &edge1, const TopoShape &edge2)
 
TopoShape MakeFace (const TopoShape &wire)
 
TopoShape AddHole (const TopoShape &face, const TopoShape &hole)
 
TopoShape MakePlaneFace (const Vector3 &origion, const Vector3 &dir, Real minU, Real maxU, Real minV, Real maxV)
 
TopoShape MakeSurfaceFromPoints (const Vector3List &arrPoints, int m, int n)
 
TopoShape FillFace (const Vector3List &polygon)
 
TopoShape MakeShell (const TopoShapeGroup &faces)
 
TopoShape MakeSolid (const TopoShapeGroup &faceShells)
 
TopoShape MakeCompound (const TopoShapeGroup &shapes)
 
TopoShape MakeCompound (const TopoShape &shape1, const TopoShape &shape2)
 
TopoShape MakeSphere (const Vector3 &center, double radius)
 
TopoShape MakeBox (const Vector3 &start, const Vector3 &dir, const Vector3 &size)
 
TopoShape MakeBox (const Vector3 &start, const Vector3 &end, double width, double height)
 
TopoShape MakeCylinder (const Vector3 &center, const Vector3 &dir, double radius, double height, double degree)
 
TopoShape MakeCone (const Vector3 &center, const Vector3 &dir, double radius, double height, double radiusTop, double degree)
 
TopoShape MakeTube (const Vector3 &center, const Vector3 &dir, double radius, double thickness, double len)
 
TopoShape MakeHalfSpace (const TopoShape &face, const Vector3 &refPoint)
 
TopoShape BooleanAdd (const TopoShape &pShapeA, const TopoShape &pShapeB)
 
TopoShape BooleanCut (const TopoShape &pShapeA, const TopoShape &pShapeB)
 
TopoShape BooleanCommon (const TopoShape &pShapeA, const TopoShape &pShapeB)
 
TopoShape MakeSplit (const TopoShape &pShape, const TopoShape &splitter)
 
TopoShape MakeSplit (const TopoShape &pShape, const TopoShapeGroup &splitters)
 
TopoShape BodySection (const TopoShape &pBody, const Vector3 &pos, const Vector3 &dir)
 
TopoShape SurfaceSection (const TopoShape &pSurfA, const TopoShape &pSurfB)
 
TopoShape Extrude (const TopoShape &pShape, double height, const Vector3 &dir)
 
TopoShape Revol (const TopoShape &pShape, const Vector3 &position, const Vector3 &dir, double degree)
 
TopoShape Fillet (const TopoShape &pShape, double radius)
 
TopoShape MakeFillet (const TopoShape &shape, const IntList &edgeIdx, const FloatList &radius)
 
TopoShape Chamfer (const TopoShape &pShape, double dis1, double dis2)
 
TopoShape MakeChamfer (const TopoShape &shape, const IntList &edgeIdx, const FloatList &dis1, const FloatList &dis2)
 
TopoShape MakeLoft (const TopoShapeGroup &shapes, bool bSolid)
 
TopoShape MakeLoft (const TopoShape &wire1, const TopoShape &wire2, bool bSolid)
 
TopoShape Sweep (const TopoShape &section, const TopoShape &path, bool bSolid)
 
TopoShape MakePipe (const TopoShape &section, const TopoShape &path, int mode)
 
TopoShape MakePipe (const TopoShapeGroup &sections, const TopoShape &path, int mode)
 
TopoShape MakeThicken (const TopoShape &shell, Real offset, int jointType)
 
TopoShape MakeOffsetWire (const TopoShape &shape, Real offset, int jointType, bool openning)
 
TopoShape MakeOffsetShape (const TopoShape &shape, Real offset, int jointType)
 
TopoShape ProjectOnPlane (const TopoShape &shape, const Vector3 &planePosition, const Vector3 &planeDir, const Vector3 &projDir)
 
TopoShape ProjectOnSurface (const TopoShape &curve, const TopoShape &surface)
 
TopoShape MakeMirror (const TopoShape &pShape, const Vector3 &startPt, const Vector3 &endPt)
 
TopoShape Translate (const TopoShape &pShape, const Vector3 &vec)
 
TopoShape Scale (const TopoShape &pShape, const Vector3 &center, double scale)
 
TopoShape Rotation (const TopoShape &pShape, const Vector3 &dir, double degree)
 
TopoShape Rotation (const TopoShape &pShape, const Vector3 &axisPos, const Vector3 &axisDir, double degree)
 
TopoShape Transform (const TopoShape &pShape, const Matrix4 &trf)
 
TopoShape Transform (const TopoShape &pShape, const Coordinate3 &coord)
 
TopoShape MakeRoad (const Vector3 &start, const Vector3 &end, double width, double height, double heightMiddle, bool bSolid)
 
TopoShape MakeDish (Real radius, Real height, const Vector3 &position)
 

静态 Public 成员函数

static TopoShape ConnectEdges (const TopoShapeGroup &edges)
 

详细描述

造型工具集

提供基本的方法创建基本体、布尔运算、特征造型等。

成员函数说明

TopoShape AnyCAD::API::BrepTools::AddHole ( const TopoShape face,
const TopoShape hole 
)

在面上使用闭合的Wire挖个洞洞。

参数
facethe face to add hole.
holeshould be closed wire or edge.
返回
the new face with hole.
TopoShape AnyCAD::API::BrepTools::BodySection ( const TopoShape pBody,
const Vector3 pos,
const Vector3 dir 
)

计算一个平面与某个体的剖面

参数
pBodythe body
posthe position of the plane
dirthe direction of the plane
返回
the edges compound
TopoShape AnyCAD::API::BrepTools::BooleanAdd ( const TopoShape pShapeA,
const TopoShape pShapeB 
)

Fuse two TopoShapes (A+B)

参数
pShapeAA
pShapeBB
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::BooleanCommon ( const TopoShape pShapeA,
const TopoShape pShapeB 
)

Get the common part of two TopoShapes

参数
pShapeAA
pShapeBB
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::BooleanCut ( const TopoShape pShapeA,
const TopoShape pShapeB 
)

Cut A from B (A-B)

参数
pShapeAA
pShapeBB
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Chamfer ( const TopoShape pShape,
double  dis1,
double  dis2 
)

把体上所有的边倒角

参数
pShapethe body
dis1>0
dis2>0
返回
the TopoShape object created
static TopoShape AnyCAD::API::BrepTools::ConnectEdges ( const TopoShapeGroup edges)
static

Connect edges to wire

参数
edgesthe edges
返回
the wire.
TopoShape AnyCAD::API::BrepTools::Extrude ( const TopoShape pShape,
double  height,
const Vector3 dir 
)

创建拉伸体。

参数
pShapecan be edge/wire or planar face
height>0
dirthe direction
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Fillet ( const TopoShape pShape,
double  radius 
)

把体上所有的边倒角

参数
pShapeBody
radiusthe filleted radius
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::FillFace ( const Vector3List polygon)

填充多边形面. May not be planar.

参数
polygonthe vertices of the polygon.
返回
the face.
TopoShape AnyCAD::API::BrepTools::LoadBuffer ( const CharBuffer buffer)

从内存中加载TopoShape

参数
bufferthe buffer.
返回
the TopoShape. Null if failed.
TopoShape AnyCAD::API::BrepTools::LoadFile ( const Path strFile)

从文件中加载TopoShape

参数
strFilethe full file path
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeArc ( const Vector3 start,
const Vector3 end,
const Vector3 center,
const Vector3 dir 
)

创建圆弧

参数
startthe start point
endthe end point
centerthe center
dirthe dir of the circle
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeArc ( const Vector3 center,
Real  radius,
Real  startAngle,
Real  endAngle,
const Vector3 dir 
)

创建圆弧

参数
centerthe center
radiusthe radius.
startAnglethe start angle
endAnglethe end angle
dirthe normal
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeArc3Pts ( const Vector3 start,
const Vector3 end,
const Vector3 middle 
)

使用圆弧上的三个点创建圆弧。

参数
startthe start point
endthe end point
middlethe middle point
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeBox ( const Vector3 start,
const Vector3 dir,
const Vector3 size 
)

创建长方体、立方体。

参数
startthe start point
dirthe direction
size> 0
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeBox ( const Vector3 start,
const Vector3 end,
double  width,
double  height 
)

Create Box

参数
startthe start point
endthe end point
width> 0
height> 0
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeChamfer ( const TopoShape shape,
const IntList edgeIdx,
const FloatList dis1,
const FloatList dis2 
)

对体上指定的边进行倒角。

参数
shapethe body
edgeIdxthe index of the edges
dis1the dis of each edges
dis2the dis2 of each edges
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeCircle ( const Vector3 center,
double  radius,
const Vector3 dir 
)

创建圆

参数
centerthe center
radiusthe radius
dirthe direction
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeCompound ( const TopoShapeGroup shapes)

创建一个复合体。

参数
shapesthe shapes
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeCompound ( const TopoShape shape1,
const TopoShape shape2 
)

Combine two TopoShapes

参数
shape1the 1st shape
shape2the 2nd shape
返回
the compound shape.
TopoShape AnyCAD::API::BrepTools::MakeCone ( const Vector3 center,
const Vector3 dir,
double  radius,
double  height,
double  radiusTop,
double  degree 
)

创建圆锥体。

参数
centerthe center
dirthe direction
radius> 0
height> 0
radiusTop>=0
degree[0~360]
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeCylinder ( const Vector3 center,
const Vector3 dir,
double  radius,
double  height,
double  degree 
)

创建圆柱体。

参数
centerthe center
dirthe direction
radius> 0
height> 0
degree[0~360]
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeDish ( Real  radius,
Real  height,
const Vector3 position 
)

Create disk

参数
radiusthe radius
heightthe height
positionthe location.
返回
the disk.
TopoShape AnyCAD::API::BrepTools::MakeEllipse ( const Vector3 center,
double  majorRadius,
double  minorRadius,
const Vector3 dir 
)

创建椭圆

参数
centerthe center
majorRadiusthe major radius
minorRadiusthe minor radius
dirthe direction
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeEllipseArc ( const Vector3 center,
Real  majorRadius,
Real  minorRadius,
Real  startAngle,
Real  endAngle,
const Vector3 dir 
)

创建椭圆弧

参数
centerthe center
majorRadiusthe major radius
minorRadiusthe minor radius
startAnglethe start angle
endAnglethe end angle
dirthe normal
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeFace ( const TopoShape wire)

使用平面上的闭合的曲线创建平面。

参数
wiremust be closed and planar
返回
the face created
TopoShape AnyCAD::API::BrepTools::MakeFan ( Real  radius,
Real  startAngle,
Real  endAngle,
const Coordinate3 coord 
)

创建扇形。

参数
radiusthe arc radius
startAnglethe start angle by degree.
endAnglethe end angle by degree.
coordthe local coordinate.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeFan ( const Vector2 start,
Real  angle,
const Coordinate3 coord 
)

创建扇形。

参数
startthe start position to the origion of the local coordinate.
anglethe end angle by degree.
coordthe local coordinate.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeFillet ( const TopoShape shape,
const IntList edgeIdx,
const FloatList radius 
)

对体上指定的边进行倒角。

参数
shapeBody
edgeIdxthe index of the edges
radiusthe radius of each edge.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeHalfSpace ( const TopoShape face,
const Vector3 refPoint 
)

Make half face: an infinite solid, limited by a surface.

参数
faceFace or Shell
refPointspecifies the side of the surface where the matter of the half-space is located.
返回
the half space object
TopoShape AnyCAD::API::BrepTools::MakeLine ( const Vector3 start,
const Vector3 end 
)

创建线

参数
startThe start point
endThe end point
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeLoft ( const TopoShapeGroup shapes,
bool  bSolid 
)

使用多个边创建放样体或者面.

参数
shapesthe edges or wires
bSolidtrue to make solid.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeLoft ( const TopoShape wire1,
const TopoShape wire2,
bool  bSolid 
)

使用两条边来进行放样。.

参数
wire1the first wires
wire2the second wire
bSolidtrue to make solid
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeMeshShell ( const Vector3List pts)

Create mesh shell

参数
ptsthe points list
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeMirror ( const TopoShape pShape,
const Vector3 startPt,
const Vector3 endPt 
)

计算镜像的对象。

参数
pShapethe input shape
startPtthe start point
endPtthe end point
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeOffsetShape ( const TopoShape shape,
Real  offset,
int  jointType 
)

Offset the face, shell or solid.

参数
shapebe face, shell or solid.
offsetthe distance.
jointType0: by arc, 1: by tangent 2: by intersection
返回
the new shape.
TopoShape AnyCAD::API::BrepTools::MakeOffsetWire ( const TopoShape shape,
Real  offset,
int  jointType,
bool  openning 
)

Offset the planar wire.

参数
shapebe wire or edge.
offsetthe distance.
jointType0: by arc, 1: by tangent 2: by intersection
openningget closed wire if false.
返回
the wire.
TopoShape AnyCAD::API::BrepTools::MakePipe ( const TopoShape section,
const TopoShape path,
int  mode 
)

创建管状扫略体。 Mode: TM_Transformed, TM_RightCorner, TM_RoundCorner

参数
sectionthe section wire
paththe sweep path, must be wire
modethe transition mode
返回
the shape object created
TopoShape AnyCAD::API::BrepTools::MakePipe ( const TopoShapeGroup sections,
const TopoShape path,
int  mode 
)

创建有多个截面组成的扫略体。 Mode: TM_Transformed, TM_RightCorner, TM_RoundCorner

参数
sectionsthe section wire
paththe sweep path, must be wire
modethe transition mode
返回
the shape object created
TopoShape AnyCAD::API::BrepTools::MakePlaneFace ( const Vector3 origion,
const Vector3 dir,
Real  minU,
Real  maxU,
Real  minV,
Real  maxV 
)

创建平面。

参数
origioncenter position
dirthe direction
minUthe min value of U
maxUthe max value of U
minVthe min value of V
maxVthe max value of V
返回
the face created
TopoShape AnyCAD::API::BrepTools::MakePoint ( const Vector3 position)

创建一个点

参数
positionThe point position.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakePolygon ( const Vector3List pts)

创建多边形。

参数
ptsthe points list
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakePolygon ( const Vector3List pts,
Real  radius 
)

创建带圆角的多边形。

参数
ptsthe points list
radiusthe round angle radius
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakePolyline ( const Vector3List pts)

创建多折线。

参数
ptsthe points list
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeRectangle ( Real  len,
Real  width,
Real  radius,
const Coordinate3 coord 
)

创建矩形,可带圆角。

参数
lenthe length
widththe width
radiusthe round angle radius
coordthe local coordinate.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeRoad ( const Vector3 start,
const Vector3 end,
double  width,
double  height,
double  heightMiddle,
bool  bSolid 
)

Make road line shape

参数
startthe start point
endthe end point
widththe width
heightthe height
heightMiddlethe middle height
bSolidif make solid.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeShell ( const TopoShapeGroup faces)

Combine many faces to be shell

参数
facesthe faces that the shell has
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSolid ( const TopoShapeGroup faceShells)

Combine many faces and shells to be solid

参数
faceShellsthe shells
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSphere ( const Vector3 center,
double  radius 
)

创建球体。

参数
centerthe center
radius> 0
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSpiralCurve ( Real  radius,
Real  interval,
Real  count,
const Coordinate3 coord 
)

创建弹簧曲线。

参数
radiusthe radius.
intervalthe interval
countthe loop count
coordthe local coordinate.
返回
the spiral curve.
TopoShape AnyCAD::API::BrepTools::MakeSpline ( const Vector3List pts)

使用多个点拟合成一条Spline

参数
ptsthe points list
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSpline ( const TopoShapeGroup edges)

把多条线合成一条Spline。

参数
edgesthe edge list.
返回
the spline.
TopoShape AnyCAD::API::BrepTools::MakeSplit ( const TopoShape pShape,
const TopoShape splitter 
)

使用一个模型分割另外一个模型。

参数
pShapethe shape to be slitted
splitterthe splitter tool
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSplit ( const TopoShape pShape,
const TopoShapeGroup splitters 
)

使用多个模型分割一个模型。

参数
pShapethe shape to be slitted
splittersthe splitter tool group
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeSurfaceFromPoints ( const Vector3List arrPoints,
int  m,
int  n 
)

使用 M * N 的点集拟合Spline曲面。

参数
arrPointsthe points. the size of points is equal M*N.
mthe row length. M >= 1
nthe column length. N >=1
返回
the face created
TopoShape AnyCAD::API::BrepTools::MakeThicken ( const TopoShape shell,
Real  offset,
int  jointType 
)

Thicken the shell/face to solid.

参数
shellthe base shape.
offsetthe thickness of the solid.
jointType0: by arc, 1: by tangent 2: by intersection
返回
the solid.
TopoShape AnyCAD::API::BrepTools::MakeTube ( const Vector3 center,
const Vector3 dir,
double  radius,
double  thickness,
double  len 
)

创建直管。

参数
centerthe center
dirthe direction
radiusthe inner radius. (> 0)
thicknessthe thickness. (>0)
lenthe length.(> 0)
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeWire ( const TopoShapeGroup edges)

把多条可以链接在一起的线组成Wire。

参数
edgescan be edges or wires
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::MakeWire ( const TopoShape edge)

把一条边转成Wire。

参数
edgethe edge
返回
the wire object created
TopoShape AnyCAD::API::BrepTools::MakeWire ( const TopoShape edge1,
const TopoShape edge2 
)

把两条可以链接在一起的边组成一条Wire

参数
edge1the first edge
edge2the second edge
返回
the wire object created
TopoShape AnyCAD::API::BrepTools::ProjectOnPlane ( const TopoShape shape,
const Vector3 planePosition,
const Vector3 planeDir,
const Vector3 projDir 
)

计算wire在平面上投影曲线。

参数
shapeshould be edge or wire
planePositionthe plane position
planeDirthe direction of the plane
projDirthe direction of projection
返回
the new TopoShape
TopoShape AnyCAD::API::BrepTools::ProjectOnSurface ( const TopoShape curve,
const TopoShape surface 
)

计算Wire在曲面上的投影曲线。

参数
curveshould be edge.
surfaceshould be face.
返回
the new curve.
TopoShape AnyCAD::API::BrepTools::Revol ( const TopoShape pShape,
const Vector3 position,
const Vector3 dir,
double  degree 
)

创建回转体。

参数
pShapecan be edge/wire or planar face
positionthe position of the Axis
dirthe direction of the Axis
degreethe revoled angle (0, 360]
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Rotation ( const TopoShape pShape,
const Vector3 dir,
double  degree 
)

Rotate TopoShape

参数
pShapethe shape
dirthe axis to rotate
degreethe degree to rotate
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Rotation ( const TopoShape pShape,
const Vector3 axisPos,
const Vector3 axisDir,
double  degree 
)

Rotate TopoShape along the axis -since R2014UR1

参数
pShapethe shape
axisPosthe axis position
axisDirthe axis direction
degreethe degree to rotate
返回
the TopoShape object created
CharBuffer AnyCAD::API::BrepTools::SaveBuffer ( const TopoShape shape)

TopoShape 保存到内存缓冲中。

参数
shapethe shape to save
返回
the buffer. Empty if failed.
bool AnyCAD::API::BrepTools::SaveFile ( const TopoShapeGroup shapeGroup,
const Path strFileName 
)

TopoShapeGroup 保存为文件。

参数
shapeGroupthe shapes to save
strFileNamethe full file path
返回
true if save successfully.
bool AnyCAD::API::BrepTools::SaveFile ( const TopoShape shape,
const Path strFileName 
)

把TopoShape保存到文件。

参数
shapethe shape to save
strFileNamethe full file path
返回
true if save successfully.
TopoShape AnyCAD::API::BrepTools::Scale ( const TopoShape pShape,
const Vector3 center,
double  scale 
)

Scale TopoShape

参数
pShapethe shape
centerthe center
scale>0 the scale size
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::SurfaceSection ( const TopoShape pSurfA,
const TopoShape pSurfB 
)

计算两个曲面的相交线

参数
pSurfAmust be face
pSurfBmust be face
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Sweep ( const TopoShape section,
const TopoShape path,
bool  bSolid 
)

创建扫略体或者面

参数
sectionthe section profile
paththe sweep path, must be wire
bSolidif true to make solid
返回
the ATopoShapePtr object created
String AnyCAD::API::BrepTools::ToJson ( const TopoShapeGroup meshGroup,
Real  precision 
)

Convert TopoShapeGroup as Json

参数
meshGroupthe meshes to save
precisionthe precision of mesh
返回
the json string.
TopoShape AnyCAD::API::BrepTools::Transform ( const TopoShape pShape,
const Matrix4 trf 
)

Transform TopoShape

参数
pShapethe shape
trfthe transform
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Transform ( const TopoShape pShape,
const Coordinate3 coord 
)

Transform TopoShape

参数
pShapethe shape
coordthe local coordinate.
返回
the TopoShape object created
TopoShape AnyCAD::API::BrepTools::Translate ( const TopoShape pShape,
const Vector3 vec 
)

Move TopoShape

参数
pShapethe shape
vecthe distance
返回
the TopoShape object created

该类的文档由以下文件生成: