AnyCAD C++ API  2018
 全部  命名空间 文件 函数 变量 类型定义 枚举 枚举值 友元 宏定义 
静态 Public 成员函数 | 所有成员列表
AnyCAD::API::RepairTools类 参考

Repair tool. 更多...

#include <APIRepairTools.h>

静态 Public 成员函数

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)
 

详细描述

Repair tool.

TODO:

成员函数说明

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.

参数
shapethe shape
wireIdsthe wire ids
byCommonVertexOrNewEdgethe 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)

参数
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.
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).

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

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.
static TopoShape AnyCAD::API::RepairTools::GlueFaces ( const TopoShape shape,
Real  tolerance,
bool  keepNonSolid 
)
static

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.
static bool AnyCAD::API::RepairTools::IsSelfIntersection ( const TopoShape shape,
int  level 
)
static

Check if shape is self intersected.

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

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.
static TopoShape AnyCAD::API::RepairTools::RemoveExtraEdges ( const TopoShape shape)
static

Remove extra edges from shape.

参数
shapethe shape.
返回
the new shape.
static TopoShape AnyCAD::API::RepairTools::RemoveInternalFaces ( const TopoShape shape)
static

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.
static TopoShape AnyCAD::API::RepairTools::Sewing ( const TopoShape shape,
Real  tolerance,
bool  allowNonManifold 
)
static

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.
static TopoShape AnyCAD::API::RepairTools::SuppressHoles ( const TopoShape shape,
const UIntList wireIds 
)
static

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.
static TopoShape AnyCAD::API::RepairTools::SuppressInternalWires ( const TopoShape shape,
const UIntList wireIds 
)
static

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

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

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.

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