POV-Ray : Newsgroups : povray.general : mesh to dxf conversion Server Time
31 Oct 2024 06:04:07 EDT (-0400)
  mesh to dxf conversion (Message 1 to 10 of 12)  
Goto Latest 10 Messages Next 2 Messages >>>
From: Gail Shaw
Subject: mesh to dxf conversion
Date: 4 May 2000 08:07:12
Message: <391167f0@news.povray.org>
Can anyone suggest utility or give some advice on writing
a pov mesh to dxf file convertor.

I'd like to generate a triangle mesh in pov, write it to a file then convert
that
file to dxf for use in vue d'espirit. (Giles's make grass macro is far
superior to any grass that can be created in vue)

Comments and suggestions appreciated

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Marc Schimmler
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:14:51
Message: <391169B9.E66B14A@ica.uni-stuttgart.de>
Gail Shaw wrote:
> 
> Can anyone suggest utility or give some advice on writing
> a pov mesh to dxf file convertor.
> 
> I'd like to generate a triangle mesh in pov, write it to a file then convert
> that
> file to dxf for use in vue d'espirit. (Giles's make grass macro is far
> superior to any grass that can be created in vue)
> 
> Comments and suggestions appreciated
> 

If you wish to programm this stuff you can have the dxf specification
from

http://www.dcs.ed.ac.uk/home/mxr/gfx/3d-hi.html

I'm not sure but maybe crossroads can also convert from pov to dxf:

http://home.europa.com/~keithr/

Marc

-- 
Marc Schimmler


Post a reply to this message

From: Gilles Tran
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:29:57
Message: <39116CF2.D5D6C294@inapg.inra.fr>
You can do this with Crossroads. Replace the "mesh" statement in the ouput file
by "union", remove any texture or transformation statement and it should import
the file without any trouble.
The file should be only : union{triangle{...} triangle{...}... triangle{...}}

You can then convert it in DXF. In fact, regular triangles and spheres are the
only POV primitives that seem to be actually supported by Crossroads for
conversion to other formats.

G.

Gail Shaw wrote:

> Can anyone suggest utility or give some advice on writing
> a pov mesh to dxf file convertor.
>
> I'd like to generate a triangle mesh in pov, write it to a file then convert
> that
> file to dxf for use in vue d'espirit. (Giles's make grass macro is far
> superior to any grass that can be created in vue)
>
> Comments and suggestions appreciated
>
> Gail
> ********************************************************************
> * gsh### [at] monotixcoza              * Reality.dat not found         *
> * http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
> ********************************************************************
> * The best way to accelerate Windows NT is at 9.8 m/s^2      *
> ********************************************************************


Post a reply to this message

From: Warp
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:35:15
Message: <39116e83@news.povray.org>
If the mesh is created by a povray macro, it will not be that easy.
  You will need to output the values generated by the macro to a file
(perhaps in povray form, ie "union { triangle ... and so on", or directly
to a format known by the conversion program, like the raw format). For this
you will need to use the #write command and perhaps modify the macro a bit
to support this.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Gail Shaw
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:45:23
Message: <391170e3@news.povray.org>
Warp wrote in message <39116e83@news.povray.org>...
>  If the mesh is created by a povray macro, it will not be that easy.
>  You will need to output the values generated by the macro to a file
>(perhaps in povray form, ie "union { triangle ... and so on", or directly
>to a format known by the conversion program, like the raw format). For this
>you will need to use the #write command and perhaps modify the macro a bit
>to support this.


The macro already supports writing meshes to a file. I will still need to
modify
it a bit as I want the objects to fit on a height field.

Thanks

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Gail Shaw
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:45:48
Message: <391170fc@news.povray.org>
>If you wish to programm this stuff you can have the dxf specification
>from
>
>http://www.dcs.ed.ac.uk/home/mxr/gfx/3d-hi.html
>
>I'm not sure but maybe crossroads can also convert from pov to dxf:
>
>http://home.europa.com/~keithr/
>


Thanks, I'll have a look at both.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Gail Shaw
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:46:53
Message: <3911713d@news.povray.org>
Gilles Tran wrote in message <39116CF2.D5D6C294@inapg.inra.fr>...
>You can do this with Crossroads. Replace the "mesh" statement in the ouput
file
>by "union", remove any texture or transformation statement and it should
import
>the file without any trouble.
>The file should be only : union{triangle{...} triangle{...}...
triangle{...}}
>
>You can then convert it in DXF. In fact, regular triangles and spheres are
the
>only POV primitives that seem to be actually supported by Crossroads for
>conversion to other formats.


Great!!

Thanks

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

From: Gilles Tran
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 08:48:02
Message: <391171AA.CD200AC4@inapg.inra.fr>
Warp wrote:

>   If the mesh is created by a povray macro, it will not be that easy.
>   You will need to output the values generated by the macro to a file
> (perhaps in povray form, ie "union { triangle ... and so on", or directly
> to a format known by the conversion program, like the raw format). For this
> you will need to use the #write command and perhaps modify the macro a bit
> to support this.

Since she was talking about my grass macro, this is already done there (set the
"dofile" parameter to "true"). The "dosmooth" parameter should be "false",
because the conversion is more of a problem for meshes that contain smooth
triangles, since Crossroads only supports regular ones. You can still re-smooth
the triangles in Crossroads if necessary.
When I can't regenerate a POV mesh without the smoothing, I import the mesh to
Excel, move the values into separated columns, remove the normals and save it
(and then import it into Crossroads). It's less straightforward but it works.

G.


Post a reply to this message

From: Warp
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 09:09:59
Message: <391176a7@news.povray.org>
Gail Shaw <gsh### [at] monotixcoza> wrote:
: The macro already supports writing meshes to a file.

  Kewl.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: Gail Shaw
Subject: Re: mesh to dxf conversion
Date: 4 May 2000 10:26:12
Message: <39118884@news.povray.org>
>The "dosmooth" parameter should be "false",
>because the conversion is more of a problem for meshes that contain smooth
>triangles, since Crossroads only supports regular ones. You can still
re-smooth
>the triangles in Crossroads if necessary.
>When I can't regenerate a POV mesh without the smoothing, I import the mesh
to
>Excel, move the values into separated columns, remove the normals and save
it
>(and then import it into Crossroads). It's less straightforward but it
works.


Noted, thanks.

btw do you mind me modifying your macro? I intend to use the trace function
to find the height of a height field and possible the eval_pigment  along
with an
imagemap to determine density of grass.

Gail
********************************************************************
* gsh### [at] monotixcoza              * Reality.dat not found         *
* http://www.rucus.ru.ac.za/~gail/ * Attempting to reboot universe *
********************************************************************
* The best way to accelerate Windows NT is at 9.8 m/s^2      *
********************************************************************


Post a reply to this message

Goto Latest 10 Messages Next 2 Messages >>>

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