LDraw Torus Generator


RE: LDraw Torus Generator
#31
(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
Reply
« Next Oldest | Next Newest »



Messages In This Thread
LDraw Torus Generator - by Kevin - 2017-06-06, 9:04
RE: LDraw Torus Generator - by Kevin - 2017-06-06, 18:40
RE: LDraw Torus Generator - by Kevin - 2017-06-07, 1:06
RE: LDraw Torus Generator - by Kevin - 2017-06-07, 7:36
RE: LDraw Torus Generator - by Kevin - 2017-06-08, 4:42
RE: LDraw Torus Generator - by Kevin - 2017-06-08, 9:26
RE: LDraw Torus Generator - by Kevin - 2017-06-08, 11:32
RE: LDraw Torus Generator - by Kevin - 2017-06-08, 16:04
RE: LDraw Torus Generator - by Kevin - 2017-06-09, 5:02
RE: LDraw Torus Generator - by Kevin - 2017-06-09, 8:57
RE: LDraw Torus Generator - by Travis Cobbs - 2017-06-10, 4:24
RE: LDraw Torus Generator - by Travis Cobbs - 2017-06-12, 4:16
RE: LDraw Torus Generator - by Kevin - 2017-06-09, 13:59
RE: LDraw Torus Generator - by Kevin - 2017-06-09, 14:59
RE: LDraw Torus Generator - by Kevin - 2017-06-09, 16:35
RE: LDraw Torus Generator - by Kevin - 2017-06-10, 3:11
RE: LDraw Torus Generator - by Kevin - 2017-06-10, 17:36
Google Docs port complete - by Kevin - 2017-06-11, 15:34
RE: LDraw Torus Generator - by Kevin - 2017-06-14, 16:44
RE: LDraw Torus Generator - by Kevin - 2017-06-15, 1:24
RE: LDraw Torus Generator - by Kevin - 2017-06-20, 13:54

Forum Jump:


Users browsing this thread: 2 Guest(s)