# Python: module fabmetheus_utilities.geometry.solids.sphere

fabmetheus_utilities.geometry.solids.sphere ($Date: 2008/21/04 $) | index /home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/solids/sphere.py

`Boolean geometry sphere.`

Modules

``

__init__ fabmetheus_utilities.geometry.solids.cube | fabmetheus_utilities.euclidean fabmetheus_utilities.geometry.geometry_utilities.evaluate | math fabmetheus_utilities.geometry.creation.solid | fabmetheus_utilities.geometry.solids.triangle_mesh

Classes

``

fabmetheus_utilities.geometry.solids.cube.Cube(fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh)
  Sphere
SphereDerivation

class Sphere(fabmetheus_utilities.geometry.solids.cube.Cube)
`` | `A sphere object.`

Method resolution order:
  Sphere
  fabmetheus_utilities.geometry.solids.cube.Cube
  fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh
  fabmetheus_utilities.geometry.solids.group.Group
  fabmetheus_utilities.geometry.geometry_tools.dictionary.Dictionary

Methods defined here:

createShape(self)
  `Create the shape.`

setToElementNode(self, elementNode)
  `Set to elementNode.`

Methods inherited from fabmetheus_utilities.geometry.solids.cube.Cube:

addXMLSection(self, depth, output)
  `Add the xml section for this object.`

Methods inherited from fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh:

__init__(self)
  `Add empty lists.`

getCarveBoundaryLayers(self)
  `Get the boundary layers.`

getCarveCornerMaximum(self)
  `Get the corner maximum of the vertexes.`

getCarveCornerMinimum(self)
  `Get the corner minimum of the vertexes.`

getCarveLayerHeight(self)
  `Get the layer height.`

getFabmetheusXML(self)
  `Return the fabmetheus XML.`

getGeometryOutput(self)
  `Get geometry output dictionary.`

getInterpretationSuffix(self)
  `Return the suffix for a triangle mesh.`

getLoops(self, importRadius, z)
  `Get loops sliced through shape.`

getLoopsFromMesh(self, z)
  `Get loops from a carve of a mesh.`

getMinimumZ(self)
  `Get the minimum z.`

getTransformedVertexes(self)
  `Get all transformed vertexes.`

getTriangleMeshes(self)
  `Get all triangleMeshes.`

getVertexes(self)
  `Get all vertexes.`

setCarveImportRadius(self, importRadius)
  `Set the import radius.`

setCarveIsCorrectMesh(self, isCorrectMesh)
  `Set the is correct mesh flag.`

setCarveLayerHeight(self, layerHeight)
  `Set the layer height.`

setEdgesForAllFaces(self)
  `Set the face edges of all the faces.`

Methods inherited from fabmetheus_utilities.geometry.solids.group.Group:

addXMLInnerSection(self, depth, output)
  `Add xml inner section for this object.`

getMatrix4X4(self)
  `Get the matrix4X4.`

getMatrixChainTetragrid(self)
  `Get the matrix chain tetragrid.`

getVisible(self)
  `Get visible.`

Methods inherited from fabmetheus_utilities.geometry.geometry_tools.dictionary.Dictionary:

__repr__(self)
  `Get the string representation of this object info.`

addXML(self, depth, output)
  `Add xml for this object.`

addXMLArchivableObjects(self, depth, output)
  `Add xml for this object.`

getAttributes(self)
  `Get attribute table.`

getComplexTransformedPathLists(self)
  `Get complex transformed path lists.`

getFabricationExtension(self)
  `Get fabrication extension.`

getFabricationText(self, addLayerTemplate)
  `Get fabrication text.`

getPaths(self)
  `Get all paths.`

getTransformedPaths(self)
  `Get all transformed paths.`

getType(self)
  `Get type.`

getXMLLocalName(self)
  `Get xml local name.`

transformGeometryOutput(self, geometryOutput)
  `Transform the geometry output by the local matrix4x4.`

class SphereDerivation
`` | `Class to hold sphere variables.`

Methods defined here:

__init__(self, elementNode)
  `Set defaults.`

Functions

``

addSphere(elementNode, faces, radius, vertexes)
  `Add sphere by radius.`

getGeometryOutput(elementNode, radius)
  `Get triangle mesh from attribute dictionary.`

getNewDerivation(elementNode)
  `Get new derivation.`

processElementNode(elementNode)
  `Process the xml element.`

Data
`` |  | __author__ = 'Enrique Perez (perez_enrique@yahoo.com)' __credits__ = 'Nophead <http://hydraraptor.blogspot.com/>\nArt of Illusion <http://www.artofillusion.org/>' __date__ = '$Date: 2008/21/04 $' __license__ = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html' absolute_import = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)

Author
`` |  | Enrique Perez (perez_enrique@yahoo.com)

Credits
`` |  | Nophead <http://hydraraptor.blogspot.com/> Art of Illusion <http://www.artofillusion.org/>