Just discovered this:
OpenJSCAD
If you've used OpenSCAD, and you are comfortable with programming, you REALLY need to check that out.
It is NOT an online OpenSCAD, although it's very similar to such a thing. You type in your code, which in this case is javascript plus all the OpenSCAD functions, and you press F5 or Shift-Return, it renders something using the OpenGL interface in your browser.
the basics:
your code has to include:
function main() {
itemA = cube([1,1,1]).translate([-2,-2,-2]);
itemB = sphere({r:2,center:true});
return [itemA, itemB];
}
The return there is what gets drawn.
This is pretty nifty. Although you might feel like it takes an Advanced Degree(tm) to figure it out.
Note that the ".translate([])" is like, but not identical to, OpenSCAD:
translate([2,2,2]) cube([1,1,1]);
The .translate is a Javascript-style coding. Same thing gets done, but the syntax approach is different.
Looks like it can generate STL output, for going straight to 3D printer (yeah, agreed, you probably have to do the triangle correction step somehow).
It will generate an STL file you can download. I have no idea if it's any good, but the ASCII version is readable.
What you probably cannot do (nor, really do I think I would try) is load/copy/paste your existing OpenSCAD into OpenJSCAD. Not going to work--you'll have to fix it up quite a bit.
Sunday, November 04, 2018
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment