From a15889c84182cdb5eb2220a44c3f73c98d84bf7d Mon Sep 17 00:00:00 2001 From: Daniele Bariletti Date: Wed, 8 Jul 2026 17:27:24 +0200 Subject: [PATCH] =?UTF-8?q?Include=20:=20-=20aggiunta=20nuova=20modalit?= =?UTF-8?q?=C3=A0=20per=20l'approssimazione=20curve.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- EGkCurve.h | 1 + EGkPolyLine.h | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/EGkCurve.h b/EGkCurve.h index 52ca910..28a4b6f 100644 --- a/EGkCurve.h +++ b/EGkCurve.h @@ -76,6 +76,7 @@ class __declspec( novtable) ICurve : public IGeoObj virtual bool GetAreaXY( double& dArea) const = 0 ; virtual bool GetArea( Plane3d& plPlane, double& dArea) const = 0 ; virtual bool ApproxWithLines( double dLinTol, double dAngTolDeg, int nType, PolyLine& PL) const = 0 ; + virtual bool ApproxWithLimitedLines( double dLinTol, double dAngTolDeg, int nType, double dMaxLen, PolyLine& PL) const = 0 ; virtual bool ApproxWithArcs( double dLinTol, double dAngTolDeg, PolyArc& PA) const = 0 ; virtual bool ApproxWithArcsEx( double dLinTol, double dAngTolDeg, double dLinFea, PolyArc& PA) const = 0 ; virtual ICurve* CopyParamRange( double dUStart, double dUEnd) const = 0 ; diff --git a/EGkPolyLine.h b/EGkPolyLine.h index 26b01d4..5ab211b 100644 --- a/EGkPolyLine.h +++ b/EGkPolyLine.h @@ -108,7 +108,7 @@ class PolyLine EGK_EXPORT bool GetMaxDistanceFromLine( const Point3d& ptLine, const Vector3d& vtLine, double dLen, double& dMaxDist, bool bIsSegment = true) const ; EGK_EXPORT bool AdjustForMaxSegmentLen( double dMaxLen) ; - EGK_EXPORT bool RemoveAlignedPoints( double dToler = EPS_SMALL, bool bStartEnd = true) ; + EGK_EXPORT bool RemoveAlignedPoints( double dToler = EPS_SMALL, bool bStartEnd = true, double dMaxLen = INFINITO) ; EGK_EXPORT bool ApproxOnSide( const Vector3d& vtN, bool bLeftSide, double dToler = EPS_SMALL) ; EGK_EXPORT bool MakeConvex( const Vector3d& vtN, bool bLeftSide) ; EGK_EXPORT bool Invert( bool bInvertU = true) ;