Skip to content

Commit

Permalink
Comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Sep 13, 2024
1 parent f0725c1 commit 4ab1ec7
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 deletions.
10 changes: 10 additions & 0 deletions packages/constants/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -485,3 +485,13 @@ export const FirstPersonNavigationMode = 600002;
* Plan view navigation mode.
*/
export const PlanViewNavigationMode = 600003;

/**
* Indicates scene content that never changes.
*/
export const StaticDraw = 700000;

/**
* Indicates scene content that changes frequently.
*/
export const DynamicDraw = 700001;
13 changes: 5 additions & 8 deletions packages/scene/src/SceneModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,11 @@ import type {SceneModelParams} from "./SceneModelParams";
import type {Scene} from "./Scene";
import type {SceneModelStats} from "./SceneModelStats";
import {
composeMat4, createMat4,
composeMat4,
createVec3,
eulerToQuat,
identityMat4,
identityQuat,
mulVec3Scalar,
translateMat4v
identityQuat
} from "@xeokit/matrix";
import {SceneModelStreamParams} from "./SceneModelStreamParams";
import {SceneQuantizationRange} from "./SceneQuantizationRange";
Expand All @@ -37,7 +35,7 @@ import {createRTCModelMat} from "@xeokit/rtc";
import {FloatArrayParam} from "@xeokit/math";


// DTX texture types
// XGF texture types

const COLOR_TEXTURE = 0;
const METALLIC_ROUGHNESS_TEXTURE = 1;
Expand Down Expand Up @@ -93,8 +91,7 @@ TEXTURE_ENCODING_OPTIONS[OCCLUSION_TEXTURE] = {
* * Contains {@link @xeokit/scene!SceneObject | SceneObjects}, {@link @xeokit/scene!SceneMesh | SceneMeshes}, {@link @xeokit/scene!SceneGeometry | Geometries} and {@link @xeokit/scene!SceneTexture | Textures}.
* * Compresses textures using [Basis](https://xeokit.github.io/sdk/docs/pages/GLOSSARY.html#basis)
* * Viewable in the Browser with {@link @xeokit/viewer!Viewer | Viewer}
* * Importable from various model file formats, using {@link @xeokit/gltf!loadGLTF | loadGLTF}, {@link @xeokit/dotbim!loadDotBIM | loadDotBIM}, {@link @xeokit/las!loadLAS | loadLAS}, {@link @xeokit/cityjson!loadCityJSON | loadCityJSON}, {@link @xeokit/dtx!loadDTX | loadDTX}, {@link @xeokit/xkt!loadXKT | loadXKT} (etc)
* * Exportable to [DTX](https://xeokit.github.io/sdk/docs/pages/GLOSSARY.html#dtx) format using {@link @xeokit/dtx!saveDTX | saveDTX}
* * Import and export to/from a variety of file formats
* * Programmatically buildable using builder methods
*
* See {@link "@xeokit/scene" | @xeokit/scene} for usage.
Expand Down Expand Up @@ -807,7 +804,7 @@ export class SceneModel extends Component {
matrix = identityMat4();
}
} else {
matrix = matrix.slice();
// matrix = matrix.slice();
}
let origin;
let rtcMatrix = matrix;
Expand Down

0 comments on commit 4ab1ec7

Please sign in to comment.