WorldViz User Forum  

Go Back   WorldViz User Forum > Vizard

Reply
 
Thread Tools Rate Thread Display Modes
  #1  
Old 03-25-2008, 11:52 AM
Lotar Lotar is offline
Member
 
Join Date: Mar 2008
Posts: 2
BoundingBox() question

Hi,

I noticed that when some object has one or more children, this function always returns bounding box that contains parent and all its children.
So, my questions is, what should I do if I want to get only parent's bounding box and (this is important) I want to get if _after_ I attach some child to it ?

Thank you.
Reply With Quote
  #2  
Old 03-25-2008, 04:55 PM
farshizzo farshizzo is offline
WorldViz Team Member
 
Join Date: Mar 2003
Posts: 2,849
You can use the optional node parameter of the getBoundingBox function to specify the specific subgraph that you want to compute the bounding box of. This will work as long as the child nodes don't have a subgraph with the same name. Another workaround would be to temporarily detach the children from the parent while computing the bounding box, then reattaching them using the node.unparent/parent commands.
Reply With Quote
Reply

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
General question and question regarding arrays dan12345 Vizard 1 01-15-2008 10:15 AM
Stereo Overlap question JMOwens Vizard 2 01-08-2008 08:54 AM
question about yaw, pitch, roll TunTun Vizard 2 05-23-2007 12:46 PM
to rephrase my question... shai Vizard 2 10-27-2004 10:55 AM
Lots of Question Karthi Vizard 4 02-20-2004 06:42 PM


All times are GMT -7. The time now is 03:45 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Copyright 2002-2023 WorldViz LLC