packman.geometry.geometry module¶
The gemotry objects host file.
This is file information, not the class information. This information is only for the API developers. Please read the ‘geometry’ object documentation for details.
Example:
from packman import geometry
help( geometry )
- Authors:
- Pranav Khade(https://github.com/Pranavkhade)
-
packman.geometry.geometry.AlphaShape(atoms, alpha, get_graph=False, write_objfile=None)¶ Get the Alpha Shape of the atoms.
Given set of atoms as ‘Atom’ (packman.molecule.Atom) object(s) and the alpha value, this class will calculate and return the alpha shape tessellations. It will also write the .obj file if the filename is provided as an input.
Notes
- Tip: If you do not want to use the function multiple times to save computation, calculate it once with alpha = float(‘Inf’) and then use the tessellations to calculate radius and save it as a dictionary to retrieve. Tessellations with any cutoff.
- For more information on the alpha shape, read the following paper:
- EdelsbrunnerandE. P. M ̈ucke.Three-dimensional alpha shapes. Manuscript UIUCDCS-R-92-1734, Dept.Comput.Sci. ,Univ.Illinois, Urbana-Champaign, IL, 1992.
Parameters: - atoms (packman.molecule.Atom) –
- alpha (float) –
- get_graph (networkx.Graph) –
- write_objfile (str) –
Returns: - Alpha Shape Tessellations ; if ‘get_graph’ = False
- Alpha Shape Tessellations, Protein Graph ; if ‘get_graph’ = True
-
packman.geometry.geometry.Circumsphere(Tetrahydron)¶ Get the Circumsphere of the set of four points.
Given any four three dimentional points, this function calculates the features of the circumsphere having the given four points on it’s surface.
Parameters: Tetrahydron ([packman.molecule.Atom] or [[X,Y,Z]]) – Either packman.molecule.Atom objects or 3D corrdinates. Returns: The 3D coordinates of the geometrical center of the given four points, Radius of the circumsphere made up of given four points in that order. Return type: [Centre, Radius] (float)