in reply to Re^2: Confused about 3D geometry / algebra
in thread Confused about 3D geometry / algebra

IMHO¹ the surface of a convex hull already describes the (optimal) planes where all atoms of your molecule are on one side of the plane (or of course in the plane).

So your problem reduces to calculate the margins of your convex hull:

At least one edging plane should separate the atoms into distinct groups!

| \ | x / o o x x | o x \ o o / | |

Of course, when going into real world physics the distance between two molecules should be bigger than the distance between the atoms, to be considered different molecules. But this can be calculated with those surface planes by adding a tolerance.

IMHO those are too close

x | o x x|o o x | o o

I don't know if you need a simple or a fast algorithm, but in many cases you can shorten the cases by approximating a (minimal) sphere which includes all atoms of a molecule.

Only if those spheres (maybe widened by the mentioned minimal distance) intersect you will need to calculate the surfaces of the molecule.

And you will only need to calculate the surfaces close to this intersection.

IMHO this should be considerably fast and intuitive, for further optimization better rely on the WP article on Support vector machines BrowserUK was linking to.

Cheers Rolf

¹) prove should be trivial.

UPDATE: It should be mentioned that IMHO physics knows examples of molecules which are distinct but intersect from a mathematical point of view. Something called bucketball rings a bell for me...

Replies are listed 'Best First'.
Re^4: Confused about 3D geometry / algebra
by tomdbs98 (Beadle) on Jun 04, 2010 at 15:42 UTC

    I have already implemented the fast sphere intersection test for my molecules, and I plan on making the acceptable distance between molecules user defined (so I can't be blamed as far as thats concerned;) ).

    I will be reading up convex hulls, SVMs and linear programming today and see if I can put 2+2(+2?) together. :P

    Thanks once again for your time,

    Tom

      Good luck, you can of course search for all algorithms ... but IMHO thats fairly intuitive.

      A convex hull should be easily computed incrementally by adding one atom after the other to the former convex hull.

      Of course you need the bases in vector algebra like multiplication with normal vector of a plane to find the direction (inside or outside).

      And I think you can already restrict yourself to calculate the convex hull of the atoms within the intersection of the spheres to gain speed.

      UPDATE: In other words: If there are any separating planes, then there is for sure one which is a margin of the atoms in the sphere intersection.

      Cheers Rolf