Skip to content

Ellipse uses wrong extents calculation #193

@Taylor-Reid

Description

@Taylor-Reid

From the current code base:
<Value Condition="this.ContainsAngle(0.0)">Center + MajorAxis</Value> <Value Condition="this.ContainsAngle(90.0)">Center + new DxfPoint(0.0, MajorAxis.Length * MinorAxisRatio, 0.0)</Value <Value Condition="this.ContainsAngle(180.0)">Center - MajorAxis</Value> <Value Condition="this.ContainsAngle(270.0)">Center + new DxfPoint(0.0, -MajorAxis.Length * MinorAxisRatio, 0.0)</Value>
Ellipse seems to use the same 0,90,180,270 degree checks when building up the extents as the arc does, but Ellipse parameters are in radians, so it needs to check for radians.
Additionally, those hard code orthogonal points seem to make the assumption that the minor axis is always along the Y axis direction, which isn't necessarily the case.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions