POV-Ray : Newsgroups : povray.general : newbie question Server Time
25 Dec 2024 14:35:37 EST (-0500)
  newbie question (Message 1 to 5 of 5)  
From: @(none)
Subject: newbie question
Date: 29 Apr 2003 13:00:53
Message: <3eaeafc5$1@news.povray.org>
Greetings all,
	I have a simple problem I would like to cast before you all.

	How can I cut a plane (or a very thin and wide box) into
an irregular predefined shape?
	
	I have an irregular bounded flat shape composed of thin tubes and want 
to fill the inside with a plane.  Imagine a distorted childs inflatable 
paddling pool - I need to put the bottom skin in.

	I've been looking at the clipped_by and bounded_by directives but am 
not making much progress.

TIA
nick


Post a reply to this message

From: gonzo
Subject: Re: newbie question
Date: 29 Apr 2003 15:05:07
Message: <web.3eaecbf2688f93ca0c272b50@news.povray.org>
@(none) wrote:
>Greetings all,
> I have a simple problem I would like to cast before you all.
>
> How can I cut a plane (or a very thin and wide box) into
>an irregular predefined shape?
>
> I have an irregular bounded flat shape composed of thin tubes and want
>to fill the inside with a plane.  Imagine a distorted childs inflatable
>paddling pool - I need to put the bottom skin in.
>
> I've been looking at the clipped_by and bounded_by directives but am
>not making much progress.
>
>TIA
>nick
>

If you can make a spline of your shape you can create a prism object, or if
you have the shape in a 2d image you could create a heightfield from that.

RG


Post a reply to this message

From: Warp
Subject: Re: newbie question
Date: 29 Apr 2003 17:08:14
Message: <3eaee9bd@news.povray.org>
"@(none)" <""nick\"@(none)"> wrote:
> 	How can I cut a plane (or a very thin and wide box) into
> an irregular predefined shape?

  Instead of using a plane, you could use a polygon or a prism. You can
shape their boundaries quite freely.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

From: @(none)
Subject: Re: newbie question
Date: 30 Apr 2003 07:41:48
Message: <3eafb67c$1@news.povray.org>
Warp wrote:
> "@(none)" <""nick\"@(none)"> wrote:
> 
>>	How can I cut a plane (or a very thin and wide box) into
>>an irregular predefined shape?
> 
> 
>   Instead of using a plane, you could use a polygon or a prism. You can
> shape their boundaries quite freely.
> 


Thanks for the tips - ran out of time so I had to do it the hard way
by rebuilding the shape from scratch.. :(

cheers
nick


Post a reply to this message

From: Bill Hails
Subject: Re: newbie question
Date: 2 May 2003 15:23:29
Message: <3eb2c5b1@news.povray.org>
none wrote:

> Greetings all,
> I have a simple problem I would like to cast before you all.
> 
> How can I cut a plane (or a very thin and wide box) into
> an irregular predefined shape?
> 
> I have an irregular bounded flat shape composed of thin tubes and want
> to fill the inside with a plane.  Imagine a distorted childs inflatable
> paddling pool - I need to put the bottom skin in.
> 
> I've been looking at the clipped_by and bounded_by directives but am
> not making much progress.
> 
> TIA
> nick

you could use trace, from the center of the bottom skin to
points around the rim, and make a union of sphere_sweep's
from the center to every point on the edge (yes, it's sick :-)

-- 
Bill Hails


Post a reply to this message

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