BuildRegularGeoms Namespace Reference

Functions

def Cone (radius1, radius2, len, closed, edgelen, count)
 
def Cube (lenX, lenY, lenZ)
 
def Cylinder (radius, len, closed, edgelen, count)
 
def Ellipsoid (lenX, lenY, count)
 
def FineCube (lenX, lenY, lenZ, edgelen)
 
def main ()
 
def RotationBody (polyline, count)
 
def Sphere (radius, count)
 
def Toroid (radius1, radius2, count)
 

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 
)

References RotationBody().

Referenced by Cylinder().

def BuildRegularGeoms.Cube (   lenX,
  lenY,
  lenZ 
)
def BuildRegularGeoms.Cylinder (   radius,
  len,
  closed,
  edgelen,
  count 
)

References Cone().

def BuildRegularGeoms.Ellipsoid (   lenX,
  lenY,
  count 
)

References RotationBody().

Referenced by Sphere().

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)

Referenced by Cone(), Ellipsoid(), and Toroid().

def BuildRegularGeoms.Sphere (   radius,
  count 
)
Creates a sphere with a given radius.

bla bla bla

References Ellipsoid().

def BuildRegularGeoms.Toroid (   radius1,
  radius2,
  count 
)

References RotationBody().