krzysztofarendt / building3d

Towards 3D building modeling and simulation
MIT License
20 stars 2 forks source link

Highly skewed triangles - missed reflections - rays going outside the solid #75

Open krzysztofarendt opened 1 month ago

krzysztofarendt commented 1 month ago

For models with some highly skewed triangles (teapot.stl and cylinder.stl) rays occasionally go outside the solid. Probably due to insufficient numerical precision.

image
krzysztofarendt commented 1 month ago
image
krzysztofarendt commented 1 month ago

Example of poor mesh quality in the teapot model:

teapot_from_the_inside
krzysztofarendt commented 1 month ago
image
krzysztofarendt commented 1 month ago

Tests show (cb34fac1f1417313624674bd2f09c3b3ff46fde5) that the triangle side length should be approximately >= 0.001.

krzysztofarendt commented 1 month ago

Related? https://github.com/krzysztofarendt/building3d/issues/83

krzysztofarendt commented 4 weeks ago

This PR https://github.com/krzysztofarendt/building3d/pull/88 still has this issue:

image