Bounding Spheres
Hey guys.
How the easier way to implement a bound sphere to all geom primitives, like a cubes, cylinders, cones ???
see ya ...
magic software has got code to do this acuratly. ie a much tighter fit.
i would just look at all the various points of the shapes
keeping track of the minX,maxX,minY... maxZ.
so u find the greatest extents then go cenX = (minX+maxX)/2
also look through all the points for the one the furtherest away and use this as the radius
i would just look at all the various points of the shapes
keeping track of the minX,maxX,minY... maxZ.
so u find the greatest extents then go cenX = (minX+maxX)/2
also look through all the points for the one the furtherest away and use this as the radius
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement