RE: cyli2.dat
2020-11-02, 16:00 (This post was last modified: 2020-11-02, 16:03 by Lasse Deleuran.)
2020-11-02, 16:00 (This post was last modified: 2020-11-02, 16:03 by Lasse Deleuran.)
While we are on the subject, there is another piece of information which I can't find for n-fcyli.dat: What is the logic behind placement of the control points for the outer-most conditional lines when the cylinders are not complete?
As an example, 1-16cyli is a single segment of a cylinder. It has the following two control points (Click "Load Full Structure" and then the pictures of the conditional lines) [color=white][size=medium][font=Arial, Helvetica, sans-serif]0.7654[/font][/size][/color]
1) 0.7654, 1, 0.7654
2) 1, 1, -0.4142
Here I would have expected control point 1 to be:
0.7071, 1, 0.7071
as that is the corner point of the adjacent quad in the cylinder (See 1-8cyli.dat)
Control point 2 I understand, as it corresponds to the primitive being placed next to a rectilinear wall.
Looking at the length between the "rogue" control points and the conditional lines they beling to, one can see:
The distance from the conditional line to control point 2 is: 0.4142
The distance from the conditional line to control point 1 is: sqrt((0.9239-0.7654)^2+(0.3827-0.7654)^2) = 0.4142
So 0.4142 seems to be the distance used for "rogue" control points. I would just like to know why it differs from the length of a segment:[color=#333333][size=small][size=small][font=Tahoma, Verdana, Arial, sans-serif] sqrt((0.9239-1)^2+(0.3827)^2) = 0.3902[/size][/font][/size][/color]
PS. I'm doing all this in order to create unit tests for the primitives and will make a new thread with a full report later.
As an example, 1-16cyli is a single segment of a cylinder. It has the following two control points (Click "Load Full Structure" and then the pictures of the conditional lines) [color=white][size=medium][font=Arial, Helvetica, sans-serif]0.7654[/font][/size][/color]
1) 0.7654, 1, 0.7654
2) 1, 1, -0.4142
Here I would have expected control point 1 to be:
0.7071, 1, 0.7071
as that is the corner point of the adjacent quad in the cylinder (See 1-8cyli.dat)
Control point 2 I understand, as it corresponds to the primitive being placed next to a rectilinear wall.
Looking at the length between the "rogue" control points and the conditional lines they beling to, one can see:
The distance from the conditional line to control point 2 is: 0.4142
The distance from the conditional line to control point 1 is: sqrt((0.9239-0.7654)^2+(0.3827-0.7654)^2) = 0.4142
So 0.4142 seems to be the distance used for "rogue" control points. I would just like to know why it differs from the length of a segment:[color=#333333][size=small][size=small][font=Tahoma, Verdana, Arial, sans-serif] sqrt((0.9239-1)^2+(0.3827)^2) = 0.3902[/size][/font][/size][/color]
PS. I'm doing all this in order to create unit tests for the primitives and will make a new thread with a full report later.