|
![](/i/fill.gif) |
Christian Froeschlin <chr### [at] chrfr de> wrote:
> well, you certainly seem to like writing your own programs
> for everything.
Input filters for Bezier editor:
POV bezier_spline
Correctly written SVG (stargate)
Output filters:
Lathe bezier_spline
Prism bezier_spline
Pootrace output is 4 times too many points compared to done by hand.
Some 600 for potrace and 144 by hand. I doubt there are any tracers that can
come close hand-set pnts and handles.
#declare duckp = prism {
linear_sweep
bezier_spline
1.0, //top
0.0, //bottom
144,
<-123.867367,29.337008>,<-109.35193,36.243538>,<-58.403872,51.155164>,<-58.674016,68.453019>,
<-58.674016,68.453019>,<-49.498317,71.451545>,<-15.947157,81.185524>,<-4.889501,83.121523>,
<-4.889501,83.121523>,<-12.012144,78.493147>,<-18.432428,68.552062>,<-20.372922,62.748601>,
<-20.372922,62.748601>,<-20.917699,59.853613>,<-21.124805,57.782554>,<-18.743088,56.229265>,
<-18.743088,56.229265>,<-21.124805,53.640436>,<-23.195864,48.462787>,<-26.077341,44.820429>,
<-26.077341,44.820429>,<-27.130877,45.77041>,<-28.580618,46.391728>,<-30.151925,45.635346>,
<-30.151925,45.635346>,<-28.166406,32.308525>,<-28.549728,23.162987>,<-8.964086,23.63259>,
<-8.964086,23.63259>,<1.27375,24.519685>,<5.413437,32.799059>,<4.889501,44.005512>,
<4.889501,44.005512>,<4.139687,47.128745>,<1.910625,49.357807>,<-0.814917,49.70993>,
<-0.814917,49.70993>,<18.469373,62.413743>,<128.204438,95.883991>,<149.129791,89.640858>,
<149.129791,89.640858>,<140.917638,79.97076>,<137.79005,74.834251>,<136.284549,66.256915>,
<136.284549,66.256915>,<133.966753,81.076761>,<26.835351,52.050721>,<22.624313,48.48067>,
<22.624313,48.48067>,<22.04584,46.204699>,<24.722332,41.837792>,<25.856357,39.861884>,
<25.856357,39.861884>,<26.483181,39.583904>,<27.398823,39.86564>,<28.011054,40.400558>,
<28.011054,40.400558>,<27.117087,41.97866>,<26.694483,43.598642>,<25.856357,45.787299>,
<25.856357,45.787299>,<28.173597,48.951625>,<132.800372,78.369192>,<135.207201,63.563545>,
<135.207201,63.563545>,<127.53334,55.612899>,<128.369624,47.87727>,<123.895045,33.397795>,
<123.895045,33.397795>,<123.63794,48.395591>,<35.146563,35.639601>,<29.627076,31.781772>,
<29.627076,31.781772>,<29.864013,29.441409>,<30.568353,26.835351>,<31.781772,24.779009>,
<31.781772,24.779009>,<32.117901,24.370162>,<32.892675,24.722332>,<33.174411,25.004068>,
<33.174411,25.004068>,<33.033543,26.764917>,<32.329203,27.962295>,<31.781772,29.627076>,
<31.781772,29.627076>,<36.90031,32.632928>,<119.251551,45.445938>,<122.279022,31.243098>,
<122.279022,31.243098>,<116.257051,21.313793>,<118.72311,18.847734>,<116.533115,8.964086>,
<116.533115,8.964086>,<112.029522,13.563323>,<74.389318,30.060134>,<39.930928,17.928172>,
<39.930928,17.928172>,<34.709684,16.877186>,<30.888434,12.419061>,<32.596676,6.519335>,
<32.596676,6.519335>,<42.555254,-22.085638>,<38.530933,-47.76562>,<33.411593,-58.674016>,
<33.411593,-58.674016>,<24.779009,-78.107746>,<7.642499,-91.073115>,<-19.558005,-90.455775>,
<-19.558005,-90.455775>,<-38.530933,-90.43624>,<-65.916555,-72.92218>,<-66.823185,-45.635346>,
<-66.823185,-45.635346>,<-63.369056,-73.559055>,<-30.569997,-79.927804>,<-19.558005,-79.046938>,
<-19.558005,-79.046938>,<3.729281,-79.060758>,<18.31492,-54.406085>,<17.928172,-33.411593>,
<17.928172,-33.411593>,<18.31492,-15.082875>,<-0.538674,6.464089>,<-19.558005,4.889501>,
<-19.558005,4.889501>,<-26.43031,6.368749>,<-39.804683,4.776562>,<-44.005512,-0.814917>,
<-44.005512,-0.814917>,<-47.84147,7.248708>,<-51.155164,30.444572>,<-44.005512,43.190595>,
<-44.005512,43.190595>,<-45.77041,47.634364>,<-51.36227,48.876999>,<-57.044182,45.635346>,
<-57.044182,45.635346>,<-74.875701,40.939232>,<-105.041451,31.781772>,<-123.435133,26.923771>,
<-123.435133,26.923771>,<-125.091981,27.9593>,<-125.713299,28.166406>,<-123.867367,29.337008>
}
Post a reply to this message
Attachments:
Download 'ducky.png' (121 KB)
Preview of image 'ducky.png'
![ducky.png](/povray.binaries.images/attachment/%3Cweb.486c0391b85a6760d3575d3f0%40news.povray.org%3E/ducky.png?ttop=443866&toff=3200&preview=1)
|
![](/i/fill.gif) |