mirror of
https://github.com/Irev-Dev/Round-Anything.git
synced 2025-08-29 18:29:50 +02:00
Keep polyRound extrude height consistent
when r1 changed between a positive and negative radius the height of the extrude would change
This commit is contained in:
@@ -134,7 +134,7 @@ function extrudePolygonWithRadius(radiiPoints,h=5,r1=1,r2=1,fn=4)=
|
|||||||
let(
|
let(
|
||||||
// top is the top curved part of the extrude
|
// top is the top curved part of the extrude
|
||||||
top=makeCurvedPartOfPolyHedron(radiiPoints,r1,fn),
|
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],
|
singeLayerLength=top[2],
|
||||||
topRadiusFaces=top[1],
|
topRadiusFaces=top[1],
|
||||||
radiusPointsLength=len(topRadiusPoints), // is the same length as bottomRadiusPoints
|
radiusPointsLength=len(topRadiusPoints), // is the same length as bottomRadiusPoints
|
||||||
|
Reference in New Issue
Block a user