|
![](/i/fill.gif) |
So I too wrote some code to take SVG paths
<path fill="#FFFFFF" stroke="#000000" d="M0.006,425.273c0,0,73.236,
0.886,99.318,0.886c1.832,0,0.336,7.079,1.885,7.079c3.344,0,7.095,
0,9.39,0c2.021,0,2.188-3.735,2.534-8.951c3.129-47.258,19.139-288.661,
24.509-362.653c0.089-1.222-2.8-2.541-3.9-3.077c-1.229-0.599,0.042
-10.216,1.104-10.432c1.796-0.365,3.896-1.994,3.991-3.327c1.675-23.507,
2.175-28.84,2.965-41.648c0.178-2.879-11.252-3.759-11.504-0.885c-6.73,
76.88-27.813,321.803-32.638,377.871c-0.637,7.399-8.103,10.412-10.99,
10.51c-28.866,0.979-86.664,1-86.664,1"/>
and output POV lathes
lathe {
bezier_spline
52,
<0,7.965>,<0,7.965>,<73.236,7.07901>,<99.318,7.07901>,
<99.318,7.07901>,<101.15,7.07901>,<99.654,0>,<101.203,0>,
<101.203,0>,<104.547,0>,<108.298,0>,<110.593,0>,
<110.593,0>,<112.614,0>,<112.781,3.73499>,<113.127,8.95099>,
<113.127,8.95099>,<116.256,56.209>,<132.266,297.612>,<137.636,371.604>,
<137.636,371.604>,<137.725,372.826>,<134.836,374.145>,<133.736,374.681>,
<133.736,374.681>,<132.507,375.28>,<133.778,384.897>,<134.84,385.113>,
<134.84,385.113>,<136.636,385.478>,<138.736,387.107>,<138.831,388.44>,
<138.831,388.44>,<140.506,411.947>,<141.006,417.28>,<141.796,430.088>,
<141.796,430.088>,<141.974,432.967>,<130.544,433.847>,<130.292,430.973>,
<130.292,430.973>,<123.562,354.093>,<102.479,109.17>,<97.654,53.102>,
<97.654,53.102>,<97.017,45.703>,<89.551,42.69>,<86.664,42.592>,
<86.664,42.592>,<57.798,41.613>,<0.0,41.592>,<0.0,41.592>
}
Which means I can design an outline in an vector drawing package like
Illustrator, and then render the resulting lathe in POV.
Attached are a couple of test images using this.
Cheers,
Edouard.
Post a reply to this message
Attachments:
Download 'lathe-1.jpg' (161 KB)
Download 'glasses-wip.jpg' (114 KB)
Preview of image 'lathe-1.jpg'
![lathe-1.jpg](/povray.binaries.images/attachment/%3C48cefbbc%40news.povray.org%3E/lathe-1.jpg?ttop=443866&toff=3050&preview=1)
Preview of image 'glasses-wip.jpg'
![glasses-wip.jpg](/povray.binaries.images/attachment/%3C48cefbbc%40news.povray.org%3E/glasses-wip.jpg?ttop=443866&toff=3050&preview=1)
|
![](/i/fill.gif) |