AnyCAD SDK PRO  2020
The Professional Graphics SDK for .Net and C++ Developers
Public 成员函数 | 所有成员列表
AnyCAD::Platform::BrepTools类 参考

造型工具集 更多...

Public 成员函数

TopoShapeLoadFile (Path^ strFile)
 
bool SaveFile (TopoShapeGroup^ shapeGroup, Path^ strFileName)
 
bool SaveFile (TopoShape^ shape, Path^ strFileName)
 
TopoShapeLoadBuffer (CharBuffer^ buffer)
 
CharBuffer^ SaveBuffer (TopoShape^ shape)
 
String^ ToJson (TopoShapeGroup^ meshGroup, Real precision)
 
TopoShapeMakePoint (Vector3^ position)
 
TopoShapeMakeLine (Vector3^ start, Vector3^ end)
 
TopoShapeMakeCircle (Vector3^ center, double radius, Vector3^ dir)
 
TopoShapeMakeEllipse (Vector3^ center, double majorRadius, double minorRadius, Vector3^ dir)
 
TopoShapeMakeArc (Vector3^ start, Vector3^ end, Vector3^ center, Vector3^ dir)
 
TopoShapeMakeArc (Vector3^ center, Real radius, Real startAngle, Real endAngle, Vector3^ dir)
 
TopoShapeMakeArc3Pts (Vector3^ start, Vector3^ end, Vector3^ middle)
 
TopoShapeMakeEllipseArc (Vector3^ center, Real majorRadius, Real minorRadius, Real startAngle, Real endAngle, Vector3^ dir)
 
TopoShapeMakeSpline (Vector3List^ pts)
 
TopoShapeMakeSpline (TopoShapeGroup^ edges)
 
TopoShapeMakeSpiralCurve (Real radius, Real interval, Real count, Coordinate3^ coord)
 
TopoShapeMakePolyline (Vector3List^ pts)
 
TopoShapeMakePolygon (Vector3List^ pts)
 
TopoShapeMakePolygon (Vector3List^ pts, Real radius)
 
TopoShapeMakeRectangle (Real len, Real width, Real radius, Coordinate3^ coord)
 
TopoShapeMakeFan (Real radius, Real startAngle, Real endAngle, Coordinate3^ coord)
 
TopoShapeMakeFan (Vector2^ start, Real angle, Coordinate3^ coord)
 
TopoShapeMakeMeshShell (Vector3List^ pts)
 
TopoShapeMakeWire (TopoShapeGroup^ edges)
 
TopoShapeMakeWire (TopoShape^ edge)
 
TopoShapeMakeWire (TopoShape^ edge1, TopoShape^ edge2)
 
TopoShapeMakeFace (TopoShape^ wire)
 
TopoShapeAddHole (TopoShape^ face, TopoShape^ hole)
 
TopoShapeMakePlaneFace (Vector3^ origion, Vector3^ dir, Real minU, Real maxU, Real minV, Real maxV)
 
TopoShapeMakeSurfaceFromPoints (Vector3List^ arrPoints, int m, int n)
 
TopoShapeFillFace (Vector3List^ polygon)
 
TopoShapeMakeShell (TopoShapeGroup^ faces)
 
TopoShapeMakeSolid (TopoShapeGroup^ faceShells)
 
TopoShapeMakeCompound (TopoShapeGroup^ shapes)
 
TopoShapeMakeCompound (TopoShape^ shape1, TopoShape^ shape2)
 
TopoShapeMakeSphere (Vector3^ center, double radius)
 
TopoShapeMakeBox (Vector3^ start, Vector3^ dir, Vector3^ size)
 
TopoShapeMakeBox (Vector3^ start, Vector3^ end, double width, double height)
 
TopoShapeMakeCylinder (Vector3^ center, Vector3^ dir, double radius, double height, double degree)
 
TopoShapeMakeCone (Vector3^ center, Vector3^ dir, double radius, double height, double radiusTop, double degree)
 
TopoShapeMakeTube (Vector3^ center, Vector3^ dir, double radius, double thickness, double len)
 
TopoShapeMakeHalfSpace (TopoShape^ face, Vector3^ refPoint)
 
TopoShapeBooleanAdd (TopoShape^ pShapeA, TopoShape^ pShapeB)
 
TopoShapeBooleanCut (TopoShape^ pShapeA, TopoShape^ pShapeB)
 
TopoShapeBooleanCommon (TopoShape^ pShapeA, TopoShape^ pShapeB)
 
TopoShapeMakeSplit (TopoShape^ pShape, TopoShape^ splitter)
 
TopoShapeMakeSplit (TopoShape^ pShape, TopoShapeGroup^ splitters)
 
TopoShapeBodySection (TopoShape^ pBody, Vector3^ pos, Vector3^ dir)
 
TopoShapeSurfaceSection (TopoShape^ pSurfA, TopoShape^ pSurfB)
 
TopoShapeExtrude (TopoShape^ pShape, double height, Vector3^ dir)
 
TopoShapeRevol (TopoShape^ pShape, Vector3^ position, Vector3^ dir, double degree)
 
TopoShapeFillet (TopoShape^ pShape, double radius)
 
TopoShapeMakeFillet (TopoShape^ shape, IntList^ edgeIdx, FloatList^ radius)
 
TopoShapeChamfer (TopoShape^ pShape, double dis1, double dis2)
 
TopoShapeMakeChamfer (TopoShape^ shape, IntList^ edgeIdx, FloatList^ dis1, FloatList^ dis2)
 
TopoShapeMakeLoft (TopoShapeGroup^ shapes, bool bSolid)
 
TopoShapeMakeLoft (TopoShape^ wire1, TopoShape^ wire2, bool bSolid)
 
TopoShapeSweep (TopoShape^ section, TopoShape^ path, bool bSolid)
 
TopoShapeMakePipe (TopoShape^ section, TopoShape^ path, int mode)
 
TopoShapeMakePipe (TopoShapeGroup^ sections, TopoShape^ path, int mode)
 
TopoShapeMakeThicken (TopoShape^ shell, Real offset, int jointType)
 
TopoShapeMakeOffsetWire (TopoShape^ shape, Real offset, int jointType, bool openning)
 
TopoShapeMakeOffsetShape (TopoShape^ shape, Real offset, int jointType)
 
TopoShapeProjectOnPlane (TopoShape^ shape, Vector3^ planePosition, Vector3^ planeDir, Vector3^ projDir)
 
TopoShapeProjectOnSurface (TopoShape^ curve, TopoShape^ surface)
 
TopoShapeMakeMirror (TopoShape^ pShape, Vector3^ startPt, Vector3^ endPt)
 
TopoShapeTranslate (TopoShape^ pShape, Vector3^ vec)
 
TopoShapeScale (TopoShape^ pShape, Vector3^ center, double scale)
 
TopoShapeRotation (TopoShape^ pShape, Vector3^ dir, double degree)
 
TopoShapeRotation (TopoShape^ pShape, Vector3^ axisPos, Vector3^ axisDir, double degree)
 
TopoShapeTransform (TopoShape^ pShape, Matrix4^ trf)
 
TopoShapeTransform (TopoShape^ pShape, Coordinate3^ coord)
 
TopoShapeMakeRoad (Vector3^ start, Vector3^ end, double width, double height, double heightMiddle, bool bSolid)
 
TopoShapeMakeDish (Real radius, Real height, Vector3^ position)
 
TopoShapeConnectEdges (TopoShapeGroup^ edges)
 

详细描述

造型工具集

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

成员函数说明

TopoShape ^ AnyCAD::Platform::BrepTools::AddHole ( TopoShape face,
TopoShape hole 
)

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

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

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

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

Fuse two TopoShapes (A+B)

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

Get the common part of two TopoShapes

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

Cut A from B (A-B)

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

把体上所有的边倒角

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

Connect edges to wire

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

创建拉伸体。

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

把体上所有的边倒角

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

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

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

从内存中加载TopoShape

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

从文件中加载TopoShape

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

创建圆弧

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

创建圆弧

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

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

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

创建长方体、立方体。

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

Create Box

参数
startthe start point
endthe end point
width> 0
height> 0
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeChamfer ( TopoShape shape,
IntList^  edgeIdx,
FloatList^  dis1,
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::Platform::BrepTools::MakeCircle ( Vector3 center,
double  radius,
Vector3 dir 
)

创建圆

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

创建一个复合体。

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

Combine two TopoShapes

参数
shape1the 1st shape
shape2the 2nd shape
返回
the compound shape.
TopoShape ^ AnyCAD::Platform::BrepTools::MakeCone ( Vector3 center,
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::Platform::BrepTools::MakeCylinder ( Vector3 center,
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::Platform::BrepTools::MakeDish ( Real  radius,
Real  height,
Vector3 position 
)

Create disk

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

创建椭圆

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

创建椭圆弧

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

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

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

创建扇形。

参数
radiusthe arc radius
startAnglethe start angle by degree.
endAnglethe end angle by degree.
coordthe local coordinate.
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeFan ( Vector2 start,
Real  angle,
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::Platform::BrepTools::MakeFillet ( TopoShape shape,
IntList^  edgeIdx,
FloatList^  radius 
)

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

参数
shapeBody
edgeIdxthe index of the edges
radiusthe radius of each edge.
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeHalfSpace ( TopoShape face,
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::Platform::BrepTools::MakeLine ( Vector3 start,
Vector3 end 
)

创建线

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

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

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

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

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

Create mesh shell

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

计算镜像的对象。

参数
pShapethe input shape
startPtthe start point
endPtthe end point
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeOffsetShape ( 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::Platform::BrepTools::MakeOffsetWire ( 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::Platform::BrepTools::MakePipe ( TopoShape section,
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::Platform::BrepTools::MakePipe ( TopoShapeGroup sections,
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::Platform::BrepTools::MakePlaneFace ( Vector3 origion,
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::Platform::BrepTools::MakePoint ( Vector3 position)

创建一个点

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

创建多边形。

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

创建带圆角的多边形。

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

创建多折线。

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

创建矩形,可带圆角。

参数
lenthe length
widththe width
radiusthe round angle radius
coordthe local coordinate.
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeRoad ( Vector3 start,
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::Platform::BrepTools::MakeShell ( TopoShapeGroup faces)

Combine many faces to be shell

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

Combine many faces and shells to be solid

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

创建球体。

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

创建弹簧曲线。

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

使用多个点拟合成一条Spline

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

把多条线合成一条Spline。

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

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

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

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

参数
pShapethe shape to be slitted
splittersthe splitter tool group
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::MakeSurfaceFromPoints ( 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::Platform::BrepTools::MakeThicken ( 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::Platform::BrepTools::MakeTube ( Vector3 center,
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::Platform::BrepTools::MakeWire ( TopoShapeGroup edges)

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

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

把一条边转成Wire。

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

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

参数
edge1the first edge
edge2the second edge
返回
the wire object created
TopoShape ^ AnyCAD::Platform::BrepTools::ProjectOnPlane ( TopoShape shape,
Vector3 planePosition,
Vector3 planeDir,
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::Platform::BrepTools::ProjectOnSurface ( TopoShape curve,
TopoShape surface 
)

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

参数
curveshould be edge.
surfaceshould be face.
返回
the new curve.
TopoShape ^ AnyCAD::Platform::BrepTools::Revol ( TopoShape pShape,
Vector3 position,
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::Platform::BrepTools::Rotation ( TopoShape pShape,
Vector3 dir,
double  degree 
)

Rotate TopoShape

参数
pShapethe shape
dirthe axis to rotate
degreethe degree to rotate
返回
the TopoShape object created
TopoShape ^ AnyCAD::Platform::BrepTools::Rotation ( TopoShape pShape,
Vector3 axisPos,
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::Platform::BrepTools::SaveBuffer ( TopoShape shape)

TopoShape 保存到内存缓冲中。

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

TopoShapeGroup 保存为文件。

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

把TopoShape保存到文件。

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

Scale TopoShape

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

计算两个曲面的相交线

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

创建扫略体或者面

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

Convert TopoShapeGroup as Json

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

Transform TopoShape

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

Transform TopoShape

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

Move TopoShape

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

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