Finish slicing box and UI
This commit is contained in:
parent
8227b4141a
commit
213537508c
19 changed files with 965 additions and 1361 deletions
|
@ -6,8 +6,7 @@ import {
|
|||
MeshStandardMaterial,
|
||||
} from "three";
|
||||
|
||||
import { fetchTriangleIndices } from "./fetch-triangle-indices";
|
||||
import { fetchVertices } from "./fetch-vertices";
|
||||
import { fetchVertices, fetchTriangleIndices } from "./utils";
|
||||
import { TRIANGLE_INDICES_URL, VERTICES_URL } from "../config";
|
||||
|
||||
interface MappedFeature {
|
||||
|
@ -22,6 +21,9 @@ export async function buildMeshes(mappedFeatures: MappedFeature[]) {
|
|||
for (let i = 0; i < mappedFeatures.length; i++) {
|
||||
const layerData = mappedFeatures[i];
|
||||
const mesh = await buildMesh(layerData);
|
||||
if (layerData.name === "Topography") {
|
||||
mesh.visible = false;
|
||||
}
|
||||
meshes.push(mesh);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
editor.link_modal.header
Reference in a new issue