LDraw Torus Generator


RE: LDraw Torus Generator
#10
(2017-06-07, 21:18)Magnus Forsberg Wrote: OK, we need this, but then the header needs more tweaking.

The naming of torus primitives are tricky. A correct name would be:  48/tm48q?????.dat
The parttype should be: Unofficial_48_Primitive.
It should have a BFC statement:  0 BFC CERTIFY CCW
A scalable primitive must have four decimals on every x/y/z value.

OK, maybe I'm nitpicking, but these changes would make it usable.

Thanks for the additional feedback.  I have made the requested changes:

1) If the sections per circle is 48 or greater, "48\" is prepended to the name, and "_48" is inserted into the parttype. 
2) Added support for "unit" in the file name when the minor radius = 1
3) I corrected and verified the CCW winding for all quadrilaterals and added the BFC statement.
4) I have expanded the precision to 4 decimal places but allow truncation of trailing zeros for quads and edges.

Right now it only generates q-type tori.  Would it be useful to add i-, o-, and r- types as well?

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