Mobile app version of vmapp.org
Login or Join
Fox8063795

: Combine Expanded Strokes Sketch 3 Is there any way to combine these expanded strokes without a completely botched result? The normal boolean operations aren't working at all.

@Fox8063795

Posted in: #SketchApp #Vector

Is there any way to combine these expanded strokes without a completely botched result?

The normal boolean operations aren't working at all.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Fox8063795

1 Comments

Sorted by latest first Latest Oldest Best

 

@Alves566

As I suppose you want to create rectangle with the bent upper right corner.

First of all decompose the problem, think globally. What you see? Not just strokes but rectangle with the bent corner. Corners seems the hardest part to reproduce.

When creating keep in mind to use as little shapes as possible. It will be easier to change them later.
In your sketch I counted four shapes (strokes) and aligning them properly is another headache.

Ok, let’s try to reproduce this sketch using only two rectangles.


Make the rectangle with empty fill and desired border width







Duplicate the rectangle by pressing Cmd + D and decrease duplicated rectangle size by dragging lower left corner.







After zoom in to small rectangle by pressing Cmd + 2 and hide bigger rect by pressing eye button in the layers list







Now comes interesting part. We will make bent corner. First enable edit mode on the shape pressing Edit in toolbar . Choose left lower corner point and make a round it for e.g. 10 px. At end hit Return (Enter) to finish edit mode.







It is time to delete two borders (on the right and on the top). Go to menu Layer > Paths > Scissors. Your cursor becomes scissors, hover over right border you will see dotted line over it, click and border will disappear. After delete the upper border as well. Hit return to finish scissors mode.







Make the first rect visible. Add two guides exactly on the inner edge of bent corner. Guides will help us to cut upper right corner of bigger rect properly.







Select bigger rect, enable edit mode add two points on upper and right borders. Position of the points you can get from guide positions or they will snap to guides automatically while dragging them. Make them straight in the inspector panel.







Select upper right point of the bigger rect in edit mode and delete it.







Brace yourself, end is coming! Select two rects and press Union on toolbar menu. You will see something like that







Expand result layer in layers panel. In front of first layer you will see small grey intersected squares, click on them, in the drop down menu select None.







You will notice bent corner is not in aligned properly. Just select it and move to the right and up exactly to border-width/2 amount. In my case border width = 4 px, so move by 2 px.







Voila! We are done with nice and properly aligned object with only two shapes.






Now it is not a problem to change border width and border color.





At first sight it looks complicated but it takes me about 30 seconds to go through these steps.
Just practice a lot.

Sketch file.

Homework: Try to make rectangle with 2, 3, 4 bent corners.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme