[vtkusers] Fwd: Your suggestion please about that
Cory Quammen
cquammen at cs.unc.edu
Tue Oct 13 21:02:37 EDT 2009
FWIW, I have created a VTK wrapper class around TetGen. The class
takes a watertight vtkPolyData (defined by triangles or quads) as
input and produces a vtkUnstructuredGrid consisting of tetrahedral
cells as output. The source code is attached.
If you want to drop these files into your VTK source tree, you'll have
to modify them a bit. Please let me know if you need more guidance to
get it them to compile as part of VTK.
You'll also need to define the TETLIBRARY symbol during compilation
(this prevents TetGen from defining a main function). Either add this
line to your CMakeLists.txt file:
ADD_DEFINITIONS(-DTETLIBRARY)
or uncomment the line
// #define TETLIBRARY
in tetgen.h.
This class uses TetGen to determine whether the input vtkPolyData is
watertight. If it is not, the output unstructured grid will contain no
cells. It uses TetGen's default tetrahedralization algorithm which is
fast but may not produce high-quality meshes. You can adjust the
options passed to the tetrahedralize() function to get higher-quality
meshes.
- Cory
On Thu, Oct 8, 2009 at 11:16 AM, Shepherd, Jason F <jfsheph at sandia.gov> wrote:
> We could also wrap a filter around the TetGen code (which is open-source)
> and generate the 3D meshes with this filter...
>
> http://tetgen.berlios.de/
>
> Jason
>
>
> On 10/7/09 4:51 PM, "Francois Bertel" <francois.bertel at kitware.com> wrote:
>
> Maybe you can try to implement the following approach:
>
> Interleaving Delaunay Refinement and Optimization for Practical
> Isotropic Tetrahedron Mesh Generation
> Tournois J., Wormser C., Alliez P., Desbrun M.
> N° RR-6826 (2009)
>
> http://hal.inria.fr/docs/00/35/92/88/PDF/RR-6826.pdf
>
>
> On Wed, Oct 7, 2009 at 5:06 PM, Ali Habib <ali.mahmoud.habib at gmail.com>
> wrote:
>>
>>
>>
>> Dear All,
>>
>> I want to create a FEM mesh as attached in the photo , I tried
>> vtkDeluanry3D but the triangles so wide and I want to create mesh like
>> that
>> appear in the photo
>>
>> - do u have a way to narrow the triangles.
>> - or do u have another approach
>>
>> _______________________________________________
>> Powered by www.kitware.com
>>
>> Visit other Kitware open-source projects at
>> http://www.kitware.com/opensource/opensource.html
>>
>> Please keep messages on-topic and check the VTK FAQ at:
>> http://www.vtk.org/Wiki/VTK_FAQ
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.vtk.org/mailman/listinfo/vtkusers
>>
>>
>
>
>
> --
> François Bertel, PhD | Kitware Inc. Suite 204
> 1 (518) 371 3971 x113 | 28 Corporate Drive
> | Clifton Park NY 12065, USA
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
>
> _______________________________________________
> Powered by www.kitware.com
>
> Visit other Kitware open-source projects at
> http://www.kitware.com/opensource/opensource.html
>
> Please keep messages on-topic and check the VTK FAQ at:
> http://www.vtk.org/Wiki/VTK_FAQ
>
> Follow this link to subscribe/unsubscribe:
> http://www.vtk.org/mailman/listinfo/vtkusers
>
>
--
Cory Quammen
Center for Computer Integrated Systems for Microscopy and Manipulation (CISMM)
Department of Computer Science
University of North Carolina at Chapel Hill
http://www.cs.unc.edu/~cquammen
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPolyDataToTetrahedralGrid.h
Type: application/octet-stream
Size: 2693 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091013/030c4a57/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vtkPolyDataToTetrahedralGrid.cxx
Type: application/octet-stream
Size: 6118 bytes
Desc: not available
URL: <http://www.vtk.org/pipermail/vtkusers/attachments/20091013/030c4a57/attachment-0001.obj>
More information about the vtkusers
mailing list