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

2019-03-25 15:47发布

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

标签: java 3d openscad
3条回答
smile是对你的礼貌
2楼-- · 2019-03-25 16:22

Another option is: abfab3d.com This is opensourced code from Shapeways. Its is more complex and uses voxels as a base, but can convert to mesh aswell. The code is at github: abfab3d @ github

I have not tried it, but will as the openscad route is slow and difficult to integrate in a webserver, so I will try it once I have time.

查看更多
乱世女痞
3楼-- · 2019-03-25 16:29
  • JCSG - Java implementation of BSP based CSG (Constructive Solid Geometry)
  • jsolid - wrapper around JCSG providing fluent API
查看更多
forever°为你锁心
4楼-- · 2019-03-25 16:35

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.

查看更多
登录 后发表回答