From fcefd5a257bed698b8cc0d30c3bbab761001120c Mon Sep 17 00:00:00 2001 From: Joost Nieuwenhuijse Date: Thu, 16 Feb 2012 18:13:55 +0100 Subject: [PATCH] Added servo motor demo --- index.html | 5 +- servodemo.html | 227 +++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 231 insertions(+), 1 deletion(-) create mode 100644 servodemo.html diff --git a/index.html b/index.html index 193446e..e76d696 100644 --- a/index.html +++ b/index.html @@ -120,7 +120,8 @@ Alt+drag zooms (by changing the distance between camera and model).

Demos

License

Copyright (c) 2012 Joost Nieuwenhuijse. @@ -329,6 +330,7 @@ cube.properties.otherCorners = [ cube.properties.myProperties = new CSG.Properties(); cube.properties.myProperties.someProperty = new CSG.Vector3D([-1, -1, -1]); +For an example see the Servo motor demo.

Connectors

The CSG.Connector class is intended to facilitate @@ -398,6 +400,7 @@ cube2 = cube2.transform(matrix); var result = cube2.union(cube1); +For a more complete example see the Servo motor demo.

Determining the bounds of an object

The getBounds() function can be used to retrieve the bounding box of an object. diff --git a/servodemo.html b/servodemo.html new file mode 100644 index 0000000..876745e --- /dev/null +++ b/servodemo.html @@ -0,0 +1,227 @@ + + + + + + + + + + +OpenJsCad demo: servo motor + + +

OpenJsCad demo: servo motor

+
+

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