Cavities (hwx.inspire.core)

A list of hollows in the model

Useful for plugging cavities. Unlike Holes that are used for regular shaped (cylindrical, slotted) which are used in defining Part connections, like Motors and Actuators, Cavities can be irregular shaped.

Public Methods

cavities (self)

getHoleFromFeature (self, feature, holeList=True)

getUnfilteredHoleFromFeature (self, feature)

getUnfilteredSingleHoleFromFeature (self, feature)

makeDirty (self)

plugAll (self)

populate (self, minsize=None, maxsize=None, parts=None)

Method Details

cavities(self)

Returns a list of hollows in the model

getHoleFromFeature(self, feature, holeList=True)

Returns the holes found from the specified feature.

param feature

Part feature on which holes need to be found.

type feature

Feature

param holeList

If True, returns the holes as a list.

type holeList

bool

returns

Holes found from the feature.

rtype

Holes

getUnfilteredHoleFromFeature(self, feature)

Returns aligned hole from specified feature.

param feature

Part feature on which aligned hole need to be found.

type feature

Feature

returns

Aligned Hole found from the feature.

rtype

AlignedHole

getUnfilteredSingleHoleFromFeature(self, feature)

Returns the single hole found from specified feature.

param feature

Part feature on which single hole need to be found.

type feature

Feature

returns

Single Hole found from the feature.

rtype

Hole

makeDirty(self)

Repopulates the holes.

plugAll(self)

Create and return parts that fills the cavities

populate(self, minsize=None, maxsize=None, parts=None)

Get the cavities for the specified parts or the entire model of parts were not specified

param minsize

Get the holes with a size larger than minsize

type minsize

float

param maxsize

Get the holes with a size smaller than maxsize

type maxsize

float

param parts

Get the holes for these parts

type parts

Part, list[Parts]