POV-Ray : Newsgroups : povray.newusers : Prism with integrated arcs Server Time
2 Nov 2024 01:21:05 EDT (-0400)
  Prism with integrated arcs (Message 1 to 2 of 2)  
From: S    G
Subject: Prism with integrated arcs
Date: 10 Oct 2004 09:15:00
Message: <web.416934bf8ce252094c54d0cd0@news.povray.org>
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

From: Daniel Hulme
Subject: Re: Prism with integrated arcs
Date: 10 Oct 2004 09:41:56
Message: <20041010144156.1920093c@dh286.pem.cam.ac.uk>
> 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

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.