partial torus prims


partial torus prims
#1
Hello, as stated here:
t04i8000-075.dat
we may need an addon for new torus prim variants...
as of now, there are only full or quarter (inside/outside) torus prims.
But sometimes we may need cut tori.
https://en.wikipedia.org/wiki/Toroidal_a...oordinates
toroidal is bigringwise (the rotation path), poloidal is smallringwise (the rotated profile)

my suggestion would be a suffix (like the -075)
and the number is the percentage of the full quarter inside/outside torus and the + or - is the direction
(from the inner/outer border or from the center line)

but you are free to discuss
(do we even need this? which way should it be done? 075 or 750? where does +/- start? and more...)

René
Reply
RE: partial torus prims
#2
(2024-11-30, 15:41)Rene Rechthaler Wrote: Hello, as stated here:
t04i8000-075.dat
we may need an addon for new torus prim variants...
as of now, there are only full or quarter (inside/outside) torus prims.
But sometimes we may need cut tori.
https://en.wikipedia.org/wiki/Toroidal_a...oordinates
toroidal is bigringwise (the rotation path), poloidal is smallringwise (the rotated profile)

my suggestion would be a suffix (like the -075)
and the number is the percentage of the full quarter inside/outside torus and the + or - is the direction
(from the inner/outer border or from the center line)

but you are free to discuss
(do we even need this? which way should it be done? 075 or 750? where does +/- start? and more...)

René

I'm not against it. We have tndis so why not this. Could you please make some renders as it has been done for:

https://forums.ldraw.org/thread-24731-po...l#pid41927

to get people a clear idea what we are talking about?

w.
LEGO ergo sum
Reply
RE: partial torus prims
#3
   
something like this? (screenshot from LDPE edited with paint)

the addition itself:
t08o800 like the existing syntax
the +/- indicates from where to start
the number states how far to go (+100 would be the same as a -100, a full quarter, no suffix needed then)

usage:
could be useful for chamfers or partially prints
if a torus gets cut somewhere
-> could still apply to prim subst
Reply
RE: partial torus prims
#4
(2025-01-31, 15:54)Rene Rechthaler Wrote: something like this? (screenshot from LDPE edited with paint)

the addition itself:
t08o800 like the existing syntax
the +/- indicates from where to start
the number states how far to go (+100 would be the same as a -100, a full quarter, no suffix needed then)

usage:
could be useful for chamfers or partially prints
if a torus gets cut somewhere
-> could still apply to prim subst

I know this is old, but Willy asked me to comment on this. So I have some comments.

First of all, I would obviously have to update LDView's primitive substitution in order to support this, but it doesn't look like the update would be too difficult.

Having said that, I don't like your proposed suffixes, for two reasons. First, I feel that using 05 for 50% and 075 for 75% just makes things confusing for anyone trying to understand what is going on. Furthermore, unless I'm misunderstanding, the numbers will always be less than 100%, so the 0 prefix also doesn't seem to make sense.

However, while percentages work fine for standard tori, they won't work for arbitrary fractions of 48 tori, since instead of 4 segments (25, 50, 75), there are 12, and 1/12 = 8.333333% (repeating fraction). It's true that we could use three digits (250, 500, 750), and then assume repeating for 083 and 166, but I feel that that would just complicate things further. One option would be to use a four-digit suffix, where the first two digits are the numerator and the second two are the denominator: 0104 for 1/4, 0102 for 1/2, 0204 for 3/4, 0112 for 1/12, 1112 for 11/12, etc.

I'm open to other suggestions, but I don't fell that a percent based number is a good idea. I'm fine the the + and -.
Reply
RE: partial torus prims
#5
(2025-04-26, 21:17)Travis Cobbs Wrote: I know this is old, but Willy asked me to comment on this. So I have some comments.

First of all, I would obviously have to update LDView's primitive substitution in order to support this, but it doesn't look like the update would be too difficult.

Having said that, I don't like your proposed suffixes, for two reasons. First, I feel that using 05 for 50% and 075 for 75% just makes things confusing for anyone trying to understand what is going on. Furthermore, unless I'm misunderstanding, the numbers will always be less than 100%, so the 0 prefix also doesn't seem to make sense.

However, while percentages work fine for standard tori, they won't work for arbitrary fractions of 48 tori, since instead of 4 segments (25, 50, 75), there are 12, and 1/12 = 8.333333% (repeating fraction). It's true that we could use three digits (250, 500, 750), and then assume repeating for 083 and 166, but I feel that that would just complicate things further. One option would be to use a four-digit suffix, where the first two digits are the numerator and the second two are the denominator: 0104 for 1/4, 0102 for 1/2, 0204 for 3/4, 0112 for 1/12, 1112 for 11/12, etc.

I'm open to other suggestions, but I don't fell that a percent based number is a good idea. I'm fine the the + and -.

I recently started breaking that 8.3 nomenclature:

https://library.ldraw.org/parts/45361 (2-4chrd-w-edge.dat)

in the hope for more meaningful file names. Please consider leaving all cryptic name standards behind. As of the + and - I just found out that "+" works well in an editor like LDPE, but you cannot download a part from the PT with a "+" in the file name, so that would have to be fixed first

w.
LEGO ergo sum
Reply
RE: partial torus prims
#6
"+" isn't a URL friendly character since it has meaning in a URL much like "&", "#", and "/"
Reply
RE: partial torus prims
#7
"+"  in search a engine url is used as the space character (" ").
Reply
RE: partial torus prims
#8
What about updating the naming as follows?

sweep:

first number states the number of segments
second number states the resolution (8, 16, 48)

1-8
11-16
11-48
8-8, 16-16, and 48-48 would be full circles in different resolution

tori:
major sweep + "t" + major radius + "i"/"o"/"p"/"q"/"t" + minor sweep + "m" + minor radius

The 'i'nner starts from major-minor
The 'o'uter starts from major+minor
The 'p'erpendicular starts from major and continues inwards (toward major-minor)
The 'q' starts from major and continues outwards (toward major+minor)
A 't' contains the whole tube (2 inner + 2 outer) (minor sweep and "m" not needed)

cones and rings:
major sweep + "con" + major radius (minor assumed 1)
major sweep + "ring" + major radius (minor assumed 1)

cyls:
"cyls" major sweep + "i"/"o"/"p"/"q" + major radius
i starts from the low end, currently cyls
o starts from the high end
p starts from the middle and continues toward the low end, currently cyls2
q starts from the middle and continues toward the high end

spheres:
"sphe" major sweep + "i"/"o" + minor sweep
i starts from pole
o starts from equator (where major sweep is defined)

the "one-eight" of a sphere would be sphe4-16o4-16
a shallow puddle would be sphe16-16i1-16
Reply
RE: partial torus prims
#9
   
edited the upper picture to fit the p+q suffix
p starts from the center line outwards
q starts from the outermost/innermost and goes inwards
last digit is the number of hi-res segments
(hexadecimal to fit it into 1 digit, its - 8 - 9 - a (10) - b (11) - c (12) would be a full quarter -> no suffix needed)
the normal res ones are 3 (1/16) - 6 (1/8) - 9 (3/16)
"special" ones on hi-res are 4 (1/12=30°) and 8 (1/6=60°)
idk how the condlines should be (tangential or continuous)
Reply
RE: partial torus prims
#10
(2025-04-29, 19:54)Rene Rechthaler Wrote: the normal res ones are 3 (1/16) - 6 (1/8) - 9 (3/16)
"special" ones on hi-res are 4 (1/12=30°) and 8 (1/6=60°)

Just as a note, I initially had no idea what you were trying to say here. I eventually realized that the fractions in parentheses are the fractions of a full 360° circle.
Reply
RE: partial torus prims
#11
My suggestion was slightly different. Here's a picture:
   
Reply
RE: partial torus prims
#12
Could we please be a little less cryptic with the filenames? You have 255 characters at your disposal. Anyone won't remember them anyway as dics or chrd, but probably copy them from the primref as I usually do. So a "P" or "Q" is meaningless. Use "CW" or "CCW" or "plus" and "minus".

w.
LEGO ergo sum
Reply
RE: partial torus prims
#13
I agree that one could use more characters for clarity.

However, if one always copies from the primref, it doesn't matter what is being copied. A systematic naming scheme helps interpret the line once written (reviewing, editing) and helps people generate the right filename without looking at the primref.

The existing tori naming scheme is vastly different from how other prims are named, and thus I suggest improving it.

We have two degrees of freedom here. One for the starting point of the prim, and the other for which direction it continues.

In the context of tori, CW and CCW have just as little meaning for me as p and q have for you. I visualize the major rotation axis on the left and a half circle on the right such that it opens downward. Then 'inner' is the vertex closest to the major rotation axis and 'outer' is the vertex furthest away. For these two starting positions, it doesn't matter which direction the shape continues because it is symmetric in each case. That leaves one starting position, perpendicular to the other two. For convenience, I choose the vertex at the top of my half circle. From this position, one can continue either inwards or outwards. If I write the small letters p and q and put a small arrow at the end of those characters, I immediately see that p is the one going inwards and q outwards. You may have similar visualizations or memory rules for CW and CCW, or plus and minus. The thing is that someone else will likely have a different memory rule which clashes with yours.

We can thus choose from:
inner / small
perpendicular / mid
outer / large

and:

inwards / CCW or CW / plus or minus / p
outwards / CW or CCW / minus or plus / q

For the description, we would definitely choose "inner", "perpendicular inwards", "perpendicular outwards", and "outer", but can we agree on the file naming?
Reply
RE: partial torus prims
#14
I would avoid using "inside" and "outside" again, these are already used for the full quarters...
I didnt find any mathematical terms for the main lines of a torus:
https://en.wikipedia.org/wiki/Torus#/med..._torus.png
so I looked for other location terms and found them in the anatomy:
- ventral (belly sided) could be the innermost ring
- dorsal (back sided) could be the outermost ring
- lateral (side) could be the side ring
- medial (center) means to the center
>indexes from inside to outside: v as the innermost, then m medial, l for lateral and d as outermost
>the number as before...

edited the wikipedia pic:
   
Reply
RE: partial torus prims
#15
Medial (toward the centre) and lateral (toward the side/edge/outside) are very good suggestions.

However, I'd prefer orbit nomenclature; periaptic (inscribing circle) and and apoaptic (circumscribing circle) for the other two.
Reply
« Next Oldest | Next Newest »



Forum Jump:


Users browsing this thread: 3 Guest(s)