|
 |
Hi,
while working on C4D->POV converter, I've discovered a strange form
deviation of prism, extruded from bezier spline (see attachment).
I claim, that exported data is absolutely correct (checked many times),
and no any useful info found here:
https://www.povray.org/documentation/view/3.7.0/62/
https://wiki.povray.org/content/Reference:Prism
I'm not sure about collisions, but only wonder how the same data with
the algorithm can produce different results. It seams to me, that
interpretation is different or maybe some additional scaling is applied
to tangents, for example.
Code is below, any ideas ?
//----------------------------------------------------------------------------
camera{ perspective
location <0, 0, 0>
angle 53.130102
matrix
<1.000000, -0.000000, 0.000000,
0.000000, 0.000000, 1.000000,
-0.000000, -1.000000, 0.000000,
0.058724, 5.575552, -0.059483>
}
#declare Extrude = prism { linear_sweep bezier_spline 0, 1.000000, 16
<1.500000, 0.000000>
<1.500000, 0.450694>
<0.450694, 1.000000>
<0.000000, 1.000000>
<0.000000, 1.000000>
<-0.450694, 1.000000>
<-1.500000, 0.450694>
<-1.500000, 0.000000>
<-1.500000, 0.000000>
<-1.500000, -0.450694>
<-0.450694, -1.000000>
<0.000000, -1.000000>
<0.000000, -1.000000>
<0.450694, -1.000000>
<1.500000, -0.450694>
<1.500000, 0.000000>
matrix
<1.000000, 0.000000, 0.000000,
0.000000, 1.000000, 0.000000,
0.000000, 0.000000, 1.000000,
0.000000, 0.000000, 0.000000>
material { mat_default }
}
object{ Extrude }
//----------------------------------------------------------------------------
Post a reply to this message
Attachments:
Download 'c4d_spline.png' (60 KB)
Download 'c4d_test.png' (23 KB)
Preview of image 'c4d_spline.png'

Preview of image 'c4d_test.png'

|
 |