I’m struggling to produce infill for a concave area that is reliable for different shapes, minimizes tool travel distance, and minimizes discontinuities.
I’ve got a contour-based approach sort of working, but it is very suboptimal and resulting in 20+ infill segments where I can see that a simple solution would have 3 segments. And a more sophisticated approach could be done with one single segment.
The requirements are:
- Rectinlinear infill; the cross-hatching is important for durability (I also do a spiral-style infill at the top layer for aesthetics, but that part works)
- Constant distance between lines
- Clipped at the shape perimeter
- Minimize travel that is not extruding (i.e. minimize “orphan” lines and segments)
Here’s what I’ve got:
And it does an… OK job:
…but you can see where it could connect segments, and for the life of me I can’t find a decent algorithm.
Any ideas?
infill-problem.gh (26.0 KB)




