Viewers icon indicating copy to clipboard operation
Viewers copied to clipboard

How can I add Freehand tool manually using (x,y) coordinate array?

Open Vishal568 opened this issue 6 years ago • 2 comments

:hand: Hello Team I want to add freehand tool with static array data which has X and Y coordinate array

Vishal568 avatar Mar 05 '20 08:03 Vishal568

The FreehandRoi tool position data is stored in the "points" object in the FreehandRoiTool variable in cornerstoneTools.js. You could assign it to your array before it's drawn. See the code around line 24149 in cornerstoneTools.js

mtm12 avatar Mar 05 '20 13:03 mtm12

@mtm12 Thank You for guiding me 👍

Vishal568 avatar Mar 06 '20 10:03 Vishal568