FeatureCurveOther (hwx.inspire)#
- class FeatureCurveOther(*args)#
Bases:
FeatureCurve
FeatureCurves that are not instance of FeatureLinear or FeatureCircular.
Used to filter FeatureCurves.
Example
from hwx import inspire model = inspire.openTutorialFile("Structures/baseline_oilpan.stmod") inspire.orientView(direction="isometric") features = model.features curves = [x for x in features if isinstance(x, inspire.FeatureCurve)] circles = [x for x in features if isinstance(x, inspire.FeatureCircular)] lines = [x for x in features if isinstance(x, inspire.FeatureLinear)] otherCurves = [x for x in features if isinstance(x, inspire.FeatureCurveOther)] print("Model has" + str(len(curves)) + " curves") print("Model has " + str(len(circles)) + " circles") print("Model has " + str(len(lines)) + " lines") print("Model has " + str(len(otherCurves)) + " other_curves")