You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Creating a smaller buffer for PolygonSelector when selection changes significantly? #955
I was taking a look at how the new mesh positions and indices buffers are set in the polygon selector, a new buffer is allocated if a larger one is required for the new selection. But if the selection is smaller, than a new buffer is not allocated. @almarklein just curious about the reason so I can understand it better. I'm working on the PolygonGraphic.
Mmm, that code could indeed be improved. It also fails if the new value is more than twice as large as previous.
I can make a pr to improve this, so we can use that in the polygongraphic too.
Activity
almarklein commentedon Dec 1, 2025
Mmm, that code could indeed be improved. It also fails if the new value is more than twice as large as previous.
I can make a pr to improve this, so we can use that in the polygongraphic too.