From 24891c01417c2d4a911d5cc11a914efcb130f4e7 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Mon, 1 Jun 2009 19:17:18 -0800 Subject: [PATCH] Fix a couple of issues with SolveSpace as a library; was using the wrong parameters for a normal in Example2d(), and the horiz/vert constraints were not documented correctly. [git-p4: depot-paths = "//depot/solvespace/": change = 1963] --- exposed/DOC.txt | 5 ++++- exposed/example.c | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/exposed/DOC.txt b/exposed/DOC.txt index 021edf9..c166509 100644 --- a/exposed/DOC.txt +++ b/exposed/DOC.txt @@ -350,7 +350,10 @@ SLVS_C_AT_MIDPOINT* SLVS_C_HORIZONTAL SLVS_C_VERTICAL** - The line connecting points ptA and ptB is horizontal or vertical. + The line connecting points ptA and ptB is horizontal or vertical. Or, + the line segment entityA is horizontal or vertical. If points are + specified then the line segment should be left zero, and if a line + is specified then the points should be left zero. SLVS_C_DIAMETER diff --git a/exposed/example.c b/exposed/example.c index 5c6cccd..ef1d53f 100644 --- a/exposed/example.c +++ b/exposed/example.c @@ -102,7 +102,7 @@ void Example2d(void) sys.param[sys.params++] = Slvs_MakeParam(5, g, qx); sys.param[sys.params++] = Slvs_MakeParam(6, g, qy); sys.param[sys.params++] = Slvs_MakeParam(7, g, qz); - sys.entity[sys.entities++] = Slvs_MakeNormal3d(102, g, 3, 4, 5, 6); + sys.entity[sys.entities++] = Slvs_MakeNormal3d(102, g, 4, 5, 6, 7); sys.entity[sys.entities++] = Slvs_MakeWorkplane(200, g, 101, 102);