1
0
mirror of https://github.com/Irev-Dev/Round-Anything.git synced 2025-01-17 02:58:14 +01:00

Merge pull request #14 from Irev-Dev/irevdev/keep-polyround-extrude-height-consistent

Keep polyRound extrude height consistent
This commit is contained in:
Kurt Hutten 2020-10-06 05:41:33 +11:00 committed by GitHub
commit 6b16407430
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -134,7 +134,7 @@ function extrudePolygonWithRadius(radiiPoints,h=5,r1=1,r2=1,fn=4)=
let(
// top is the top curved part of the extrude
top=makeCurvedPartOfPolyHedron(radiiPoints,r1,fn),
topRadiusPoints=translate3Dcoords(top[0],[0,0,h-r1]),
topRadiusPoints=translate3Dcoords(top[0],[0,0,h-abs(r1)]),
singeLayerLength=top[2],
topRadiusFaces=top[1],
radiusPointsLength=len(topRadiusPoints), // is the same length as bottomRadiusPoints