## jmol-developers

 [Jmol-developers] question about how planes are defined... From: Jonathan Gutow - 2010-06-08 22:04:00 ```I'm working on a slicer tool and want to make sure I'm clear about how planes are defined within the transform manager as I want to adjust the slab and depth planes in real time based on user input. Here's my understanding. 1) Planes are defined by point4f's where the x, y, z coordinates define a vector from the origin that is perpendicular to the plane. 2) I assume the plane includes the point at the end of the vector. 3) I'm most confused about the meaning of w (the fourth coordinate) for planes that are not parallel to the screen surface, but fixed in the molecule coordinate system. Can anybody clarify? Thanks, Jonathan Dr. Jonathan H. Gutow Chemistry Department gutow@... UW-Oshkosh Office: 920-424-1326 800 Algoma Boulevard FAX:920-424-2042 Oshkosh, WI 54901 http://www.uwosh.edu/facstaff/gutow ```
 Re: [Jmol-developers] question about how planes are defined... From: Robert Hanson - 2010-06-10 15:32:27 Attachments: Message as HTML ```On Tue, Jun 8, 2010 at 5:03 PM, Jonathan Gutow wrote: > I'm working on a slicer tool and want to make sure I'm clear about how > planes are defined within the transform manager as I want to adjust the slab > and depth planes in real time based on user input. Here's my understanding. > > 1) Planes are defined by point4f's where the x, y, z coordinates define a > vector from the origin that is perpendicular to the plane. > 2) I assume the plane includes the point at the end of the vector. > 3) I'm most confused about the meaning of w (the fourth coordinate) for > planes that are not parallel to the screen surface, but fixed in the > molecule coordinate system. > > Can anybody clarify? > > plane: ax + by + cz + d = 0 "w" is "d". Then the distance to the origin of the plane is d / sqrt(a^2 + b^2 + c^2) and d is the length of the vector (a, b, c) times the directed distance of the plane to the origin. So in xyzw notation, w is the length of the vector (x,y,z) times the directed distance of the plane to the origin. BOb Thanks, > Jonathan > Dr. Jonathan H. Gutow > Chemistry Department gutow@... > UW-Oshkosh Office: 920-424-1326 > 800 Algoma Boulevard FAX:920-424-2042 > Oshkosh, WI 54901 > http://www.uwosh.edu/facstaff/gutow > > > > ------------------------------------------------------------------------------ > ThinkGeek and WIRED's GeekDad team up for the Ultimate > GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the > lucky parental unit. See the prize list and enter to win: > http://p.sf.net/sfu/thinkgeek-promo > _______________________________________________ > Jmol-developers mailing list > Jmol-developers@... > https://lists.sourceforge.net/lists/listinfo/jmol-developers > -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-3107 If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ```
 Re: [Jmol-developers] question about how planes are defined... From: Robert Hanson - 2010-06-10 15:32:48 Attachments: Message as HTML ```http://mathworld.wolfram.com/Point-PlaneDistance.html On Thu, Jun 10, 2010 at 10:32 AM, Robert Hanson wrote: > > > On Tue, Jun 8, 2010 at 5:03 PM, Jonathan Gutow wrote: > >> I'm working on a slicer tool and want to make sure I'm clear about how >> planes are defined within the transform manager as I want to adjust the slab >> and depth planes in real time based on user input. Here's my understanding. >> >> 1) Planes are defined by point4f's where the x, y, z coordinates define a >> vector from the origin that is perpendicular to the plane. >> 2) I assume the plane includes the point at the end of the vector. >> 3) I'm most confused about the meaning of w (the fourth coordinate) for >> planes that are not parallel to the screen surface, but fixed in the >> molecule coordinate system. >> >> Can anybody clarify? >> >> > plane: ax + by + cz + d = 0 > > "w" is "d". Then the distance to the origin of the plane is > > d / sqrt(a^2 + b^2 + c^2) > > and > > d is the length of the vector (a, b, c) times the directed distance of the > plane to the origin. > > So in xyzw notation, > > w is the length of the vector (x,y,z) times the directed distance of the > plane to the origin. > > BOb > > > Thanks, >> Jonathan >> Dr. Jonathan H. Gutow >> Chemistry Department gutow@... >> UW-Oshkosh Office: 920-424-1326 >> 800 Algoma Boulevard FAX:920-424-2042 >> Oshkosh, WI 54901 >> http://www.uwosh.edu/facstaff/gutow >> >> >> >> ------------------------------------------------------------------------------ >> ThinkGeek and WIRED's GeekDad team up for the Ultimate >> GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the >> lucky parental unit. See the prize list and enter to win: >> http://p.sf.net/sfu/thinkgeek-promo >> _______________________________________________ >> Jmol-developers mailing list >> Jmol-developers@... >> https://lists.sourceforge.net/lists/listinfo/jmol-developers >> > > > > -- > Robert M. Hanson > Professor of Chemistry > St. Olaf College > 1520 St. Olaf Ave. > Northfield, MN 55057 > http://www.stolaf.edu/people/hansonr > phone: 507-786-3107 > > > If nature does not answer first what we want, > it is better to take what answer we get. > > -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 > -- Robert M. Hanson Professor of Chemistry St. Olaf College 1520 St. Olaf Ave. Northfield, MN 55057 http://www.stolaf.edu/people/hansonr phone: 507-786-3107 If nature does not answer first what we want, it is better to take what answer we get. -- Josiah Willard Gibbs, Lecture XXX, Monday, February 5, 1900 ```