<steersteer(a)gmail.com> writes:
> Yes, you're right it seems.
> Is there any way to keep the initial surface mesh? I assumed tetgen wouldn't
> change the surface and would just fill the volume based off of the surface.
> The volume constraint I was hoping would allow me to create consistent sized
> tetrahedrals by calculating the tetrahedral area using the average face edge
> lengths of the surface.
No, not as far as I'm aware. In Triangle (the 2D mesher in meshpy), you
can allow or forbid boundary Steiner points, but I'm not sure that
tetgen allows the same. TetGen's documentation is really the right place
to look here; or maybe you might be able to ask Hang Si.
Also please take care to keep the list cc'd on your replies.
Andreas
From: steersteer(a)gmail.com <steersteer(a)gmail.com>
Sent: 17 April 2020 16:30
To: meshpy(a)tiker.net
Subject: TetGen
Hi,
I'm having a little problem with MeshPy's implementation of TetGen.
I have a mesh which I remeshed to a more coarse mesh.
I then load this into a module named trimesh and I extract the vertices and
faces.
I then use MeshPy for tetrahedralizing:
tetmesh_info = MeshInfo()
tetmesh_info.set_points(stl_verts)
tetmesh_info.set_facets(stl_faces)
options = mp.Options('pq')
tetmesh = mp.build(tetmesh_info, options, max_volume=volume_constraint )
tetmesh.write_vtk('Output\\Meshes\\{}_tet.vtk'.format(name))
The resultant mesh's surface is much finer than the inputted mesh, in fact
it looks to have the same coarseness as the mesh before it was remeshed
Is this caused by TetGen do you think? Is there a setting I can change for
this?
Or is it more likely that the verts and faces are somehow retained by the
remesh operation in the STL file and TetGen tetrahedralizing my original
mesh?
Thanks for any insight you can give me,
Sam