========================== Feature (hwx.inspire.core) ========================== Features are what gives shape to a Part. They can be points, lines, planes, holes, etc. ---------- Properties ---------- +-----------------+-----------------+-----------------+ | active_ | cg_ | ishole_ | +-----------------+-----------------+-----------------+ | location_ | minBoundingBox_ | part_ | +-----------------+-----------------+-----------------+ | units_ | visible_ | | +-----------------+-----------------+-----------------+ -------------- Public Methods -------------- +---------------------------------------------+ | findClosestPoint_ (self, referencePoint) | +---------------------------------------------+ | isa_ (self, type=None, filter=None, **kwds) | +---------------------------------------------+ ---------------- Property Details ---------------- .. _active: .. method:: active Determines the part this feature belongs to is active or not. .. _cg: .. method:: cg The approximate global center of gravity of the feature as a point. .. _ishole: .. method:: ishole Determines the feature is an hollow circle/cylinder or not. .. _location: .. method:: location The global location of the feature as a point. .. _minBoundingBox: .. method:: minBoundingBox Minimum bounding box of feature. Z axis is aligned with face normal for FeaturePlanars. .. _part: .. method:: part Returns the part this feature belongs to. .. _units: .. method:: units Returns the units. .. _visible: .. method:: visible Determines whether the part is visible in the modeling window. -------------- Method Details -------------- .. _findClosestPoint: .. method:: findClosestPoint(self, referencePoint) Returns the point on feature that nearest to the specified point. :param referencePoint: Reference point to find closest point on feature. :type referencePoint: Point :returns: The closest point of the feature from specified point. :rtype: Point .. _isa: .. method:: isa(self, type=None, filter=None, **kwds) Determines the object matches the specified settings or not. :param type: Specify type of the object. :type type: Part, Assembly, Contact, .. :param filter: Return value of specified callback method. :type filter: method :param \*\*kwds: Additional keyword arguments to match attributes.