surface
Isosurfaces for molecules in crystals or isolation.
promolecule_density_isosurface(promol, isovalue=0.002, sep=0.2, props=True, extra_props=None, smoothing='laplacian')
Calculate the promolecule density isosurface.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
isovalue
|
float
|
level set value for the isosurface (default=0.002) in au. |
0.002
|
separation
|
float
|
separation between density grid used in the surface calculation (default 0.2) in Angstroms. |
required |
props
|
bool
|
calculate surface properties |
True
|
extra_props(dict,
|
optional
|
dictionary of property names and functions of vertex positions for the calculation of additional properties on the isosurface |
required |
Returns: IsosurfaceMesh: a namedtuple of vertices, faces, face normals and vertex properties
Source code in chmpy/surface.py
smooth_laplacian(vertices, faces, **kwargs)
Smooth vertices and faces using a Laplacian filter
Source code in chmpy/surface.py
stockholder_weight_isosurface(s, isovalue=0.5, sep=0.2, props=True, extra_props=None, smoothing='laplacian')
Calculate stockholder weight (Hirshfeld) surface.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
isovalue
|
float
|
level set value for the isosurface (default=0.5), dimensionless. |
0.5
|
separation
|
float
|
separation between density grid used in the surface calculation (default 0.2) in Angstroms. |
required |
props
|
bool
|
calculate surface properties |
True
|
extra_props(dict,
|
optional
|
dictionary of property names and functions of vertex positions for the calculation of additional properties on the isosurface |
required |
Returns: IsosurfaceMesh: a namedtuple of vertices, faces, face normals and vertex properties