is there any way I can draw these layers accurately without having a space or even overlap between them? it is for laser cutting purposes, I used pen to draw every layer, but the pen doesn't provide accurate drawing of these layers, as they are either overlapping in the outline mode or not aligned perfectly, so they create voids or white lines, causing problems in saving as pdf.
Joojaa hit on this but a visual may assist....
- Draw 4 overlapping shapes.
- Switch to
Outline mode(View > Outline).
Object > Path > Averageto ensure anchors are in the same spots where appropriate.
- Select All and click the Merge button on the Pathfinder Panel.
- Delete everything you don't want.
Each section will be its own shape and the edges will perfectly align.
Only, draw one side of the boundary and copy it to both sides. This way it is the same edge.
Note 1: However that a laser cutter will cut this edge 2 times! This is always worse than cutting one time. Also due to cnc interpolation the laser will not hit same position 2 times. (so if the gap very small, like 0.02 mm then its probably not change the outcome much)
Note 2: A laser has a kerf ! So if you want these pieces to match together after spread out you need to offset the curves by the kerf. (while this is true to most cutters like water jet and plasma cutters, cutters that use a blade may or may not have a kerf.)
Note 3: If you use the rasterization mode there is a nontrivial, but small, chance that you will get conflation artefacts regardless. Bit overlap will fix this issue just as well as on screen.
The most effective method in my opinion, would be to break the paths that overlap or are too close, and remove the duplicated segments. Join the now-open segments to the other endpoints to create closed paths acceptable to the laser cutter.
It may be necessary to add nodes to the curves unless they are currently in the proper locations for the above actions.