|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
I tried to output the IPoint of each ray, but I found something was not right
I built the following small mesh2Object
camera {
orthographic
location <20.0, 54.949548, 0.0>
look_at <0.0, 0.0, 0.0>
right 100*x
up 100*y
}
light_source {
<20.0, 54.949548, 0.0>
color rgb<1, 1, 1>
parallel
point_at <0.0, 0.0, 0.0>
}
#declare base_02 = mesh2 {
vertex_vectors {
3
<2.952163, 3.632734, -10.591118>,
<1.556791, 3.632964, -10.593109>,
<2.93827, 3.516272, -10.833504>,
}
face_indices {
1
<0,1, 2>,
}
}
union {
object {base_02
texture {
pigment { color rgb<1.0, 1.0, 1.0> }
finish {reflection {0.5} ambient 0 diffuse 0.015 specular 0.7 roughness 0.00085}
}
}
translate <0, 0, 3> //
rotate <0, 0, 0> //
}
Why is its IPoint
1.976229 3.602266-7.656250
2.419499 3.601889-7.656250
2.862769 3.601512-7.656250
I mean, obviously the z coordinate of the mesh2 Object is around -10, but how
does it intersect at -7.656250?
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"225012156" <225### [at] csueducn> wrote:
> ...
> #declare base_02 = mesh2 {
> vertex_vectors {
> 3
> <2.952163, 3.632734, -10.591118>,
> <1.556791, 3.632964, -10.593109>,
> <2.93827, 3.516272, -10.833504>,
> }
> face_indices {
> 1
> <0,1, 2>,
> }
> }
> union {
> object {base_02
> texture {
> pigment { color rgb<1.0, 1.0, 1.0> }
> finish {reflection {0.5} ambient 0 diffuse 0.015 specular 0.7 roughness 0.00085}
> }
> }
> translate <0, 0, 3> //
> rotate <0, 0, 0> //
> }
> Why is its IPoint
> 1.976229 3.602266-7.656250
> 2.419499 3.601889-7.656250
> 2.862769 3.601512-7.656250
> I mean, obviously the z coordinate of the mesh2 Object is around -10, but how
> does it intersect at -7.656250?
hope I interpret correctly, but is -10 + (translate 3) not 7 ? :-)
regards, jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"jr" <cre### [at] gmailcom> wrote:
> hi,
>
> "225012156" <225### [at] csueducn> wrote:
> > ...
> > #declare base_02 = mesh2 {
> > vertex_vectors {
> > 3
> > <2.952163, 3.632734, -10.591118>,
> > <1.556791, 3.632964, -10.593109>,
> > <2.93827, 3.516272, -10.833504>,
> > }
> > face_indices {
> > 1
> > <0,1, 2>,
> > }
> > }
> > union {
> > object {base_02
> > texture {
> > pigment { color rgb<1.0, 1.0, 1.0> }
> > finish {reflection {0.5} ambient 0 diffuse 0.015 specular 0.7 roughness 0.00085}
> > }
> > }
> > translate <0, 0, 3> //
> > rotate <0, 0, 0> //
> > }
> > Why is its IPoint
> > 1.976229 3.602266-7.656250
> > 2.419499 3.601889-7.656250
> > 2.862769 3.601512-7.656250
> > I mean, obviously the z coordinate of the mesh2 Object is around -10, but how
> > does it intersect at -7.656250?
>
> hope I interpret correctly, but is -10 + (translate 3) not 7 ? :-)
>
>
> regards, jr.
Thank you.I also found this mistake after sending this message. Sorry to bother
you with such a small problem
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"225012156" <225### [at] csueducn> wrote:
> I mean, obviously the z coordinate of the mesh2 Object is around -10, but how
> does it intersect at -7.656250?
maybe because of translate <0, 0, 3>?
ingo
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
hi,
"225012156" <225### [at] csueducn> wrote:
> ...
> Thank you.I also found this mistake after sending this message. Sorry to bother
> you with such a small problem
no problem. (I see such "slip ups" to mean that a (short) break, to have a
coffee or doing something else, is due. ;-))
regards ,jr.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 07/06/2023 11:11, ingo wrote:
> "225012156" <225### [at] csueducn> wrote:
>
>> I mean, obviously the z coordinate of the mesh2 Object is around -10, but how
>> does it intersect at -7.656250?
>
> maybe because of translate <0, 0, 3>?
yes, translate, but POVRay say :
-10.591118 + 3.000000 = -7.591118
and "225012156" wrote that z is equal to -7.656250
so a gap of 0.065132.
another subtlety ?
--
Kurtz le pirate
Compagnie de la Banquise
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
kurtz le pirate <kur### [at] gmailcom> wrote:
> yes, translate, but POVRay say :
> -10.591118 + 3.000000 = -7.591118
>
> and "225012156" wrote that z is equal to -7.656250
> so a gap of 0.065132.
>
> another subtlety ?
There are two vertices with z = -10.591118
and one with z = -10.833504
#declare base_02 = mesh2 {
vertex_vectors {
3
<2.952163, 3.632734, -10.591118>,
<1.556791, 3.632964, -10.593109>,
<2.93827, 3.516272, -10.833504>,
}
So it's not completely vertical, which means the intersection point will be
farther back than -10.591118. The z coordinate of the centroid of the
translated triangle lies at -7.67195467, but maybe it's intersecting at one of
the other triangle centers.
- BE
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|