  | | | Volume selection ? | Volume selection ? 2004-06-17 - By kim aldis
Back you can get the bounding box of any object using getBBox(), but this is an untransformed bbox, you'll need to push the values you get back through the object's transformation before it's any use if you've moved the object.
__ __
From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of Harry Bardak Sent: 17 June 2004 14:54 To: XSI@(protected) Subject: Re: [scripting] Volume selection ?
for my case checking the center of the object or at least the barycenter will do the trick. Thanks.
-- -- Original Message -- -- From: Harry <mailto:harry@(protected)> Bardak To: XSI@(protected) Sent: Thursday, June 17, 2004 10:57 AM 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"> <META content="MSHTML 6.00.2800.1106" name=GENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=#c0c0c0> <DIV dir=ltr align=left><SPAN class=734171414-17062004><FONT face=Arial color=#008080 size=2>you can get the bounding box of any object using getBBox(), but this is an untransformed bbox, you'll need to push the values you get back through the object's transformation before it's any use if you've moved the object.</FONT></SPAN></DIV><BR> <BLOCKQUOTE dir=ltr style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #008080 2px solid; MARGIN-RIGHT: 0px"> <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left> <HR tabIndex=-1> <FONT face=Tahoma size=2><B>From:</B> owner-xsi@(protected) [mailto:owner-xsi@(protected)] <B>On Behalf Of </B>Harry Bardak<BR><B>Sent:</B> 17 June 2004 14:54<BR><B>To:</B> XSI@(protected)<BR><B>Subject:</B> Re: [scripting] Volume selection ? <BR></FONT><BR></DIV> <DIV></DIV> <DIV><FONT face=Arial size=2>for my case checking the center of the object or at least the barycenter will do the trick. </FONT></DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2></FONT> </DIV> <DIV><FONT face=Arial size=2>Thanks. </FONT></DIV> <BLOCKQUOTE dir=ltr style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px"> <DIV style="FONT: 10pt arial">-- -- Original Message -- -- </DIV> <DIV style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:< /B> <A title=harry@(protected) href="mailto:harry@(protected)">Harry Bardak</A> </DIV> <DIV style="FONT: 10pt arial"><B>To:</B> <A title=XSI@(protected) href="mailto:XSI@(protected)">XSI@(protected)</A> </DIV> <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, June 17, 2004 10:57 AM</DIV> <DIV style="FONT: 10pt arial"><B>Subject:</B> [scripting] Volume selection ? </DIV> <DIV><BR></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></BLOCKQUOTE></BODY></HTML>
|
|
 |