# LDraw.org Discussion Forums

Full Version: Primitives with mixed subdivisions
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I am working on the Belville Door, 33216, which has a rounded narrow side which goes along another curve. So naturally it should be a torus.

Now comes the problem: The major radius is 69.5 LDU, the minor radius is 2.5 LDU. The size of the major radius calls for a 48 segment division, but for the other dimension 48 segments are way too much.

So I think a set of primitives would make sense, that have a 48 segment division for the major radius, but a standard 16 segment division for the minor one. This could apply if the major radius is more than 10 times the minor one.

Also, if those primitives, made by the primgen2, have 'only' 4 decimals, the scaling to a radius of 70 leads to gaps, extending this to 5 decimals is a benefit for those applications.

Currently I made a subfile for this special torus-"primitive"

(2020-01-08, 21:07)Gerald Lasser Wrote: [ -> ]I am working on the Belville Door, 33216, which has a rounded narrow side which goes along another curve. So naturally it should be a torus.

Now comes the problem: The major radius is 69.5 LDU, the minor radius is 2.5 LDU. The size of the major radius calls for a 48 segment division, but for the other dimension 48 segments are way too much.

So I think a set of primitives would make sense, that have a 48 segment division for the major radius, but a standard 16 segment division for the minor one. This could apply if the major radius is more than 10 times the minor one.

Also, if those primitives, made by the primgen2, have 'only' 4 decimals, the scaling to a radius of 70 leads to gaps, extending this to 5 decimals is a benefit for those applications.

Currently I made a subfile for this special torus-"primitive"

I’d say just use 48. Polygon count isn’t much of a problem for a part that isn’t used 100’s of time in a model.
Do you know of the mixed modus primitives?

http://ldtorgen.appspot.com/

It will generate good code, but the header needs some corrections.
(2020-01-08, 22:49)Magnus Forsberg Wrote: [ -> ]Do you know of the mixed modus primitives?