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

Selection by click + box #56

Open
7 of 8 tasks
NGimbal opened this issue Sep 20, 2020 · 1 comment
Open
7 of 8 tasks

Selection by click + box #56

NGimbal opened this issue Sep 20, 2020 · 1 comment
Labels
Collaborative Design Illustration Related to Collaborative Design Illustration User Story Curtain Wall Coordination Related to Curtain Wall Coordination User Story Parametric Module Design Related to Parametric Module Design User Story UI Related to user interface

Comments

@NGimbal
Copy link
Owner

NGimbal commented Sep 20, 2020

  • Transition to rbush from kdtree
  • Click to select
  • Set curr object(s) reducer
  • update object(s) params reducer
  • Distance to rectangle function in primitives
  • Distance to circle function in primitives
  • Render selected objects bounding box (separate shader?)
  • Drag to select

Render select object bounding box is just going to be a shader that loops over points in pt texture, each point (rgba) represents rect like in rect shader, draws rectangle, thin line sharp corners, blue, decorates with indicators for handles. Probably like open circles at corners and edges maybe. depending on implementation.

Might want a second rbush for transform handles? to represent these points for selection / transformation? Or maybe just add to existing Rbush and retain a reference to the bounding box points in existence? That could get crazy?

@NGimbal NGimbal added Collaborative Design Illustration Related to Collaborative Design Illustration User Story Curtain Wall Coordination Related to Curtain Wall Coordination User Story Parametric Module Design Related to Parametric Module Design User Story UI Related to user interface labels Sep 20, 2020
@NGimbal
Copy link
Owner Author

NGimbal commented Sep 20, 2020

Also question w/ regards to how fill vs stroke selection is handled? Good ui might be,
if((strokeDistance + epsilon) < fillDistance) { sel(stroke) } else { sel(fill) }

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Collaborative Design Illustration Related to Collaborative Design Illustration User Story Curtain Wall Coordination Related to Curtain Wall Coordination User Story Parametric Module Design Related to Parametric Module Design User Story UI Related to user interface
Projects
None yet
Development

No branches or pull requests

1 participant