@jdultra/threedtiles 13.2.5 → 13.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/entry.d.ts +1 -0
- package/dist/geometry/obb.d.ts +130 -13
- package/dist/threedtiles.cjs.js +26 -23
- package/dist/threedtiles.cjs.js.map +1 -1
- package/dist/threedtiles.es.js +3044 -3000
- package/dist/threedtiles.es.js.map +1 -1
- package/dist/threedtiles.umd.js +26 -23
- package/dist/threedtiles.umd.js.map +1 -1
- package/dist/tileset/OGC3DTile.d.ts +10 -0
- package/package.json +1 -1
|
@@ -23,6 +23,7 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
23
23
|
* @param {Object} [properties.parentBoundingVolume = undefined] - optional bounding volume of the parent
|
|
24
24
|
* @param {String} [properties.parentRefine = undefined] - optional refine strategy of the parent of the parent
|
|
25
25
|
* @param {THREE.Camera} [properties.cameraOnLoad = undefined] - optional the camera used when loading this particular sub-tile
|
|
26
|
+
* @param {THREE.Box3|THREE.Sphere|OBB} [properties.clipShape = undefined] - optional, specify a clip shape object in world space and tiles outside of the shape will not be loaded. The shape is either a THREE.Box3, THREE.Sphere or OBB (import {OBB} from "threedtiles")
|
|
26
27
|
* @param {OGC3DTile} [properties.parentTile = undefined] - optional the OGC3DTile object that loaded this tile as a child
|
|
27
28
|
* @param {String} [properties.proxy = undefined] - optional the url to a proxy service. Instead of fetching tiles via a GET request, a POST will be sent to the proxy url with the real tile address in the body of the request.
|
|
28
29
|
* @param {Boolean} [properties.displayErrors = false] - optional value indicating that errors should be shown on screen.
|
|
@@ -59,6 +60,7 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
59
60
|
parentBoundingVolume?: Object | undefined;
|
|
60
61
|
parentRefine?: string | undefined;
|
|
61
62
|
cameraOnLoad?: THREE.Camera | undefined;
|
|
63
|
+
clipShape?: OBB | THREE.Box3 | THREE.Sphere | undefined;
|
|
62
64
|
parentTile?: OGC3DTile | undefined;
|
|
63
65
|
proxy?: string | undefined;
|
|
64
66
|
displayErrors?: boolean | undefined;
|
|
@@ -127,6 +129,13 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
127
129
|
centerModel: boolean | undefined;
|
|
128
130
|
abortController: AbortController;
|
|
129
131
|
onLoadCallback: Function | undefined;
|
|
132
|
+
/**
|
|
133
|
+
* specify a clip shape object in world space and tiles outside of the shape will not be loaded.
|
|
134
|
+
* @param {THREE.Box3|THREE.Sphere|OBB} [clipShape = undefined] The shape is either a THREE.Box3, THREE.Sphere or OBB (import {OBB} from "threedtiles")
|
|
135
|
+
*/
|
|
136
|
+
setClipShape(clipShape?: THREE.Box3 | THREE.Sphere | OBB): void;
|
|
137
|
+
clipShape: any;
|
|
138
|
+
_setClipShape(clipShape: any): void;
|
|
130
139
|
/**
|
|
131
140
|
* Specify a size multiplier for splats
|
|
132
141
|
* @param {number} sizeMultiplier
|
|
@@ -223,3 +232,4 @@ export class OGC3DTile extends THREE.Object3D<THREE.Object3DEventMap> {
|
|
|
223
232
|
export function getOGC3DTilesCopyrightInfo(): string[];
|
|
224
233
|
import * as THREE from 'three';
|
|
225
234
|
import { TileLoader } from "./TileLoader";
|
|
235
|
+
import { OBB } from "../geometry/obb";
|