discuss@lists.openscad.org

OpenSCAD general discussion Mailing-list

View all threads

Any other TeX users here? Processing lists and analyzing geometry

WF
William F. Adams
Fri, Apr 16, 2021 7:34 PM

One of the notable things in TeX is its list manipulation, so one can for example, disassemble a string of text and examine each character in turn, similarly, one can take a single character, measure it, then act based on that measurement.
Recently I put together a bird house in BlockSCAD:
https://www.blockscad3d.com/community/projects/1168572

for which I needed to lay out all the parts for cutting (you can see how I manually did that if you turn off 3D preview).
Am I dense, or does OpenSCAD lack the programming constructs to readily and directly put all the parts into a list, and then parse each object in the list for its geometry and then work out how to fit them together so as to efficiently cut them out of a wooden board? (In particular, in retrospect I should have rotated one of the ends 180 degrees so that they could have fit more closely together).
I'd appreciate any examples of this sort of thing, or guidance which folks could offer.
William

One of the notable things in TeX is its list manipulation, so one can for example, disassemble a string of text and examine each character in turn, similarly, one can take a single character, measure it, then act based on that measurement. Recently I put together a bird house in BlockSCAD: https://www.blockscad3d.com/community/projects/1168572 for which I needed to lay out all the parts for cutting (you can see how I manually did that if you turn off 3D preview). Am I dense, or does OpenSCAD lack the programming constructs to readily and directly put all the parts into a list, and then parse each object in the list for its geometry and then work out how to fit them together so as to efficiently cut them out of a wooden board? (In particular, in retrospect I should have rotated one of the ends 180 degrees so that they could have fit more closely together). I'd appreciate any examples of this sort of thing, or guidance which folks could offer. William