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

Class Model

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

A model is a Part that is composed of a collection of Feature objects.

Class Hierarchy for Model
Class Hierarchy for Model

constructor Model():

Instance Methods
Model
deserialize(xml)
Static method, deserialize XML representation of definition to Python object.
None
deserializeEx()
Method not for use.
None
forceScale(iScaleFactor)
Force scale the model to the specified factor.
None
scale(iScaleFactor)
Scale the model to the specified factor.
str
serialize()
Serialize model to XML.
None
serializeEx()
Method not for use.

Inherited from Part: age, badFaces, boundingBox, centeredBoundingBox, check, checkLumps, cloneFlatten, exportFaceToSAT, exportToSAB, exportToSAT, faceCentroid, faceNormalAtCentroid, faces, facetFaces, hide, importCad, importCadWithUnits, inspectPart, locatorList, project, show, slice, sliceLineFacets, touchGeometry

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
RecipeNone recipe
The recipe for this model.

Inherited from Part: appearance, cadId, coordinateSystem, gridParameters, material, meshParameters, priority, unit, visible

Inherited from core.Selectable: metaData, name, notes

Method Details

deserialize(xml)

 

Static method, deserialize XML representation of definition to Python object.

Parameters:
  • xml (str) - XML representation of model
Returns: Model

forceScale(iScaleFactor)

 

Force scale the model to the specified factor.

Parameters:
  • iScaleFactor (double) - The value for scaling the model.
Returns: None

scale(iScaleFactor)

 

Scale the model to the specified factor.

Parameters:
  • iScaleFactor (double) - The value for scaling the model.
Returns: None

serialize()

 

Serialize model to XML.

Returns: str
Overrides: Part.serialize

serializeEx()

 

Method not for use.

Returns: None
Overrides: Part.serializeEx