Skip to content

Cannot set regular polygon radius to zero #1019

@dqnykamp

Description

@dqnykamp

Given that the internal algorithm for setting a radius using preferredDirectionWithRadius, setting the radius exactly to zero causes the vertex direction to get lost. For now, we are just setting the radius to 1E-15. Presumably due to significance lost in this algorithm, attempting to then set the radius back to 3 results in a radius that isn't exactly 3.

See test "regular polygon radius slider dragged to zero and back recovers shape"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions