Spherical region¶
-
class
arepy.coord.regionSphere(*args, srad=None)¶ Spherical region
- Parameters
center ([float]*3) – Center of a sphere
radius (float) – Radius of a sphere
- Variables
center ([float]*3) – Center of a sphere
radius (float) – Radius of a sphere
Example of use:
>>> import arepy as apy >>> region = apy.coord.regionSphere([0.5,0.5,0.5],0.3) >>> region.show() Sphere class: center [0.5,0.5,0.5] radius 0.3
-
getOuterBox(center=None, size=None)¶ Get outer box
- Parameters
center ([float]*3) – New box center
size (float) – New box size
- Returns
Region of the outer box
- Return type
-
getInnerBox(center=None, size=None)¶ Get inner box
- Parameters
center ([float]*3) – New box center
size (float) – New box size
- Returns
Region of the inner box
- Return type
-
show()¶ Print out region settings
-
setRegion(**args)¶ Set region settings
-
getSelection()¶ Get a selection region
-
getCopy()¶ Get copy of self
-
selectCoordinates(coord)¶ Select coordinates within the region
-
setTranslation(origin)¶ Apply translation on the region
-
setFlip(flip)¶ Flip the region