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

Export markups planes #10

Open
mauigna06 opened this issue Dec 21, 2022 · 4 comments
Open

Export markups planes #10

mauigna06 opened this issue Dec 21, 2022 · 4 comments

Comments

@mauigna06
Copy link
Contributor

It would be nice if planes could be exported as they usually used in surgical planning to mark surgical margins

@lassoan
Copy link
Collaborator

lassoan commented Dec 21, 2022

Yes, it would be useful to export all markup types (planes, lines, point sets, etc.). It would be great if you could implement it. For example, you could create a temporary model node from the markup node here.

@mauigna06
Copy link
Contributor Author

I didn't find a trivial way to do this. A plane-markup rendering code is distributed on different actors, mappers and props.
Do you have any tip on how to convert a (plane) markup to a model? In particular I would like to get the nice translucent opacity of the body of the planeNodes and their nice opaque outline with their corresponding colors

@lassoan
Copy link
Collaborator

lassoan commented Dec 22, 2022

You can create a plane mesh using vtkPlaneSource. You can get the corners by transforming the [+/-halfSize, +/-halfSize, 0, 1] point from the object coordinate system to world coordinate system by multiplying by GetObjectToWorldMatrix.

@mauigna06
Copy link
Contributor Author

Pull request opened: #12

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