Jump to content


voxelize


  • You cannot reply to this topic
5 replies to this topic

#1 me_here_me

    New Member

  • Members
  • PipPip
  • 24 posts

Posted 09 July 2007 - 01:53 PM

Hi,
I am not sure if this is the right forum to ask this question but I can try :)

problem:
I have a polygonal mesh in (stl) format and I want to voxelize that polygonal mesh to get a 3D volumetric dataset. Can someone point me to an appropriate tool or method of doing that.

regards and thanks in advance

#2 dave_

    Senior Member

  • Members
  • PipPipPipPip
  • 584 posts

Posted 09 July 2007 - 01:55 PM

stl format? What is that?

#3 me_here_me

    New Member

  • Members
  • PipPip
  • 24 posts

Posted 09 July 2007 - 02:24 PM

stl stands for Stereolithography files. these are used to store polygonal meshes in form of normals and vertices of triangles. The triangle information is stored in structures like given below:

facet normal 7.0 3.5 -7.0
outer loop
vertex 3.7 -8.4 -1.0
vertex 1.3 -8.4 -9.9
vertex 4.4 -9.7 -1.0
endloop
endfacet


thanks in advance

#4 z80

    Valued Member

  • Members
  • PipPipPip
  • 104 posts

Posted 09 July 2007 - 06:07 PM

Perhaps this one will work for you?

Didn't try it myself.. Just did a quick google search (google is your friend)..

EDIT: Seems that application is $500 though... Couldnt seem to find any free tools.. Perhaps this page is a good starting point if you wanna try to code something yourself?

#5 kusma

    Valued Member

  • Members
  • PipPipPip
  • 163 posts

Posted 10 July 2007 - 12:04 PM

me_here_me said:

Hi,
I am not sure if this is the right forum to ask this question but I can try :)

problem:
I have a polygonal mesh in (stl) format and I want to voxelize that polygonal mesh to get a 3D volumetric dataset. Can someone point me to an appropriate tool or method of doing that.

regards and thanks in advance

I recently wrote a tool doing something like this. What I did was using the stencil buffer in OpenGL to do point-in-triangle-mesh tests (very similar to stencil shadows) for points on the x-y plane, iterated over the z-axis. The result was read back to the CPU and put into a 3d-dataset. The next thing I did was apply a distance transform algorithm to find the signed distance to the nearest voxel. I'm not sure if this is exactly what you wanted, though.

#6 me_here_me

    New Member

  • Members
  • PipPip
  • 24 posts

Posted 10 July 2007 - 03:57 PM

thanks all for the replies.

It seems that I should start coding as I could not find any free tool.

thanks again :)





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users