cognitedata / reveal-viewer

WebGL viewer for high-performance visualization of large 3D models
2 stars 0 forks source link

Expose methods necessary to create draggable 3D objects such as slicing handles #9

Open dragly opened 5 years ago

dragly commented 5 years ago

To create a handle that can be used for instance for slicing, the user now needs to disable the camera controls completely to be able to interact with this object without rotating the view at the same time. This is unfortunate.

It is also necessary to access the private viewer._camera property to set up a three.js Raycaster. We should overhaul the API so it is possible to listen to different events, such as mouse down, mouse move, etc. and access necessary properties to create such controls easily.