Line with rounded corners

@trusktr
That’s how you know the weight. :slight_smile:

Specifically for the example with NURBS, you just set point’s weight manually by GUI:)

Well, you can make it with four quarters of a circle shape, using shape.absarc().
Like I did it here:

shape.absarc( eps, eps, eps, -Math.PI / 2, -Math.PI, true ); 
shape.absarc( eps, height - radius * 2, eps, Math.PI, Math.PI / 2, true ); 
shape.absarc( width - radius * 2, height - radius * 2, eps, Math.PI / 2, 0, true ); 
shape.absarc( width - radius * 2, eps, eps, 0, -Math.PI / 2, true );
2 Likes