gltf-parser-plugin 1.1.2 → 1.1.3
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/build/index.d.ts
CHANGED
|
@@ -5,7 +5,7 @@ import { Material } from 'three';
|
|
|
5
5
|
import { Mesh } from 'three';
|
|
6
6
|
import { Texture } from 'three';
|
|
7
7
|
import { TilesRenderer } from '3d-tiles-renderer';
|
|
8
|
-
import {
|
|
8
|
+
import { Vector3 } from 'three';
|
|
9
9
|
import { WebGLRenderer } from 'three';
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -91,14 +91,14 @@ export declare class GLTFParserPlugin implements MeshHelperHost {
|
|
|
91
91
|
selectByBox(box: Box3): Promise<number[]>;
|
|
92
92
|
/**
|
|
93
93
|
* 选择多边形(平面投影)范围内的构件(包含相交和包含两种情况)
|
|
94
|
-
* @param polygon 多边形顶点数组(
|
|
94
|
+
* @param polygon 多边形顶点数组(Vector3),按顺序连接构成闭合多边形
|
|
95
95
|
* @param axis 投影平面,决定使用 bbox 的哪两个轴做 2D 判定
|
|
96
96
|
* - 'xz'(默认):俯视图,取 bbox 的 x/z 坐标
|
|
97
97
|
* - 'xy':正视图,取 bbox 的 x/y 坐标
|
|
98
98
|
* - 'yz':侧视图,取 bbox 的 y/z 坐标
|
|
99
99
|
* @returns 范围内所有构件的 oid 数组
|
|
100
100
|
*/
|
|
101
|
-
selectByPolygon(polygon:
|
|
101
|
+
selectByPolygon(polygon: Vector3[], axis?: "xy" | "xz" | "yz"): Promise<number[]>;
|
|
102
102
|
private _getModelInfoUrl;
|
|
103
103
|
private _fetchModelInfo;
|
|
104
104
|
private _ensureModelInfoLoaded;
|