FeatureVolume (hwx.inspire)#

class FeatureVolume(*args)#

Bases: Feature

Example

from hwx import inspire

model = inspire.newModel()
sphere = model.createSolidSphere()
inspire.orientView(direction="isometric")

features = sphere.features
volumes = [x for x in features if isinstance(x, inspire.FeatureVolume)]
print("Sphere has " + str(len(volumes)) + " spherical volume.")