π’ PlaceMaker | 25% off for February including new Google Earth data imports!
Learn more
Getting the oriented boundingbox?
-
How do you get the boundingbox of groups and components?
group.bounds
orinstance.bounds
just return a boudingbox aligned to the world axis... -
...brainwave as I clicked "Submit"...
Get the definition bounds and transform it by the instance's transformation.
-
Also remember
http://code.google.com/apis/sketchup/docs/ourdoc/group.html#local_bounds
-
hm.... one can't transform BoundingBoxes....
So I need to:
- get the boundingbox of the definition
- collect the points of the bb (which I need anyway to send to
view.draw
) - transform the collection of points.
-
Success!
Advertisement