<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html><head><title>Python: module fabmetheus_utilities.geometry.solids.sphere</title> </head><body bgcolor="#f0f0f8"> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> <tr bgcolor="#7799ee"> <td valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong><a href="fabmetheus_utilities.html"><font color="#ffffff">fabmetheus_utilities</font></a>.<a href="fabmetheus_utilities.geometry.html"><font color="#ffffff">geometry</font></a>.<a href="fabmetheus_utilities.geometry.solids.html"><font color="#ffffff">solids</font></a>.sphere</strong></big></big> ($Date: 2008/21/04 $)</font></td ><td align=right valign=bottom ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/solids/sphere.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/solids/sphere.py</a></font></td></tr></table> <p><tt>Boolean geometry sphere.</tt></p> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#aa55cc"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="__init__.html">__init__</a><br> <a href="fabmetheus_utilities.geometry.solids.cube.html">fabmetheus_utilities.geometry.solids.cube</a><br> </td><td width="25%" valign=top><a href="fabmetheus_utilities.euclidean.html">fabmetheus_utilities.euclidean</a><br> <a href="fabmetheus_utilities.geometry.geometry_utilities.evaluate.html">fabmetheus_utilities.geometry.geometry_utilities.evaluate</a><br> </td><td width="25%" valign=top><a href="math.html">math</a><br> <a href="fabmetheus_utilities.geometry.creation.solid.html">fabmetheus_utilities.geometry.creation.solid</a><br> </td><td width="25%" valign=top><a href="fabmetheus_utilities.geometry.solids.triangle_mesh.html">fabmetheus_utilities.geometry.solids.triangle_mesh</a><br> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ee77aa"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> <td width="100%"><dl> <dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.solids.cube.html#Cube">fabmetheus_utilities.geometry.solids.cube.Cube</a>(<a href="fabmetheus_utilities.geometry.solids.triangle_mesh.html#TriangleMesh">fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh</a>) </font></dt><dd> <dl> <dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.solids.sphere.html#Sphere">Sphere</a> </font></dt></dl> </dd> <dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.solids.sphere.html#SphereDerivation">SphereDerivation</a> </font></dt></dl> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="Sphere">class <strong>Sphere</strong></a>(<a href="fabmetheus_utilities.geometry.solids.cube.html#Cube">fabmetheus_utilities.geometry.solids.cube.Cube</a>)</font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>A sphere object.<br> </tt></td></tr> <tr><td> </td> <td width="100%"><dl><dt>Method resolution order:</dt> <dd><a href="fabmetheus_utilities.geometry.solids.sphere.html#Sphere">Sphere</a></dd> <dd><a href="fabmetheus_utilities.geometry.solids.cube.html#Cube">fabmetheus_utilities.geometry.solids.cube.Cube</a></dd> <dd><a href="fabmetheus_utilities.geometry.solids.triangle_mesh.html#TriangleMesh">fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh</a></dd> <dd><a href="fabmetheus_utilities.geometry.solids.group.html#Group">fabmetheus_utilities.geometry.solids.group.Group</a></dd> <dd><a href="fabmetheus_utilities.geometry.geometry_tools.dictionary.html#Dictionary">fabmetheus_utilities.geometry.geometry_tools.dictionary.Dictionary</a></dd> </dl> <hr> Methods defined here:<br> <dl><dt><a name="Sphere-createShape"><strong>createShape</strong></a>(self)</dt><dd><tt>Create the shape.</tt></dd></dl> <dl><dt><a name="Sphere-setToElementNode"><strong>setToElementNode</strong></a>(self, elementNode)</dt><dd><tt>Set to elementNode.</tt></dd></dl> <hr> Methods inherited from <a href="fabmetheus_utilities.geometry.solids.cube.html#Cube">fabmetheus_utilities.geometry.solids.cube.Cube</a>:<br> <dl><dt><a name="Sphere-addXMLSection"><strong>addXMLSection</strong></a>(self, depth, output)</dt><dd><tt>Add the xml section for this object.</tt></dd></dl> <hr> Methods inherited from <a href="fabmetheus_utilities.geometry.solids.triangle_mesh.html#TriangleMesh">fabmetheus_utilities.geometry.solids.triangle_mesh.TriangleMesh</a>:<br> <dl><dt><a name="Sphere-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Add empty lists.</tt></dd></dl> <dl><dt><a name="Sphere-getCarveBoundaryLayers"><strong>getCarveBoundaryLayers</strong></a>(self)</dt><dd><tt>Get the boundary layers.</tt></dd></dl> <dl><dt><a name="Sphere-getCarveCornerMaximum"><strong>getCarveCornerMaximum</strong></a>(self)</dt><dd><tt>Get the corner maximum of the vertexes.</tt></dd></dl> <dl><dt><a name="Sphere-getCarveCornerMinimum"><strong>getCarveCornerMinimum</strong></a>(self)</dt><dd><tt>Get the corner minimum of the vertexes.</tt></dd></dl> <dl><dt><a name="Sphere-getCarveLayerHeight"><strong>getCarveLayerHeight</strong></a>(self)</dt><dd><tt>Get the layer height.</tt></dd></dl> <dl><dt><a name="Sphere-getFabmetheusXML"><strong>getFabmetheusXML</strong></a>(self)</dt><dd><tt>Return the fabmetheus XML.</tt></dd></dl> <dl><dt><a name="Sphere-getGeometryOutput"><strong>getGeometryOutput</strong></a>(self)</dt><dd><tt>Get geometry output dictionary.</tt></dd></dl> <dl><dt><a name="Sphere-getInterpretationSuffix"><strong>getInterpretationSuffix</strong></a>(self)</dt><dd><tt>Return the suffix for a triangle mesh.</tt></dd></dl> <dl><dt><a name="Sphere-getLoops"><strong>getLoops</strong></a>(self, importRadius, z)</dt><dd><tt>Get loops sliced through shape.</tt></dd></dl> <dl><dt><a name="Sphere-getLoopsFromMesh"><strong>getLoopsFromMesh</strong></a>(self, z)</dt><dd><tt>Get loops from a carve of a mesh.</tt></dd></dl> <dl><dt><a name="Sphere-getMinimumZ"><strong>getMinimumZ</strong></a>(self)</dt><dd><tt>Get the minimum z.</tt></dd></dl> <dl><dt><a name="Sphere-getTransformedVertexes"><strong>getTransformedVertexes</strong></a>(self)</dt><dd><tt>Get all transformed vertexes.</tt></dd></dl> <dl><dt><a name="Sphere-getTriangleMeshes"><strong>getTriangleMeshes</strong></a>(self)</dt><dd><tt>Get all triangleMeshes.</tt></dd></dl> <dl><dt><a name="Sphere-getVertexes"><strong>getVertexes</strong></a>(self)</dt><dd><tt>Get all vertexes.</tt></dd></dl> <dl><dt><a name="Sphere-setCarveImportRadius"><strong>setCarveImportRadius</strong></a>(self, importRadius)</dt><dd><tt>Set the import radius.</tt></dd></dl> <dl><dt><a name="Sphere-setCarveIsCorrectMesh"><strong>setCarveIsCorrectMesh</strong></a>(self, isCorrectMesh)</dt><dd><tt>Set the is correct mesh flag.</tt></dd></dl> <dl><dt><a name="Sphere-setCarveLayerHeight"><strong>setCarveLayerHeight</strong></a>(self, layerHeight)</dt><dd><tt>Set the layer height.</tt></dd></dl> <dl><dt><a name="Sphere-setEdgesForAllFaces"><strong>setEdgesForAllFaces</strong></a>(self)</dt><dd><tt>Set the face edges of all the faces.</tt></dd></dl> <hr> Methods inherited from <a href="fabmetheus_utilities.geometry.solids.group.html#Group">fabmetheus_utilities.geometry.solids.group.Group</a>:<br> <dl><dt><a name="Sphere-addXMLInnerSection"><strong>addXMLInnerSection</strong></a>(self, depth, output)</dt><dd><tt>Add xml inner section for this object.</tt></dd></dl> <dl><dt><a name="Sphere-getMatrix4X4"><strong>getMatrix4X4</strong></a>(self)</dt><dd><tt>Get the matrix4X4.</tt></dd></dl> <dl><dt><a name="Sphere-getMatrixChainTetragrid"><strong>getMatrixChainTetragrid</strong></a>(self)</dt><dd><tt>Get the matrix chain tetragrid.</tt></dd></dl> <dl><dt><a name="Sphere-getVisible"><strong>getVisible</strong></a>(self)</dt><dd><tt>Get visible.</tt></dd></dl> <hr> Methods inherited from <a href="fabmetheus_utilities.geometry.geometry_tools.dictionary.html#Dictionary">fabmetheus_utilities.geometry.geometry_tools.dictionary.Dictionary</a>:<br> <dl><dt><a name="Sphere-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this object info.</tt></dd></dl> <dl><dt><a name="Sphere-addXML"><strong>addXML</strong></a>(self, depth, output)</dt><dd><tt>Add xml for this object.</tt></dd></dl> <dl><dt><a name="Sphere-addXMLArchivableObjects"><strong>addXMLArchivableObjects</strong></a>(self, depth, output)</dt><dd><tt>Add xml for this object.</tt></dd></dl> <dl><dt><a name="Sphere-getAttributes"><strong>getAttributes</strong></a>(self)</dt><dd><tt>Get attribute table.</tt></dd></dl> <dl><dt><a name="Sphere-getComplexTransformedPathLists"><strong>getComplexTransformedPathLists</strong></a>(self)</dt><dd><tt>Get complex transformed path lists.</tt></dd></dl> <dl><dt><a name="Sphere-getFabricationExtension"><strong>getFabricationExtension</strong></a>(self)</dt><dd><tt>Get fabrication extension.</tt></dd></dl> <dl><dt><a name="Sphere-getFabricationText"><strong>getFabricationText</strong></a>(self, addLayerTemplate)</dt><dd><tt>Get fabrication text.</tt></dd></dl> <dl><dt><a name="Sphere-getPaths"><strong>getPaths</strong></a>(self)</dt><dd><tt>Get all paths.</tt></dd></dl> <dl><dt><a name="Sphere-getTransformedPaths"><strong>getTransformedPaths</strong></a>(self)</dt><dd><tt>Get all transformed paths.</tt></dd></dl> <dl><dt><a name="Sphere-getType"><strong>getType</strong></a>(self)</dt><dd><tt>Get type.</tt></dd></dl> <dl><dt><a name="Sphere-getXMLLocalName"><strong>getXMLLocalName</strong></a>(self)</dt><dd><tt>Get xml local name.</tt></dd></dl> <dl><dt><a name="Sphere-transformGeometryOutput"><strong>transformGeometryOutput</strong></a>(self, geometryOutput)</dt><dd><tt>Transform the geometry output by the local matrix4x4.</tt></dd></dl> </td></tr></table> <p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#ffc8d8"> <td colspan=3 valign=bottom> <br> <font color="#000000" face="helvetica, arial"><a name="SphereDerivation">class <strong>SphereDerivation</strong></a></font></td></tr> <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> <td colspan=2><tt>Class to hold sphere variables.<br> </tt></td></tr> <tr><td> </td> <td width="100%">Methods defined here:<br> <dl><dt><a name="SphereDerivation-__init__"><strong>__init__</strong></a>(self, elementNode)</dt><dd><tt>Set defaults.</tt></dd></dl> </td></tr></table></td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#eeaa77"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Functions</strong></big></font></td></tr> <tr><td bgcolor="#eeaa77"><tt> </tt></td><td> </td> <td width="100%"><dl><dt><a name="-addSphere"><strong>addSphere</strong></a>(elementNode, faces, radius, vertexes)</dt><dd><tt>Add sphere by radius.</tt></dd></dl> <dl><dt><a name="-getGeometryOutput"><strong>getGeometryOutput</strong></a>(elementNode, radius)</dt><dd><tt>Get triangle mesh from attribute dictionary.</tt></dd></dl> <dl><dt><a name="-getNewDerivation"><strong>getNewDerivation</strong></a>(elementNode)</dt><dd><tt>Get new derivation.</tt></dd></dl> <dl><dt><a name="-processElementNode"><strong>processElementNode</strong></a>(elementNode)</dt><dd><tt>Process the xml element.</tt></dd></dl> </td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#55aa55"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> <td width="100%"><strong>__author__</strong> = 'Enrique Perez (perez_enrique@yahoo.com)'<br> <strong>__credits__</strong> = 'Nophead <http://hydraraptor.blogspot.com/><font color="#c040c0">\n</font>Art of Illusion <http://www.artofillusion.org/>'<br> <strong>__date__</strong> = '$Date: 2008/21/04 $'<br> <strong>__license__</strong> = 'GNU Affero General Public License http://www.gnu.org/licenses/agpl.html'<br> <strong>absolute_import</strong> = _Feature((2, 5, 0, 'alpha', 1), (2, 7, 0, 'alpha', 0), 16384)</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Author</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Enrique Perez (perez_enrique@yahoo.com)</td></tr></table><p> <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> <tr bgcolor="#7799ee"> <td colspan=3 valign=bottom> <br> <font color="#ffffff" face="helvetica, arial"><big><strong>Credits</strong></big></font></td></tr> <tr><td bgcolor="#7799ee"><tt> </tt></td><td> </td> <td width="100%">Nophead <<a href="http://hydraraptor.blogspot.com/">http://hydraraptor.blogspot.com/</a>><br> Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table> </body></html>