BuildRegularGeoms Namespace Reference
Detailed Description
Python Module for building solid regular geometric objects.
Return value are list of vectors, 3 vectors define a facet.
Copyright (c) Berthold Grupp 2005
License: LGPL
Sample code for creating a mesh:
facets = Cube(3.0, 4.0, 5.0)
m = Mesh.newMesh()
m.addFacets(facets)
Function Documentation
def BuildRegularGeoms::Cone |
( |
|
radius1, |
|
|
|
radius2, |
|
|
|
len, |
|
|
|
closed, |
|
|
|
edgelen, |
|
|
|
count | |
|
) |
| | |
def BuildRegularGeoms::Cube |
( |
|
lenX, |
|
|
|
lenY, |
|
|
|
lenZ | |
|
) |
| | |
def BuildRegularGeoms::Cylinder |
( |
|
radius, |
|
|
|
len, |
|
|
|
closed, |
|
|
|
edgelen, |
|
|
|
count | |
|
) |
| | |
def BuildRegularGeoms::Ellipsoid |
( |
|
lenX, |
|
|
|
lenY, |
|
|
|
count | |
|
) |
| | |
def BuildRegularGeoms::FineCube |
( |
|
lenX, |
|
|
|
lenY, |
|
|
|
lenZ, |
|
|
|
edgelen | |
|
) |
| | |
def BuildRegularGeoms::main |
( |
|
) |
|
def BuildRegularGeoms::RotationBody |
( |
|
polyline, |
|
|
|
count | |
|
) |
| | |
Build a rotation body from a given (closed) polyline, rotation axis is the X-Axis.
Parameter: polyline: list of tuple of 2 floats (2d vector)
Definition at line 84 of file BuildRegularGeoms.py.
def BuildRegularGeoms::Sphere |
( |
|
radius, |
|
|
|
count | |
|
) |
| | |
def BuildRegularGeoms::Toroid |
( |
|
radius1, |
|
|
|
radius2, |
|
|
|
count | |
|
) |
| | |