kovacsv / Online3DViewer

A solution to visualize and explore 3D models in your browser.
https://3dviewer.net
MIT License
2.57k stars 548 forks source link

Highlight feature #485

Open Tomas1337 opened 4 months ago

Tomas1337 commented 4 months ago

Introduces a new feature allowing users to highlight regions of a 3D mesh by clicking and dragging the mouse or using touch interactions on mobile devices. The highlighted areas are rendered with a semi-transparent red overlay.

Key Changes:

Implemented HighlightTool class to manage highlighting functionality. Added touch event listeners for mobile support. One Touch to Highlight & Two Finger Touch for unhighlight. Mouse Left to Highlight & Mouse Right to Unhighlight TODO: I havent figured out how to add an icon for the feature so im still reusing an old one