Skip to content

Commit

Permalink
Merge pull request #1157 from xeokit/distance-measurement-snapping
Browse files Browse the repository at this point in the history
Distance and angle measurement snapping
  • Loading branch information
xeolabs authored Oct 5, 2023
2 parents c4d7fb6 + bbf2c79 commit 2ddbfe2
Show file tree
Hide file tree
Showing 17 changed files with 1,811 additions and 919 deletions.
94 changes: 0 additions & 94 deletions examples/measurement/angle_createWithMouse_edgeSnapping.html

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ <h3>Resources</h3>
// Import the modules we need for this example
//------------------------------------------------------------------------------------------------------------------

import {Viewer, XKTLoaderPlugin, AngleMeasurementsPlugin} from "../../dist/xeokit-sdk.min.es.js";
import {Viewer, XKTLoaderPlugin, AngleMeasurementsPlugin, PointerLens} from "../../dist/xeokit-sdk.es.js";

//------------------------------------------------------------------------------------------------------------------
// Create a Viewer and arrange the camera
Expand Down Expand Up @@ -86,7 +86,11 @@ <h3>Resources</h3>
// Create an AngleMeasurementsPlugin, activate its AngleMeasuremntsControl
//------------------------------------------------------------------------------------------------------------------

const angleMeasurements = new AngleMeasurementsPlugin(viewer);
const pointerLens = new PointerLens(viewer);

const angleMeasurements = new AngleMeasurementsPlugin(viewer, {
pointerLens
});

angleMeasurements.control.activate();

Expand Down
272 changes: 0 additions & 272 deletions examples/measurement/distance_createWithMouse_edgeSnapping.html

This file was deleted.

Loading

0 comments on commit 2ddbfe2

Please sign in to comment.