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

The shape processing settings. 更多...

#include <APIShapeProcessSettings.h>

Public 成员函数

void FixShape (double tolerance3d, double maxTolerance)
 
void FixFaceSize (double tolerance)
 
void DropSmallEdges (double tolerance)
 
void SplitAngle (double angle, double maxTolerance)
 
void SplitClosedFaces (int nbSplitPoints)
 
void SplitContinuity (double tolerance3d, const String &surfaceContinuity, const String &curveContinuity)
 
void BsplineRestriction (bool SurfaceMode, bool Curve3dMode, bool Curve2dMode, double tolerance3d, double tolerance2d, bool RequiredDegree, int RequiredNbSegments, const String &Continuity3d, const String &Continuity2d)
 
void ToBezier (bool SurfaceMode, bool Curve3dMode, bool Curve2dMode, double MaxTolerance)
 
void SameParameter (double tolerance3d)
 

详细描述

The shape processing settings.

TODO:

成员函数说明

void AnyCAD::API::ShapeProcessSettings::BsplineRestriction ( bool  SurfaceMode,
bool  Curve3dMode,
bool  Curve2dMode,
double  tolerance3d,
double  tolerance2d,
bool  RequiredDegree,
int  RequiredNbSegments,
const String Continuity3d,
const String Continuity2d 
)

converts curves and surfaces to Bsplines and processes them with the following parameters:

参数
SurfaceModeapproximation of surfaces if restriction is necessary.
Curve3dModeconversion of any 3D curve to BSpline and approximation.
Curve2dModeconversion of any 2D curve to BSpline and approximation.
tolerance3ddefines the possibility of surfaces and 3D curves approximation with the specified parameters.
tolerance2ddefines the possibility of surfaces and 2D curves approximation with the specified parameters.
RequiredDegreerequired degree of the resulting BSplines.
RequiredNbSegmentsrequired maximum number of segments of resultant BSplines.
Continuity3dcontinuity of the resulting surfaces and 3D curves.
Continuity2dcontinuity of the resulting 2D curves.
void AnyCAD::API::ShapeProcessSettings::DropSmallEdges ( double  tolerance)

removes edges, which merge with neighbouring edges.

参数
tolerancedefines minimum possible distance between two parallel edges.
void AnyCAD::API::ShapeProcessSettings::FixFaceSize ( double  tolerance)

removes small faces, such as spots and strips.

参数
tolerancedefines minimum possible face size.
void AnyCAD::API::ShapeProcessSettings::FixShape ( double  tolerance3d,
double  maxTolerance 
)

Corrects invalid shapes.

参数
tolerance3dwork tolerance for detection of the problems and correction of them.
maxTolerancemaximal possible tolerance of the shape after correction.
void AnyCAD::API::ShapeProcessSettings::SameParameter ( double  tolerance3d)

fixes edges of 2D and 3D curves not having the same parameter.

参数
tolerance3ddefines tolerance for fixing of edges.
void AnyCAD::API::ShapeProcessSettings::SplitAngle ( double  angle,
double  maxTolerance 
)

splits faces based on conical surfaces, surfaces of revolution and cylindrical surfaces in segments using a certain angle.

参数
anglethe central angle of the resulting segments (i.e. we obtain two segments if Angle=180, four if Angle=90, etc).
maxTolerancemaximum possible tolerance among the resulting segments.
void AnyCAD::API::ShapeProcessSettings::SplitClosedFaces ( int  nbSplitPoints)

splits closed faces in segments. The number of segments depends on the number of splitting points.

参数
nbSplitPointsthe number of splitting points.
void AnyCAD::API::ShapeProcessSettings::SplitContinuity ( double  tolerance3d,
const String surfaceContinuity,
const String curveContinuity 
)

splits shapes to reduce continuities of curves and surfaces. Parametric Continuity : C0, C1, C2, CN Geometric Continuity: G1, G2

参数
tolerance3d3D tolerance for correction of geometry.
surfaceContinuityrequired continuity for surfaces.
curveContinuityrequired continuity for curves.
void AnyCAD::API::ShapeProcessSettings::ToBezier ( bool  SurfaceMode,
bool  Curve3dMode,
bool  Curve2dMode,
double  MaxTolerance 
)

converts curves and surfaces of any type to Bezier curves and surfaces.

参数
SurfaceModeif checked in, allows conversion of surfaces.
Curve3dModeif checked in, allows conversion of 3D curves.
Curve2dModeif checked in, allows conversion of 2D curves.
MaxTolerancedefines tolerance for detection and correction of problems.

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