From 9b235f236b43a448578611acaf92a172a4094c32 Mon Sep 17 00:00:00 2001 From: Kurt Hutten Date: Sun, 16 Aug 2020 08:35:03 +1000 Subject: [PATCH] Change polyRoundExtrude h to length in the api for consistency --- polyround.scad | 4 ++-- roundAnythingExamples.scad | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/polyround.scad b/polyround.scad index ac19229..a932bee 100644 --- a/polyround.scad +++ b/polyround.scad @@ -159,8 +159,8 @@ let( finalPolyhedronFaces ]; -module polyRoundExtrude(radiiPoints,h=5,r1=1,r2=1,fn=10,convexity=10) { - polyhedronPointsNFaces=extrudePolygonWithRadius(radiiPoints,h,r1,r2,fn); +module polyRoundExtrude(radiiPoints,length=5,r1=1,r2=1,fn=10,convexity=10) { + polyhedronPointsNFaces=extrudePolygonWithRadius(radiiPoints,length,r1,r2,fn); polyhedron(points=polyhedronPointsNFaces[0], faces=polyhedronPointsNFaces[1], convexity=convexity); } diff --git a/roundAnythingExamples.scad b/roundAnythingExamples.scad index 4ebd809..96f076f 100644 --- a/roundAnythingExamples.scad +++ b/roundAnythingExamples.scad @@ -203,8 +203,8 @@ module radiusExtrudeExample(){ } module polyRoundExtrudeExample(){ - radiiPointsbrah=[[10,0,10],[20,20,1.1],[8,7,10],[0,7,0.3],[5,3,0.1],[-4,0,1]]; - polyRoundExtrude(radiiPointsbrah,2,0.5,-0.8,fn=8); + radiiPoints=[[10,0,10],[20,20,1.1],[8,7,10],[0,7,0.3],[5,3,0.1],[-4,0,1]]; + polyRoundExtrude(radiiPoints,2,0.5,-0.8,fn=8); } module gridpattern(memberW = 4, sqW = 12, iter = 5, r = 3){