GilesBathgate / RapCAD

Rapid prototyping CAD IDE for RepRap and RepStrap 3D printing machines.
https://rapcad.org
GNU General Public License v3.0
155 stars 25 forks source link

STL export fails to export sliced or flat objects #7

Closed mildred closed 6 years ago

mildred commented 11 years ago

Take the following object:

slice(0) translate([0, 0, -30]){
  cylinder(60, 10, center=true);
}

Or this one:

square(40);

The STL export result in an almost empty file:

solid RapCAD_Model
endsolid RapCAD_Model

It should be possible to export flat geometry. This would make RapCAD a great 2D geometry editor.

GilesBathgate commented 11 years ago

2D primitives create non-manifold shapes. non-manifold shapes cannot be exported. I do hope to add support for 2D export in the form of DXF in the future.

GilesBathgate commented 11 years ago

@mildred Did you really want it to export 2D stl, or would something like DXF be suitable?

mildred commented 11 years ago

It was not about exporting specifically 2D STL files, rather exporting in any format that can be opened, and converted by other free-software tools. So I think DXF will also be suitable. SVG support would be great as well.

GilesBathgate commented 6 years ago

SVG export Implemented in commit 13db29ddce2f52878cbcb4f88d9671110a93b3d0