POV-Ray : Newsgroups : povray.general : convert isosurfaces to mesh Server Time
16 Nov 2024 19:17:20 EST (-0500)
  convert isosurfaces to mesh (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: JC (Exether)
Subject: convert isosurfaces to mesh
Date: 9 Sep 2003 13:44:02
Message: <3f5e1162$1@news.povray.org>
I've been looking around and couldn't find any tool to 'convert' an 
isosurface to a mesh. Does anyone have this kind of tool (preferably 
povray script) handy ? Otherwise I'll have to write it myself, but I 
suspect it will take some time, so if I can avoid it ...  :-)

Tx,

JC


Post a reply to this message

From: ABX
Subject: Re: convert isosurfaces to mesh
Date: 9 Sep 2003 14:00:31
Message: <ar4slv4bdhd2kvov7vfgh2ilv7n0ib3prj@4ax.com>
On Tue, 09 Sep 2003 19:44:08 +0200, "JC (Exether)" <no### [at] spamfr> wrote:
> I've been looking around and couldn't find any tool to 'convert' an 
> isosurface to a mesh. Does anyone have this kind of tool (preferably 
> povray script) handy ? Otherwise I'll have to write it myself, but I 
> suspect it will take some time, so if I can avoid it ...  :-)

http://news.povray.org/search/?s=tessel

Perhaps some of http://members.home.nl/seedseven/#MMMM could be useful too.

ABX


Post a reply to this message

From: None
Subject: Re: convert isosurfaces to mesh
Date: 9 Sep 2003 14:10:04
Message: <Xns93F1901F0796None@204.213.191.226>
"JC (Exether)" <no### [at] spamfr> wrote in news:3f5e1162$1@news.povray.org:

> I've been looking around and couldn't find any tool to 'convert' an 
> isosurface to a mesh. Does anyone have this kind of tool (preferably 
> povray script) handy ? Otherwise I'll have to write it myself, but I 
> suspect it will take some time, so if I can avoid it ...  :-)

The difficulty with isosurfaces is that they are functions and don't 
necessarily present an actual contiguous surface.  A tessellation routine 
that can handle any isosurface function would be very difficult, next to 
impossible.


Post a reply to this message

From: Christoph Hormann
Subject: Re: convert isosurfaces to mesh
Date: 9 Sep 2003 15:02:02
Message: <7hk131-qmq.ln1@triton.schunter.etc.tu-bs.de>
JC (Exether) wrote:
> I've been looking around and couldn't find any tool to 'convert' an 
> isosurface to a mesh. Does anyone have this kind of tool (preferably 
> povray script) handy ? Otherwise I'll have to write it myself, but I 
> suspect it will take some time, so if I can avoid it ...  :-)

There is the tesselation patch:

http://jgrimbert.free.fr/pov/patch/tessel/index.html

which also works for isosurfaces and there were various macros for this 
posted over the time.

None the less you will find that all these methods are slow (esp. as 
script) and don't really convert the isosurface - they just create a 
rough approximation.

-- Christoph


Post a reply to this message

From: Warp
Subject: Re: convert isosurfaces to mesh
Date: 9 Sep 2003 16:44:37
Message: <3f5e3bb5@news.povray.org>
None <Non### [at] onca> wrote:
> The difficulty with isosurfaces is that they are functions and don't 
> necessarily present an actual contiguous surface.  A tessellation routine 
> that can handle any isosurface function would be very difficult, next to 
> impossible.

  Actually tesselating a contiguous and derivable (read: smooth) isosurface
(which most are) is perfectly possible and not even too difficult. An
algorithm like the marching triangles is perfectly suitable.

-- 
plane{-x+y,-1pigment{bozo color_map{[0rgb x][1rgb x+y]}turbulence 1}}
sphere{0,2pigment{rgbt 1}interior{media{emission 1density{spherical
density_map{[0rgb 0][.5rgb<1,.5>][1rgb 1]}turbulence.9}}}scale
<1,1,3>hollow}text{ttf"timrom""Warp".1,0translate<-1,-.1,2>}//  - Warp -


Post a reply to this message

From: Mike Williams
Subject: Re: convert isosurfaces to mesh
Date: 9 Sep 2003 18:17:24
Message: <CCoseMAC9kX$EwdU@econym.demon.co.uk>
Wasn't it JC (Exether) who wrote:
>I've been looking around and couldn't find any tool to 'convert' an 
>isosurface to a mesh. Does anyone have this kind of tool (preferably 
>povray script) handy ? Otherwise I'll have to write it myself, but I 
>suspect it will take some time, so if I can avoid it ...  :-)

I've looked at Kevin Loney's approximation macro and Jaap Frank's go-
faster version for my Isosurface tutorial. Note that for many
isosurfaces it is faster to render the isosurface than it is to use the
approximation.

For parametric isosurfaces, there's Ingo Janssen's param.inc, which has
the advantage of being considerably faster than the original isosurface.

See my <http://www.econym.demon.co.uk/isotut/> for details.

-- 
Mike Williams


Post a reply to this message

From: JC (Exether)
Subject: Re: convert isosurfaces to mesh
Date: 10 Sep 2003 07:19:37
Message: <3f5f08c9@news.povray.org>
Thanks all for you input, I will experiment that.
All I want to do is to have a basic equivalent to a very time-consuming 
isosurface I have and use the iso for the real render.

JC

JC (Exether) wrote:
> I've been looking around and couldn't find any tool to 'convert' an 
> isosurface to a mesh. Does anyone have this kind of tool (preferably 
> povray script) handy ? Otherwise I'll have to write it myself, but I 
> suspect it will take some time, so if I can avoid it ...  :-)
> 
> Tx,
> 
> JC
>


Post a reply to this message

From: None
Subject: Re: convert isosurfaces to mesh
Date: 10 Sep 2003 09:35:31
Message: <Xns93F261949579None@204.213.191.226>
Warp <war### [at] tagpovrayorg> wrote in news:3f5e3bb5@news.povray.org:

> None <Non### [at] onca> wrote:
>> The difficulty with isosurfaces is that they are functions and don't 
>> necessarily present an actual contiguous surface.  A tessellation
>> routine that can handle any isosurface function would be very
>> difficult, next to impossible.
> 
>   Actually tesselating a contiguous and derivable (read: smooth)
>   isosurface 
> (which most are) is perfectly possible and not even too difficult. An
> algorithm like the marching triangles is perfectly suitable.

I perfectly realize that, which is why I was reffering to non contiguous 
surfaces and "any" (read: all) function.


Post a reply to this message

From: Hugo Asm
Subject: Re: convert isosurfaces to mesh
Date: 10 Sep 2003 10:07:20
Message: <3f5f3018@news.povray.org>
> I've looked at Kevin Loney's approximation macro...
> Note that for many isosurfaces it is faster to render
> the isosurface than it is to use the approximation.

Considering the time to postprocess the data from Kevin Loney's macro,
perhaps it's faster to run an isosurface render. But I've found his macro to
be really useful. But you need to save the data. Possibly (as I did) in .OBJ
file format and run it through triangle decimation algoritm (that's always
neat). Then export back to mesh2 and the result will surely render faster
than any isosurface. It will, however, still use at least 10 times more
memory of course.

Regards,
Hugo


Post a reply to this message

From: Sebastian H 
Subject: Re: convert isosurfaces to mesh
Date: 10 Sep 2003 12:27:30
Message: <3f5f50f2$1@news.povray.org>
Warp wrote:
> None <Non### [at] onca> wrote:
> 
>>The difficulty with isosurfaces is that they are functions and don't 
>>necessarily present an actual contiguous surface.  A tessellation routine 
>>that can handle any isosurface function would be very difficult, next to 
>>impossible.
> 
> 
>   Actually tesselating a contiguous and derivable (read: smooth) isosurface
> (which most are) is perfectly possible and not even too difficult. An
> algorithm like the marching triangles is perfectly suitable.
> 

Has anyone written a programm that does this for isosurfaces written in 
povray syntax?

Sebastian H.


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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