POV-Ray : Newsgroups : povray.newusers : SOR-Segments possible? Server Time
1 Nov 2024 01:22:05 EDT (-0400)
  SOR-Segments possible? (Message 1 to 4 of 4)  
From: Stephan Kuhagen
Subject: SOR-Segments possible?
Date: 14 Aug 2006 01:56:34
Message: <44e01091@news.povray.org>
Hello

I need a SOR-object with only a partial rotation of the curve. Is this
possible? For explanation: I try to generate some kind of shaped
pie-graphics from segments of a SOR-Object, lets say four segments with
different angles  representing some quota of the full pie. So I need
partially rotated SORs and then putting them together (with optionally some
gap between them, so I cant use simply one cylinder and a texture).

Is this possible? I found these function{ f_algbr_cyl?(..., SOR_ANGLE)} but
that seems not realy, what I need, or I do not understand how it works...

Thanks for any help
Regards
Stephan


Post a reply to this message

From: Mike Williams
Subject: Re: SOR-Segments possible?
Date: 14 Aug 2006 03:13:04
Message: <E12yyAAHFC4EFwoy@econym.demon.co.uk>
Wasn't it Stephan Kuhagen who wrote:
>Hello
>
>I need a SOR-object with only a partial rotation of the curve. Is this
>possible? For explanation: I try to generate some kind of shaped
>pie-graphics from segments of a SOR-Object, lets say four segments with
>different angles  representing some quota of the full pie. So I need
>partially rotated SORs and then putting them together (with optionally some
>gap between them, so I cant use simply one cylinder and a texture).
>
>Is this possible? I found these function{ f_algbr_cyl?(..., SOR_ANGLE)} but
>that seems not realy, what I need, or I do not understand how it works...

Probably the easiest way is to take the full SOR object and use CSG with
a pair of rotated planes.

// Ensure A2 is greater than A1
#if (A1 > A2)
  #declare Temp =A2;
  #declare A2 = A1;
  #declare A1 = Temp;
#end

// The CSG is different for angles over 180
#if ((A2-A1)>180) 
  difference {
  object {MySor}
  intersection {
    plane {-x,0 rotate y*A1}
    plane {x,0 rotate y*A2}
    texture {T1}
  }
}#else
  intersection {
  object {MySor}
  intersection {
    plane {x,0 rotate y*A1}
    plane {-x,0 rotate y*A2}
    texture {T1}
  }
}#end


-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Leroy
Subject: Re: SOR-Segments possible?
Date: 15 Aug 2006 00:38:02
Message: <44E14EDA.3050207@joplin.com>
If you use POV-ray 3.6 for Windows

You could use 'Wedge(Angle)' from the 'shapes.inc' file

reference 3.7.12.1  shapes.inc


Post a reply to this message

From: Stephan Kuhagen
Subject: Re: SOR-Segments possible?
Date: 15 Aug 2006 01:57:40
Message: <44e16254@news.povray.org>
Leroy wrote:

> If you use POV-ray 3.6 for Windows
> 
> You could use 'Wedge(Angle)' from the 'shapes.inc' file
> 
> reference 3.7.12.1  shapes.inc

That's it! Thank you. Better reading the docs next time... ;-)

Stephan


Post a reply to this message

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