POV-Ray : Newsgroups : povray.binaries.images : Rope macro - Work in progress : Re: Rope macro - Work in progress Server Time
9 Aug 2024 15:26:32 EDT (-0400)
  Re: Rope macro - Work in progress  
From: Mike Williams
Date: 2 Mar 2005 10:17:52
Message: <Ya6F5DAwZdJCFwJu@econym.demon.co.uk>
Wasn't it Thomas de Groot who wrote:
>
>"Mike Williams" <nos### [at] econymdemoncouk> schreef in bericht
>news:4223062d@news.povray.org...
>> I'm currently working on a rope macro that will generate a rope along a
>> spline.
>>
>> The output is a mesh2 with a uv_map.
>>
>> I'll make the macro available when it's finished.
>>
>>
>
>
>Would be nice if the mesh could be written to a file....  :-)

Makemesh is supposed to be capable of that, and in fact it will write
such a file but for some reason it can't find it again afterwards in
order to re-use it. I didn't have that problem with SweepSpline.

I tried for a while, but couldn't work out what was going wrong. If you
want to try it, just add a Filename parameter to the Rope macro
definition

   #macro Rope(Track,Width,Strands,Twist,Fatness,U,V,Filename)

pass it onward to makemesh

   BuildWriteMesh2(Verts, Norms, UV, V, U-1, Filename)

and supply a filename when you call the macro

   Rope(Spline, 0.04, 5, 3, 1.5, 200, 50, "ropedata.inc")

If you happen to find out why that doesn't work, and how to fix it,
please let me know.

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

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