  | | | Volume selection ? | Volume selection ? 2004-06-17 - By Graham D Clark
Back Hi Harry, if for a global bbox its fairly straightforward, test if the other objects translation xyz are between the min and max xyz values of a box using "GetBBox" For a bbox not oriented to global axis it's a bit trickier. -- ---- ---- ---- ---- ---- -- http://www.grahamdclark.com <http://www.grahamdclark.com/> 2nd hand TD
-- --Original Message-- -- From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Harry Bardak Sent: June 17, 2004 8:58 AM To: XSI@(protected) Subject: [scripting] Volume selection ?
hi everyone. Well i would like to script something like this : When i select a box, every object in this box is select. So in other word how can i detect if an object is inside another one. Wich way should i follow to do that ? thanks by advance. harry.
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii"> <TITLE>Message</TITLE>
<META content="MSHTML 6.00.2800.1170" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#c0c0c0> <DIV><SPAN class=010113111-17062004><FONT face=Arial color=#0000ff size=2>Hi Harry,</FONT></SPAN></DIV> <DIV><SPAN class=010113111-17062004><FONT face=Arial color=#0000ff size=2>if for a global bbox its fairly straightforward,</FONT></SPAN></DIV> <DIV><SPAN class=010113111-17062004><FONT face=Arial color=#0000ff size=2>test if the other objects translation xyz are between the min and max xyz values of a box using <SPAN class=010113111-17062004><FONT face=Arial color=#0000ff size=2>"GetBBox" </FONT></SPAN></FONT></SPAN></DIV> <DIV><SPAN class=010113111-17062004><FONT face=Arial color=#0000ff size=2>For a bbox not oriented to global axis it's a bit trickier.</FONT></SPAN></DIV> <DIV><FONT face="Times New Roman">-- ---- ---- ---- ---- ---- --</FONT> <BR><FONT face="Times New Roman"><A href="http://www.grahamdclark.com/">http://www.grahamdclark.com</A></FONT> <BR><FONT face="Times New Roman">2nd hand TD</FONT> </DIV> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; MARGIN-RIGHT: 0px"> <DIV></DIV> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT face=Tahoma size=2>-- --Original Message-- --<BR><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Harry Bardak<BR><B>Sent:</B> June 17, 2004 8:58 AM<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> [scripting] Volume selection ? <BR><BR></FONT></DIV> <DIV><FONT face=Arial size=2>hi everyone.</FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Well i would like to script something like this : </FONT></DIV> <DIV><FONT face=Arial size=2>When i select a box, every object in this box is select. </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>So in other word how can i detect if an object is inside another one. <BR>Wich way should i follow to do that ? </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>thanks by advance. </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>harry.</FONT></DIV></BLOCKQUOTE></BODY></HTML>
|
|
 |