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

BSpline Curve tool that can be used to construct BSpline and get BSpline information. 更多...

#include <APIGeomCurve.h>

类 AnyCAD::API::GeomCurve 继承关系图:
AnyCAD::API::GeomBase AnyCAD::API::GeomCircle

Public 成员函数

virtual bool IsValidGeomey () const
 
virtual bool Initialize (const TopoShape &topoShape)
 
EnumCurveType GetCurveType () const
 
bool Is3DCurve () const
 
bool IsCurveOnSurface () const
 
Real Tolerance () const
 
Real FirstParameter () const
 
Real LastParameter () const
 
int Continuity () const
 
bool IsClosed () const
 
bool IsPeriodic () const
 
Real Period () const
 
Vector3 Value (Real u) const
 
Vector3 D0 (Real u) const
 
Vector3List D1 (Real u) const
 
Vector3List D2 (Real u) const
 
Vector3List D3 (Real u) const
 
Vector3 DN (Real u, int n) const
 
FloatList SplitByUniformLength (Real length, Real tolerance) const
 
Vector3 GetStartPoint () const
 
Vector3 GetEndPoint () const
 
AABox GetBBox () const
 

详细描述

BSpline Curve tool that can be used to construct BSpline and get BSpline information.

成员函数说明

int AnyCAD::API::GeomCurve::Continuity ( ) const

Continuity. enum: C0 = 0, G1, C1, G2, C2, C3, CN

Vector3 AnyCAD::API::GeomCurve::D0 ( Real  u) const

Computes the point of parameter U on the curve.

参数
uthe parameter
返回
the point.
Vector3List AnyCAD::API::GeomCurve::D1 ( Real  u) const

Computes the point and derivative of parameter U on the curve.

参数
uthe parameter
返回
the point and the first derivative. Empty if not C1
Vector3List AnyCAD::API::GeomCurve::D2 ( Real  u) const

Computes the point and derivative of parameter U on the curve.

参数
uthe parameter
返回
the point, the first and second derivative. Empty if not C2.
Vector3List AnyCAD::API::GeomCurve::D3 ( Real  u) const

Computes the point and derivative of parameter U on the curve.

参数
uthe parameter
返回
the point, the first, the second and the third derivative. Empty if not C3.
Vector3 AnyCAD::API::GeomCurve::DN ( Real  u,
int  n 
) const

The returned vector gives the value of the derivative for the order of derivation N.

参数
uthe parameter
nthe order of derivation
返回
the vector. Return zero if not CN or N < 1.
Real AnyCAD::API::GeomCurve::FirstParameter ( ) const

The first parameter.

AABox AnyCAD::API::GeomCurve::GetBBox ( ) const

Compute the bounding box.

返回
the box.
EnumCurveType AnyCAD::API::GeomCurve::GetCurveType ( ) const

Get the curve type. enum EnumCurveType

返回
the point.
Vector3 AnyCAD::API::GeomCurve::GetEndPoint ( ) const

Get the end point position.

返回
the end point.
Vector3 AnyCAD::API::GeomCurve::GetStartPoint ( ) const

Get the start point position.

返回
the start point.
virtual bool AnyCAD::API::GeomCurve::Initialize ( const TopoShape topoShape)
virtual

Use TopoShape to initialize the geometry, must be Edge.

参数
topoShapethe TopoShape
返回
true if ok.

重载 AnyCAD::API::GeomBase .

bool AnyCAD::API::GeomCurve::Is3DCurve ( ) const

Is 3D Curve.

bool AnyCAD::API::GeomCurve::IsClosed ( ) const

Is Closed.

bool AnyCAD::API::GeomCurve::IsCurveOnSurface ( ) const

Is 3D Curve on surface.

bool AnyCAD::API::GeomCurve::IsPeriodic ( ) const

Is Periodic.

virtual bool AnyCAD::API::GeomCurve::IsValidGeomey ( ) const
virtual

Test if valid.

重载 AnyCAD::API::GeomBase .

AnyCAD::API::GeomCircle 重载.

Real AnyCAD::API::GeomCurve::LastParameter ( ) const

The last parameter.

Real AnyCAD::API::GeomCurve::Period ( ) const

The period.

FloatList AnyCAD::API::GeomCurve::SplitByUniformLength ( Real  length,
Real  tolerance 
) const

Split the curve to equal parts.

参数
lengththe length of each part.
tolerancethe tolerance
返回
the parameters of each part.
Real AnyCAD::API::GeomCurve::Tolerance ( ) const

tolerance.

Vector3 AnyCAD::API::GeomCurve::Value ( Real  u) const

Computes the point of parameter U on the curve.

参数
uthe parameter
返回
the point.

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