You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a very nice and scalable wrapper to use povray. I wanted to use spline using vapory to create continuous curves. An example from povray is such.
If I break it up in multiple steps. It does two things
interpolate data given set of points. (Problem is here)
Then plotting spheres.
Two methods came to my mind to solve the problem. First, interpolate the data by using some spline with higher resolution using scipy. But it has the drawback of storing interpolated data points. Or, find a way to declare spline function in povray using vapory. Is it possible to do from vapory?
Would you please share your comments and possible suggestion to implement this using vapory.
The text was updated successfully, but these errors were encountered:
Dear Zulko,
This is a very nice and scalable wrapper to use povray. I wanted to use spline using vapory to create continuous curves. An example from povray is such.
declare MySpline =
spline {
cubic_spline
-.25, <0,0,-1>
0.00, <1,0,0>
0.25, <0,0,1>
0.50, <-1,0,0>
0.75, <0,0,-1>
1.00, <1,0,0>
1.25, <0,0,1>
}
declare ctr = 0;
while (ctr < 1)
sphere {
MySpline(ctr),.25
pigment { rgb <1-ctr,ctr,0> }
}
#declare ctr = ctr + 0.01;
end
If I break it up in multiple steps. It does two things
Two methods came to my mind to solve the problem. First, interpolate the data by using some spline with higher resolution using scipy. But it has the drawback of storing interpolated data points. Or, find a way to declare spline function in povray using vapory. Is it possible to do from vapory?
Would you please share your comments and possible suggestion to implement this using vapory.
The text was updated successfully, but these errors were encountered: