POV-Ray : Newsgroups : povray.general : Parametric surfaces faster than thought. : Re: Parametric surfaces faster than thought. Server Time
19 Apr 2024 15:18:06 EDT (-0400)
  Re: Parametric surfaces faster than thought.  
From: William F Pokorny
Date: 15 Jun 2020 05:50:47
Message: <5ee74477$1@news.povray.org>
On 6/14/20 12:36 PM, Le_Forgeron wrote:
> Le 11/05/2020 à 19:16, Le_Forgeron a écrit :
> 
...
>>
>> http://wiki.povray.org/content/User:Le_Forgeron/UVMeshable
>>
...
> 
> Yep, done now in new release of Hgpovray38 :
> https://github.com/LeForgeron/povray/releases/tag/v3.8.0.alpha%2BHg.228.Jasmin
> 
>> https://github.com/LeForgeron/povray/releases/tag/v3.8.0.alpha%2BHg.228.Jasmin
> 
> Beware, contained_by is *not* honored.
> 
> #declare OBJ= parametric{
>    function{ u/2 }     //x(u,v)  or x
>    function{ 0.05*(sin(v*pi)+sin(u*pi))}
>    function{ v/2 }     //z(u,v)  or z
>    <-4,-2>,<4,2>  // start, end of (u,v)
>    contained_by {box {<-2,-1,-1>,<2,1,1>}}
>    max_gradient 2
>    accuracy 0.0035
>    precompute 18 x,y,z
>    scale  0.25
>    texture { T }
> }
> 
> #include "NurbsMesh.inc"
> 
> #declare Foo=
> mesh{
>    UVMeshable(OBJ, 16*4, 16*4 )
> 
>   texture { T }
>    rotate -90*x
>   translate 0.5*x+0.5*z
> };
> object{ Foo }
> 

Cool. I'll give this a go.

Bill P.


Post a reply to this message

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