Skip to content

Glitches/spillover of a colored region when a very large circle is bounding it #6

@pier-bezuhoff

Description

@pier-bezuhoff

Example: correct vs spillover

correct cube broken cube

Description

When at least one of the circles/lines bounding a colored region is a circle of very big radius (the threshold varies per platform), the region is constructed & displayed incorrectly (exact visual bugs vary, often it's exterior<->interior)

Reason

Path for colored regions is constructed using compose's Path.op(..., PathOperation.x) (source),
which poorly deals with giant circles (especially on Android, but it's still quite noticeable on other platforms that use Skia afaik)

Potential solutions

  • Re-implement path construction, focusing on proper handling of arbitrarily large circles and lines (wrote some WIP algorithms)
  • Aggressively approximate big circles with lines (already doing this for solo-circle display on Android)

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingdisplay issueVisual problem

Projects

Status

Ready

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions