FeatureAreaOther (hwx.inspire)#
- class FeatureAreaOther(*args)#
Bases:
FeatureArea
Feature that is a flat face that can not be simply characterized. (not instance of FeaturePlanar, Feature Cylindrical or FeatureSpherical)
They are not created through the API but can be retrieved from a part.
Example
from hwx import inspire model = inspire.openTutorialFile("Structures/baseline_oilpan.stmod") features = model.features areas = [x for x in features if isinstance(x, inspire.FeatureArea)] planars = [x for x in features if isinstance(x, inspire.FeaturePlanar)] cylindricals = [x for x in features if isinstance(x, inspire.FeatureCylindrical)] sphericals = [x for x in features if isinstance(x, inspire.FeatureSpherical)] otherAreas = [x for x in features if isinstance(x, inspire.FeatureAreaOther)] print("Model has" + str(len(areas)) + " areas") print("Model has " + str(len(planars)) + " planars") print("Model has " + str(len(cylindricals)) + " cylindricals") print("Model has " + str(len(sphericals)) + " sphericals") print("Model has " + str(len(otherAreas)) + " otherAreas")