POV-Ray : Newsgroups : povray.binaries.images : Le Forgeron: experiments : Re: Le Forgeron: experiments Server Time
6 Oct 2024 05:37:57 EDT (-0400)
  Re: Le Forgeron: experiments  
From: Le Forgeron
Date: 9 Mar 2014 13:28:14
Message: <531ca4ae$1@news.povray.org>
We might be better in povray.unofficial.patches

At least there is an image to see.

Le 09/03/2014 18:13, LanuHum nous fit lire :
> 
> From: Le Forgeron
> Date: 8 Mar 2014 17:29:31
>> for even more experimental features
>> git clone https://github.com/LeForgeron/Hgpovray.git
> 
> I collected a package (build rpm) and I study new abilities
> 1. tessel and tesselate:
> #declare Cube_ob =
> mesh {
> triangle {<-1,1,1>,<-1,1,-1>,<-1,-1,-1>}
> triangle {<-1,1,-1>,<1,1,-1>,<1,-1,-1>}
> triangle {<1,1,-1>,<1,1,1>,<1,-1,1>}
> triangle {<1,1,1>,<-1,1,1>,<1,-1,1>}
> triangle {<-1,-1,1>,<-1,-1,-1>,<1,-1,1>}
> triangle {<1,1,1>,<1,1,-1>,<-1,1,1>}
> triangle {<-1,-1,1>,<-1,1,1>,<-1,-1,-1>}
> triangle {<-1,-1,-1>,<-1,1,-1>,<1,-1,-1>}
> triangle {<1,-1,-1>,<1,1,-1>,<1,-1,1>}
> triangle {<-1,1,1>,<-1,-1,1>,<1,-1,1>}
> triangle {<-1,-1,-1>,<1,-1,-1>,<1,-1,1>}
> triangle {<1,1,-1>,<-1,1,-1>,<-1,1,1>}
> inside_vector <1,1,1>
> }
>  tessel {
>     original Cube_ob
>     accuracy 0
>     offset 0.01
>     texture{pigment{rgb 1}}
>  }
> 
> console: Accuracy must be greater than 0

accuracy is followed by a 3D vector which specify the number of slices
in each direction (it defaults to 10)

Each number of the vector is the number of slices of the bounding box of
the original object (in the relevant direction).

Default is <10,10,10>. Obviously 0 slices is a non-sense.

What is the point of tesselating a mesh ?

> 
>  tessel {
>     original Cube_ob
>     accuracy 1
>     offset 0.01
>     texture{pigment{rgb 1}}
>  }
> console: parse error: Can't tesselate object. (Perhaps too low accuracy or null
> offset?)
> Fatal error in parser: Cannot parse input!
> Render failed
> 
> That I do incorrectly, applying accuracy???
> 

Seems so.

> tessel {
>     original Cube_ob
>     offset 0.001
>     texture{pigment{rgb 1}}
>     scale 2
> }
> 
> Good render.
> Whether it is possible to achieve the ordered deformation?
>


Post a reply to this message

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