|
|
"HarryK" <hko### [at] t-onlinede> wrote in message
news:web.47d172f74b94145ace31411f0@news.povray.org...
> "Chris B" <nom### [at] nomailcom> wrote:
>> "HarryK" <hko### [at] t-onlinede> wrote in message
>> news:web.47c5c35db1099ea68e94e7980@news.povray.org...
>> > Hi folks
>> >
>> > I want to map a prism with n vertices, height_1=0 and height_2=0.001
>> > onto
>> > the
>> > surface of a sphere. Then I want to create the intersection of the
>> > sphere
>> > and
>> > the mapped prism so that only the prism is visible. Can anybody help
>> > me?
>> >
>
> Hi Chris,
>
> your proposal works quite well, when the prism is appriximate
> symmetric to the origin. Unfortenately my prism looks like a leaf and is
> not
> symmetric. But I found a solution to map the outline of the prism onto
> a sphere and get it as an object. I tried intersection and difference,
> helps me?
>
>
> Thanks in advance
> HarryK
>
Hi again Harry,
Several different approaches could get you moving in the right direction,
but I'm actually having a bit of a problem understanding your descriptions
of what it is you're trying to achieve. Indeed it was only when I read Tim's
answer that I thought of the conical prism solution.
Is there an image of something similar to what you're trying to achieve out
on the Internet that you could point us to with a URL or something?
Otherwise it may be worth adding a few more words to describe the difference
between what you can do so far and what you want to achieve. Is the problem
that the 'leaf-like' shape doesn't wrap far enough around the sphere? Is it
that you're getting flat sections where the prism isn't being extended high
enough? Are you getting unwanted bulges or some other sort of distortions
that you wish to eliminate?
If you don't need your 'object' to have any real thickness, you could look
at using the prism as an object pigment and using either cylindrical or
spherical warps to map it around a sphere. By defining the outside of the
prism as transparent you would then get something that would look like a
thin shell that conforms to the shape of your prism, but it could be wrapped
completely or almost completely around the sphere. There's a link here
http://lib.povray.org/collection/labeller/chrisb%201.0/labeller.html that
shows a similar sort of effect with the label on the far right.
Otherwise there may be some way to use Constructive Solid Geometry to take a
succession of slices and re-assemble the pieces, but this would be very
dependent upon the type of result you need.
Regards,
Chris B.
Regards,
Chris B.
Post a reply to this message
|
|