|
|
Hallo.
I am creating an interface between CAD-Data and Povray. Therfore I create
the struktures based on prism-objects. The problem is, that some (none to
each) sides of a prism can be an arc. It is not possible to use CSG,
because the struktures are unknown and maybe so difficult that there is a
part of the same strukture which might be cutted away. How can I create a
prism with 'arcs'-sides? Now I am creating these sides by an approximation
with some points that are elements of this arc. This is not the best
solution. Maybe this would be a good new feature in the next version(s) of
povray.
I would be happy, if somebody has got a good idea.
S.G.
Post a reply to this message
|
|
|
|
> How can I create a prism with 'arcs'-sides?
I would suggest you read section 2.3.1 of the POV-Ray Documentation
which covers spline-based shapes, including splines in prisms. You
probably want to use a quadratic spline, if I have understood you
correctly. When you say an "arc", do you really mean an arc, which is
the shape of part of the circumference of a circle, or do you mean a
general curve? If it is an arc, then I think unioning a few cylinders
together would work very well if you can cope with the maths. If it is a
general curve, then I would recommend using a prism with a cubic spline.
Hope this helped,
Daniel
--
A most peculiar man With the windows closed And Mrs Reardon says
He died last Saturday So he'd never wake up He has a brother somewhere
He turned on the gas To his silent world Who should be notified soon
And he went to sleep And his tiny room .oO( http://sad.istic.org/ )
Post a reply to this message
|
|