Constraining rectangle size with rounded corners
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
I am designing a shell for a hardware product. I'm at an early stage, and am also new to Fusion 360.
I have a rectangle inside a larger, rounded-cornered rectangle. The inner rectangle will represent the size of the PCB and battery that will eventually be contained. Because of the rounded corners of the final shell, I wanted to be able to have a way to ensure that the inner dimensions were at least what I need, regardless of what the shell's size and shape end up being.
What I am trying to figure out is how to make the outer rectangle be formulaically constrained to the inner rectangle. The variables I want considered are:
- the length and width of the inner rectangle
- the radius of the outer rectangle's rounded corners
Doing so now means that when I have final numbers for the PCB and battery dimensions, I can just alter the length and width, and the outer rectangle would resize accordingly. And if we also decided that we wanted rounder or less round corners, then adjusting that dimension, would readjust the outer rectangle accordingly.
Once I get this done, then the next step would be to create an extrusion of the outer rectangle into a 3D shape. (there I'd want similar constraints on the height, plus there is a chance we might want rounded corners on the top of the shell too, not just the sides.
Here is the shape I am currently working with.
I've used a multiplier of 1.15 on both the length and width for now, but that isn't perfect. I end up with cases like this:
There's too much wasted space in this one, as you can see from the spacing between the corners and the round corners.