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

Repair tool. 更多...

Public 成员函数

TopoShapeRemoveExtraEdges (TopoShape^ shape)
 
bool IsSelfIntersection (TopoShape^ shape, int level)
 
TopoShapeGlueFaces (TopoShape^ shape, Real tolerance, bool keepNonSolid)
 
TopoShapeGlueEdges (TopoShape^ shape, Real tolerance, bool keepNonSolid)
 
TopoShapeUnionFaces (TopoShape^ shape, Real tolerance)
 
TopoShapeFuseCollinearEdgesWithinWire (TopoShape^ wire)
 
TopoShapeRemoveInternalFaces (TopoShape^ shape)
 
TopoShapeSewing (TopoShape^ shape, Real tolerance, bool allowNonManifold)
 
TopoShapeSuppressHoles (TopoShape^ shape, UIntList^ wireIds)
 
TopoShapeSuppressInternalWires (TopoShape^ shape, UIntList^ wireIds)
 
TopoShapeCloseContour (TopoShape^ shape, UIntList^ wireIds, bool byCommonVertexOrNewEdge)
 
TopoShapeDivideEdge (TopoShape^ shape, int edgeId, Real aValue, bool isByParameter)
 
TopoShapeProcessShape (TopoShape^ shape, ShapeProcessSettings^ settings)
 

详细描述

Repair tool.

TODO:

成员函数说明

TopoShape ^ AnyCAD::Platform::RepairTools::CloseContour ( TopoShape shape,
UIntList^  wireIds,
bool  byCommonVertexOrNewEdge 
)

Closes an open contour and modifies the underlying face (if needed) in accordance with user specified mode.

参数
shapethe shape
wireIdsthe wire ids
byCommonVertexOrNewEdgethe mode.
返回
the new shape.
TopoShape ^ AnyCAD::Platform::RepairTools::DivideEdge ( TopoShape shape,
int  edgeId,
Real  aValue,
bool  isByParameter 
)

Splits an edge in two new edges in accordance with the specified mode (by length or by parameter)

参数
shapewhich contains an edge to be divided
edgeIdthe ID of the edge to be divided, if it is = -1, then Shape should be an edge itself.
aValueis a value of parameter on edge or length parameter, depending on IsByParameter.
isByParameterspecifying operation mode.
返回
the edges.
TopoShape ^ AnyCAD::Platform::RepairTools::FuseCollinearEdgesWithinWire ( TopoShape wire)

Removes the vertices from a given wire, provided that the junction of two adjacent edges is C1 continuous (i.e. the edges have equal tangents at the junction).

参数
wirethe wire.
返回
the new edge.
TopoShape ^ AnyCAD::Platform::RepairTools::GlueEdges ( TopoShape shape,
Real  tolerance,
bool  keepNonSolid 
)

Glue edges

参数
shapethe compound shape to be glued.
tolerancethe maximum distance between two faces, which can be considered as coincident
keepNonSolidallows to throw away non-solids from the result, if false.
返回
the glued result.
TopoShape ^ AnyCAD::Platform::RepairTools::GlueFaces ( TopoShape shape,
Real  tolerance,
bool  keepNonSolid 
)

Glue faces

参数
shapethe compound shape to be glued.
tolerancethe maximum distance between two faces, which can be considered as coincident
keepNonSolidallows to throw away non-solids from the result, if false.
返回
the glued result.
bool AnyCAD::Platform::RepairTools::IsSelfIntersection ( TopoShape shape,
int  level 
)

Check if shape is self intersected.

参数
shapethe Shape to check.
levelthe level of checking shape on self-interference.
返回
true if self intersection.
TopoShape ^ AnyCAD::Platform::RepairTools::ProcessShape ( TopoShape shape,
ShapeProcessSettings settings 
)

Shape Processing is useful not only on invalid shapes, but also on the shapes, that are classified as valid by the Check functionality. Use it, if an operation (for example, Partition) fails.

参数
shapethe shape to process
settingsthe options.
返回
the fixed shape.
TopoShape ^ AnyCAD::Platform::RepairTools::RemoveExtraEdges ( TopoShape shape)

Remove extra edges from shape.

参数
shapethe shape.
返回
the new shape.
TopoShape ^ AnyCAD::Platform::RepairTools::RemoveInternalFaces ( TopoShape shape)

Removes all shared faces from a compound to obtain one or more bigger solids from a set of smaller solids. Only shared faces will be removed. Coincident but not shared faces will stay as is, use Glue Faces or Partition before Remove Internal Faces if you need to remove them.

参数
shapethe compound or solids
返回
the new shape.
TopoShape ^ AnyCAD::Platform::RepairTools::Sewing ( TopoShape shape,
Real  tolerance,
bool  allowNonManifold 
)

Sew face or shells

参数
shapeis a list of faces or shells to be sewn
tolerancethe precision
allowNonManifoldis true if allows non-manifold sewing.
返回
the new shell or face.
TopoShape ^ AnyCAD::Platform::RepairTools::SuppressHoles ( TopoShape shape,
UIntList^  wireIds 
)

Removes holes with free boundaries on a selected shell or face

参数
shapethe face to be filled.
wireIdsthe ids of the wire. Empty for all.
返回
the new shape.
TopoShape ^ AnyCAD::Platform::RepairTools::SuppressInternalWires ( TopoShape shape,
UIntList^  wireIds 
)

Removes all internal wires or specified internal wires from user specified shapes.

参数
shapethe shape to move
wireIdsthe wire ids.
返回
the new shape.
TopoShape ^ AnyCAD::Platform::RepairTools::UnionFaces ( TopoShape shape,
Real  tolerance 
)

Unites on a given shape all faces sharing the same surface.

参数
shapea compound or a single solid.
tolerancethe maximum distance between two faces.
返回
the result.

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