From 858a40bb418efa7a782763816ba9b4d24451504d Mon Sep 17 00:00:00 2001 From: Joost Nieuwenhuijse Date: Wed, 15 Feb 2012 15:09:10 +0100 Subject: [PATCH] Added parametric S hook demo --- hookdemo.html | 179 ++++++++++++++++++++++++++++++++++++++++++++++++++ index.html | 7 +- 2 files changed, 185 insertions(+), 1 deletion(-) create mode 100644 hookdemo.html diff --git a/hookdemo.html b/hookdemo.html new file mode 100644 index 0000000..b360a75 --- /dev/null +++ b/hookdemo.html @@ -0,0 +1,179 @@ + + + + + + + + + + +OpenJsCad demo: Parametric S hook + + +

OpenJsCad demo: Parametric S hook

+
+

Source code

+Below is the OpenJsCad script for this demo. To build your own models, create a .jscad script +and use the OpenJsCad parser. For more information see the +OpenJsCad documentation. +

+
+ +

+ + \ No newline at end of file diff --git a/index.html b/index.html index 56f5e5f..63d0055 100644 --- a/index.html +++ b/index.html @@ -115,7 +115,10 @@ Click and drag to rotate the model around the origin.
Shift+Drag moves the model around.
Alt+drag zooms (by changing the distance between camera and model).

Demos

-Try the Gears demo! +

License

Copyright (c) 2012 Joost Nieuwenhuijse. Uses CSG.js, original copyright (c) 2011 Evan Wallace, @@ -435,6 +438,7 @@ var extruded=shape2d.extrude({ twiststeps: 100 // create 100 slices }); +For an example of 2D shapes see the Parametric S hook demo.

2D Paths

A path is simply a series of points, connected by lines. A path can be open or closed (an additional line @@ -553,6 +557,7 @@ function main(params) { return result; } +Or see the Gears demo for another example of interactive parameters. \ No newline at end of file