From owner-chemistry- at -ccl.net Tue Apr 16 16:47:02 1996 Received: from bedrock.ccl.net for owner-chemistry*- at -*ccl.net by www.ccl.net (8.7.1/950822.1) id QAA06941; Tue, 16 Apr 1996 16:32:41 -0400 (EDT) Received: from che.udel.edu for kotelyan*- at -*che.udel.edu by bedrock.ccl.net (8.7.1/950822.1) id QAA05963; Tue, 16 Apr 1996 16:32:37 -0400 (EDT) Received: by che.udel.edu (AIX 3.2/UCB 5.64/4.03) id AA66725; Tue, 16 Apr 1996 16:32:17 -0400 Date: Tue, 16 Apr 1996 16:19:44 +22305133 (EDT) From: Michael Kotelyanskii Subject: Re: CCL:Inside or outside of a polyhedron To: "W. Todd Wipke" Cc: chemistry /at\ccl.net In-Reply-To: <009A0F07.60966DE0.11292 /at\SECS.UCSC.EDU> Message-Id: Mime-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII OK, here is another one: 1) Make a Delone tesselation for the polyhedron vortices. If it is convex, all Delone simplexes (tetrahedra) are inside the polyhedron. In this case if your point is inside of any of the simplexes (simplex is a tetrahedron - so check is simple (center of tetrahedron is always inside, connect center with your point and see wether the border is crossed) it is inside polyhedron. If polyhedron is not convex, there will be Delone simplexes connecting vortices which are entirely outside the polyhedron, and they can be excluded I believe it should work Mike Michael Kotelyanskii PhD Department of Chemical Engineering University of Delaware kotelyan ":at:" che.udel.edu Newark DE 19716