sknano.core.geometric_regions.Geometric3DRegion

class sknano.core.geometric_regions.Geometric3DRegion[source][source]

Abstract base class for representing 3D geometric regions.

Attributes

center Alias for centroid.
centroid Centroid of geometric region.
fmtstr Format string.
measure Alias for volume, which is the measure of a 3D geometric region.
volume Volume of 3D geometric region.

Methods

center_centroid() Center centroid on origin.
contains(point) Test region membership of point in GeometricRegion.
rotate([angle, axis, anchor_point, ...]) Rotate GeometricRegion points and vectors.
todict() Return dict of constructor parameters.
translate(t[, fix_anchor_points]) Translate GeometricRegion points and vectors by Vector t.