Module fmeobjects :: Class FMEBRepSolid
[hide private]
[frames] | no frames]

Class FMEBRepSolid


init(surface)

FME BRepSolid class.

Create an instance of a BRepSolid geometry object.

init(outerSurface)

Creates a new BRepSolid geometry object. The surface passed in is used to define the outer surface of the bRepSolid.

Parameters

Returns: FMEBRepSolid

init(brepsolid)

Create a copy of the passed in BRepSolid geometry object.

Parameters

Returns: FMEBRepSolid

Instance Methods [hide private]
 
__decIterRef__(args)
 
__incIterRef__(args)
 
__init__(surface)
x.__init__(...) initializes x; see help(type(x)) for signature
 
__iter__(x)
iter(x)
None
addInnerSurface(surface)
Adds an inner surface to this boundary-representation solid.
FMEBRepSolid
createBRepSolidCopy()
This routine returns a copy of the given BRepSolid geometry object.
FMESurface or None
getInnerSurfaceAt(index)
Returns the inner surface of this boundary-representation solid at the index specified, or returns none if the index is out of range.
FMESurface
getOuterSurface()
Returns the outer surface of this boundary-representation solid.
int
numInnerSurfaces()
Returns the number of inner surfaces in this boundary-representation solid.
FMESurface of a terminal type or None
removeLastInnerSurface()
Removes the last inner surface of this boundary-representation solid.
None
resolvePartDefaults()
Recursively resolves surface parts with default appearances by replacing these defaults with the inherited appearance references stored by the parent surface, if such a value exists.
None
setOuterSurface(outerSurface)
Sets the outer surface of this boundary-representation solid as the specified FMESurface passed in.

Inherited from FMESolid: getAppearanceReference, getAsWireFrame, offset, reverse, rotate2D, scale, setAppearanceReference

Inherited from FMEGeometry: __getObject__, __new__, boundingBox, boundingCube, bounds, clearMeasures, copyAttributesFromFeature, copyNameFromGeometry, copyTraitsFromGeometry, copyTraitsToFeature, deleteName, force2D, force3D, getArea, getMeasureNames, getName, getTrait, getTraitNames, getTraitNullMissingAndType, getTraitType, hasMeasures, hasName, is3D, isCollection, measureExists, removeMeasure, removeTraits, renameMeasure, setName, setTrait, setTraitNullWithType

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties [hide private]

Inherited from object: __class__

Method Details [hide private]

__init__(surface)
(Constructor)

 

x.__init__(...) initializes x; see help(type(x)) for signature

Overrides: object.__init__

addInnerSurface(surface)

 

Adds an inner surface to this boundary-representation solid. If None is passed in, this solid will not be modified.

Parameters:
  • surface (FMESurface) - The surface to add to the boundary-representation solid.
Returns: None

createBRepSolidCopy()

 

This routine returns a copy of the given BRepSolid geometry object. If there are any errors, an exception is raised.

Returns: FMEBRepSolid
A copy of the aggregate.
Raises:
  • FMEException - An exception is raised if an error occurred.

getInnerSurfaceAt(index)

 

Returns the inner surface of this boundary-representation solid at the index specified, or returns none if the index is out of range.

Parameters:
  • index (int) - The index of the inner surface to be returned.
Returns: FMESurface or None
The inner surface at the given index

getOuterSurface()

 

Returns the outer surface of this boundary-representation solid.

Returns: FMESurface
The outer surface of the bRepSolid

numInnerSurfaces()

 

Returns the number of inner surfaces in this boundary-representation solid.

Returns: int
The number of inner surfaces in the bRepSolid

removeLastInnerSurface()

 

Removes the last inner surface of this boundary-representation solid. If there are no inner surfaces in this solid, this method will return None.

Returns: FMESurface of a terminal type or None
The last inner surface of the bRepSolid or none. Note: This method returns a terminal geometry type of the FMESurface; i.e. one of the leaf classes in the FMESurface inheritance graph. For example, a FMEFace is returned if the geometry truly is a face.

resolvePartDefaults()

 

Recursively resolves surface parts with default appearances by replacing these defaults with the inherited appearance references stored by the parent surface, if such a value exists. The nearest non-default ancestor value will be used to set the default appearances on the part.

Returns: None

setOuterSurface(outerSurface)

 

Sets the outer surface of this boundary-representation solid as the specified FMESurface passed in. The outer surface of a boundary-representation solid must exist. Thus, if None is passed in, an error will result.

Parameters:
  • outerSurface (FMESurface) - The index of the inner surface to be returned.
Returns: None
The inner surface at the given index.
Raises:
  • FMEException - An exception is raised if an error occurred, or None is passed in.