Skip to content

Cut operation - right vs. left #150

Open

Description

@DavidHollman

In the documentation on this page:
http://esri.github.io/geometry-api-java/doc/Cut.html

It says:

"All left cuts will be grouped together in the first geometry. Right cuts and coincident cuts are grouped in the second geometry."

What do left and right mean in this context?

Thanks

Activity

  1. jgravois commented on Jan 31, 2018

    @jgravois

    i could be wrong, but i always assumed right and left referred to the cardinality as perceived using the bearing of the cutting geometry if it were to animate and grow dynamically from its first vertex to its last to do the cutting.
    2018-01-31 09 40 33

  2. stolstov commented on Jan 31, 2018

    @stolstov
    Member

    At the location of the cut, the left is to the left of the tangent vector of the the cutter segment and the right is to the right of it. For the tangent vector if you direct your right hand index finger in the direction of the tangent your thumb will point to the left (keep your palm faced down to the 2D plane).

  3. jgravois commented on Jan 31, 2018

    @jgravois
  4. DavidHollman commented on Jan 31, 2018

    @DavidHollman
    ContributorAuthor

    Thanks for the clarifications. IMO this would be good info to expand on in the Wiki page. The detail that a polyline has a direction was not evident to a newbie like me. Also I had missed the distinction that the CUT operation's second argument is a polyline, wheras most others take a GEOMETRY.

  5. jgravois commented on Jan 31, 2018

    @jgravois

    we actually host that document in the gh-pages branch of this repository. a pull request with the improvements you mentioned would be welcome.

    <p>All left cuts will be grouped together in the first geometry. Right cuts and coincident cuts are grouped
    in the second geometry. Each undefined cut along with any uncut parts are output as separate geometries. If there were no cuts, the cursor will return no geometry. If the left
    or right cut does not exist, the returned geometry will be empty for this type of cut.</p>
    <p>An undefined cut will only be produced if a left or right cut was produced and there was a part left over after cutting or a cut is bounded to the left and right of the cutter.</p>

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions