@xeokit/xeokit-sdk 2.5.2-beta-26 → 2.5.2-beta-28
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/xeokit-sdk.cjs.js +0 -5
- package/dist/xeokit-sdk.es.js +0 -5
- package/dist/xeokit-sdk.es5.js +1 -2
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/dist/xeokit-sdk.min.es5.js +1 -1
- package/package.json +1 -1
- package/src/viewer/scene/model/dtx/triangles/renderers/DTXTrianglesPickMeshRenderer.js +0 -5
- package/types/viewer/scene/geometry/builders/buildPolylineGeometry.d.ts +18 -1
package/package.json
CHANGED
|
@@ -324,11 +324,6 @@ export class DTXTrianglesPickMeshRenderer {
|
|
|
324
324
|
// get color
|
|
325
325
|
src.push("uvec4 color = texelFetch (uObjectPerObjectColorsAndFlags, ivec2(objectIndexCoords.x*8+0, objectIndexCoords.y), 0);");
|
|
326
326
|
|
|
327
|
-
src.push(`if (color.a == 0u) {`);
|
|
328
|
-
src.push(" gl_Position = vec4(3.0, 3.0, 3.0, 1.0);"); // Cull vertex
|
|
329
|
-
src.push(" return;");
|
|
330
|
-
src.push("};");
|
|
331
|
-
|
|
332
327
|
// get pick-color
|
|
333
328
|
src.push("vPickColor = vec4(texelFetch (uObjectPerObjectColorsAndFlags, ivec2(objectIndexCoords.x*8+1, objectIndexCoords.y), 0)) / 255.0;");
|
|
334
329
|
|
|
@@ -7,10 +7,27 @@ export declare type buildPolylineGeometryConfiguration = {
|
|
|
7
7
|
points?: number[];
|
|
8
8
|
};
|
|
9
9
|
|
|
10
|
+
export declare type buildPolylineGeometryFromCurveConfiguration = {
|
|
11
|
+
/* Optional ID for the {@link Geometry}, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
12
|
+
id?: string;
|
|
13
|
+
/* Curve for which polyline will be created. */
|
|
14
|
+
curve?: Object;
|
|
15
|
+
/* The number of divisions. */
|
|
16
|
+
divisions?: number;
|
|
17
|
+
};
|
|
18
|
+
|
|
10
19
|
/**
|
|
11
20
|
* @desc Creates a 3D polyline {@link Geometry}.
|
|
12
21
|
*
|
|
13
22
|
* @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
|
|
14
23
|
* @returns {Object} Configuration for a {@link Geometry} subtype.
|
|
15
24
|
*/
|
|
16
|
-
export function buildPolylineGeometry(cfg: buildPolylineGeometryConfiguration): Geometry;
|
|
25
|
+
export function buildPolylineGeometry(cfg: buildPolylineGeometryConfiguration): Geometry;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @desc Creates a 3D polyline from curve {@link Geometry}.
|
|
29
|
+
*
|
|
30
|
+
* @param {buildBoxLinesGeometryConfiguration} [cfg] Configs
|
|
31
|
+
* @returns {Object} Configuration for a {@link Geometry} subtype.
|
|
32
|
+
*/
|
|
33
|
+
export function buildPolylineGeometryFromCurve(cfg: buildPolylineGeometryFromCurveConfiguration): Geometry;
|