I have a lattice plane in 3 dimensional space.(adsbygoogle = window.adsbygoogle || []).push({});

Now, I want to cut it in a unit cell, but I have to write some code the make things get easier.

As you can see from my figure, I can know the four coordinates of the highlighted atoms which form the boundaries of the top plane.

My problem is if the four coordinates are known, how could I eliminate the atoms outside the boundary, or how could I know the limitations of the coordinates ##(x_i,y_i,z_i)## of atoms inside the boundary.

My idea is to use their slopes between each pair of highlighted atoms.

Any advices would be very appreciated!

**Physics Forums - The Fusion of Science and Community**

The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

# Points inside a rhombus in 3-dimensional sapce

Loading...

Similar Threads - Points inside rhombus | Date |
---|---|

I Putting a point inside a triangle in 3D space | Dec 7, 2017 |

I Two square scale meeting point, when one is moved odd | Sep 30, 2017 |

Points inside a tetrahedral | Jul 14, 2008 |

Hm turning a sphere inside out what's the point? | Apr 5, 2008 |

Determining if a given point is inside a right circular cylinder | Nov 23, 2007 |

**Physics Forums - The Fusion of Science and Community**