Skip to content

resample Is Unstable #38

@dmbaker

Description

@dmbaker

You are doing the calculations by calculating the center of a the "Sphere." In reality, this is a 2D problem, but in either case you are calculating a radius. When doing robust circle (sphere) calculations, one should explicitly avoid using the radius because in straight hole conditions (parallel vectors) the radius goes to infinity.

You don't need to move the arcs relative to the center (so you don't need to calculate the radius, see above). Just move each survey / arc segment start point to the origin, then do the interpolation.

Also, to calculate omega, just use the tangents you have calculated for each survey station, using the angle method. This way you avoid the straight hole condition issue because you already trap for 0 omega in your SLERP method.

Also, the arc is not undefined when omega is zero. The arc has just degenerated into a line. A line is an arc with an infinite radius.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions