LDraw Torus Generator


RE: LDraw Torus Generator
#19
(2017-06-09, 7:28)Philippe Hurbain Wrote: Tori are supposed to have only a power of two number of sections. That's an heritage of 8.3 filename restrictions, but when this constraint was removed it was preferred to keep a consistent naming scheme and to avoid name change (~movedto creation) of a lot of files.

I did a little more looking at the existing official torus primitives.  With 48 divisions, it looks like the naming standard requires only that the number of sections being generated be a divisor of 48 (e.g. t06q5000.dat and t12o0349.dat).  The two digits represent the reciprocal of the fraction of the torus being generated.  For low-res primitives with 16 divisions, being a divisor of 16 and being a power of 2 are synonymous.

Consequently, the (potentially) correct name for the 3-of-48 example about would be 48\tm16q####.dat, and it would be permissible to generate hi-res tori with 1, 2, 3, 4, 6, 8, 12, 16, 24, and 48 sections.

Do you agree?

Thanks.

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: 1 Guest(s)