Questions tagged [tetgen]

TetGen is a mesh generator written in C++, designed to partition any 3D geometry into tetrahedrons by employing a form of Delaunay triangulation.

Homepage: http://wias-berlin.de/software/tetgen/

TetGen can be used as a library or built as a standalone program. The code has been incorporated into software packages such as Mathematica and Gmsh.

A Python interface to TetGen is available through MeshPy

28 questions
4
votes
1 answer

Load mesh file with TetGen in C++

I want to load a mesh file using TetGen library in C++ but I don't know the right procedure or what switches to activate in my code in order to show the Constrained Delaunay mesh. I tried something basic loading of a dinosaur mesh (from…
CrSe
  • 328
  • 1
  • 2
  • 10
3
votes
1 answer

How to use TetGen for this simple 3D geometry

Here are the points defining my simple 3D geometry. datN = {{{-0.47150460764747554`, 0.29559274991660417`, 0.010131794240974218`}, {-0.4762714873728534`, 0.2955927499166042`, 0.010567957416020535`}, {-0.4835042628911566`, …
PlatoManiac
  • 1,442
  • 11
  • 31
2
votes
1 answer

tetgen library- tetrahedralize without convex hull

I am trying to tetrahedralize my mesh using tetgen library. However it creates convexhull on the mesh like in the picture. How can I tetrahedralize my mesh while preserving boundary surface of the mesh using tetgen library?
user3117189
  • 69
  • 3
  • 9
2
votes
1 answer

Boundary markers of nodes and faces in Tetgen

Let's say I create a .poly detailing the information of the my domain geometry. I also add node boundary markers and face boundary markers. Question 1: Do I have to be consistent between the boundary markers of nodes and faces? I mean, if a node…
2
votes
1 answer

Constructing the 3D Voronoi Diagram from a 3D Delaunay Tessallation

I'm trying to convert a 3D Delaunay Tessallation (generated with TetGen) to a Voronoi Diagram. I know TetGen can create Voronoi Diagrams, but I need to perform the conversion myself due to unusual boundary conditions. I'm totally stumped with the…
zmbq
  • 38,013
  • 14
  • 101
  • 171
2
votes
3 answers

Dynamically generate Triangle Lists for a Complex 3D Mesh

In my application, I have the shape and dimensions of a complex 3D solid (say a Cylinder Block) taken from user input. I need to construct vertex and index buffers for it. Since the dimensions are taken from user input, I cannot user Blender or 3D…
Agnel Kurian
  • 57,975
  • 43
  • 146
  • 217
1
vote
1 answer

How to use tetgen's "-i" command in my own project?

known: -i command is used to insert point set(with .node) into a hull(maybe plc,maybe .stl file) In the official documentation: The -i switch indicates that a list of additional points is going to be inserted into an existing tetrahedral mesh. The…
Long Lu
  • 11
  • 3
1
vote
2 answers

How do I avoid LNK2005 and LNK1169 errors while compiling TetGen in my project?

I am trying to compile TetGen and use the code below to tetrahedralize a .ply file although I am getting these two linker errors: LNK2005 main already defined in tetgen.obj LNK1169 one or more multiply defined symbols found The files that are…
1
vote
1 answer

TetGen generates tets for empty chambers/holes in a model

I am using tetgen to generate meshes for my research. My models have empty internal chambers inside them. For example, an empty box of size (5,5,5) inside a box of size (10, 10, 10). See image: The problem is that tetgen generates tetrahedrons…
Snowman
  • 1,503
  • 1
  • 17
  • 39
1
vote
2 answers

Using /clr and noclr libraries in one project

I am encountering some issues with one project. I need to use two libraries but one needs to be compiled with the /clr switch as the other cannot be compiled with this switch. Would there be a way to use at the same time those two libraries in one…
ccote
  • 111
  • 11
1
vote
1 answer

How to import .stl into tetgen?

I'm trying to make tetgen provide Delaunay tetrahedralization of my stl-model, but always getting some errors about intersecting facets. The model is an ascii .stl model of a human heart, obtained from computed tomography data (can give a link if…
Denis
  • 13
  • 4
1
vote
1 answer

Tetgen: starting from given triangles of a surface, create a new mesh without change the connectivity of the surface

I am using tetgen, but I am having troubles. I want to create a mesh, starting from given triangles of a surface. I do not want to change the given triangles. In particular, I am working on a domain such that: there is an external cubic box with an…
Gaa
  • 11
  • 2
1
vote
1 answer

Diagnosing and improving computation speed

I have a script that imports a module geometry, and this module slows down my script to an extreme level. My script generates a bitmap and for 16 million pixels it would take 100+ hours here the problematic module: ''' Created on 2 fevr.…
adrienlucca.net
  • 677
  • 2
  • 10
  • 26
1
vote
1 answer

python 2.7 - reorder the output of lists with a new 'order' constraint

I know some basics in c++, but I am a beginner in python. I have a piece of working code (see below) and I'd like to add a constraint for formatting its output, and I cannot figure out how to do it... Let me first explain what the program does: I…
adrienlucca.net
  • 677
  • 2
  • 10
  • 26
1
vote
2 answers

Tetgen tetcall compiling error

I want to use Tetgen to calculate the volume of a given set of points by tetrahedralization. I already saw a snippet in the code doing this, and might only requires some tweaking. The problem I have is to get tetcall (a testing program for tetgen)…
1
2