VolumeToMesh generating Quads or Triangles

440 views
Skip to first unread message

kco...@g.clemson.edu

unread,
Oct 3, 2013, 12:59:12 PM10/3/13
to openvd...@googlegroups.com

Hello and thanks in advance for reading this post.  I have been working on a mesh conversion tool using OpenVDB.  I have come across a situation where I would read in a mesh as triangles and store it as a VDB levelset using MeshToVolume.  I would then use VolumeToMesh to convert the VDB levelset into an OBJ file.  However, I noticed that the newly created obj file would be written as Quads as opposed to Triangles since VolumeToMesh returns a set of quads as opposed to triangles.  I was wondering if it there is a built-in way to specify whether the generated faces from VolumeToMesh are triangles or quads.  If not, I could convert the generated quads to triangles myself.
Any assistance is greatly appreciated.
~Kacey

Ken Museth

unread,
Oct 3, 2013, 1:35:10 PM10/3/13
to openvd...@googlegroups.com
Hi Kacey,

The VolumeToMesh conversion tool generates quads because of the underlying algorithm (dual-contouring). If you need a triangle mesh you'll have to convert it yourself, but it's pretty straightforward. Alternative use the convert SOP in Houdini's free Apprentice :)

-K

Kacey Coley

unread,
Oct 3, 2013, 5:28:09 PM10/3/13
to openvd...@googlegroups.com
Hi Ken,
Thanks for the response!  I'll look into converting the quads to triangles and check out Houdini's convert SOP.
~Kacey
Reply all
Reply to author
Forward
0 new messages