From 5e0ed72ae64be877c89bf8a73c9788866f76d3b8 Mon Sep 17 00:00:00 2001 From: lecoanet Date: Tue, 5 Nov 2002 09:22:40 +0000 Subject: Ajout des fonctions TestCCW et GetBezierPoints, BezierSubdivide disparait. Le param�tre fan est ajout� � TRI_STRIP1. --- generic/Geo.h | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) (limited to 'generic/Geo.h') diff --git a/generic/Geo.h b/generic/Geo.h index e1be69b..74d462c 100644 --- a/generic/Geo.h +++ b/generic/Geo.h @@ -85,7 +85,8 @@ POLY_FREE(ZnPoly *poly); void TRI_STRIP1(ZnTriStrip *tristrip, ZnPoint *pts, - int num_pts); + int num_pts, + ZnBool fan); void TRI_FREE(ZnTriStrip *tristrip); @@ -270,16 +271,18 @@ InsetPolygon(ZnPoint *p, ZnDim inset); void -BezierSubdivide(ZnPoint *controls, - ZnReal t, - ZnBool first); - -void SmoothPathWithBezier(ZnPoint *from_points, int num_points, ZnList to_points); void +GetBezierPoints(ZnPoint *p1, + ZnPoint *c1, + ZnPoint *c2, + ZnPoint *p2, + ZnList to_points, + double eps); +void GetBezierPath(ZnList from_points, ZnList to_points); @@ -312,5 +315,9 @@ GetLineEnd(ZnPoint *p1, ZnLineEnd end_style, ZnPoint *points); +ZnBool +TestCCW(ZnPoint *p, + int num_points); + #endif /* _Geo_h */ -- cgit v1.1