Feature request: Render and Export DXF line color() support and export layer() modifier

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Feature request: Render and Export DXF line color() support and export layer() modifier

clothbot
Hi Cliff and Marius,

When I try the following code:

translate([-10,0]) color([1,0,0]) circle(r=4);
color([0,1,0]) circle(r=4);
translate([10,0]) color([0,0,1]) circle(r=4);

...I get the solid colours I expect when compiling and the red line contours I've come to expect when rendering.

Feature request 1:
Please use the color() specified when rendering, at least for the outline line colour.
- if possible, please also preserve the color() if the resulting 2D shape is linear_extrude() or rotate_extrude() to 3D volumes.

Feature request 2: 
When using Export DXF, please preserve the line colours as DXF colour properties

Feature request 3:
Please add a layer() modifier to let me direct different rendered objects to specific DXF layers.

Hypothetical usage example:
layer("1,0,0") translate([-10,0]) color([1,0,0]) circle(r=4);
layer("0,1,0") color([0,1,0]) circle(r=4);
layer("0,0,1") translate([10,0]) color([0,0,1]) circle(r=4);


For base-line reference, I resaved the original OpenSCAD DXF in QCad to make diffs easier: https://github.com/clothbot/makerbot/blob/master/tests/2d/colour_circles.resaved.dxf

Thanks!

Andrew.

--

Makerbot Number Nine... #9... 0x09... 0o11... 0b1001... 
http://clothbot.com/wiki/MakerBotNumberNine