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

add ScaleOverlayTool #298

Closed
wants to merge 1 commit into from
Closed

Conversation

tineke01
Copy link

No description provided.

@netlify
Copy link

netlify bot commented Nov 15, 2022

Deploy Preview for cornerstone-3d-docs failed.

Name Link
🔨 Latest commit 4414d7f
🔍 Latest deploy log https://app.netlify.com/sites/cornerstone-3d-docs/deploys/6373249e3d20680008df5f01

@tineke01 tineke01 changed the title add ScaleOverlayTool file add ScaleOverlayTool Nov 15, 2022
@sedghi
Copy link
Member

sedghi commented Nov 16, 2022

I thought you said you have the old implementation

@tineke01
Copy link
Author

tineke01 commented Nov 16, 2022

I thought you said you have the old implementation

https://github.com/cornerstonejs/cornerstoneTools/blob/master/src/tools/ScaleOverlayTool.js
Previous projects used cornerstoneTools,now using 3D versions

@sedghi
Copy link
Member

sedghi commented Nov 16, 2022

The most important part is the renderToolData. It needs to look at the viewport current camera, and calculates the scale and render it. I recommend start by comparing the implementation of a legacy tool (Length) and the Length tool in 3D

@sedghi sedghi closed this Jan 24, 2023
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

Successfully merging this pull request may close these issues.

2 participants