POV-Ray : Newsgroups : povray.general : Macro to import dxf? Server Time
30 Nov 2024 01:30:28 EST (-0500)
  Macro to import dxf? (Message 1 to 3 of 3)  
From: David Curtis
Subject: Macro to import dxf?
Date: 22 Feb 2005 09:38:55
Message: <421b43ff@news.povray.org>
I'm wondering if anyone has written a macro that imports a dxf polyline to a 
sdl spline. It would be very helpful in my current project. I'd write it but 
hey, i'd rather trace. (it'd take me a while to write too).

Dave.


Post a reply to this message

From: David Curtis
Subject: Re: Macro to import dxf?
Date: 22 Feb 2005 11:19:51
Message: <421b5ba7@news.povray.org>
"David Curtis" <dcu### [at] mycybernetnet> wrote in message 
news:421b43ff@news.povray.org...
> I'm wondering if anyone has written a macro that imports a dxf polyline to 
> a sdl spline. It would be very helpful in my current project. I'd write it 
> but hey, i'd rather trace. (it'd take me a while to write too).

After writing this I went to work on the macro and found (not too quickly) 
that the #read directive needs strings enclosed in quotes, which the dxf 
does not supply. I guess i'll write a c program to convert the dxf directly 
to a spline in an include file.


Post a reply to this message

From: Warp
Subject: Re: Macro to import dxf?
Date: 22 Feb 2005 12:45:22
Message: <421b6fb1@news.povray.org>
David Curtis <dcu### [at] mycybernetnet> wrote:
> After writing this I went to work on the macro and found (not too quickly) 
> that the #read directive needs strings enclosed in quotes

  No, it needs comma-separated values. The values themselves can be
floating point numbers, vectors and strings.

-- 
#macro N(D)#if(D>99)cylinder{M()#local D=div(D,104);M().5,2pigment{rgb M()}}
N(D)#end#end#macro M()<mod(D,13)-6mod(div(D,13)8)-3,10>#end blob{
N(11117333955)N(4254934330)N(3900569407)N(7382340)N(3358)N(970)}//  - Warp -


Post a reply to this message

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