Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java library for creating 3d-objects for 3d printing

Tags:

java

3d

openscad

I am looking for a java library to create 3d-geometries and then convert that to .stl files so I can 3d print my object using a 3d printer.

I can imagine using a 3d-graphics object where one can draw the same like on a graphics2d object:

 Buffered3DObject obj = new Buffered3DObject(200,200,200, Unit.MM); 
 Graphics3D g3 = obj.getGraphics();
 Stroke3d stroke = new Stroke(3);
 g3.setStroke(stroke);
 g3.drawpipe(x1,y1,z1,x2,y2,z2);
 obj.exportToSTL("filename.stl");

Ok, I am just making up code :). But something like this.

Anybody know how I could pull something like this off? Any opensource libs that does stuff like this?

Would be nice to be able to generate a customized object through user input from a website.

Rob.

Edit: Even though the question is closed (and nobody cared to answer my question on why) I found my answer (I post it so others with the same question can find it):

There is a java library on its way as a wrapper around OpenScad. The java wrapper is called JavaScad. Can be found here JavaScad

like image 561
bluevoid Avatar asked Jul 03 '13 20:07

bluevoid


2 Answers

There is a java library which works as a wrapper around OpenScad. The java wrapper is called JavaScad. Can be found here JavaScad. It works fine and I actually contributed to the library already.

like image 139
bluevoid Avatar answered Oct 23 '22 13:10

bluevoid


  • JCSG - Java implementation of BSP based CSG (Constructive Solid Geometry)
  • jsolid - wrapper around JCSG providing fluent API
like image 39
Marcin Mikosik Avatar answered Oct 23 '22 13:10

Marcin Mikosik