POV-Ray : Newsgroups : povray.general : Can't seem to take a wedge shaped bite Server Time
30 Jul 2024 16:26:34 EDT (-0400)
  Can't seem to take a wedge shaped bite (Message 1 to 4 of 4)  
From: Lilith
Subject: Can't seem to take a wedge shaped bite
Date: 18 Sep 2008 12:24:14
Message: <hlv4d4tfvamud7aueqjbvb5vlk3dg2p824@4ax.com>
This is driving me crazy.  I have a shape that's basically a circular
collection of clipped torii and cylinders but as a union I can
represent as a short cylinder with axis along the z-axis.  I want to
take a 30 degree wedge out of the bottom of it.  

I've defined the wedge as 

#declare Wedge = cylinder {
   <0, 0, -5>, <0, 0, 5> OuterDia + MinorDia * 2
   clipped_by {plane {x * 1, 0 rotate z*15}}
   clipped_by {plane {x * -1, 0 rotate z*-15}}
}

It really doesn't need to be that thick but it's okay for my purposes
right now.

I then do

#declare EmblemTest = difference {
   cylinder {<0, 0,.01>,<0, 0, -.01> 15}
   object {Wedge }
}
   
object {EmblemTest}

I get nothing.  I've tested using intersection and and see the wedge
shape.  I've tried setting the wedge to inverse in the difference and
the intersection declarations and I still can't get a disc with a
wedge removed.  I've tried a few other combinations that don't come to
mind at the moment but still nothing.

Suggestions?

Thanks,
Lilith


Post a reply to this message

From: Warp
Subject: Re: Can't seem to take a wedge shaped bite
Date: 18 Sep 2008 12:48:44
Message: <48d2866b@news.povray.org>
Lilith <lil### [at] dcccdedu> wrote:
> #declare Wedge = cylinder {
>    <0, 0, -5>, <0, 0, 5> OuterDia + MinorDia * 2
>    clipped_by {plane {x * 1, 0 rotate z*15}}
>    clipped_by {plane {x * -1, 0 rotate z*-15}}
> }

  I'm not sure clipped objects work in CSG as you expect. Have you tried
with intersection rather than clipped_by, to see if it works ok like that?

-- 
                                                          - Warp


Post a reply to this message

From: Lilith
Subject: Re: Can't seem to take a wedge shaped bite
Date: 18 Sep 2008 13:22:59
Message: <5g35d4hvobt1bafh0uc9lhs03nkka27kcn@4ax.com>
On 18 Sep 2008 12:48:44 -0400, Warp <war### [at] tagpovrayorg> wrote:

>Lilith <lil### [at] dcccdedu> wrote:
>> #declare Wedge = cylinder {
>>    <0, 0, -5>, <0, 0, 5> OuterDia + MinorDia * 2
>>    clipped_by {plane {x * 1, 0 rotate z*15}}
>>    clipped_by {plane {x * -1, 0 rotate z*-15}}
>> }
>
>  I'm not sure clipped objects work in CSG as you expect. Have you tried
>with intersection rather than clipped_by, to see if it works ok like that?

That could be it.  I'll probably need to redefine the wedge along the
means you've suggested.

Thanks,
Lilith


Post a reply to this message

From: Lilith
Subject: Re: Can't seem to take a wedge shaped bite
Date: 18 Sep 2008 13:27:43
Message: <or35d41b7tcts6m9d1p4fc8la4hd3smodf@4ax.com>
On Thu, 18 Sep 2008 12:22:59 -0500, Lilith <lil### [at] dcccdedu> wrote:

>On 18 Sep 2008 12:48:44 -0400, Warp <war### [at] tagpovrayorg> wrote:
>
>>Lilith <lil### [at] dcccdedu> wrote:
>>> #declare Wedge = cylinder {
>>>    <0, 0, -5>, <0, 0, 5> OuterDia + MinorDia * 2
>>>    clipped_by {plane {x * 1, 0 rotate z*15}}
>>>    clipped_by {plane {x * -1, 0 rotate z*-15}}
>>> }
>>
>>  I'm not sure clipped objects work in CSG as you expect. Have you tried
>>with intersection rather than clipped_by, to see if it works ok like that?
>
>That could be it.  I'll probably need to redefine the wedge along the
>means you've suggested.
>
>Thanks,
>Lilith

Very kewlsome.  That worked.

Thanks again,
Lilith


Post a reply to this message

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