Include :

- aggiunto un tipo di interpolazione con le bezier.
This commit is contained in:
Daniele Bariletti
2025-10-10 12:13:32 +02:00
parent e7a6f95012
commit 22681a960d
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -36,7 +36,7 @@ class CurveByInterp
public : public :
enum METHOD { BESSEL = 1, AKIMA = 2, AKIMA_CORNER = 3} ; enum METHOD { BESSEL = 1, AKIMA = 2, AKIMA_CORNER = 3} ;
enum TYPE { BIARCS = 1, CUBIC_BEZIERS = 2} ; enum TYPE { BIARCS = 1, CUBIC_BEZIERS = 2, CUBIC_BEZIERS_LONG = 3} ;
private : private :
bool CalcAkimaTangents( bool bDetectCorner) ; bool CalcAkimaTangents( bool bDetectCorner) ;
+2 -1
View File
@@ -59,7 +59,8 @@ const int RTY_DEFAULT = RTY_LOC ;
//----------------- Costanti tipo di interpolazione ---------------------------- //----------------- Costanti tipo di interpolazione ----------------------------
enum InterpType{ ITT_ARCS = 0, // stima tg Akima, curve risultanti archi enum InterpType{ ITT_ARCS = 0, // stima tg Akima, curve risultanti archi
ITT_ARCS_CORNER = 1, // stima tg AkimaCorner, curve risultanti archi ITT_ARCS_CORNER = 1, // stima tg AkimaCorner, curve risultanti archi
ITT_CUBICS = 2} ; // stima tg Bessel, curve risultanti Bezier cubiche ITT_CUBICS = 2, // stima tg Bessel, curve risultanti Bezier cubiche
ITT_CUBICS_LONG = 3} ; // interpolazione con nurbs, poi convertite in bezier
//----------------- Costanti tipo di approssimazione di curve ------------------ //----------------- Costanti tipo di approssimazione di curve ------------------
enum ApprType{ APP_LINES = 0, // come ICurve::APL_STD enum ApprType{ APP_LINES = 0, // come ICurve::APL_STD