ladybug-tools / ladybug-geometry

🐞 📦 A library with geometry objects used throughout the Ladybug Tools core libraries
https://www.ladybug.tools/ladybug-geometry/docs/
GNU Affero General Public License v3.0
23 stars 22 forks source link

fix(mesh): Add Mesh3D constructor with tolerance check #405

Closed ed-p-may closed 3 months ago

ed-p-may commented 3 months ago

Adding a new Mesh3D creation classmethod.

Create a new Mesh3D from face-vertices and use the vertices' is_equivalent to check for duplicate vertices. Similar to using from_face_vertices(..., purge=True), but allows for tolerance when checking vertices against one another.

For background, see: https://discourse.ladybug.tools/t/unexpected-result-creating-mesh3d/25006/