summaryrefslogtreecommitdiff
path: root/make.py
diff options
context:
space:
mode:
Diffstat (limited to 'make.py')
-rw-r--r--make.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/make.py b/make.py
index fa66c4d..0623b2b 100644
--- a/make.py
+++ b/make.py
@@ -20,7 +20,7 @@ def linear_extrude(x1, y1, height, x2=None, y2=None, center=None):
Example:
>>> # create a hexagon prism
>>> angles = np.linspace(0, 2*np.pi, 6, endpoint=False)
- >>> m = linear_extrude(np.cos(angles), np.sin(angles), 5.0)
+ >>> m = linear_extrude(np.cos(angles), np.sin(angles), 2.0)
"""
if len(x1) != len(y1):
raise Exception('`x` and `y` arrays must have the same length.')
@@ -56,6 +56,10 @@ def rotate_extrude(x, y, nsteps=64):
.. note::
The path traced by the points `x` and `y` should go counter-clockwise,
otherwise the mesh will be inside out.
+
+ Example:
+ >>> # create a bipyramid
+ >>> m = rotate_extrude([0,1,0], [-1,0,1], nsteps=4)
"""
if len(x) != len(y):
raise Exception('`x` and `y` arrays must have the same length.')