NREL / floorspace.js

Other
68 stars 36 forks source link

Fix bug for spaces without edges #401

Closed benfen closed 3 years ago

benfen commented 3 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.