|
AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
造型工具集 更多...
Public 成员函数 | |
| TopoShape^ | LoadFile (Path^ strFile) |
| bool | SaveFile (TopoShapeGroup^ shapeGroup, Path^ strFileName) |
| bool | SaveFile (TopoShape^ shape, Path^ strFileName) |
| TopoShape^ | LoadBuffer (CharBuffer^ buffer) |
| CharBuffer^ | SaveBuffer (TopoShape^ shape) |
| String^ | ToJson (TopoShapeGroup^ meshGroup, Real precision) |
| TopoShape^ | MakePoint (Vector3^ position) |
| TopoShape^ | MakeLine (Vector3^ start, Vector3^ end) |
| TopoShape^ | MakeCircle (Vector3^ center, double radius, Vector3^ dir) |
| TopoShape^ | MakeEllipse (Vector3^ center, double majorRadius, double minorRadius, Vector3^ dir) |
| TopoShape^ | MakeArc (Vector3^ start, Vector3^ end, Vector3^ center, Vector3^ dir) |
| TopoShape^ | MakeArc (Vector3^ center, Real radius, Real startAngle, Real endAngle, Vector3^ dir) |
| TopoShape^ | MakeArc3Pts (Vector3^ start, Vector3^ end, Vector3^ middle) |
| TopoShape^ | MakeEllipseArc (Vector3^ center, Real majorRadius, Real minorRadius, Real startAngle, Real endAngle, Vector3^ dir) |
| TopoShape^ | MakeSpline (Vector3List^ pts) |
| TopoShape^ | MakeSpline (TopoShapeGroup^ edges) |
| TopoShape^ | MakeSpiralCurve (Real radius, Real interval, Real count, Coordinate3^ coord) |
| TopoShape^ | MakePolyline (Vector3List^ pts) |
| TopoShape^ | MakePolygon (Vector3List^ pts) |
| TopoShape^ | MakePolygon (Vector3List^ pts, Real radius) |
| TopoShape^ | MakeRectangle (Real len, Real width, Real radius, Coordinate3^ coord) |
| TopoShape^ | MakeFan (Real radius, Real startAngle, Real endAngle, Coordinate3^ coord) |
| TopoShape^ | MakeFan (Vector2^ start, Real angle, Coordinate3^ coord) |
| TopoShape^ | MakeMeshShell (Vector3List^ pts) |
| TopoShape^ | MakeWire (TopoShapeGroup^ edges) |
| TopoShape^ | MakeWire (TopoShape^ edge) |
| TopoShape^ | MakeWire (TopoShape^ edge1, TopoShape^ edge2) |
| TopoShape^ | MakeFace (TopoShape^ wire) |
| TopoShape^ | AddHole (TopoShape^ face, TopoShape^ hole) |
| TopoShape^ | MakePlaneFace (Vector3^ origion, Vector3^ dir, Real minU, Real maxU, Real minV, Real maxV) |
| TopoShape^ | MakeSurfaceFromPoints (Vector3List^ arrPoints, int m, int n) |
| TopoShape^ | FillFace (Vector3List^ polygon) |
| TopoShape^ | MakeShell (TopoShapeGroup^ faces) |
| TopoShape^ | MakeSolid (TopoShapeGroup^ faceShells) |
| TopoShape^ | MakeCompound (TopoShapeGroup^ shapes) |
| TopoShape^ | MakeCompound (TopoShape^ shape1, TopoShape^ shape2) |
| TopoShape^ | MakeSphere (Vector3^ center, double radius) |
| TopoShape^ | MakeBox (Vector3^ start, Vector3^ dir, Vector3^ size) |
| TopoShape^ | MakeBox (Vector3^ start, Vector3^ end, double width, double height) |
| TopoShape^ | MakeCylinder (Vector3^ center, Vector3^ dir, double radius, double height, double degree) |
| TopoShape^ | MakeCone (Vector3^ center, Vector3^ dir, double radius, double height, double radiusTop, double degree) |
| TopoShape^ | MakeTube (Vector3^ center, Vector3^ dir, double radius, double thickness, double len) |
| TopoShape^ | MakeHalfSpace (TopoShape^ face, Vector3^ refPoint) |
| TopoShape^ | BooleanAdd (TopoShape^ pShapeA, TopoShape^ pShapeB) |
| TopoShape^ | BooleanCut (TopoShape^ pShapeA, TopoShape^ pShapeB) |
| TopoShape^ | BooleanCommon (TopoShape^ pShapeA, TopoShape^ pShapeB) |
| TopoShape^ | MakeSplit (TopoShape^ pShape, TopoShape^ splitter) |
| TopoShape^ | MakeSplit (TopoShape^ pShape, TopoShapeGroup^ splitters) |
| TopoShape^ | BodySection (TopoShape^ pBody, Vector3^ pos, Vector3^ dir) |
| TopoShape^ | SurfaceSection (TopoShape^ pSurfA, TopoShape^ pSurfB) |
| TopoShape^ | Extrude (TopoShape^ pShape, double height, Vector3^ dir) |
| TopoShape^ | Revol (TopoShape^ pShape, Vector3^ position, Vector3^ dir, double degree) |
| TopoShape^ | Fillet (TopoShape^ pShape, double radius) |
| TopoShape^ | MakeFillet (TopoShape^ shape, IntList^ edgeIdx, FloatList^ radius) |
| TopoShape^ | Chamfer (TopoShape^ pShape, double dis1, double dis2) |
| TopoShape^ | MakeChamfer (TopoShape^ shape, IntList^ edgeIdx, FloatList^ dis1, FloatList^ dis2) |
| TopoShape^ | MakeLoft (TopoShapeGroup^ shapes, bool bSolid) |
| TopoShape^ | MakeLoft (TopoShape^ wire1, TopoShape^ wire2, bool bSolid) |
| TopoShape^ | Sweep (TopoShape^ section, TopoShape^ path, bool bSolid) |
| TopoShape^ | MakePipe (TopoShape^ section, TopoShape^ path, int mode) |
| TopoShape^ | MakePipe (TopoShapeGroup^ sections, TopoShape^ path, int mode) |
| TopoShape^ | MakeThicken (TopoShape^ shell, Real offset, int jointType) |
| TopoShape^ | MakeOffsetWire (TopoShape^ shape, Real offset, int jointType, bool openning) |
| TopoShape^ | MakeOffsetShape (TopoShape^ shape, Real offset, int jointType) |
| TopoShape^ | ProjectOnPlane (TopoShape^ shape, Vector3^ planePosition, Vector3^ planeDir, Vector3^ projDir) |
| TopoShape^ | ProjectOnSurface (TopoShape^ curve, TopoShape^ surface) |
| TopoShape^ | MakeMirror (TopoShape^ pShape, Vector3^ startPt, Vector3^ endPt) |
| TopoShape^ | Translate (TopoShape^ pShape, Vector3^ vec) |
| TopoShape^ | Scale (TopoShape^ pShape, Vector3^ center, double scale) |
| TopoShape^ | Rotation (TopoShape^ pShape, Vector3^ dir, double degree) |
| TopoShape^ | Rotation (TopoShape^ pShape, Vector3^ axisPos, Vector3^ axisDir, double degree) |
| TopoShape^ | Transform (TopoShape^ pShape, Matrix4^ trf) |
| TopoShape^ | Transform (TopoShape^ pShape, Coordinate3^ coord) |
| TopoShape^ | MakeRoad (Vector3^ start, Vector3^ end, double width, double height, double heightMiddle, bool bSolid) |
| TopoShape^ | MakeDish (Real radius, Real height, Vector3^ position) |
| TopoShape^ | ConnectEdges (TopoShapeGroup^ edges) |
造型工具集
提供基本的方法创建基本体、布尔运算、特征造型等。
在面上使用闭合的Wire挖个洞洞。
| face | the face to add hole. |
| hole | should be closed wire or edge. |
| TopoShape ^ AnyCAD::Platform::BrepTools::BodySection | ( | TopoShape^ | pBody, |
| Vector3^ | pos, | ||
| Vector3^ | dir | ||
| ) |
计算一个平面与某个体的剖面
| pBody | the body |
| pos | the position of the plane |
| dir | the direction of the plane |
| TopoShape ^ AnyCAD::Platform::BrepTools::ConnectEdges | ( | TopoShapeGroup^ | edges | ) |
Connect edges to wire
| edges | the edges |
创建拉伸体。
| pShape | can be edge/wire or planar face |
| height | >0 |
| dir | the direction |
| TopoShape ^ AnyCAD::Platform::BrepTools::FillFace | ( | Vector3List^ | polygon | ) |
填充多边形面. May not be planar.
| polygon | the vertices of the polygon. |
| TopoShape ^ AnyCAD::Platform::BrepTools::LoadBuffer | ( | CharBuffer^ | buffer | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeArc | ( | Vector3^ | start, |
| Vector3^ | end, | ||
| Vector3^ | center, | ||
| Vector3^ | dir | ||
| ) |
创建圆弧
| start | the start point |
| end | the end point |
| center | the center |
| dir | the dir of the circle |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeArc | ( | Vector3^ | center, |
| Real | radius, | ||
| Real | startAngle, | ||
| Real | endAngle, | ||
| Vector3^ | dir | ||
| ) |
创建圆弧
| center | the center |
| radius | the radius. |
| startAngle | the start angle |
| endAngle | the end angle |
| dir | the normal |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeArc3Pts | ( | Vector3^ | start, |
| Vector3^ | end, | ||
| Vector3^ | middle | ||
| ) |
使用圆弧上的三个点创建圆弧。
| start | the start point |
| end | the end point |
| middle | the middle point |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeBox | ( | Vector3^ | start, |
| Vector3^ | end, | ||
| double | width, | ||
| double | height | ||
| ) |
Create Box
| start | the start point |
| end | the end point |
| width | > 0 |
| height | > 0 |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeChamfer | ( | TopoShape^ | shape, |
| IntList^ | edgeIdx, | ||
| FloatList^ | dis1, | ||
| FloatList^ | dis2 | ||
| ) |
对体上指定的边进行倒角。
| shape | the body |
| edgeIdx | the index of the edges |
| dis1 | the dis of each edges |
| dis2 | the dis2 of each edges |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeCompound | ( | TopoShapeGroup^ | shapes | ) |
Combine two TopoShapes
| shape1 | the 1st shape |
| shape2 | the 2nd shape |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeCone | ( | Vector3^ | center, |
| Vector3^ | dir, | ||
| double | radius, | ||
| double | height, | ||
| double | radiusTop, | ||
| double | degree | ||
| ) |
创建圆锥体。
| center | the center |
| dir | the direction |
| radius | > 0 |
| height | > 0 |
| radiusTop | >=0 |
| degree | [0~360] |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeCylinder | ( | Vector3^ | center, |
| Vector3^ | dir, | ||
| double | radius, | ||
| double | height, | ||
| double | degree | ||
| ) |
创建圆柱体。
| center | the center |
| dir | the direction |
| radius | > 0 |
| height | > 0 |
| degree | [0~360] |
Create disk
| radius | the radius |
| height | the height |
| position | the location. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeEllipse | ( | Vector3^ | center, |
| double | majorRadius, | ||
| double | minorRadius, | ||
| Vector3^ | dir | ||
| ) |
创建椭圆
| center | the center |
| majorRadius | the major radius |
| minorRadius | the minor radius |
| dir | the direction |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeEllipseArc | ( | Vector3^ | center, |
| Real | majorRadius, | ||
| Real | minorRadius, | ||
| Real | startAngle, | ||
| Real | endAngle, | ||
| Vector3^ | dir | ||
| ) |
创建椭圆弧
| center | the center |
| majorRadius | the major radius |
| minorRadius | the minor radius |
| startAngle | the start angle |
| endAngle | the end angle |
| dir | the normal |
使用平面上的闭合的曲线创建平面。
| wire | must be closed and planar |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeFan | ( | Real | radius, |
| Real | startAngle, | ||
| Real | endAngle, | ||
| Coordinate3^ | coord | ||
| ) |
创建扇形。
| radius | the arc radius |
| startAngle | the start angle by degree. |
| endAngle | the end angle by degree. |
| coord | the local coordinate. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeFan | ( | Vector2^ | start, |
| Real | angle, | ||
| Coordinate3^ | coord | ||
| ) |
创建扇形。
| start | the start position to the origion of the local coordinate. |
| angle | the end angle by degree. |
| coord | the local coordinate. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeFillet | ( | TopoShape^ | shape, |
| IntList^ | edgeIdx, | ||
| FloatList^ | radius | ||
| ) |
对体上指定的边进行倒角。
| shape | Body |
| edgeIdx | the index of the edges |
| radius | the radius of each edge. |
Make half face: an infinite solid, limited by a surface.
| face | Face or Shell |
| refPoint | specifies the side of the surface where the matter of the half-space is located. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeLoft | ( | TopoShapeGroup^ | shapes, |
| bool | bSolid | ||
| ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeLoft | ( | TopoShape^ | wire1, |
| TopoShape^ | wire2, | ||
| bool | bSolid | ||
| ) |
使用两条边来进行放样。.
| wire1 | the first wires |
| wire2 | the second wire |
| bSolid | true to make solid |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeMeshShell | ( | Vector3List^ | pts | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeMirror | ( | TopoShape^ | pShape, |
| Vector3^ | startPt, | ||
| Vector3^ | endPt | ||
| ) |
计算镜像的对象。
| pShape | the input shape |
| startPt | the start point |
| endPt | the end point |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeOffsetShape | ( | TopoShape^ | shape, |
| Real | offset, | ||
| int | jointType | ||
| ) |
Offset the face, shell or solid.
| shape | be face, shell or solid. |
| offset | the distance. |
| jointType | 0: by arc, 1: by tangent 2: by intersection |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeOffsetWire | ( | TopoShape^ | shape, |
| Real | offset, | ||
| int | jointType, | ||
| bool | openning | ||
| ) |
Offset the planar wire.
| shape | be wire or edge. |
| offset | the distance. |
| jointType | 0: by arc, 1: by tangent 2: by intersection |
| openning | get closed wire if false. |
创建管状扫略体。 Mode: TM_Transformed, TM_RightCorner, TM_RoundCorner
| section | the section wire |
| path | the sweep path, must be wire |
| mode | the transition mode |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakePipe | ( | TopoShapeGroup^ | sections, |
| TopoShape^ | path, | ||
| int | mode | ||
| ) |
创建有多个截面组成的扫略体。 Mode: TM_Transformed, TM_RightCorner, TM_RoundCorner
| sections | the section wire |
| path | the sweep path, must be wire |
| mode | the transition mode |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakePlaneFace | ( | Vector3^ | origion, |
| Vector3^ | dir, | ||
| Real | minU, | ||
| Real | maxU, | ||
| Real | minV, | ||
| Real | maxV | ||
| ) |
创建平面。
| origion | center position |
| dir | the direction |
| minU | the min value of U |
| maxU | the max value of U |
| minV | the min value of V |
| maxV | the max value of V |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakePolygon | ( | Vector3List^ | pts | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakePolygon | ( | Vector3List^ | pts, |
| Real | radius | ||
| ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakePolyline | ( | Vector3List^ | pts | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeRectangle | ( | Real | len, |
| Real | width, | ||
| Real | radius, | ||
| Coordinate3^ | coord | ||
| ) |
创建矩形,可带圆角。
| len | the length |
| width | the width |
| radius | the round angle radius |
| coord | the local coordinate. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeRoad | ( | Vector3^ | start, |
| Vector3^ | end, | ||
| double | width, | ||
| double | height, | ||
| double | heightMiddle, | ||
| bool | bSolid | ||
| ) |
Make road line shape
| start | the start point |
| end | the end point |
| width | the width |
| height | the height |
| heightMiddle | the middle height |
| bSolid | if make solid. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeShell | ( | TopoShapeGroup^ | faces | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSolid | ( | TopoShapeGroup^ | faceShells | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSpiralCurve | ( | Real | radius, |
| Real | interval, | ||
| Real | count, | ||
| Coordinate3^ | coord | ||
| ) |
创建弹簧曲线。
| radius | the radius. |
| interval | the interval |
| count | the loop count |
| coord | the local coordinate. |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSpline | ( | Vector3List^ | pts | ) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSpline | ( | TopoShapeGroup^ | edges | ) |
把多条线合成一条Spline。
| edges | the edge list. |
使用一个模型分割另外一个模型。
| pShape | the shape to be slitted |
| splitter | the splitter tool |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSplit | ( | TopoShape^ | pShape, |
| TopoShapeGroup^ | splitters | ||
| ) |
使用多个模型分割一个模型。
| pShape | the shape to be slitted |
| splitters | the splitter tool group |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeSurfaceFromPoints | ( | Vector3List^ | arrPoints, |
| int | m, | ||
| int | n | ||
| ) |
使用 M * N 的点集拟合Spline曲面。
| arrPoints | the points. the size of points is equal M*N. |
| m | the row length. M >= 1 |
| n | the column length. N >=1 |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeThicken | ( | TopoShape^ | shell, |
| Real | offset, | ||
| int | jointType | ||
| ) |
Thicken the shell/face to solid.
| shell | the base shape. |
| offset | the thickness of the solid. |
| jointType | 0: by arc, 1: by tangent 2: by intersection |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeTube | ( | Vector3^ | center, |
| Vector3^ | dir, | ||
| double | radius, | ||
| double | thickness, | ||
| double | len | ||
| ) |
创建直管。
| center | the center |
| dir | the direction |
| radius | the inner radius. (> 0) |
| thickness | the thickness. (>0) |
| len | the length.(> 0) |
| TopoShape ^ AnyCAD::Platform::BrepTools::MakeWire | ( | TopoShapeGroup^ | edges | ) |
把一条边转成Wire。
| edge | the edge |
把两条可以链接在一起的边组成一条Wire
| edge1 | the first edge |
| edge2 | the second edge |
| TopoShape ^ AnyCAD::Platform::BrepTools::ProjectOnPlane | ( | TopoShape^ | shape, |
| Vector3^ | planePosition, | ||
| Vector3^ | planeDir, | ||
| Vector3^ | projDir | ||
| ) |
计算wire在平面上投影曲线。
| shape | should be edge or wire |
| planePosition | the plane position |
| planeDir | the direction of the plane |
| projDir | the direction of projection |
计算Wire在曲面上的投影曲线。
| curve | should be edge. |
| surface | should be face. |
| TopoShape ^ AnyCAD::Platform::BrepTools::Revol | ( | TopoShape^ | pShape, |
| Vector3^ | position, | ||
| Vector3^ | dir, | ||
| double | degree | ||
| ) |
创建回转体。
| pShape | can be edge/wire or planar face |
| position | the position of the Axis |
| dir | the direction of the Axis |
| degree | the revoled angle (0, 360] |
| CharBuffer ^ AnyCAD::Platform::BrepTools::SaveBuffer | ( | TopoShape^ | shape | ) |
| bool AnyCAD::Platform::BrepTools::SaveFile | ( | TopoShapeGroup^ | shapeGroup, |
| Path^ | strFileName | ||
| ) |
把 TopoShapeGroup 保存为文件。
| shapeGroup | the shapes to save |
| strFileName | the full file path |
把TopoShape保存到文件。
| shape | the shape to save |
| strFileName | the full file path |
创建扫略体或者面
| section | the section profile |
| path | the sweep path, must be wire |
| bSolid | if true to make solid |
| String ^ AnyCAD::Platform::BrepTools::ToJson | ( | TopoShapeGroup^ | meshGroup, |
| Real | precision | ||
| ) |
Convert TopoShapeGroup as Json
| meshGroup | the meshes to save |
| precision | the precision of mesh |
| TopoShape ^ AnyCAD::Platform::BrepTools::Transform | ( | TopoShape^ | pShape, |
| Coordinate3^ | coord | ||
| ) |
1.8.10