valette / ACVD

Fast simplification of 3D surface meshes
https://www.creatis.insa-lyon.fr/~valette/public/project/acvd/
Other
266 stars 57 forks source link

[bug report] self-intersection tri after remesh #31

Closed BinWang0213 closed 3 years ago

BinWang0213 commented 4 years ago

Hi,

I used ACVDQ to remesh a simple cylinder stl but the output file has self-intersection tris (Tri4 and Tri11).

Tri4: 86 97 20 Tri11: 86 20 74

Here is the log and stl files are attached.

models.zip

ACVDQ.exe RemeshInput_CAVD.stl 1000 0.0 -m 0 -v 0 -b 1 -o F:\PyGeoMesh\Results\ -of RemeshMesh_ACVD.ply
load : F:\PyGeoMesh\Results\RemeshInput_CAVD.stl
*****************************************************************************
Mesh with 1890 polygons, 947 points, 2835 edges
Bounding Box: [320.5, 279.8, 339.5]
              [559.5, 519.504, 490.5] 
The mesh is made only of 1890 triangles
0 non-manifold edges and 0 boundary edges
The mesh has 1 connected components
 Valences entropy: 1.76791
0 disconnected vertices, 947 connected vertices
48.5744 percent of irregular vertices
Mesh geometry qualitity:
  AngleMin=27.9745
  AverageMinAngle=44.9631
  Qmin=0.46611
  Qav=0.806352
  P30=0.15873
*****************************************************************************
Force Manifold=0
Setting output verbose : 0
Setting boundary fixing to : 1
OutputDirectory: F:\PyGeoMesh\Results\
Output file name: RemeshMesh_ACVD.ply
Setting Metric Constraint to 0

Unconstrained initialization done
Setting Metric Constraint to 1
*****************************************************************************
Mesh with 1996 polygons, 1000 points, 2994 edges
Bounding Box: [320.433, 279.8, 339.433]
              [559.554, 519.597, 490.536] 
The mesh is made only of 1996 triangles
0 non-manifold edges and 0 boundary edges
The mesh has 1 connected components
 Valences entropy: 1.68123
0 disconnected vertices, 1000 connected vertices
49.9 percent of irregular vertices
Mesh geometry qualitity:
  AngleMin=14.2918
  AverageMinAngle=45.1805
  Qmin=0.23902
  Qav=0.809694
  P30=0.835003
*****************************************************************************
The remesh took :0.425 seconds.
valette commented 4 years ago

Hi, sorry for my late answer... I could not find a problem with those 2 triangles. Here is a snapshot of triangles 4 and 11 which are adjacent: Capture

Could you elaborate a bit more? What self-intersection are you seeing?

valette commented 3 years ago

Closing due to lack of activity. Feel free to reopen if needed!