public bool Section(Blend_Point P, TColgp_Array1OfPnt Poles, TColgp_Array1OfVec DPoles, TColgp_Array1OfVec D2Poles, TColgp_Array1OfPnt2d Poles2d, TColgp_Array1OfVec2d DPoles2d, TColgp_Array1OfVec2d D2Poles2d, TColStd_Array1OfReal Weigths, TColStd_Array1OfReal DWeigths, TColStd_Array1OfReal D2Weigths) { throw new NotImplementedException(); }
public AppDef_MultiPointConstraint(TColgp_Array1OfPnt tabP, TColgp_Array1OfPnt2d tabP2d, TColgp_Array1OfVec tabVec, TColgp_Array1OfVec2d tabVec2d, TColgp_Array1OfVec tabCur, TColgp_Array1OfVec2d tabCur2d) : base() { throw new NotImplementedException(); }
public void Trimming(int Degree, bool Periodic, TColStd_Array1OfReal Knots, TColStd_Array1OfInteger Mults, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, double U1, double U2, TColStd_Array1OfReal NewKnots, TColStd_Array1OfInteger NewMults, TColgp_Array1OfPnt2d NewPoles, TColStd_Array1OfReal NewWeights) { throw new NotImplementedException(); }
public void IncreaseDegree(int Degree, int NewDegree, bool Periodic, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColStd_Array1OfReal Knots, TColStd_Array1OfInteger Mults, TColgp_Array1OfPnt2d NewPoles, TColStd_Array1OfReal NewWeights, TColStd_Array1OfReal NewKnots, TColStd_Array1OfInteger NewMults) { throw new NotImplementedException(); }
public bool RemoveKnot(int Index, int Mult, int Degree, bool Periodic, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColStd_Array1OfReal Knots, TColStd_Array1OfInteger Mults, TColgp_Array1OfPnt2d NewPoles, TColStd_Array1OfReal NewWeights, TColStd_Array1OfReal NewKnots, TColStd_Array1OfInteger NewMults, double Tolerance) { throw new NotImplementedException(); }
public void InsertKnots(int Degree, bool Periodic, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColStd_Array1OfReal Knots, TColStd_Array1OfInteger Mults, TColStd_Array1OfReal AddKnots, TColStd_Array1OfInteger AddMults, TColgp_Array1OfPnt2d NewPoles, TColStd_Array1OfReal NewWeights, TColStd_Array1OfReal NewKnots, TColStd_Array1OfInteger NewMults, double Epsilon) { throw new NotImplementedException(); }
public bool D2(double Param, double First, double Last, TColgp_Array1OfPnt Poles, TColgp_Array1OfVec DPoles, TColgp_Array1OfVec D2Poles, TColgp_Array1OfPnt2d Poles2d, TColgp_Array1OfVec2d DPoles2d, TColgp_Array1OfVec2d D2Poles2d, TColStd_Array1OfReal Weigths, TColStd_Array1OfReal DWeigths, TColStd_Array1OfReal D2Weigths) { throw new NotImplementedException(); }
//-------------------------------------------------------------------------------------------------- void _ImportSplineWithControlPoints(DxfDomSpline dxfSpline) { // Copy control points var poleCount = dxfSpline.ControlPoints.Length; var poles = new TColgp_Array1OfPnt2d(1, poleCount); var weights = dxfSpline.Weights != null ? new TColStd_Array1OfReal(1, poleCount) : null; for (int i = 0; i < poleCount; i++) { poles.SetValue(i + 1, dxfSpline.ControlPoints[i]); weights?.SetValue(i + 1, dxfSpline.Weights[i]); } // Count multiplicities and compact knot list var knotList = new List <double>(); var multList = new List <int>(); var lastKnot = double.NaN; foreach (var knot in dxfSpline.Knots) { if (lastKnot != knot) { knotList.Add(knot); lastKnot = knot; multList.Add(1); } else { multList[multList.Count - 1]++; } } // Copy knots and multiplicities var knotCount = knotList.Count; var knots = new TColStd_Array1OfReal(1, knotCount); var mults = new TColStd_Array1OfInteger(1, knotCount); for (int i = 0; i < knotCount; i++) { knots.SetValue(i + 1, knotList[i]); mults.SetValue(i + 1, multList[i]); } // Create spline var spline = weights != null ? new Geom2d_BSplineCurve(poles, weights, knots, mults, dxfSpline.Degree, dxfSpline.Flags.Has(DxfDomSpline.SplineFlags.IsClosed)) : new Geom2d_BSplineCurve(poles, knots, mults, dxfSpline.Degree, dxfSpline.Flags.Has(DxfDomSpline.SplineFlags.IsClosed)); _AddBSplineCurve(spline); }
//-------------------------------------------------------------------------------------------------- public override Geom2d_Curve MakeCurve(Dictionary <int, Pnt2d> points) { try { var p1 = points[StartPoint]; var p2 = points[EndPoint]; if (p1.Distance(p2) <= 0) { return(null); } var curvePoles = new TColgp_Array1OfPnt2d(1, Points.Length); for (var i = 0; i < Points.Length; i++) { curvePoles.SetValue(i + 1, points[Points[i]]); } return(new Geom2d_BezierCurve(curvePoles)); } catch (Exception) { return(null); } }
public void Value(AppDef_MultiLine ML, int MPointIndex, TColgp_Array1OfPnt tabPt, TColgp_Array1OfPnt2d tabPt2d) { throw new NotImplementedException(); }
public void Curve2d(int Index, TColgp_Array1OfPnt2d TPoles, TColStd_Array1OfReal TKnots, TColStd_Array1OfInteger TMults) { throw new NotImplementedException(); }
public bool D2(double Param, gp_Mat M, gp_Vec V, gp_Mat DM, gp_Vec DV, gp_Mat D2M, gp_Vec D2V, TColgp_Array1OfPnt2d Poles2d, TColgp_Array1OfVec2d DPoles2d, TColgp_Array1OfVec2d D2Poles2d) { throw new NotImplementedException(); }
public void Poles2d(int Index, TColgp_Array1OfPnt2d P) { throw new NotImplementedException(); }
public void Add(TColgp_Array1OfPnt2d UandR, TopoDS_Edge E) { throw new NotImplementedException(); }
public void MovePoint(double U, gp_Vec2d D_ispl, int Index1, int Index2, int Degree, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColStd_Array1OfReal FlatKnots, ref int FirstIndex, ref int LastIndex, TColgp_Array1OfPnt2d NewPoles) { throw new NotImplementedException(); }
public AIS_StatusOfPick ShiftSelect(TColgp_Array1OfPnt2d thePolyline, V3d_View theView, bool theToUpdateViewer) { throw new NotImplementedException(); }
public void CoefsD3(double U, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, gp_Pnt2d Point, gp_Vec2d Vec1, gp_Vec2d Vec2, gp_Vec2d Vec3) { throw new NotImplementedException(); }
public CSLib_Class2d(TColgp_Array1OfPnt2d thePnts2d, double theTolU, double theTolV, double theUMin, double theVMin, double theUMax, double theVMax) : base() { throw new NotImplementedException(); }
public void PolesCoefficients(TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColgp_Array1OfPnt2d CachePoles, TColStd_Array1OfReal CacheWeights) { throw new NotImplementedException(); }
public void BuildCache(double theParameter, TColStd_Array1OfReal theFlatKnots, TColgp_Array1OfPnt2d thePoles2d, TColStd_Array1OfReal theWeights) { throw new NotImplementedException(); }
public BSplCLib_Cache(int theDegree, bool thePeriodic, TColStd_Array1OfReal theFlatKnots, TColgp_Array1OfPnt2d thePoles2d) : base() { throw new NotImplementedException(); }
public void Poles(TColgp_Array1OfPnt2d Poles) { throw new NotImplementedException(); }
public void BuildCache(double U, double InverseOfSpanDomain, bool PeriodicFlag, int Degree, TColStd_Array1OfReal FlatKnots, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, TColgp_Array1OfPnt2d CachePoles, TColStd_Array1OfReal CacheWeights) { throw new NotImplementedException(); }
public void BuildCache(double theParameter, double theSpanDomain, bool thePeriodicFlag, int theDegree, int theSpanIndex, TColStd_Array1OfReal theFlatKnots, TColgp_Array1OfPnt2d thePoles, TColStd_Array1OfReal theWeights, TColStd_Array2OfReal theCacheArray) { throw new NotImplementedException(); }
public AppDef_MultiPointConstraint(TColgp_Array1OfPnt2d tabP) : base() { throw new NotImplementedException(); }
public void Section(Blend_Point P, TColgp_Array1OfPnt Poles, TColgp_Array1OfPnt2d Poles2d, TColStd_Array1OfReal Weigths) { throw new NotImplementedException(); }
public void Pick(TColgp_Array1OfPnt2d thePolyline, V3d_View theView) { throw new NotImplementedException(); }
public bool D0(double Param, gp_Mat M, gp_Vec V, TColgp_Array1OfPnt2d Poles2d) { throw new NotImplementedException(); }
public void SetRadius(TColgp_Array1OfPnt2d UandR, int IC, int IinC) { throw new NotImplementedException(); }
public void Interpolate(int Degree, TColStd_Array1OfReal FlatKnots, TColStd_Array1OfReal Parameters, TColStd_Array1OfInteger ContactOrderArray, TColgp_Array1OfPnt2d Poles, TColStd_Array1OfReal Weights, ref int InversionProblem) { throw new NotImplementedException(); }