POV-Ray : Newsgroups : povray.general : Convert mesh to mesh2 Server Time
24 Nov 2024 23:53:59 EST (-0500)
  Convert mesh to mesh2 (Message 1 to 6 of 6)  
From: Reuben Pearse
Subject: Convert mesh to mesh2
Date: 5 Nov 2016 05:52:00
Message: <581dabc0@news.povray.org>
I've have a mesh file that I want to convert into mesh2 syntax.

I found these 2 posts that look helpful, but they turn up a bunch of dead 
links:
http://news.povray.org/povray.general/thread/%3C3cc56be6$1@news.povray.org%3E/?ttop=247348&toff=3650

http://news.povray.org/povray.general/thread/%3CMPG.111efd91cef90d85989680@news.povray.org%3E/

Any help would be greatly appreciated.

Reuben


Post a reply to this message

From: Reuben Pearse
Subject: Re: Convert mesh to mesh2
Date: 5 Nov 2016 07:50:11
Message: <581dc773$1@news.povray.org>
In answer to my own question I've found meshcomp v3.0, a program for working 
with mesh files.

I now have a workflow for converting POV-Ray CSG objects to OBJ files, using 
the following method:

Convert CSG to an Isosurface using William Pokorny's ObjectAsIso macro
Convert Isosurface to mesh using Jaap Franks macro
Convert mesh file to mesh2 format using meshcomp v3.0 
(WinMeshcomp30_beta3.zip)
Convert mesh2 to OBJ using mesh22obj.py (a Python script written by ingo)

This approach makes it possible to convert native POV-Ray objects to other 
3D file formats!

Details on the various utilities below

William Pokorny's macro: 
http://news.povray.org/povray.binaries.scene-files/thread/%3Cweb.4aae23151285f23f15ee2c550%40news.povray.org%3E/
Jaap Franks macro: http://www.econym.demon.co.uk/isotut/approx.htm
WinMeshcomp30_beta3.zip - http://warp.povusers.org/stuff.html
mesh22obj.py: 
http://news.povray.org/povray.binaries.utilities/message/%3CXns94F5A773245Aseed7%40news.povray.org%3E/#%3CXns94F5A773245Aseed7%40news.povray.org%3E




"Reuben Pearse" <reu### [at] pearsecouk> wrote in message 
news:581dabc0@news.povray.org...
> I've have a mesh file that I want to convert into mesh2 syntax.
>
> I found these 2 posts that look helpful, but they turn up a bunch of dead 
> links:
>
http://news.povray.org/povray.general/thread/%3C3cc56be6$1@news.povray.org%3E/?ttop=247348&toff=3650
>
>
http://news.povray.org/povray.general/thread/%3CMPG.111efd91cef90d85989680@news.povray.org%3E/
>
> Any help would be greatly appreciated.
>
> Reuben
>


Post a reply to this message

From: Thomas de Groot
Subject: Re: Convert mesh to mesh2
Date: 5 Nov 2016 08:22:45
Message: <581dcf15$1@news.povray.org>
You can also use Poseray. It can read mesh{} data from a POV-Ray file, 
then you export again to POV-Ray and it will be mesh2{}.

-- 
Thomas


Post a reply to this message

From: Reuben Pearse
Subject: Re: Convert mesh to mesh2
Date: 5 Nov 2016 08:29:10
Message: <581dd096$1@news.povray.org>
Thanks for the tip. I'll give that a try.

"Thomas de Groot" <tho### [at] degrootorg> wrote in message 
news:581dcf15$1@news.povray.org...
> You can also use Poseray. It can read mesh{} data from a POV-Ray file, 
> then you export again to POV-Ray and it will be mesh2{}.
>
> -- 
> Thomas


Post a reply to this message

From: Mike Horvath
Subject: Re: Convert mesh to mesh2
Date: 7 Nov 2016 10:49:25
Message: <5820a285@news.povray.org>
On 11/5/2016 7:50 AM, Reuben Pearse wrote:
> In answer to my own question I've found meshcomp v3.0, a program for working
> with mesh files.
>
> I now have a workflow for converting POV-Ray CSG objects to OBJ files, using
> the following method:
>
> Convert CSG to an Isosurface using William Pokorny's ObjectAsIso macro
> Convert Isosurface to mesh using Jaap Franks macro
> Convert mesh file to mesh2 format using meshcomp v3.0
> (WinMeshcomp30_beta3.zip)
> Convert mesh2 to OBJ using mesh22obj.py (a Python script written by ingo)
>
> This approach makes it possible to convert native POV-Ray objects to other
> 3D file formats!
>
> Details on the various utilities below
>
> William Pokorny's macro:
>
http://news.povray.org/povray.binaries.scene-files/thread/%3Cweb.4aae23151285f23f15ee2c550%40news.povray.org%3E/
> Jaap Franks macro: http://www.econym.demon.co.uk/isotut/approx.htm
> WinMeshcomp30_beta3.zip - http://warp.povusers.org/stuff.html
> mesh22obj.py:
>
http://news.povray.org/povray.binaries.utilities/message/%3CXns94F5A773245Aseed7%40news.povray.org%3E/#%3CXns94F5A773245Aseed7%40news.povray.org%3E
>
>
>
>
> "Reuben Pearse" <reu### [at] pearsecouk> wrote in message
> news:581dabc0@news.povray.org...
>> I've have a mesh file that I want to convert into mesh2 syntax.
>>
>> I found these 2 posts that look helpful, but they turn up a bunch of dead
>> links:
>>
http://news.povray.org/povray.general/thread/%3C3cc56be6$1@news.povray.org%3E/?ttop=247348&toff=3650
>>
>>
http://news.povray.org/povray.general/thread/%3CMPG.111efd91cef90d85989680@news.povray.org%3E/
>>
>> Any help would be greatly appreciated.
>>
>> Reuben
>>
>
>

Could you post some before and after examples of CSG turned into OBJ? I 
can't imagine the results being very well optimized.

Mike


Post a reply to this message

From: Trevor G Quayle
Subject: Re: Convert mesh to mesh2
Date: 8 Nov 2016 13:15:00
Message: <web.5822155864acc5da81c811d20@news.povray.org>
"Reuben Pearse" <reu### [at] pearsecouk> wrote:
> I've have a mesh file that I want to convert into mesh2 syntax.
>
> I found these 2 posts that look helpful, but they turn up a bunch of dead
> links:
>
http://news.povray.org/povray.general/thread/%3C3cc56be6$1@news.povray.org%3E/?ttop=247348&toff=3650
>
>
http://news.povray.org/povray.general/thread/%3CMPG.111efd91cef90d85989680@news.povray.org%3E/
>
> Any help would be greatly appreciated.
>
> Reuben

I ended up writing a converter in VisualBasic back in 2002.
It appears to still work on my computer (Windows 7) though there are some issues
with the interface layout.  I have my original Basic files so I may see if I can
fix and recompile if I can find the right version of VB.

-tgq


Post a reply to this message

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