holoviz-topics / EarthSim

Tools for working with and visualizing environmental simulations.
https://earthsim.holoviz.org
BSD 3-Clause "New" or "Revised" License
65 stars 21 forks source link

Added custom PolyVertexEditTool #276

Closed philippjfr closed 5 years ago

philippjfr commented 5 years ago

Adds customized PolyEditTool which supports dragging shared nodes and allows coloring feature vertices differently from regular vertices.

philippjfr commented 5 years ago

@kcpevey Would be great if you could try this out.

kcpevey commented 5 years ago

I think this is heading in the right direction. As expected, it still needs more work which I think you can proceed on.

Some bugs I noticed:

I didn't see the different color vertices/nodes, but that's probably because I wasn't sure how to trigger that visualization.

philippjfr commented 5 years ago

@kcpevey This is ready for you to try out again.

kcpevey commented 5 years ago

@philippjfr I'm seeing some strange behavior. It feels like there is a bug or two in there somewhere but I couldn't get a recipe to reproduce most things:

Questions:

kcpevey commented 5 years ago

Also, do we have a roadmap for this task? It seems to have come a long way since #272 .

philippjfr commented 5 years ago

is there a plan to allow for adding vertices/adding nodes to midpoint of line?

By clicking somewhere on an existing line.

eventually we need a 'clean' tool (perhaps part of polygon 'build' tool) that takes all the paths that a user has drawn and at every location.

Should consider whether this is a tool in the toolbar or a separate button in the polygon builder class.

Tasks: