prettyPixel
09-22-2005, 10:42 AM
I search the bounding box size of an object
myBox=box width:100 length:20 height:20
myBox.max-myBox.min
--> return [100,20,20]
Ok the size is correct
rotate myBox (angleaxis 45 [0,0,1])
myBox.max-myBox.min
--> return [84.8528,84.8528,20]
In world coordinates, the bb size is correct too
(in coordsys local myBox.max) - (in coordsys local myBox.min)
--> return [120,0,20]
Here is the problem. Why it doesn't return [100,20,20] ?
And How to make to have this size ?
has any one in a similar situation come to a solution? thanks
myBox=box width:100 length:20 height:20
myBox.max-myBox.min
--> return [100,20,20]
Ok the size is correct
rotate myBox (angleaxis 45 [0,0,1])
myBox.max-myBox.min
--> return [84.8528,84.8528,20]
In world coordinates, the bb size is correct too
(in coordsys local myBox.max) - (in coordsys local myBox.min)
--> return [120,0,20]
Here is the problem. Why it doesn't return [100,20,20] ?
And How to make to have this size ?
has any one in a similar situation come to a solution? thanks
