bounding box....
Hello everybody, due to my ignorance in programming with Vizard I am trying to visualized the bounding box of a picked object. I wish to visualize it in red. I tryed with the following gode:
pickedOBJ = viz.pick()
if pickedOBJ.valid():
print 'Oggetto CATTURATO'
if pickedOBJ == box:
box.color(viz.BLUE)
box.link(FlockBirds)
box.get(viz.BOUNDING_BOX).visible(1)
box.get(viz.BOUNDING_BOX).color(viz.RED)
Is that right?
Thank you.
Giancarlo Amati
|