Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CURA-11887] Fuzzy Skin Outside Only: Make definition of 'inside' user-settable #2113

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

rburema
Copy link
Member

@rburema rburema commented Jul 4, 2024

Previously, for the Fuzzy Skin Outside Only setting, the definition of 'inside' was only areas that are fully enclosed within a layer.

With these changes (see also the necessary added settings in the front-end), it is now possible to define 'sufficiently convex' areas as 'inside' as well -- skipping these areas when jittering the outer-wall.

The new settings are:

  • A measure of the 'convexity' of a near-hole in an area; the ratio of the circumference of that hole 'exposed' to the outside versus the total circumference of that hole.
  • A limit on how small such a hole area considered for exclusion needs to be at minimum (given that the hole is exposed to the outside, fully enclosed holes will never be considered outside, no matter how small).

fuzzy_skin_8_1073

fuzzy_skin_8_117

rburema and others added 3 commits July 3, 2024 18:08
Expand the 'only fuzzy in outside' setting to also mean things the user reasonably could consider inside, instead of just completely closed holes. Take the (approximate) convex hull of the shape, take the difference to get candidate parts that could be considered to be inside of the shape -- then, for each part, determine where it touches the outside. The ratio between how much 'outside' outline and total outline of such a shape (as well as a general size of the hole if ther _is_ any 'outside') determines if points on the polygon thouching that part (outside of the original polygon but inside the approx convex hull) will get 'fuzzed' or not.

part of CURA-11887
Also make the ratio always true even when 0 by replacing < with <=, so fully enclosed areas don't get fuzzed/jittered ever if outside only is on.

part CURA-11887
Copy link
Contributor

@wawanbreton wawanbreton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Lgtm

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants