npl.utils package
Submodules
npl.utils.cutting_plane_utilities module
- class npl.utils.cutting_plane_utilities.CuttingPlane(anchor, normal)[source]
Bases:
objectClass that represents a cutting plane via an anchor point and a normal.
- class npl.utils.cutting_plane_utilities.SphericalCuttingPlaneGenerator(max_radius, min_radius=0.0, center=0.0, normal_dir='parallel')[source]
Bases:
objectClass that generates cutting planes with a spherical anchor point distribution.
The normal can be either parallel to the anchor point or point in a random direction. The former results in cuts that mainly affect the surface whereas the latter results in completely random cuts.
- generate_new_cutting_plane()[source]
Generate a cutting plane by randomly choosing a normal and an anchor point.