From 47372abdbde66b169a06f29e1271c5294d87321e Mon Sep 17 00:00:00 2001 From: Joost Nieuwenhuijse Date: Sat, 21 Jan 2012 17:28:19 +0100 Subject: [PATCH] OpenJsCad parser added, to parse local files with .jscad extension --- index.html | 40 ++++-- processfile.html | 320 +++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 349 insertions(+), 11 deletions(-) create mode 100644 processfile.html diff --git a/index.html b/index.html index 1380a63..69cec19 100644 --- a/index.html +++ b/index.html @@ -32,8 +32,8 @@ textarea:focus { outline: none; } -h1, h2 { font: bold 50px/50px 'Helvetica Neue', Helvetica, Arial; } -h2 { font-size: 30px; margin: 10px 0 0 0; } +//h1, h2 { font: bold 50px/50px 'Helvetica Neue', Helvetica, Arial; } +//h2 { font-size: 30px; margin: 10px 0 0 0; } a { color: inherit; } .viewer { width: 200px; height: 200px; background: #EEE url(images.png); } #combined .viewer { width: 150px; height: 150px; } @@ -42,6 +42,10 @@ td { padding: 5px; text-align: center; } td code { background: none; border: none; color: inherit; } canvas { cursor: move; } +#needchrome { + display: none; +} + + + + + +OpenJsCad parser + +

OpenJsCad parser

+
Please note: OpenJsCad currently only runs reliably on Google Chrome!
+
+
+
+
+
Drop your .jscad file here
+
+ dfghdfgh +
+ + +
+
+
+
+
+

Instructions:

+Create a new file in your favorite text editor. To get started enter the following text: +
+
+var cube = CSG.roundedCube({radius: 10, roundradius: 2, resolution: 16});
+var sphere = CSG.sphere({radius: 10, resolution: 16}).translate([5, 5, 5]);
+return cube.union(sphere);
+
+Save this to a file on your desktop with .jscad extension. Then drag & drop the file from your desktop +to the box above (marked with 'drop your .jscad file here).

+The 3d model should now appear. You can continue to make changes to your .jscad file. Just press Reload +to parse the changes, you do not need to drag & drop the file again. +

+When finished press Get STL to generate the STL file. Copy & paste the STL text to a file with +.stl extension. +

+For more information about OpenJsCad see the introduction. + + \ No newline at end of file