Draw Bounding Box?

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 23/04/2009 at 04:56, xxxxxxxx wrote:

User Information:
Cinema 4D Version:   10.1 
Platform:   Windows  ;   Mac OSX  ; 
Language(s) :     C++  ;

---------
Hi,

there are several threads here about the bounding box. I know with GetRad() and GetMp() I can get the data of an object's the bounding box.

But how do I actually draw it? Do I have to do it all myself with BaseDraw::Line3D() or BaseDraw::Box3D() ? Or is there a standard method to draw it?

Thanks in advance!

Greetings,
Jack

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 23/04/2009 at 05:02, xxxxxxxx wrote:

You have to overload the virtual void GetDimension(PluginObject *op, Vector *mp, Vector *rad) method. Check the RoundedTube source code for an example.

cheers,
Matthias

THE POST BELOW IS MORE THAN 5 YEARS OLD. RELATED SUPPORT INFORMATION MIGHT BE OUTDATED OR DEPRECATED

On 23/04/2009 at 05:25, xxxxxxxx wrote:

Cool, it works 🙂
Thanks, Matthias!

Cheers,
Jack