Staircase builder - strange scaling behaviour - Help!
-
I'm trying to debug my staircase builder. When constructing a staircase with winders I've opted to apply a transformation scaling on the whole staircase group in the XY plane to size the staircase to the user input stair width. This produces unexpected scaling results with some elements scaling too little and others too much! I apply the same technique to change to righthand staircase. The script builds a lefthand staircase and the transformation changes it to a righthand one. This works fine!
I've looked at this for a few days now and can't see how to put this right.
Stairbug.gif illustrates the problem.
stairhand.gif illustrates a build of a righthand staircase with success.The script is attached, if anyone fancies a challenge!

Here's hoping!!!


-
#scale up/down all parameters if specifying a non 900mm wide staircase with winders. if (@turns == "Winders") && (@wid !=900.mm) scf = 900.mm / @wid; iscf = @wid / 900.mm; @ris = @ris * scf @nos = @nos * scf @stg = @stg * scf @wid = 900.mm @width = @wid - (@stg * 2) #<----- The only change needed goscale = true end

-
Thanks for input. I've decided to rewrite the code as the tread "goings" get distorted a bit when scaling the staircase. I should've realised using the transformation scaling was too easy a solution!!
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better π
Register LoginAdvertisement