LDraw.org Discussion Forums
Complimentary Conds - Printable Version

+- LDraw.org Discussion Forums (https://forums.ldraw.org)
+-- Forum: General (https://forums.ldraw.org/forum-12.html)
+--- Forum: Official File Specifications/Standards (https://forums.ldraw.org/forum-32.html)
+--- Thread: Complimentary Conds (/thread-26711.html)



Complimentary Conds - Orion Pobursky - 2022-09-29

If complimentary conds are something we're going to hold vote then they need to be documented somewhere other than having to search the forums. My understanding was that they are nice to have but not required. Either way we need better documentation and I'm not the best person to write it.


RE: Complimentary Conds - Max Murtazin - 2022-09-29

(2022-09-29, 20:41)Orion Pobursky Wrote: If complimentary conds are something we're going to hold vote then they need to be documented somewhere other than having to search the forums. My understanding was that they are nice to have but not required. Either way we need better documentation and I'm not the best person to write it.

I agree. This came sort of out of nowhere for me, so will be good to have a proper docs on that topic


RE: Complimentary Conds - Philippe Hurbain - 2022-09-29

(2022-09-29, 20:41)Orion Pobursky Wrote: If complimentary conds are something we're going to hold vote then they need to be documented somewhere other than having to search the forums. My understanding was that they are nice to have but not required. Either way we need better documentation and I'm not the best person to write it.

If that can help, some explanations I wrote in my edger2 documentation:
Code:
Primitives such as partial cylinders or spheres have conditional lines on edge. For cylinders, these integrated conditional lines are expected to match a tangent plane, for spheres they match a joining cylinder. If you try to join something directed inwards, integrated conditional lines will not show properly while they should (left image). Edger2 properly creates an overlapping conditional line in that case (middle image). Note that unfortunately nothing will prevent the conditional line to appear at the wrong incidence if you try to join something directed outwards (third image, file edg6b). Edger2 can't do anything there.

Note that cylinders properly matches other cylinders (and spheres matches spheres) because conditional lines on each side complete each other properly.



RE: Complimentary Conds - Magnus Forsberg - 2022-09-29

I made some simple images here, trying to make a visual explanation:
https://forums.ldraw.org/thread-24262-post-39346.html#pid39346


RE: Complimentary Conds - Travis Cobbs - 2022-09-29

(2022-09-29, 20:41)Orion Pobursky Wrote: If complimentary conds are something we're going to hold vote then they need to be documented somewhere other than having to search the forums. My understanding was that they are nice to have but not required. Either way we need better documentation and I'm not the best person to write it.

In my opinion, these should be documented in the Primitives Reference.


RE: Complimentary Conds - Max Murtazin - 2022-09-29

(2022-09-29, 21:15)Magnus Forsberg Wrote: I made some simple images here, trying to make a visual explanation:
https://forums.ldraw.org/thread-24262-post-39346.html#pid39346

How do the complementary conds actually work? Do they override the existing condline on same coordinates, or just draws on top?


RE: Complimentary Conds - Willy Tschager - 2022-09-30

(2022-09-29, 21:22)Travis Cobbs Wrote: In my opinion, these should be documented in the Primitives Reference.

IMHO it should be added to:

https://www.ldraw.org/article/512.html#overlaps

BTW. All the A-B-C-D stuff is pretty meaningless without a picture.

w.


RE: Complimentary Conds - Orion Pobursky - 2022-09-30

That's where I was thinking.

Also, there was a picture, not sure what happened.


RE: Complimentary Conds - Travis Cobbs - 2022-10-03

(2022-09-29, 22:41)Max Murtazin Wrote: How do the complementary conds actually work? Do they override the existing condline on same coordinates, or just draws on top?

Neither. If you join two partial cylinders, the conditional line at the edge of one of them will be visible half the time when some conditional line should be visible, and the conditional line from the other will be visible for the other half of the time. Their definition in the cylinders is designed to make the mutually exclusive. Furthermore, if you put a tangent plane at the edge of a partial cylinder, the conditional on the edge of the partial cylinder will be visible at all times when it should.


RE: Complimentary Conds - Willy Tschager - 2022-10-10

If Philo's explanation is fine we could start from there. Thoughts? LSB?

w.


RE: Complimentary Conds - Orion Pobursky - 2022-10-10

I'll have a proposal for review by Wednesday.


RE: Complimentary Conds - Willy Tschager - 2022-10-25

(2022-10-10, 15:21)Orion Pobursky Wrote: I'll have a proposal for review by Wednesday.

Tomorrow is a Wednesday.

w.


RE: Complimentary Conds - Max Murtazin - 2022-10-25

(2022-10-25, 7:34)Willy Tschager Wrote: Tomorrow is a Wednesday.

w.

But is it the Wednesday?


RE: Complimentary Conds - Orion Pobursky - 2022-10-25

Stuff happened. I'll write something up shortly.


RE: Complimentary Conds - Willy Tschager - 2022-11-15

(2022-10-10, 15:21)Orion Pobursky Wrote: I'll have a proposal for review by Wednesday.

Please add this to your pipe.

w.


RE: Complimentary Conds - Travis Cobbs - 2022-12-19

(2022-09-30, 8:57)Willy Tschager Wrote: IMHO it should be added to:

https://www.ldraw.org/article/512.html#overlaps

Willy requested that I get this started by suggesting actual verbiage, so here is my proposed starting point. In the overlaps section, I feel that the second paragraph should be updated to say:

Quote:All or part of a conditional line (line type 5) may not overlap all or part of any other conditional line (line type 5), with the exception of complimentary conditional lines for curved primitives. Complimentary conditional lines are placed at the end of curved primitives where those curved primitives may join with either a continuation of the curve, or with other geometry. In this case, the control points that are off of the edge of the curved primitive are placed so they are tangent to the curve.

If two such curves are placed next to each other (for example to turn a quarter cylinder into a half cylinder), the conditional lines on the edge of each primitive will overlap exactly, and their control points will complement each other such that at most one will be rendered at any given time, and that one of the two will always be rendered when appropriate. When other geometry is placed against such a curved primitive, nothing needs to be done if the geometry is tangent to the curve. If it is sloped further, then a complementary conditional line will be placed on the edge of that geometry, with the control points past the edge of the geometry configured to be tangent to the curve, and the two end points of the conditional placed to exactly overlap the complimentary conditional line on the edge of the curved primitive.

I definitely think that diagrams would make things clearer, but I'm not up to drawing such diagrams.


RE: Complimentary Conds - Willy Tschager - 2022-12-19

(2022-12-19, 6:56)Travis Cobbs Wrote: Willy requested that I get this started by suggesting actual verbiage, so here is my proposed starting point. In the overlaps section, I feel that the second paragraph should be updated to say:

Thanks Travis.

w.


RE: Complimentary Conds - Gerald Lasser - 2022-12-20

(2022-09-30, 8:57)Willy Tschager Wrote: IMHO it should be added to:

https://www.ldraw.org/article/512.html#overlaps

BTW. All the A-B-C-D stuff is pretty meaningless without a picture.

w.




That should be the picture for the above:



Quote:    If AB and CD need to be conditional lines and BC a line, it is acceptable to define this as a line BC and a single conditional line AD

    If AC needs to be a line and just CD needs to be a conditional line, it is not acceptable to define the conditional line as either AD or BD

    If AD is a line, there are no valid conditional lines along the length of AD




YELLOW line is the permitted cond-line as per our current description in the Overlap section

   


RE: Complimentary Conds - Willy Tschager - 2022-12-22

(2022-12-19, 6:56)Travis Cobbs Wrote: I definitely think that diagrams would make things clearer, but I'm not up to drawing such diagrams.

   
   

Could this help?

w.


RE: Complimentary Conds - Magnus Forsberg - 2022-12-22

Or use the images I made here.
https://forums.ldraw.org/thread-24262-post-39346.html#pid39346


RE: Complimentary Conds - Travis Cobbs - 2022-12-22

(2022-12-22, 15:20)Magnus Forsberg Wrote: Or use the images I made here.
https://forums.ldraw.org/thread-24262-post-39346.html#pid39346

Willy, I don't understand your second image. It looks like the blue quad is tangent to the cylinder, but I don't understand the diagonal red lines. Also, I like the fact that Magnus's first image shows the conditional control point from both complimentary conditional lines.


RE: Complimentary Conds - Willy Tschager - 2022-12-23

Travis, the second cond is the actual complimentary, but if Magnus' image is fine I'm fine with it as well.

w.


RE: Complimentary Conds - Magnus Forsberg - 2022-12-23

(2022-12-22, 22:13)Travis Cobbs Wrote: .... but I don't understand the diagonal red lines.

Maybe we need to describe how the condline is visualised?
Using the default settings in LDPE the condline is a red line from A to B. The control points C and D are visualised as an orange or brown imaginary line to the control points, from either A or B.

It is possible to flip a condline by replacing A with B. In LDPE select the condline, and press F on your keyboard, to flip a condline. This is, of course, only possible on loose condlines, not on the ones included in a primitive.