[x3d-public] OpenJSCAD.org alpha online

Don Brutzman brutzman at nps.edu
Mon Sep 4 12:46:26 PDT 2017


Interesting new resource: OpenJSCAD

	https://openjscad.org

==================================================
https://en.wikibooks.org/wiki/OpenJSCAD_User_Guide

"OpenJSCAD.org is built on OpenJsCad (Github), which itself was inspired by OpenSCAD.org, and essentially provides a programmers approach to develop 3D models. In particular, this enhancement is tuned towards creating precise models for 3D printing.

OpenJSCAD programmers using OpenSCAD may welcome

* ability to use JavaScript programming concepts and libraries
* ability to create and manipulate 3D shapes, as well as 2D shapes
* support for OpenSCAD source-code (approximately 80% of all functions)
* additional functions to ease the transition to OpenJSCAD"
==================================================

Demo source:

// title      : OpenJSCAD.org Logo
// author     : Rene K. Mueller
// license    : MIT License
// revision   : 0.003
// tags       : Logo,Intersection,Sphere,Cube
// file       : logo.jscad

function main() {
    return union(
       difference(
          cube({size: 3, center: true}),
          sphere({r:2, center: true})
       ),
       intersection(
           sphere({r: 1.3, center: true}),
           cube({size: 2.1, center: true})
       )
    ).translate([0,0,1.5]).scale(10);
}


Demo-export X3D and image assets attached.  The X3D scene passed validation tests OK, though most players viewed this large-size model from the inside since no Viewpoint was included.

all the best, Don
-- 
Don Brutzman  Naval Postgraduate School, Code USW/Br       brutzman at nps.edu
Watkins 270,  MOVES Institute, Monterey CA 93943-5000 USA   +1.831.656.2149
X3D graphics, virtual worlds, navy robotics http://faculty.nps.edu/brutzman
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenJSCadDemo.png
Type: image/png
Size: 297387 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170904/c9f1f111/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenJSCadDemo.x3d
Type: model/x3d+xml
Size: 44207 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170904/c9f1f111/attachment-0001.x3d>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenJSCadDemo_view3dscene.png
Type: image/png
Size: 17955 bytes
Desc: not available
URL: <http://web3d.org/pipermail/x3d-public_web3d.org/attachments/20170904/c9f1f111/attachment-0003.png>


More information about the x3d-public mailing list