C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
alg_polyline.h File Reference

Functions to create curves for external use. More...

#include <templ_s_array.h>
#include <mb_cart_point.h>
#include <mb_cart_point3d.h>
#include <mb_operation_result.h>
#include <mb_enum.h>
#include <mb_rect1d.h>
#include <plane_item.h>

Classes

struct  Polyline3DPoint
 Point parameters for creation of a polyline. More...
 

Functions

bool InitContour3D (MbContour3D &contour, bool closed, SArray< Polyline3DPoint > &initList, SArray< ptrdiff_t > &errorIndexes, double lengthEpsilon=Math::lengthEpsilon)
 Construct a contour from segments by given points. More...
 
void GetEpsilonBound (const MbCurve3D &crv, double t, MbCartPoint3D &pnt, double &eps, VERSION version)
 Calculate the tolerance of a point on a curve. More...
 
bool IsIncidence (const MbCurve3D &crv1, int t1, const MbCurve3D &crv2, int t2, VERSION version)
 Check the coincidence of two vertices. More...
 
double GetNearCurveParam (const MbCurve3D &curve, const MbCartPoint3D &point, const MbVector3D &direct)
 Get the curve parameter which is nearest to the ray. More...
 
double GetNearCurveParam (const MbCurve3D &curve, const MbCartPoint3D &point, const MbVector3D &direct, bool setOnSide, bool &isBegin)
 Get the curve parameter which is nearest to the ray. More...
 
void CreateSmoothFromBezier (const MbBezier &bez, RPArray< MbCurve > &arCurve, bool bline)
 Create a smooth curve from a Bezier curve. More...
 
MbCurveConvertNurbsToCurveOfType (const MbNurbs &nurbs, MbePlaneType type, double eps)
 Create a curve of a given type as NURBS-curve. More...
 
MbCurveGetFlatCurve (const MbCurve3D &curve3D, const MbMatrix3D &into, MbRect1D *pRgn=nullptr, VERSION version=Math::DefaultMathVersion())
 Construct a planar projection of a curve. More...
 
MbCurveGetFlatProjection (const MbCurve3D &curve3D, const MbPlacement3D &place, VERSION version=Math::DefaultMathVersion())
 Get a planar projection of a curve. More...
 
double CurveRelative (const MbCurve &curve, const MbCartPoint &p1, const MbCartPoint &p2)
 The location of a curve relative to axis points. More...
 
double ContourRelative (const MbCurve &curve, const MbCartPoint &p1, const MbCartPoint &p2, double sag)
 A sign of area of a curve's shadow on a segment. More...
 

Detailed Description

Functions to create curves for external use.