scenerygraphics / sciview

sciview is a tool for visualization and interaction with ND image and mesh data
BSD 2-Clause "Simplified" License
66 stars 17 forks source link

Distance measurement tool #37

Closed kephale closed 11 months ago

kephale commented 7 years ago

We need a tool for easily measuring distances in 3D

skalarproduktraum commented 7 years ago

How about I provide facilities for that and you use them in ThreeDViewer?

kephale commented 7 years ago

We need:

kephale commented 5 years ago

All of the required scenery support now exists for this.

kephale commented 3 years ago

@Domino2357

Domino2357 commented 3 years ago

Oh, the 3D cursor already exists! Okay, maybe my work is still valuable.

Domino2357 commented 3 years ago

Here is the plan:

Domino2357 commented 3 years ago

@kephale or @skalarproduktraum would one of you be so kind as to point me to the 3D-Cursor?

kephale commented 3 years ago

https://github.com/scenerygraphics/sciview/blob/master/src/main/java/sc/iview/SciView.java#L1036 its the ObjectSelection. it isn't exactly a 3D cursor though

kephale commented 3 years ago

https://github.com/scenerygraphics/scenery/blob/master/src/test/kotlin/graphics/scenery/tests/examples/basic/DistanceMeasurement.kt

kephale commented 1 year ago

@Domino2357 @skalarproduktraum Where are we on this? IIRC @Domino2357 has completed the work on the scenery side already.

kephale commented 11 months ago

This has been implemented https://github.com/scenerygraphics/sciview/blob/7227a02a228095beab22c8201558c1b7992adc81/src/main/kotlin/sc/iview/controls/behaviours/Ruler.kt#L46 but is not very exposed in the UI. We may want to revisit the UX of distance measurement at some point. However, I'm closing this as completed.