RE: LDraw Torus Generator
2017-06-10, 17:36 (This post was last modified: 2017-06-10, 17:48 by Kevin.)
2017-06-10, 17:36 (This post was last modified: 2017-06-10, 17:48 by Kevin.)
(2017-06-10, 16:14)Philippe Hurbain Wrote: Yes it works!
Possible improvements:
- display a warning if the number of section is incompatible with naming scheme (eg. a 5 sections torus).
- Give the possibility to normalize the torus to generate primitives (make major radius = 1 while keeping minor/major ratio)
Both suggestions should be fairly easy to implement. An while I'm at it, what other checks do you think would be useful? Here are the ones that immediately come to mind:
1) Divisions around the major radius not 16 or 48
2) Divisions around the minor axis not 16 or 48
3) Number of sections not compatible
4) Major radius not 1
EDITED TO ADD:
5) Yes/No selector for the above LDraw conformance checks. No need to get a warning if you know you're not trying to be compliant.
As for the normalization, I'm imagining that to be a Yes/No option, and not something to force. I used the generator to build a 24-segment torus with major radius 40 and minor radius 4 for a LEGO project today.
I'm most of the way done with the port to Google Docs. What's your preference going forward--Excel, Google Docs, or both?
BTW--for anybody considering porting VBA to GAS, the ^ is exponentiation in VBA but bitwise XOR in GAS. That one took me a little while to figure out. :-)
Kevin