|
|
Le 03/06/2018 à 05:24, Hedrondude a écrit :
> I'm using POV-Ray to render cross sections of four and five dimensional uniform
> polytopes - especially star polytopes. These renders can be seen on my website
> http://www.polyope.htm/hedrondude/polychora.htm I use the polygon keyword quite
> a bit, but it only renders with the binary filling (all odd density regions gets
> filled in, even density are left as holes) which forces me to manually fill in
> all the non-0 even density regions. This isn't too bad for simple polytopes,
> but with more complex ones, this gets very tedious. Is it possible to render
> polygons with density filling (all non-0 density regions gets filled in - i.e.
> filled in by the 'winding method') or better yet could this be a feature for
> POV-Ray 3.8 where there is a density filling option for the polygon keyword. I
> would suggest something like this:
>
> #local obj=polygon {45,v1,v2,v3,......,v44,v1 density}
>
>
I did an experimentation on
https://github.com/LeForgeron/povray/tree/extension/winding-polyline
#declare A=<0,3,0>;
#declare B=<6,3,0>;
#declare C=<4.5,1,0>;
#declare D=<7,2,0>;
#declare E=<4.5,6,0>;
#declare F=<7,4,0>;
#declare G=<2,4,0>;
#declare H=<4,6,0>;
#declare I=<4,0,0>;
#declare J=<5,0,0>;
#declare K=<5,8,0>;
polyline
{
A, B, C, D,
E, F, G, H,
I, J, K, A
range { <1,2> }
texture { pigment { color srgb 0.5 }}
}
Post a reply to this message
Attachments:
Download 'polyline.png' (10 KB)
Preview of image 'polyline.png'
|
|