u/Huhngut

Wireframe projection export to dxf

Hello everyone,

I am fairly new to OpenScad and am trying to export a drawing for exact size paper printing. I have read about DXF and the projection. Unfortunately projection always produces a closed polygon eliminating all of the vertical details.

My solution so far is using offset and difference to produce an outline. I can then vertically move the parts and use cut=true to produce outlines at different height/feature levels. Then I union all of them together.

union() {
  difference() {
    // move([0, 0, ...]);
    projection(cut=true) shield();
    offset(-1) projection(cut=true) shield();
  }
  difference() {
    projection() shield();
    offset(-1) projection() shield();
  }
}

I was wondering if there is a better way to do this. I would expect this to be a function that is often needed.

Any ideas are appreciated.

reddit.com
u/Huhngut — 8 days ago