Skip to content

Gen

Generate field of points.

gen_fop(center, resolution, radius, round_decimals=3)

Generate a spherical field of points.

Snaps the provided center to the a center congruent to the resolution and radius given by the user. Then generates a spherical field of points (FOP) with radius = radius/2 with points spaced "resolution" apart.

PARAMETER DESCRIPTION
center

XYZ coordinates for the center of the pocket.

TYPE: Sequence[float]

resolution

Distance between points which give resolution of the pocket volume calculator method.

TYPE: float

radius

Defines the radius of the sphere of the FOP.

TYPE: float

round_decimals

Number of decimals to round FOP and center to.

TYPE: int DEFAULT: 3

RETURNS DESCRIPTION
field_of_points

a spherical field of points

TYPE: Sequence[Sequence[float]]

center

center of the field of points

TYPE: Sequence[float]