I’ve been testing variables, and I thought I’d try passing them from one to another using the a Golden Ratio. My variables:
GoldenRatio = 1.618mm (that’s the max amount of decimal places)
MainDim = 34mm
SecondDim = MainDim/GoldenRatio
ThirdDim = SecondDim/GoldenRatio
FourthDim = ThirdDim/GoldenRatio
FifthDim = FourthDim/GoldenRatio
SixthDim = FifthDim/GoldenRatio
SeventhDim = SixthDim/GoldenRatio
ExtrusionFactor = 0.25
Step 1: I created my sketch with these variables.
Step 2: Then, I extruded each square its Dimension ScaleFactor. For example, the largest square = MainDim * ScaleFactor, and so on down to the smallest box.
Step 3: Everything works great! Until I try to change the MainDim variable (the origin box) from 34 to any other number which results in an invalid curve error?
I’m not sure I understand why this would create an “invalid curve”? In my mind, each box should scale in width and height based off of the origin box. To be fair, changing the ExtrusionFactor does as you’d expect – each box increases in height. Is this related to the sketch itself? Is Shaper trying to maintain each box’s connection to the other boxes through their control points?
I’m flummoxed!
1 Like
When you do your extrusion, are you doing union, or new body? Or did you union the bodies together after the extrusion?
Asking because while from a distance, it looks like your numbers give you exactly the golden ratio of rectangles, 1.618 is not the exact value of the ratio, so the edges of your various sketches don’t actually line up. So then when you extrude, you’re not extruding a perfect cube, and if they are unioned, when you change the values the overlap changes and could make an invalid curve.
If you use (1+sqrt(5))/2 as the value for Golden Ratio, rather than 1.618 it should work and allow value changes without making invalid curves, because that’s an exact value so all the edges line up exactly.
In case you don’t know, when you are using the calculator, you need to use the full keyboard (not just the number pad) to type in the sqrt(x) function.
(P.S. Sorry for the weird screenshot. I’m a new user, so it only lets me post a single image - so this is a screenshot of two screenshots).
Thanks for the tips! To answer your question about whether the bodies are united, they are not. They are all separate bodies. However, I’m wondering if the control points in the sketch are an issue since they share corners? I could also try making a unique sketch for every extruded body instead of having all the sketches together.
UPDATE
I separated the sketches for each body instead of them being combined into a single sketch, and this solved the problem. Now I just need to figure out how to control the point from which each body shrinks or grows when the MainDim variable is changed.