157 lines
14 KiB
HTML
157 lines
14 KiB
HTML
|
|
|
||
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
|
||
|
|
<html><head><title>Python: module fabmetheus_utilities.geometry.creation.extrude</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.creation.html"><font color="#ffffff">creation</font></a>.extrude</strong></big></big> ($Date: 2008/02/05 $)</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/creation/extrude.py">/home/enrique/Desktop/backup/babbleold/script/reprap/fabmetheus/fabmetheus_utilities/geometry/creation/extrude.py</a></font></td></tr></table>
|
||
|
|
<p><tt>Boolean geometry extrusion.</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.euclidean.html">fabmetheus_utilities.euclidean</a><br>
|
||
|
|
</td><td width="25%" valign=top><a href="fabmetheus_utilities.geometry.geometry_utilities.evaluate.html">fabmetheus_utilities.geometry.geometry_utilities.evaluate</a><br>
|
||
|
|
<a href="fabmetheus_utilities.geometry.creation.lineation.html">fabmetheus_utilities.geometry.creation.lineation</a><br>
|
||
|
|
</td><td width="25%" valign=top><a href="math.html">math</a><br>
|
||
|
|
<a href="fabmetheus_utilities.geometry.geometry_utilities.evaluate_elements.setting.html">fabmetheus_utilities.geometry.geometry_utilities.evaluate_elements.setting</a><br>
|
||
|
|
</td><td width="25%" valign=top><a href="fabmetheus_utilities.geometry.creation.solid.html">fabmetheus_utilities.geometry.creation.solid</a><br>
|
||
|
|
<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.creation.extrude.html#ExtrudeDerivation">ExtrudeDerivation</a>
|
||
|
|
</font></dt><dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.creation.extrude.html#Interpolation">Interpolation</a>
|
||
|
|
</font></dt><dt><font face="helvetica, arial"><a href="fabmetheus_utilities.geometry.creation.extrude.html#PortionDirection">PortionDirection</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="ExtrudeDerivation">class <strong>ExtrudeDerivation</strong></a></font></td></tr>
|
||
|
|
|
||
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||
|
|
<td colspan=2><tt>Class to hold extrude variables.<br> </tt></td></tr>
|
||
|
|
<tr><td> </td>
|
||
|
|
<td width="100%">Methods defined here:<br>
|
||
|
|
<dl><dt><a name="ExtrudeDerivation-__init__"><strong>__init__</strong></a>(self, elementNode)</dt><dd><tt>Initialize.</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="Interpolation">class <strong>Interpolation</strong></a></font></td></tr>
|
||
|
|
|
||
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||
|
|
<td colspan=2><tt>Class to interpolate a path.<br> </tt></td></tr>
|
||
|
|
<tr><td> </td>
|
||
|
|
<td width="100%">Methods defined here:<br>
|
||
|
|
<dl><dt><a name="Interpolation-__init__"><strong>__init__</strong></a>(self)</dt><dd><tt>Set index.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#Interpolation">Interpolation</a>.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getByDistances"><strong>getByDistances</strong></a>(self)</dt><dd><tt>Get by distances.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getByPrefixAlong"><strong>getByPrefixAlong</strong></a>(self, elementNode, path, prefix)</dt><dd><tt>Get interpolation from prefix and xml element along the path.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getByPrefixX"><strong>getByPrefixX</strong></a>(self, elementNode, path, prefix)</dt><dd><tt>Get interpolation from prefix and xml element in the z direction.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getByPrefixZ"><strong>getByPrefixZ</strong></a>(self, elementNode, path, prefix)</dt><dd><tt>Get interpolation from prefix and xml element in the z direction.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getComparison"><strong>getComparison</strong></a>(self, first, second)</dt><dd><tt>Compare the first with the second.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getComplexByPortion"><strong>getComplexByPortion</strong></a>(self, portionDirection)</dt><dd><tt>Get complex from z portion.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getInnerPortion"><strong>getInnerPortion</strong></a>(self)</dt><dd><tt>Get inner x portion.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getVector3ByPortion"><strong>getVector3ByPortion</strong></a>(self, portionDirection)</dt><dd><tt>Get vector3 from z portion.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-getYByPortion"><strong>getYByPortion</strong></a>(self, portionDirection)</dt><dd><tt>Get y from x portion.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-setInterpolationIndex"><strong>setInterpolationIndex</strong></a>(self, portionDirection)</dt><dd><tt>Set the interpolation index.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="Interpolation-setInterpolationIndexFromTo"><strong>setInterpolationIndexFromTo</strong></a>(self, portionDirection)</dt><dd><tt>Set the interpolation index, the start vertex and the end vertex.</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="PortionDirection">class <strong>PortionDirection</strong></a></font></td></tr>
|
||
|
|
|
||
|
|
<tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td>
|
||
|
|
<td colspan=2><tt>Class to hold a portion and direction.<br> </tt></td></tr>
|
||
|
|
<tr><td> </td>
|
||
|
|
<td width="100%">Methods defined here:<br>
|
||
|
|
<dl><dt><a name="PortionDirection-__init__"><strong>__init__</strong></a>(self, portion)</dt><dd><tt>Initialize.</tt></dd></dl>
|
||
|
|
|
||
|
|
<dl><dt><a name="PortionDirection-__repr__"><strong>__repr__</strong></a>(self)</dt><dd><tt>Get the string representation of this <a href="#PortionDirection">PortionDirection</a>.</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="-addLoop"><strong>addLoop</strong></a>(derivation, endMultiplier, loopLists, path, portionDirectionIndex, portionDirections, vertexes)</dt><dd><tt>Add an indexed loop to the vertexes.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addNegatives"><strong>addNegatives</strong></a>(derivation, negatives, paths)</dt><dd><tt>Add pillars output to negatives.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addNegativesPositives"><strong>addNegativesPositives</strong></a>(derivation, negatives, paths, positives)</dt><dd><tt>Add pillars output to negatives and positives.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addOffsetAddToLists"><strong>addOffsetAddToLists</strong></a>(loop, offset, vector3Index, vertexes)</dt><dd><tt>Add an indexed loop to the vertexes.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addPositives"><strong>addPositives</strong></a>(derivation, paths, positives)</dt><dd><tt>Add pillars output to positives.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addSpacedPortionDirection"><strong>addSpacedPortionDirection</strong></a>(portionDirection, spacedPortionDirections)</dt><dd><tt>Add spaced portion directions.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-addTwistPortions"><strong>addTwistPortions</strong></a>(interpolationTwist, remainderPortionDirection, twistPrecision)</dt><dd><tt>Add twist portions.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-comparePortionDirection"><strong>comparePortionDirection</strong></a>(portionDirection, otherPortionDirection)</dt><dd><tt>Comparison in order to sort portion directions in ascending order of portion then direction.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getGeometryOutput"><strong>getGeometryOutput</strong></a>(derivation, elementNode)</dt><dd><tt>Get triangle mesh from attribute dictionary.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getGeometryOutputByArguments"><strong>getGeometryOutputByArguments</strong></a>(arguments, elementNode)</dt><dd><tt>Get triangle mesh from attribute dictionary by arguments.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getGeometryOutputByLoops"><strong>getGeometryOutputByLoops</strong></a>(derivation, loops)</dt><dd><tt>Get geometry output by sorted, nested loops.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getGeometryOutputByNegativesPositives"><strong>getGeometryOutputByNegativesPositives</strong></a>(elementNode, negatives, positives)</dt><dd><tt>Get triangle mesh from elementNode, negatives and positives.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getGeometryOutputByNestedRing"><strong>getGeometryOutputByNestedRing</strong></a>(derivation, nestedRing, portionDirections)</dt><dd><tt>Get geometry output by sorted, nested loops.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getLoopListsByPath"><strong>getLoopListsByPath</strong></a>(derivation, endMultiplier, path, portionDirections)</dt><dd><tt>Get loop lists from path.</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="-getNormalAverage"><strong>getNormalAverage</strong></a>(normals)</dt><dd><tt>Get normal.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getNormals"><strong>getNormals</strong></a>(interpolationOffset, offset, portionDirection)</dt><dd><tt>Get normals.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-getSpacedPortionDirections"><strong>getSpacedPortionDirections</strong></a>(interpolationDictionary)</dt><dd><tt>Get sorted portion directions.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-insertTwistPortions"><strong>insertTwistPortions</strong></a>(derivation, elementNode)</dt><dd><tt>Insert twist portions and radian the twist.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-processElementNode"><strong>processElementNode</strong></a>(elementNode)</dt><dd><tt>Process the xml element.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-setElementNodeToEndStart"><strong>setElementNodeToEndStart</strong></a>(elementNode, end, start)</dt><dd><tt>Set elementNode attribute dictionary to a tilt following path from the start to end.</tt></dd></dl>
|
||
|
|
<dl><dt><a name="-setOffsetByMultiplier"><strong>setOffsetByMultiplier</strong></a>(begin, end, multiplier, offset)</dt><dd><tt>Set the offset by the multiplier.</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> = 'Art of Illusion <http://www.artofillusion.org/>'<br>
|
||
|
|
<strong>__date__</strong> = '$Date: 2008/02/05 $'<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%">Art of Illusion <<a href="http://www.artofillusion.org/">http://www.artofillusion.org/</a>></td></tr></table>
|
||
|
|
</body></html>
|