Mailing List
Home
Forum Home
Softimage
Carrara
trueSpace
Dir3d-l
Maya - a powerful 3D animation and visual effects software
Macromedia Flash Development
Subjects
Cameras
scaleDown command
black out solved
Aircraft Tutorial
Mathematical XYZ ?
Its done This vs That
Its done first week
recommendations for screen video captures?
3DExplorer "Oddity "
New Director
ProTeam renewals
Fuel 's new websites (X post)
Blue peter create a make toy
targeting groups question
XPost: Shockwave 3D game ( sort of )
RES: RES: RES: Fish Modeling
Emitting particles from object intersection
Fuel 's new websites (X post)
Texturing
Big Break Contest Videos
New Plugins
Models and Texture on my updated site
Error Installing Patch tS6 6
Plasma?
Looking for Inspiration
Weird EMail Q
It 's done first week ?
Cherry not cranberry
New game
Camera Animation Problem
Particle plugins?
 
Volume selection ?

Volume selection ?

2004-06-17       - By kim aldis

 Back
Reply:     1     2     3     4     5     6  

you'll need some good geometry and vector algebra for this one. In 2D -
point in poly - one would cast a ray from the point either to left or right
and count the number of times the ray crosses edges in the poly. Odd counts
mean it's in the poly, even mean it's outside. you'd need to research it a
bit but I'd guess the technique would be the same, cast rays from the point,
see how many polygons it intersects with. Do this for each point in each
object you want to check.


 __ __  

From: owner-xsi@(protected) [mailto:owner-xsi@(protected)] On Behalf Of
Harry Bardak
Sent: 17 June 2004 09:58
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">
<META content="MSHTML 6.00.2800.1106" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#c0c0c0>
<DIV dir=ltr align=left><SPAN class=000190709-17062004><FONT face=Arial
color=#008080 size=2>you'll need some good geometry and vector algebra for this
one. In 2D - point in poly - one would cast a ray from the point either to left
or right and count the number of times the ray crosses edges in the poly. Odd
counts mean it's in the poly, even mean it's outside.&nbsp;you'd need to
research it a bit but I'd guess the technique would be the same, cast rays from
the point, see how many polygons it intersects with. Do this for each point in
each object you want to check. </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 09:58<BR><B>To:</B>
 XSI@(protected)<BR><B>Subject:</B> [scripting] Volume selection ?
 <BR></FONT><BR></DIV>
 <DIV></DIV>
 <DIV><FONT face=Arial size=2>hi everyone.</FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</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>&nbsp;</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>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>thanks by advance. </FONT></DIV>
 <DIV><FONT face=Arial size=2></FONT>&nbsp;</DIV>
 <DIV><FONT face=Arial size=2>harry.</FONT></DIV></BLOCKQUOTE></BODY></HTML>