AnyCAD SDK PRO
2020
The Professional Graphics SDK for .Net and C++ Developers
|
Repair tool. 更多...
Public 成员函数 | |
TopoShape^ | RemoveExtraEdges (TopoShape^ shape) |
bool | IsSelfIntersection (TopoShape^ shape, int level) |
TopoShape^ | GlueFaces (TopoShape^ shape, Real tolerance, bool keepNonSolid) |
TopoShape^ | GlueEdges (TopoShape^ shape, Real tolerance, bool keepNonSolid) |
TopoShape^ | UnionFaces (TopoShape^ shape, Real tolerance) |
TopoShape^ | FuseCollinearEdgesWithinWire (TopoShape^ wire) |
TopoShape^ | RemoveInternalFaces (TopoShape^ shape) |
TopoShape^ | Sewing (TopoShape^ shape, Real tolerance, bool allowNonManifold) |
TopoShape^ | SuppressHoles (TopoShape^ shape, UIntList^ wireIds) |
TopoShape^ | SuppressInternalWires (TopoShape^ shape, UIntList^ wireIds) |
TopoShape^ | CloseContour (TopoShape^ shape, UIntList^ wireIds, bool byCommonVertexOrNewEdge) |
TopoShape^ | DivideEdge (TopoShape^ shape, int edgeId, Real aValue, bool isByParameter) |
TopoShape^ | ProcessShape (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.
shape | the shape |
wireIds | the wire ids |
byCommonVertexOrNewEdge | the mode. |
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)
shape | which contains an edge to be divided |
edgeId | the ID of the edge to be divided, if it is = -1, then Shape should be an edge itself. |
aValue | is a value of parameter on edge or length parameter, depending on IsByParameter. |
isByParameter | specifying operation mode. |
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).
wire | the wire. |
TopoShape ^ AnyCAD::Platform::RepairTools::GlueEdges | ( | TopoShape^ | shape, |
Real | tolerance, | ||
bool | keepNonSolid | ||
) |
Glue edges
shape | the compound shape to be glued. |
tolerance | the maximum distance between two faces, which can be considered as coincident |
keepNonSolid | allows to throw away non-solids from the result, if false. |
TopoShape ^ AnyCAD::Platform::RepairTools::GlueFaces | ( | TopoShape^ | shape, |
Real | tolerance, | ||
bool | keepNonSolid | ||
) |
Glue faces
shape | the compound shape to be glued. |
tolerance | the maximum distance between two faces, which can be considered as coincident |
keepNonSolid | allows to throw away non-solids from the result, if false. |
bool AnyCAD::Platform::RepairTools::IsSelfIntersection | ( | TopoShape^ | shape, |
int | level | ||
) |
Check if shape is self intersected.
shape | the Shape to check. |
level | the level of checking shape on self-interference. |
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.
shape | the shape to process |
settings | the options. |
Remove extra edges from shape.
shape | the 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.
shape | the compound or solids |
TopoShape ^ AnyCAD::Platform::RepairTools::Sewing | ( | TopoShape^ | shape, |
Real | tolerance, | ||
bool | allowNonManifold | ||
) |
Sew face or shells
shape | is a list of faces or shells to be sewn |
tolerance | the precision |
allowNonManifold | is true if allows non-manifold sewing. |
Removes holes with free boundaries on a selected shell or face
shape | the face to be filled. |
wireIds | the ids of the wire. Empty for all. |
TopoShape ^ AnyCAD::Platform::RepairTools::SuppressInternalWires | ( | TopoShape^ | shape, |
UIntList^ | wireIds | ||
) |
Removes all internal wires or specified internal wires from user specified shapes.
shape | the shape to move |
wireIds | the wire ids. |
Unites on a given shape all faces sharing the same surface.
shape | a compound or a single solid. |
tolerance | the maximum distance between two faces. |