Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace an arc with other arc(s). #1

Open
mbostock opened this issue Oct 2, 2014 · 0 comments
Open

Replace an arc with other arc(s). #1

mbostock opened this issue Oct 2, 2014 · 0 comments

Comments

@mbostock
Copy link
Owner

mbostock commented Oct 2, 2014

It should be possible to take one arc (the source arc) and replace it with the corresponding subset of another arc (the target arc). For example, here replacing the light blue arc with the similar subset from the darker blue arc:

screen shot 2014-10-02 at 11 47 44 am

This feature is already implemented, but it lacks some functionality:

  • In some cases, the target arc lacks control points near the endpoints of the source arc. It will be necessary to introduce new control points in the target arc so that the appropriate subset can be cut out of the target arc. (This will also require detecting coincident arcs.)
  • Sometimes there is not a single target arc that is a superset of the source arc, but multiple target arcs that we want to use to replace the source arc. One solution to this may be to split the source arc first, so that we replace a subset of the source arc with the corresponding subset of the target arc, and then the next subset of the source arc with the corresponding subset of the next target arc, and so on. Alternatively, a way of replacing a source arc with a set of target arcs, and splitting the source arc accordingly.
  • Similarly, sometimes we just want to replace a subset of a source arc with a subset of a target arc, thus requiring us to split the source arc before replacement.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant