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
I would need to test if 2 SkeletonBounds intersect and get their respective bounds in contact. Currently, I do not see any way of doing this. I think one of the following should be done to make it possible, in order of what seems best to me:
add a Vector<Polygon>* getPolygons() to SkeletonBounds and a BoundingBoxAttachment *getBoundingBox(Polygon *polygon);,
make the _polygons and _boundingBoxes protected so we can inherit SkeletonBounds to add some methods,
add directly some features, but probably more time consuming and too specific to each need, what I would need is something like std::pair<std::vector<BoundingBoxAttachment*>,std::vector<BoundingBoxAttachment*>> intersects(SkeletonBounds* other); returning all bounding boxes of both the skeletonBounds (this and other).
In the meantime, I'll use a custom version implementing the first solution but I think it could be useful to others.
The text was updated successfully, but these errors were encountered:
Solution 1 makes the most sense to me. While solution 2 would work just as well, it's a tiny hit cleaner to expose things via getters. We try to not rely on STL for various reasons, so solution 3 is not workable.
I'll add this tomorrow to the 4.1 and 4.2-beta branches.
Hello,
I would need to test if 2 SkeletonBounds intersect and get their respective bounds in contact. Currently, I do not see any way of doing this. I think one of the following should be done to make it possible, in order of what seems best to me:
Vector<Polygon>* getPolygons()
to SkeletonBounds and aBoundingBoxAttachment *getBoundingBox(Polygon *polygon);
,_polygons
and_boundingBoxes
protected so we can inherit SkeletonBounds to add some methods,std::pair<std::vector<BoundingBoxAttachment*>,std::vector<BoundingBoxAttachment*>> intersects(SkeletonBounds* other);
returning all bounding boxes of both the skeletonBounds (this and other).In the meantime, I'll use a custom version implementing the first solution but I think it could be useful to others.
The text was updated successfully, but these errors were encountered: