FeatureSpherical (hwx.inspire)#
- class FeatureSpherical(*args)#
Bases:
FeatureArea
Feature that is a Spherical face.
They are not created through the API but can be retrieved from a part.
# Name
Type
property
property
Example
from hwx import inspire model = inspire.newModel() sphere = model.createSolidSphere() inspire.orientView(direction="isometric") features = sphere.features surfaces = [x for x in features if isinstance(x, inspire.FeatureSpherical)] print("Sphere has " + str(len(surfaces)) + " spherical surface.") print("Sphere area is: " + str(surfaces[0].area))
- property radius#
Returns radius of sphere.
- property location#
Returns center of sphere.