NREL / floorspace.js

Other
66 stars 35 forks source link

Fix bug for spaces without edges #401

Closed benfen closed 2 years ago

benfen commented 2 years ago

Resolves https://github.com/NREL/floorspace.js/issues/398

This issue turned out to be simpler than anticipated - whenever trimGeometry is called, it looks for any faces that have no edges and removes them from the list of faces. Removing those faces prevents the bug from occurring, but allows the space to continue existing.