BuildRegularGeoms Namespace Reference

Functions

def Cone
def Cube
def Cylinder
def Ellipsoid
def FineCube
def main
def RotationBody
def Sphere
def Toroid

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 
)

Definition at line 40 of file BuildRegularGeoms.py.

def BuildRegularGeoms::Cube (   lenX,
  lenY,
  lenZ 
)

Definition at line 127 of file BuildRegularGeoms.py.

def BuildRegularGeoms::Cylinder (   radius,
  len,
  closed,
  edgelen,
  count 
)

Definition at line 37 of file BuildRegularGeoms.py.

def BuildRegularGeoms::Ellipsoid (   lenX,
  lenY,
  count 
)

Definition at line 25 of file BuildRegularGeoms.py.

def BuildRegularGeoms::FineCube (   lenX,
  lenY,
  lenZ,
  edgelen 
)

Definition at line 184 of file BuildRegularGeoms.py.

def BuildRegularGeoms::main (  ) 

Definition at line 256 of file BuildRegularGeoms.py.

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 
)
Creates a sphere with a given radius.

bla bla bla

Definition at line 17 of file BuildRegularGeoms.py.

def BuildRegularGeoms::Toroid (   radius1,
  radius2,
  count 
)

Definition at line 70 of file BuildRegularGeoms.py.


Generated on Wed Nov 23 19:01:52 2011 for FreeCAD by  doxygen 1.6.1