POV-Ray : Newsgroups : povray.general : Mesh Subdivision? Server Time
4 Nov 2024 13:32:19 EST (-0500)
  Mesh Subdivision? (Message 1 to 10 of 13)  
Goto Latest 10 Messages Next 3 Messages >>>
From: Jesse Connell
Subject: Mesh Subdivision?
Date: 14 Aug 2007 12:19:59
Message: <46c1d62f$1@news.povray.org>
Hello,

I'm working on visualizing some simulation data with POVRay. Since what 
I'm dealing with is a set of 3D finite-element meshes, it looks like the 
best method is to convert the surface of my mesh into a POVRay mesh of 
smooth triangles and go from there. What I've done is split the 
quadrilaterals I have into triangles and compute normal vectors with a 
bunch of cross products. This works OK, but it has some problems, such 
as the shadow line artifact. Also, I don't see any easy way to 
distribute a range of colors on the surface of the mesh to represent a 
variable (ie, pressure or velocity magnitude).

What (I think) I'd like to do is split the elements of my mesh into many 
more elements and smooth it out. I've found a few sets of macros and 
things for doing this, like the "New Surface Subdivision Suite" (
http://www.geocities.com/evilsnack/nsss.htm ) and "POV-Ray with 
Subdivision". They all seem to be unmaintained, though, or at least very 
out of date. Does anyone here have a preferred way of smoothing / 
subdividing meshes? Also, is there any experience out there in general 
with using POVRay with finite element analysis data? I know that's not 
at all what it's designed for, but I think it could be very useful for 
generating images for presentations/posters/etc. Thanks,

Jesse


Post a reply to this message

From: Samuel Benge
Subject: Re: Mesh Subdivision?
Date: 14 Aug 2007 15:41:13
Message: <46c20559$1@news.povray.org>
Jesse Connell wrote:

> Does anyone here have a preferred way of smoothing / 
> subdividing meshes?

Yes, I use the aforementioned "POV-Ray with Subdivision" It's good for 
many things, though it suffers from strange artifacts sometimes. I 
mention it because I hope more people will start using it, and then 
maybe it will be supported in the new version of POV.

~Sam


Post a reply to this message

From: FlyerX
Subject: Re: Mesh Subdivision?
Date: 14 Aug 2007 17:50:39
Message: <46c223af$1@news.povray.org>
Jesse Connell wrote:
> Hello,
> 
> I'm working on visualizing some simulation data with POVRay. Since what 
> I'm dealing with is a set of 3D finite-element meshes, it looks like the 
> best method is to convert the surface of my mesh into a POVRay mesh of 
> smooth triangles and go from there. What I've done is split the 
> quadrilaterals I have into triangles and compute normal vectors with a 
> bunch of cross products. This works OK, but it has some problems, such 
> as the shadow line artifact. Also, I don't see any easy way to 
> distribute a range of colors on the surface of the mesh to represent a 
> variable (ie, pressure or velocity magnitude).
> 
> What (I think) I'd like to do is split the elements of my mesh into many 
> more elements and smooth it out. I've found a few sets of macros and 
> things for doing this, like the "New Surface Subdivision Suite" (
> http://www.geocities.com/evilsnack/nsss.htm ) and "POV-Ray with 
> Subdivision". They all seem to be unmaintained, though, or at least very 
> out of date. Does anyone here have a preferred way of smoothing / 
> subdividing meshes? Also, is there any experience out there in general 
> with using POVRay with finite element analysis data? I know that's not 
> at all what it's designed for, but I think it could be very useful for 
> generating images for presentations/posters/etc. Thanks,
> 
> Jesse


PoseRay can subdivide meshes and export them to POV code. Load a mesh 
and in the groups tab select subdivision and then press update. There 
are several options you can play with for different results.

http://mysite.verizon.net/sfg0000/

good luck,

FlyerX


Post a reply to this message

From: Tim Attwood
Subject: Re: Mesh Subdivision?
Date: 14 Aug 2007 20:52:05
Message: <46c24e35$1@news.povray.org>
MeshLab can subdivide, cull, re-mesh etc.
(but it's not a modeler)
http://meshlab.sourceforge.net/

Wings3d can subdivide stuff.
http://www.wings3d.com/

And of course you'll need PoseRay
to import stuff.
http://mysite.verizon.net/sfg0000/


Post a reply to this message

From: Jesse Connell
Subject: Re: Mesh Subdivision?
Date: 15 Aug 2007 11:51:21
Message: <46c320f9$1@news.povray.org>
Thanks for all the advice! I'm leaning towards POV-Ray with Subdivision 
right now, mostly because the format conversions look like they'll be a 
bit of a pain otherwise. (Too bad there's no source available for 
PoseRay; it looks useful but I'd rather not fiddle with Wine at the moment.)

A few last questions for whoever might know: Is it likely that POV-Sub 
will make it into the official packages in the future? Also, what's with 
the three years without an update to the website/code? (That was what 
worried me in the first place.) And finally, if I have color set at each 
triangle in a mesh, would POV-Sub do something to interpolate them when 
subdividing? (Don't want to get my hopes up, but that would be pretty 
great.) Thanks again,

Jesse


Post a reply to this message

From: William Tracy
Subject: Re: Mesh Subdivision?
Date: 15 Aug 2007 12:03:26
Message: <46c323ce$1@news.povray.org>
Jesse Connell wrote:
> (Too bad there's no source available for 
> PoseRay; it looks useful but I'd rather not fiddle with Wine at the 
> moment.)

I'd like to second that. :-)

-- 
William Tracy
afi### [at] gmailcom wtr### [at] calpolyedu

You know you've been raytracing too long when you know how far away a 
scene's light source is just by looking at the shadows.
Taps a.k.a. Tapio Vocadlo


Post a reply to this message

From: Bill Pragnell
Subject: Re: Mesh Subdivision?
Date: 16 Aug 2007 06:10:00
Message: <web.46c4215d95c01edf731f01d10@news.povray.org>
Jesse Connell <jes### [at] buedu> wrote:
> Also, I don't see any easy way to
> distribute a range of colors on the surface of the mesh to represent a
> variable (ie, pressure or velocity magnitude).

I've never tried it, but if you use a mesh2 object you can texture triangles
or even vertices individually. It looks like you need to put the textures
into a list and reference them by index but it can be done.

http://www.povray.org/documentation/view/3.6.1/293/

Bill


Post a reply to this message

From: Warp
Subject: Re: Mesh Subdivision?
Date: 16 Aug 2007 07:00:35
Message: <46c42e53@news.povray.org>
Bill Pragnell <bil### [at] hotmailcom> wrote:
> I've never tried it, but if you use a mesh2 object you can texture triangles
> or even vertices individually.

  Actually you can do that with a mesh too, but it becomes more verbose.

-- 
                                                          - Warp


Post a reply to this message

From: Jesse Connell
Subject: Re: Mesh Subdivision?
Date: 16 Aug 2007 11:34:03
Message: <46c46e6b$1@news.povray.org>
Ah, I hadn't notice the individual vertex possibility. That's definitely 
something I can use. Thanks!

Jesse

Warp wrote:
> Bill Pragnell <bil### [at] hotmailcom> wrote:
>> I've never tried it, but if you use a mesh2 object you can texture triangles
>> or even vertices individually.
> 
>   Actually you can do that with a mesh too, but it becomes more verbose.
>


Post a reply to this message

From: Tor Olav Kristensen
Subject: Re: Mesh Subdivision?
Date: 16 Aug 2007 21:39:55
Message: <46c4fc6b$1@news.povray.org>
Jesse Connell wrote:
...
> What (I think) I'd like to do is split the elements of my mesh into many
> more elements and smooth it out. I've found a few sets of macros and
> things for doing this, like the "New Surface Subdivision Suite" (
> http://www.geocities.com/evilsnack/nsss.htm ) and "POV-Ray with
> Subdivision". They all seem to be unmaintained, though, or at least very
> out of date.
...

Jesse,
Last time I tried the NSSS macros they worked very well, so I don't
think that the suite needs much maintenance at the moment.

Here's some images I rendered with NSSS (and some macros of my own):
http://home.online.no/~t-o-k/POV-Ray/Mesh-Moebius_Band.jpg
http://news.povray.org/povray.binaries.images/thread/%3C41450e47%40news.povray.org%3E/
http://news.povray.org/povray.binaries.images/thread/%3C4131f02f%40news.povray.org%3E/

-- 
Tor Olav
http://subcube.com


Post a reply to this message

Goto Latest 10 Messages Next 3 Messages >>>

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