comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » point inside/outside of 3D object.
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
point inside/outside of 3D object. [message #76567] Tue, 14 June 2011 12:01 Go to previous message
Junum is currently offline  Junum
Messages: 13
Registered: May 2010
Junior Member
I want to determine whether a given point is inside or outside of 3D
object.
There have been some suggestions on this discussion group, so I have
tried IDLanROI::ContainsPoints.
It works for 2D case, but not for 3D.
Assuming a tetrahedron,
its coordinates for 4 points are
(1,0,0)
(0,1,0)
(-1,0,0)
(0,0,1)

px = [1., 0., -1., 0.]
py = [0.,1.,0.,0.]
pz = [0.,0.,0.,1.]

object = Obj_New('IDLanROI', px, py, pz)
print,object->containspoints(0.1,0.1,0.1)

It prints 0, Exterior, although (0.1,0.1,0.1) is inside of
tetrahedron.

My questions are
1. I guess that a method defining a tetrahedron is wrong (i.e., px,
py, pz).
How can I define a 3D object consisting of several plane surfaces
(e.g., cube) in IDLanROI?

2. How can I draw a tetrahedron in 3D graphic?


Could you help me?
Thank you.

Sincerely,
Jun
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: plotting a sub field image..
Next Topic: ENVI: Overlay in 3D SurfaceView

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 15:06:31 PDT 2025

Total time taken to generate the page: 0.00353 seconds