Package empro :: Module empro :: Module geometry :: Class Part
[frames] | no frames]

Class Part

core.Updatable --+        
                 |        
   core.Selectable --+    
                     |    
     core.Attributable --+
                         |
                        Part
Known Subclasses:

Defines the role and operations of a participant of the feature based modeling architecture. This is an abstract class.

Class Hierarchy for Part
Class Hierarchy for Part

Instance Methods
int
age()
Returns the age of the part.
list(string)
badFaces()
Returns the list of bad faces of the part
BoundingBox3D
boundingBox()
Returns the bounding box of the part.
BoundingBox3D
centeredBoundingBox(iBoundingBoxOption)
Returns the centered bounding box of the part.
 
check(...)
No documentation available.
 
checkLumps(...)
No documentation available.
Part
cloneFlatten(iPart)
Returns the clone flatten part of the part specified.
 
exportFaceToSAT(...)
No documentation available.
None
exportToSAB(iFileName)
Export the part to an SAB file.
None
exportToSAT(iFileName)
Export the part to an SAT file.
 
faceCentroid(...)
No documentation available.
 
faceNormalAtCentroid(...)
No documentation available.
list(string)
faces()
Returns the list of faces of the part.
list
facetFaces()
Returns the list of facet faces from the part.
None
hide()
Makes the part hidden.
 
importCad(...)
No documentation available.
 
importCadWithUnits(...)
No documentation available.
 
inspectPart(...)
No documentation available.
SelectableList
locatorList()
Returns the locator list of the part.
 
project(...)
No documentation available.
 
serialize(...)
No documentation available.
 
serializeEx(...)
No documentation available.
None
show()
Makes the part visible.
 
slice(...)
No documentation available.
 
sliceLineFacets(...)
No documentation available.
 
touchGeometry(...)
No documentation available.

Inherited from core.Attributable: addAttribute, attributeNames, getAttribute, removeAttribute, setAttribute

Inherited from core.Selectable: clone, isSelected

Inherited from core.Updatable: __enter__, __exit__, hash, isValid, reasonWhyInvalid

Properties
BodyAppearanceNone appearance
The part's appearance.
stringNone cadId
An id that can be assigned to this part, uniqueness is not enforced.
CoordinateSystemNone coordinateSystem
The part's coordinate system.
PartGridParametersNone gridParameters
The part's grid parameters.
MaterialNone material
The material assigned to this part.
MeshParametersNone meshParameters
The part's mesh parameters.
intNone priority
The part's mesh priority.
UnitNone unit
The part's unit.
boolNone visible
Determines whether the part is visible or not.

Inherited from core.Selectable: metaData, name, notes

Method Details

centeredBoundingBox(iBoundingBoxOption)

 

Returns the centered bounding box of the part.

Parameters:
  • iBoundingBoxOption (string) - The bounding box option, can be one of (AccurateBoundingBox','FastBoundingBox').
Returns: BoundingBox3D

cloneFlatten(iPart)

 

Returns the clone flatten part of the part specified.

Parameters:
  • iPart (Part) - The part to be clone flatten.
Returns: Part

exportToSAB(iFileName)

 

Export the part to an SAB file.

Parameters:
  • iFileName (string) - The name of the SAB file to export to.
Returns: None

exportToSAT(iFileName)

 

Export the part to an SAT file.

Parameters:
  • iFileName (string) - The name of the SAT file to export to.
Returns: None