<steersteer(a)gmail.com> writes:
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?
If you're creating a new MeshInfo(), tetgen should have no way of
knowing about the old mesh. It looks like you're imposing a volume
constraint; maybe that's responsible?
Andreas