mouse callbacks, picking and 3D pos of projected mouse click on mesh

Open
#21 1 comment 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Feature
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp, python

Research direction

The issue names no files, tests, or entry points. Start by checking the existing Polyscope Python documentation and the mouse-event, mesh-picking, and projection APIs; done would be documented or implemented answers for callbacks, 3D click coordinates, face indices, and closest-vertex picking.

Written by the indexing model from the issue text.

Description

First of all thank you @nmwsharp so much for this super beautiful visualization library cpp+python!
I wanted to ask how a few things which I fail to find the documentation for and I think might be implemented already -

  • How do I attach a callback to a mouse event?
  • How do I get the projection of my click on the mesh (3D coordinates)?
  • How do I get the picking info - like the face index? closest vertex?

I'm currently trying to assign vector constraints on specific faces through UI and these will be very helpful:)

Thank you so much again!

Dominant language
C++
Stars
53
Forks
25
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from nmwsharp/polyscope-py

All issues in nmwsharp/polyscope-py

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.