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

Anatomical structure grabbing, supporting the grabbing of various parts of the model instead of moving it as a whole. Thank you very much #493

Open
linhuanfengQ opened this issue Jan 22, 2024 · 6 comments

Comments

@linhuanfengQ
Copy link

No description provided.

@floryst
Copy link
Collaborator

floryst commented Jan 22, 2024

Do you mean being able to manipulate individual geometries interactively? In what manner?

@linhuanfengQ
Copy link
Author

For example, when a button is turned on, a single file can be selected on the screen and then dragged. It's just a change in the translate attribute of a single file

@linhuanfengQ
Copy link
Author

[email protected] This is my email, paid to address my needs. Thank you.

@floryst
Copy link
Collaborator

floryst commented Feb 13, 2024

This is doable, but I don't have availability currently to take this on. I can give you pointers of where to start if you'd like to try.

@linhuanfengQ
Copy link
Author

This is doable, but I don't have availability currently to take this on. I can give you pointers of where to start if you'd like to try.
Hello, thank you very much. I am eager to receive your guidance!

Here is my core code, and now I have a serious problem: I have picked up many actors, but I cannot determine which one is what I want. What I want is the outermost model, but I cannot know which one is the outermost model

      const picker = vtkInstance();
      for (let i = 0; i < this.view.getRenderer().getActors().length; i++) {
        const element = this.view.getRenderer().getActors()[i];
        picker.addPickList(element);
      }
      picker.pick(pos, this.view.getRenderer());
      picker.getActors()

@floryst
Copy link
Collaborator

floryst commented May 13, 2024

The outermost model will likely be your first actor in the list, as I'm pretty sure the actors are ordered based on intersection ordering starting from the camera.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants