From c95e5c1614590b3fcca9772b7aa68f4667456546 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Fri, 22 Jan 2010 22:40:10 -0800 Subject: [PATCH] And fix the convenience functions and example, to specify a normal with the arc of a circle. [git-p4: depot-paths = "//depot/solvespace/": change = 2113] --- exposed/example.c | 2 +- exposed/slvs.h | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/exposed/example.c b/exposed/example.c index ac01c40f..69058e4b 100644 --- a/exposed/example.c +++ b/exposed/example.c @@ -139,7 +139,7 @@ void Example2d(void) // And arc, centered at point 303, starting at point 304, ending at // point 305. - sys.entity[sys.entities++] = Slvs_MakeArcOfCircle(401, g, 200, + sys.entity[sys.entities++] = Slvs_MakeArcOfCircle(401, g, 200, 102, 303, 304, 305); // Now one more point, and a distance diff --git a/exposed/slvs.h b/exposed/slvs.h index 6ab7d1bf..bd7fdfa3 100644 --- a/exposed/slvs.h +++ b/exposed/slvs.h @@ -311,6 +311,7 @@ static Slvs_Entity Slvs_MakeCubic(Slvs_hEntity h, Slvs_hGroup group, } static Slvs_Entity Slvs_MakeArcOfCircle(Slvs_hEntity h, Slvs_hGroup group, Slvs_hEntity wrkpl, + Slvs_hEntity normal, Slvs_hEntity center, Slvs_hEntity start, Slvs_hEntity end) { @@ -320,6 +321,7 @@ static Slvs_Entity Slvs_MakeArcOfCircle(Slvs_hEntity h, Slvs_hGroup group, r.group = group; r.type = SLVS_E_ARC_OF_CIRCLE; r.wrkpl = wrkpl; + r.normal = normal; r.point[0] = center; r.point[1] = start; r.point[2] = end;