BOSL2 icon indicating copy to clipboard operation
BOSL2 copied to clipboard

Redundant Masks?

Open RAMilewski opened this issue 2 years ago • 4 comments
trafficstars

The ang parameter in rounding_angled_edge_mask() defaults to 90°. Doesn't that make rounding_edge_mask() redundant?

Should rounding_edge_mask() be dropped and rounding_angled_edge_mask() be renamed?

Same for rounding_corner_mask().

RAMilewski avatar Mar 30 '23 19:03 RAMilewski

This is a reasonable idea.

revarbat avatar Apr 03 '23 00:04 revarbat

The actual shapes produced are different. Does it matter? For some reason rounding_angled_edge_mask makes a shape that rounds on two sides.

This mask shape might also be used to create a fillet (that is, added to the model instead of removed) in which case the double-sided one would be bad.

adrianVmariano avatar Oct 11 '23 02:10 adrianVmariano

For the rounding corner masks, the orientation is different as well.

In example 3, rounding_corner_mask() is used with corner_mask(). To do the same with rounding_angled_corner_mask() you need to add an xrot(180) between the two.

...and the docs for corner_mask() should probably mention it assumes 4 corners on a face regardless of the shape of the solid.

RAMilewski avatar Oct 12 '23 05:10 RAMilewski

So does this mean we should leave things alone instead of merging the masks?

adrianVmariano avatar Nov 21 '23 02:11 adrianVmariano