Work on compass
This commit is contained in:
parent
b94151bc01
commit
63fc0d1187
4 changed files with 176 additions and 65 deletions
|
@ -19,7 +19,10 @@ import {
|
|||
Orientation,
|
||||
buildClippingplanes,
|
||||
} from "./utils/build-clipping-planes";
|
||||
import { buildCoordinateGrid } from "./utils/build-coordinate-grid";
|
||||
import {
|
||||
buildCoordinateGrid,
|
||||
buildHeightGrid,
|
||||
} from "./utils/build-coordinate-grid";
|
||||
import {
|
||||
DragControls,
|
||||
OBJExporter,
|
||||
|
@ -371,9 +374,15 @@ async function init(container: HTMLElement, modelId = MODEL_ID) {
|
|||
|
||||
// Add a coordinate grid to the scene
|
||||
const { gridHelper, annotations } = buildCoordinateGrid(extent);
|
||||
const { heightGridHelper, heightAnnotations } = buildHeightGrid(extent);
|
||||
const annotationsGroup = new Group();
|
||||
annotationsGroup.name = "coordinate-grid";
|
||||
annotationsGroup.add(...annotations, gridHelper);
|
||||
annotationsGroup.add(
|
||||
...annotations,
|
||||
gridHelper,
|
||||
...heightAnnotations,
|
||||
heightGridHelper
|
||||
);
|
||||
annotationsGroup.visible = false;
|
||||
scene.add(annotationsGroup);
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue