class_sphere.py
Contains a class with strategy to trim a grid based on sphere.
StrategySphereTrimming
Bases: StrategyTrimming
A class to define strategies to trim a grid based on sphere.
Inheritance
This class is the child of StrategyTrimming. Check this one for other
attributes and methods definitions.
Source code in src/smiffer/grid/trimming_strategy/class_sphere.py
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |
trim_box(grid_object)
Trim a grid mask based on sphere trimming method.
Parameters
grid_object : Grid
The grid object to access all attributes.
Source code in src/smiffer/grid/trimming_strategy/class_sphere.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 | |