Closed benfen closed 2 years ago
@DavidGoldwasser Priority for fixing this?
Currently I can make a bunch of spaces, name them, set the color and then add geometry later. Maybe that isn't common, but the point is at least when spaces are made they exist without any edges. So if we take approach 1 need to make sure it doesn't impact making new spaces.
Also if we do remove the space that is probably fine, but maybe we could make a new one of the same name. I don't fully understand what makes a space that has never has edges different from one that had edges but has then had them removed, but I can see there is a difference in behavior.
Should we remove spaces that don't have 3 or more edges, or will that mess up the polygon tool function which would start with one edge?
@benfen this can be high priority. If you want we can start to use the labels for priority or what is in progress.
Forgot to drop a comment here - the implementation was simpler than expected. Whenever this situation would occur, the geometry passes through trimGeometry
, meaning that the bad faces can be trimmed out there and completely remove the problem.
Problem
When all the points of a space have been removed, it can't be interacted with, since there are built-in assumptions that all spaces have enough points for a polygon. Once this happens to a space, it can only be deleted, as other operations will fail. It will also cause modifications of all other spaces to fail.
Reproduction
This can also be done by encompassing one space within another and there may be other approaches, too.
Resolution
I believe there are two orthogonal ways to handle this:
trimGeometry
, remove any spaces that have no edges. This would also need to be done on import to protect against old plans with the issue