Repair tool.
更多...
#include <APIRepairTools.h>
|
static TopoShape | RemoveExtraEdges (const TopoShape &shape) |
|
static bool | IsSelfIntersection (const TopoShape &shape, int level) |
|
static TopoShape | GlueFaces (const TopoShape &shape, Real tolerance, bool keepNonSolid) |
|
static TopoShape | GlueEdges (const TopoShape &shape, Real tolerance, bool keepNonSolid) |
|
static TopoShape | UnionFaces (const TopoShape &shape, Real tolerance) |
|
static TopoShape | FuseCollinearEdgesWithinWire (const TopoShape &wire) |
|
static TopoShape | RemoveInternalFaces (const TopoShape &shape) |
|
static TopoShape | Sewing (const TopoShape &shape, Real tolerance, bool allowNonManifold) |
|
static TopoShape | SuppressHoles (const TopoShape &shape, const UIntList &wireIds) |
|
static TopoShape | SuppressInternalWires (const TopoShape &shape, const UIntList &wireIds) |
|
static TopoShape | CloseContour (const TopoShape &shape, const UIntList &wireIds, bool byCommonVertexOrNewEdge) |
|
static TopoShape | DivideEdge (const TopoShape &shape, int edgeId, Real aValue, bool isByParameter) |
|
static TopoShape | ProcessShape (const TopoShape &shape, const ShapeProcessSettings &settings) |
|
static TopoShape AnyCAD::API::RepairTools::CloseContour |
( |
const TopoShape & |
shape, |
|
|
const UIntList & |
wireIds, |
|
|
bool |
byCommonVertexOrNewEdge |
|
) |
| |
|
static |
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. |
- 返回
- the new shape.
static TopoShape AnyCAD::API::RepairTools::DivideEdge |
( |
const TopoShape & |
shape, |
|
|
int |
edgeId, |
|
|
Real |
aValue, |
|
|
bool |
isByParameter |
|
) |
| |
|
static |
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. |
- 返回
- the edges.
static TopoShape AnyCAD::API::RepairTools::FuseCollinearEdgesWithinWire |
( |
const TopoShape & |
wire | ) |
|
|
static |
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).
- 参数
-
- 返回
- the new edge.
static TopoShape AnyCAD::API::RepairTools::GlueEdges |
( |
const TopoShape & |
shape, |
|
|
Real |
tolerance, |
|
|
bool |
keepNonSolid |
|
) |
| |
|
static |
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. |
- 返回
- the glued result.
static TopoShape AnyCAD::API::RepairTools::GlueFaces |
( |
const TopoShape & |
shape, |
|
|
Real |
tolerance, |
|
|
bool |
keepNonSolid |
|
) |
| |
|
static |
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. |
- 返回
- the glued result.
static bool AnyCAD::API::RepairTools::IsSelfIntersection |
( |
const TopoShape & |
shape, |
|
|
int |
level |
|
) |
| |
|
static |
Check if shape is self intersected.
- 参数
-
shape | the Shape to check. |
level | the level of checking shape on self-interference. |
- 返回
- true if self intersection.
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. |
- 返回
- the fixed shape.
Remove extra edges from shape.
- 参数
-
- 返回
- the new 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 |
- 返回
- the new shape.
static TopoShape AnyCAD::API::RepairTools::Sewing |
( |
const TopoShape & |
shape, |
|
|
Real |
tolerance, |
|
|
bool |
allowNonManifold |
|
) |
| |
|
static |
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. |
- 返回
- the new shell or face.
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. |
- 返回
- the new shape.
Removes all internal wires or specified internal wires from user specified shapes.
- 参数
-
shape | the shape to move |
wireIds | the wire ids. |
- 返回
- the new shape.
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. |
- 返回
- the result.
该类的文档由以下文件生成: