diff --git a/frontend/dcViewer.js b/frontend/dcViewer.js
index 57ee181..6a2616d 100644
--- a/frontend/dcViewer.js
+++ b/frontend/dcViewer.js
@@ -436,6 +436,7 @@ const getDisplayModePreset = (mode) => {
const getBaseEdgesForModel = (modelId) => {
const modelType = modelTypes[modelId];
+ if (modelType === "las") return false;
if (modelType === "gltf") return false;
return !!toggleEdges?.checked;
};
@@ -453,7 +454,9 @@ const applyDisplayModeToModel = (modelId) => {
entity.xrayed = !!preset.xrayed;
entity.colorize = preset.colorize;
entity.opacity = preset.opacity;
- entity.edges = preset.edges === "base" ? getBaseEdgesForModel(modelId) : !!preset.edges;
+ entity.edges = modelTypes[modelId] === "las"
+ ? false
+ : (preset.edges === "base" ? getBaseEdgesForModel(modelId) : !!preset.edges);
} catch (err) {
console.warn("display mode update failed", err);
}
@@ -2899,7 +2902,7 @@ const initViewer = async () => {
const loadOpts = {
id,
src: srcToLoad,
- edges: edges ?? (inferredType === "gltf" ? false : toggleEdges.checked),
+ edges: edges ?? (inferredType === "gltf" || inferredType === "las" ? false : toggleEdges.checked),
};
if (inferredType === "gltf") loadOpts.autoMetaModel = true;
if (inferredType === "bim" || inferredType === "las") loadOpts.rotation = [-90, 0, 0];
diff --git a/frontend/index.html b/frontend/index.html
index 0e26f3d..8f58365 100644
--- a/frontend/index.html
+++ b/frontend/index.html
@@ -239,6 +239,6 @@
-
+