FeatureCircular (hwx.inspire)#

class FeatureCircular(*args)#

Bases: FeatureCurve

Represents the circumferences of a part.

They are not created through the API but can be retrieved from a part.

Attribute Table#

Name

Type

axis

property

location

property

normal

property

radius

property

Example

from hwx import inspire
from hwx.common import math

model = inspire.newModel()
cyl = model.createSolidCylinder()
inspire.orientView(direction="isometric")

features = cyl.features
circles = [x for x in features if isinstance(x, inspire.FeatureCircular)]
print("Cylinder has " + str(len(circles)) + " circles")
for circle in circles:
   print("One circle located at: " + str(circle.location))
property radius#

Returns rdius of circle.

property location#

Returns center of circle.

property normal#

Returns vector perpendicular to circle.

property axis#

Returns two points through the center of the circle.