@shapediver/viewer.rendering-engine.intersection-restriction-engine 3.15.12 → 3.16.1

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.
Files changed (48) hide show
  1. package/dist/implementation/GeometryMathManager.d.ts +8 -1
  2. package/dist/implementation/GeometryMathManager.d.ts.map +1 -1
  3. package/dist/implementation/GeometryMathManager.js +24 -17
  4. package/dist/implementation/GeometryMathManager.js.map +1 -1
  5. package/dist/implementation/RestrictionManager.d.ts +2 -2
  6. package/dist/implementation/RestrictionManager.d.ts.map +1 -1
  7. package/dist/implementation/RestrictionManager.js +9 -0
  8. package/dist/implementation/RestrictionManager.js.map +1 -1
  9. package/dist/implementation/restrictions/AbstractRestriction.d.ts.map +1 -1
  10. package/dist/implementation/restrictions/AbstractRestriction.js +16 -3
  11. package/dist/implementation/restrictions/AbstractRestriction.js.map +1 -1
  12. package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts +7 -3
  13. package/dist/implementation/restrictions/AbstractSnapRestriction.d.ts.map +1 -1
  14. package/dist/implementation/restrictions/AbstractSnapRestriction.js +28 -12
  15. package/dist/implementation/restrictions/AbstractSnapRestriction.js.map +1 -1
  16. package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts +13 -0
  17. package/dist/implementation/restrictions/geometry/GeometryRestriction.d.ts.map +1 -1
  18. package/dist/implementation/restrictions/geometry/GeometryRestriction.js +59 -17
  19. package/dist/implementation/restrictions/geometry/GeometryRestriction.js.map +1 -1
  20. package/dist/implementation/restrictions/line/LineRestriction.d.ts +12 -0
  21. package/dist/implementation/restrictions/line/LineRestriction.d.ts.map +1 -1
  22. package/dist/implementation/restrictions/line/LineRestriction.js +64 -4
  23. package/dist/implementation/restrictions/line/LineRestriction.js.map +1 -1
  24. package/dist/implementation/restrictions/plane/PlaneRestriction.d.ts.map +1 -1
  25. package/dist/implementation/restrictions/plane/PlaneRestriction.js +41 -10
  26. package/dist/implementation/restrictions/plane/PlaneRestriction.js.map +1 -1
  27. package/dist/implementation/restrictions/plane/snap/AngularRestriction.js +1 -1
  28. package/dist/implementation/restrictions/plane/snap/AngularRestriction.js.map +1 -1
  29. package/dist/implementation/restrictions/plane/snap/AxisRestriction.d.ts.map +1 -1
  30. package/dist/implementation/restrictions/plane/snap/AxisRestriction.js +3 -1
  31. package/dist/implementation/restrictions/plane/snap/AxisRestriction.js.map +1 -1
  32. package/dist/implementation/restrictions/plane/snap/GridRestriction.d.ts.map +1 -1
  33. package/dist/implementation/restrictions/plane/snap/GridRestriction.js +6 -3
  34. package/dist/implementation/restrictions/plane/snap/GridRestriction.js.map +1 -1
  35. package/dist/implementation/restrictions/point/PointRestriction.d.ts +16 -0
  36. package/dist/implementation/restrictions/point/PointRestriction.d.ts.map +1 -1
  37. package/dist/implementation/restrictions/point/PointRestriction.js +70 -4
  38. package/dist/implementation/restrictions/point/PointRestriction.js.map +1 -1
  39. package/dist/interfaces/IRestriction.d.ts +8 -4
  40. package/dist/interfaces/IRestriction.d.ts.map +1 -1
  41. package/dist/interfaces/IRestriction.js +4 -4
  42. package/dist/interfaces/IRestriction.js.map +1 -1
  43. package/dist/interfaces/IRestrictionManager.d.ts +2 -2
  44. package/dist/interfaces/IRestrictionManager.d.ts.map +1 -1
  45. package/dist/interfaces/ISnapRestriction.d.ts +14 -0
  46. package/dist/interfaces/ISnapRestriction.d.ts.map +1 -1
  47. package/dist/interfaces/ISnapRestriction.js.map +1 -1
  48. package/package.json +9 -9
@@ -33,23 +33,30 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
33
33
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
34
34
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
35
35
  };
36
- var _GeometryRestriction_eventEngine, _GeometryRestriction_rayCasterParams, _GeometryRestriction_raycaster, _GeometryRestriction_viewport, _GeometryRestriction_geometryMathManager, _GeometryRestriction_lineIntersectionPercentage, _GeometryRestriction_nodes, _GeometryRestriction_pointIntersectionPercentage, _GeometryRestriction_sceneBoundingSphereRadius, _GeometryRestriction_settings, _GeometryRestriction_snapRestrictions, _GeometryRestriction_snapToEdges, _GeometryRestriction_snapToEdgesRadius, _GeometryRestriction_snapToFaces, _GeometryRestriction_snapToVertices, _GeometryRestriction_snapToVerticesRadius, _GeometryRestriction_visualizationObject, _GeometryRestriction_wireframe, _GeometryRestriction_wireframeColor;
36
+ var _GeometryRestriction_eventEngine, _GeometryRestriction_rayCasterParams, _GeometryRestriction_raycaster, _GeometryRestriction_viewport, _GeometryRestriction_geometryMathManager, _GeometryRestriction_lineIntersectionPercentage, _GeometryRestriction_nodes, _GeometryRestriction_pointIntersectionPercentage, _GeometryRestriction_radius, _GeometryRestriction_sceneBoundingSphereRadius, _GeometryRestriction_settings, _GeometryRestriction_snapRestrictions, _GeometryRestriction_snapToEdges, _GeometryRestriction_snapToEdgesRadius, _GeometryRestriction_snapToFaces, _GeometryRestriction_snapToVertices, _GeometryRestriction_snapToVerticesRadius, _GeometryRestriction_visualizationObject, _GeometryRestriction_wireframe, _GeometryRestriction_wireframeColor, _GeometryRestriction_wireframeDepthTest, _GeometryRestriction_wireframePointSize;
37
37
  Object.defineProperty(exports, "__esModule", { value: true });
38
38
  exports.GeometryRestriction = void 0;
39
39
  const viewer_1 = require("@shapediver/viewer");
40
40
  const viewer_shared_math_1 = require("@shapediver/viewer.shared.math");
41
+ const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
41
42
  const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
42
- const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
43
43
  const gl_matrix_1 = require("gl-matrix");
44
44
  const THREE = __importStar(require("three"));
45
45
  const AbstractRestriction_1 = require("../AbstractRestriction");
46
+ let pointTexture = viewer_1.MaterialEngine.instance
47
+ .loadMap("https://viewer.shapediver.com/v3/graphics/point_soft.png")
48
+ .then((mapData) => {
49
+ pointTexture = new THREE.Texture(mapData.image);
50
+ pointTexture.needsUpdate = true;
51
+ return pointTexture;
52
+ });
46
53
  // #endregion Type aliases (1)
47
54
  // #region Classes (1)
48
55
  class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
49
56
  // #endregion Properties (17)
50
57
  // #region Constructors (1)
51
58
  constructor(viewport, geometryMathManager, parentNode, id, settings, properties) {
52
- var _a, _b, _c, _d, _e, _f, _g;
59
+ var _a, _b, _c, _d, _e, _f, _g, _h;
53
60
  super(viewport, parentNode, id, properties);
54
61
  // #region Properties (17)
55
62
  _GeometryRestriction_eventEngine.set(this, viewer_shared_services_1.EventEngine.instance);
@@ -67,6 +74,7 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
67
74
  _GeometryRestriction_lineIntersectionPercentage.set(this, 0.025);
68
75
  _GeometryRestriction_nodes.set(this, []);
69
76
  _GeometryRestriction_pointIntersectionPercentage.set(this, 0.025);
77
+ _GeometryRestriction_radius.set(this, void 0);
70
78
  _GeometryRestriction_sceneBoundingSphereRadius.set(this, 0);
71
79
  _GeometryRestriction_settings.set(this, void 0);
72
80
  _GeometryRestriction_snapRestrictions.set(this, {});
@@ -78,16 +86,23 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
78
86
  _GeometryRestriction_visualizationObject.set(this, new THREE.Object3D());
79
87
  _GeometryRestriction_wireframe.set(this, void 0);
80
88
  _GeometryRestriction_wireframeColor.set(this, void 0);
89
+ _GeometryRestriction_wireframeDepthTest.set(this, void 0);
90
+ _GeometryRestriction_wireframePointSize.set(this, void 0);
81
91
  __classPrivateFieldSet(this, _GeometryRestriction_viewport, viewport, "f");
82
92
  __classPrivateFieldSet(this, _GeometryRestriction_settings, settings, "f");
83
93
  __classPrivateFieldSet(this, _GeometryRestriction_geometryMathManager, geometryMathManager, "f");
84
94
  __classPrivateFieldSet(this, _GeometryRestriction_wireframe, (_b = (_a = properties.wireframe) !== null && _a !== void 0 ? _a : __classPrivateFieldGet(this, _GeometryRestriction_settings, "f").wireframe) !== null && _b !== void 0 ? _b : true, "f");
85
95
  __classPrivateFieldSet(this, _GeometryRestriction_wireframeColor, (_d = (_c = properties.wireframeColor) !== null && _c !== void 0 ? _c : __classPrivateFieldGet(this, _GeometryRestriction_settings, "f").wireframeColor) !== null && _d !== void 0 ? _d : __classPrivateFieldGet(this, _GeometryRestriction_settings, "f").points.color_1, "f");
86
- __classPrivateFieldSet(this, _GeometryRestriction_snapToVertices, (_e = properties.snapToVertices) !== null && _e !== void 0 ? _e : true, "f");
87
- __classPrivateFieldSet(this, _GeometryRestriction_snapToEdges, (_f = properties.snapToEdges) !== null && _f !== void 0 ? _f : true, "f");
88
- __classPrivateFieldSet(this, _GeometryRestriction_snapToFaces, (_g = properties.snapToFaces) !== null && _g !== void 0 ? _g : true, "f");
96
+ __classPrivateFieldSet(this, _GeometryRestriction_wireframePointSize, properties.wireframePointSize
97
+ ? properties.wireframePointSize * __classPrivateFieldGet(this, _GeometryRestriction_viewport, "f").pointSize
98
+ : 10 * __classPrivateFieldGet(this, _GeometryRestriction_viewport, "f").pointSize, "f");
99
+ __classPrivateFieldSet(this, _GeometryRestriction_wireframeDepthTest, (_e = properties.wireframeDepthTest) !== null && _e !== void 0 ? _e : true, "f");
100
+ __classPrivateFieldSet(this, _GeometryRestriction_snapToVertices, (_f = properties.snapToVertices) !== null && _f !== void 0 ? _f : true, "f");
101
+ __classPrivateFieldSet(this, _GeometryRestriction_snapToEdges, (_g = properties.snapToEdges) !== null && _g !== void 0 ? _g : true, "f");
102
+ __classPrivateFieldSet(this, _GeometryRestriction_snapToFaces, (_h = properties.snapToFaces) !== null && _h !== void 0 ? _h : true, "f");
89
103
  __classPrivateFieldSet(this, _GeometryRestriction_snapToVerticesRadius, properties.snapToVerticesRadius, "f");
90
104
  __classPrivateFieldSet(this, _GeometryRestriction_snapToEdgesRadius, properties.snapToEdgesRadius, "f");
105
+ __classPrivateFieldSet(this, _GeometryRestriction_radius, properties.radius, "f");
91
106
  __classPrivateFieldSet(this, _GeometryRestriction_sceneBoundingSphereRadius, viewer_1.sceneTree.root.boundingBox.boundingSphere.radius, "f");
92
107
  this.updateIntersectionThresholds();
93
108
  __classPrivateFieldGet(this, _GeometryRestriction_eventEngine, "f").addListener(viewer_shared_services_1.EVENTTYPE.SCENE.SCENE_BOUNDING_BOX_CHANGE, (e) => {
@@ -129,6 +144,7 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
129
144
  // #endregion Public Getters And Setters (8)
130
145
  // #region Public Methods (3)
131
146
  rayTrace(ray, metaData) {
147
+ var _a, _b, _c, _d, _e, _f;
132
148
  if (this.enabled === false)
133
149
  return;
134
150
  if (__classPrivateFieldGet(this, _GeometryRestriction_snapToVertices, "f") === false &&
@@ -162,7 +178,7 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
162
178
  if (intersectedNode) {
163
179
  // from this node, we can get the geometry data
164
180
  intersectedNode.traverseData((d) => {
165
- if (d instanceof viewer_shared_types_1.GeometryData &&
181
+ if (d instanceof viewer_shared_node_tree_1.GeometryData &&
166
182
  d.id === object.parent.SDid &&
167
183
  d.version === object.parent.SDversion) {
168
184
  geometryRestrictionIntersectionData = {
@@ -204,9 +220,9 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
204
220
  object.localToWorld(vertexC);
205
221
  const vertexCVec3 = gl_matrix_1.vec3.fromValues(vertexC.x, vertexC.y, vertexC.z);
206
222
  if (__classPrivateFieldGet(this, _GeometryRestriction_snapToVertices, "f") === true) {
207
- const distanceA = this.checkDistance(intersectionPointVec3, vertexAVec3, __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
208
- const distanceB = this.checkDistance(intersectionPointVec3, vertexBVec3, __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
209
- const distanceC = this.checkDistance(intersectionPointVec3, vertexCVec3, __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
223
+ const distanceA = this.checkDistance(intersectionPointVec3, vertexAVec3, (_a = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _a !== void 0 ? _a : __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
224
+ const distanceB = this.checkDistance(intersectionPointVec3, vertexBVec3, (_b = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _b !== void 0 ? _b : __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
225
+ const distanceC = this.checkDistance(intersectionPointVec3, vertexCVec3, (_c = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _c !== void 0 ? _c : __classPrivateFieldGet(this, _GeometryRestriction_snapToVerticesRadius, "f"));
210
226
  // part 1 - check if the intersection point is close to a vertex
211
227
  if (distanceA.check &&
212
228
  distanceA.distanceSquared < distanceB.distanceSquared &&
@@ -231,9 +247,9 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
231
247
  const closestPointOnEdgeBC = __classPrivateFieldGet(this, _GeometryRestriction_geometryMathManager, "f").closestPointOnLine(vertexBVec3, vertexCVec3, intersectionPointVec3);
232
248
  const closestPointOnEdgeCA = __classPrivateFieldGet(this, _GeometryRestriction_geometryMathManager, "f").closestPointOnLine(vertexCVec3, vertexAVec3, intersectionPointVec3);
233
249
  // create the distances
234
- const distanceAB = this.checkDistance(intersectionPointVec3, closestPointOnEdgeAB, __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
235
- const distanceBC = this.checkDistance(intersectionPointVec3, closestPointOnEdgeBC, __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
236
- const distanceCA = this.checkDistance(intersectionPointVec3, closestPointOnEdgeCA, __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
250
+ const distanceAB = this.checkDistance(intersectionPointVec3, closestPointOnEdgeAB, (_d = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _d !== void 0 ? _d : __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
251
+ const distanceBC = this.checkDistance(intersectionPointVec3, closestPointOnEdgeBC, (_e = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _e !== void 0 ? _e : __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
252
+ const distanceCA = this.checkDistance(intersectionPointVec3, closestPointOnEdgeCA, (_f = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _f !== void 0 ? _f : __classPrivateFieldGet(this, _GeometryRestriction_snapToEdgesRadius, "f"));
237
253
  // check if the intersection point is close to an edge
238
254
  if (distanceAB.check &&
239
255
  distanceAB.distanceSquared <
@@ -287,11 +303,36 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
287
303
  const wireframe = new THREE.WireframeGeometry(object.geometry);
288
304
  const line = new THREE.LineSegments(wireframe, new THREE.LineBasicMaterial({
289
305
  color: new THREE.Color(__classPrivateFieldGet(this, _GeometryRestriction_wireframeColor, "f")),
306
+ depthTest: __classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"),
307
+ depthWrite: !__classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"),
308
+ }));
309
+ line.matrix.copy(object.matrixWorld);
310
+ line.renderOrder = 100;
311
+ line.matrixAutoUpdate = false;
312
+ __classPrivateFieldGet(this, _GeometryRestriction_visualizationObject, "f").add(line);
313
+ }
314
+ else if (object instanceof THREE.Line) {
315
+ const line = new THREE.Line(object.geometry, new THREE.LineBasicMaterial({
316
+ color: new THREE.Color(__classPrivateFieldGet(this, _GeometryRestriction_wireframeColor, "f")),
317
+ depthTest: __classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"),
318
+ depthWrite: !__classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"),
290
319
  }));
291
320
  line.matrix.copy(object.matrixWorld);
321
+ line.renderOrder = 100;
292
322
  line.matrixAutoUpdate = false;
293
323
  __classPrivateFieldGet(this, _GeometryRestriction_visualizationObject, "f").add(line);
294
324
  }
325
+ else if (object instanceof THREE.Points) {
326
+ const height = __classPrivateFieldGet(this, _GeometryRestriction_viewport, "f").canvas.height;
327
+ const pointSize = __classPrivateFieldGet(this, _GeometryRestriction_wireframePointSize, "f") * (height / 1080);
328
+ const points = new THREE.Points(object.geometry, new THREE.PointsMaterial(Object.assign({ color: new THREE.Color(__classPrivateFieldGet(this, _GeometryRestriction_wireframeColor, "f")), size: pointSize, sizeAttenuation: false, depthTest: __classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"), depthWrite: !__classPrivateFieldGet(this, _GeometryRestriction_wireframeDepthTest, "f"), transparent: true }, (pointTexture instanceof THREE.Texture
329
+ ? { map: pointTexture }
330
+ : {}))));
331
+ points.matrix.copy(object.matrixWorld);
332
+ points.renderOrder = 100;
333
+ points.matrixAutoUpdate = false;
334
+ __classPrivateFieldGet(this, _GeometryRestriction_visualizationObject, "f").add(points);
335
+ }
295
336
  });
296
337
  }
297
338
  });
@@ -304,12 +345,13 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
304
345
  // #endregion Protected Methods (1)
305
346
  // #region Private Methods (1)
306
347
  updateIntersectionThresholds() {
348
+ var _a, _b, _c;
307
349
  __classPrivateFieldGet(this, _GeometryRestriction_rayCasterParams, "f").Points.threshold =
308
- __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_pointIntersectionPercentage, "f");
350
+ (_a = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _a !== void 0 ? _a : __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_pointIntersectionPercentage, "f");
309
351
  __classPrivateFieldGet(this, _GeometryRestriction_rayCasterParams, "f").Line.threshold =
310
- __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_lineIntersectionPercentage, "f");
352
+ (_b = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _b !== void 0 ? _b : __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_lineIntersectionPercentage, "f");
311
353
  __classPrivateFieldGet(this, _GeometryRestriction_rayCasterParams, "f").Line2.threshold =
312
- __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_lineIntersectionPercentage, "f");
354
+ (_c = __classPrivateFieldGet(this, _GeometryRestriction_radius, "f")) !== null && _c !== void 0 ? _c : __classPrivateFieldGet(this, _GeometryRestriction_sceneBoundingSphereRadius, "f") * __classPrivateFieldGet(this, _GeometryRestriction_lineIntersectionPercentage, "f");
313
355
  }
314
356
  constructRestrictionResult(targetPoint, distanceOriginToClosestIntersectionPoint, closestPointOnRay, geometryRestrictionIntersectionData) {
315
357
  const closestPointOnRayVec3 = closestPointOnRay
@@ -354,6 +396,6 @@ class GeometryRestriction extends AbstractRestriction_1.AbstractRestriction {
354
396
  }
355
397
  }
356
398
  exports.GeometryRestriction = GeometryRestriction;
357
- _GeometryRestriction_eventEngine = new WeakMap(), _GeometryRestriction_rayCasterParams = new WeakMap(), _GeometryRestriction_raycaster = new WeakMap(), _GeometryRestriction_viewport = new WeakMap(), _GeometryRestriction_geometryMathManager = new WeakMap(), _GeometryRestriction_lineIntersectionPercentage = new WeakMap(), _GeometryRestriction_nodes = new WeakMap(), _GeometryRestriction_pointIntersectionPercentage = new WeakMap(), _GeometryRestriction_sceneBoundingSphereRadius = new WeakMap(), _GeometryRestriction_settings = new WeakMap(), _GeometryRestriction_snapRestrictions = new WeakMap(), _GeometryRestriction_snapToEdges = new WeakMap(), _GeometryRestriction_snapToEdgesRadius = new WeakMap(), _GeometryRestriction_snapToFaces = new WeakMap(), _GeometryRestriction_snapToVertices = new WeakMap(), _GeometryRestriction_snapToVerticesRadius = new WeakMap(), _GeometryRestriction_visualizationObject = new WeakMap(), _GeometryRestriction_wireframe = new WeakMap(), _GeometryRestriction_wireframeColor = new WeakMap();
399
+ _GeometryRestriction_eventEngine = new WeakMap(), _GeometryRestriction_rayCasterParams = new WeakMap(), _GeometryRestriction_raycaster = new WeakMap(), _GeometryRestriction_viewport = new WeakMap(), _GeometryRestriction_geometryMathManager = new WeakMap(), _GeometryRestriction_lineIntersectionPercentage = new WeakMap(), _GeometryRestriction_nodes = new WeakMap(), _GeometryRestriction_pointIntersectionPercentage = new WeakMap(), _GeometryRestriction_radius = new WeakMap(), _GeometryRestriction_sceneBoundingSphereRadius = new WeakMap(), _GeometryRestriction_settings = new WeakMap(), _GeometryRestriction_snapRestrictions = new WeakMap(), _GeometryRestriction_snapToEdges = new WeakMap(), _GeometryRestriction_snapToEdgesRadius = new WeakMap(), _GeometryRestriction_snapToFaces = new WeakMap(), _GeometryRestriction_snapToVertices = new WeakMap(), _GeometryRestriction_snapToVerticesRadius = new WeakMap(), _GeometryRestriction_visualizationObject = new WeakMap(), _GeometryRestriction_wireframe = new WeakMap(), _GeometryRestriction_wireframeColor = new WeakMap(), _GeometryRestriction_wireframeDepthTest = new WeakMap(), _GeometryRestriction_wireframePointSize = new WeakMap();
358
400
  // #endregion Classes (1)
359
401
  //# sourceMappingURL=GeometryRestriction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"GeometryRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/geometry/GeometryRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2D;AAE3D,uEAAmD;AAEnD,+EAA0E;AAC1E,yEAMyC;AACzC,yCAA+B;AAC/B,6CAA+B;AAS/B,gEAA2D;AAiD3D,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,mBACZ,SAAQ,yCAAmB;IAiC3B,6BAA6B;IAE7B,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AE,IAAI;YACjB,2BAA2B,EAAE,mCAAmC;SAChE,CAAC;IACH,CAAC;IAED;;;;;;;;;OASG;IACK,aAAa,CACpB,MAAY,EACZ,MAAY,EACZ,MAAe;QAKf,IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,MAAM,QAAQ,GAAG,gBAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC9C,OAAO;gBACN,eAAe,EAAE,QAAQ,GAAG,QAAQ;gBACpC,KAAK,EAAE,QAAQ,GAAG,MAAM;aACxB,CAAC;SACF;aAAM;YACN,OAAO,uBAAA,IAAI,gDAAqB,CAAC,wBAAwB,CACxD,MAAM,EACN,MAAM,EACN,uBAAA,IAAI,qCAAU,CAAC,MAAM,CAAC,MAAO;gBAC5B,uBAAA,IAAI,qCAAU,CAAC,4BAA4B,CAC5C,CAAC;SACF;IACF,CAAC;CAGD;AAtjBD,kDAsjBC;;AAED,yBAAyB"}
1
+ {"version":3,"file":"GeometryRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/geometry/GeometryRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,+CAA2E;AAE3E,uEAAmD;AACnD,iFAA4E;AAC5E,+EAA0E;AAQ1E,yCAA+B;AAC/B,6CAA+B;AAS/B,gEAA2D;AAE3D,IAAI,YAAY,GACf,uBAAc,CAAC,QAAQ;KACrB,OAAO,CAAC,0DAA0D,CAAC;KACnE,IAAI,CAAC,CAAC,OAA6B,EAAE,EAAE;IACvC,YAAY,GAAG,IAAI,KAAK,CAAC,OAAO,CAC/B,OAAQ,CAAC,KAAyB,CAClC,CAAC;IACF,YAAY,CAAC,WAAW,GAAG,IAAI,CAAC;IAChC,OAAO,YAAY,CAAC;AACrB,CAAC,CAAC,CAAC;AA6DL,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,mBACZ,SAAQ,yCAAmB;IAoC3B,6BAA6B;IAE7B,2BAA2B;I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IAAI,MAAM,KAAK,SAAS,EAAE;YACzB,MAAM,QAAQ,GAAG,gBAAI,CAAC,OAAO,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;YAC9C,OAAO;gBACN,eAAe,EAAE,QAAQ,GAAG,QAAQ;gBACpC,KAAK,EAAE,QAAQ,GAAG,MAAM;aACxB,CAAC;SACF;aAAM;YACN,OAAO,uBAAA,IAAI,gDAAqB,CAAC,wBAAwB,CACxD,MAAM,EACN,MAAM,EACN,uBAAA,IAAI,qCAAU,CAAC,MAAM,CAAC,MAAO;gBAC5B,uBAAA,IAAI,qCAAU,CAAC,4BAA4B,CAC5C,CAAC;SACF;IACF,CAAC;CAGD;AA3mBD,kDA2mBC;;AAED,yBAAyB"}
@@ -28,6 +28,18 @@ export interface LineRestrictionProperties extends RestrictionPropertiesBase {
28
28
  * The radius of the second point.
29
29
  */
30
30
  point2Radius?: number;
31
+ /**
32
+ * If the restriction should be displayed as a wireframe line.
33
+ */
34
+ wireframe?: boolean;
35
+ /**
36
+ * The color of the wireframe.
37
+ */
38
+ wireframeColor?: string;
39
+ /**
40
+ * If the wireframe should be rendered with depth test. (default: false)
41
+ */
42
+ wireframeDepthTest?: boolean;
31
43
  }
32
44
  export declare class LineRestriction extends AbstractRestriction implements IRestriction {
33
45
  #private;
@@ -1 +1 @@
1
- {"version":3,"file":"LineRestriction.d.ts","sourceRoot":"","sources":["../../../../src/implementation/restrictions/line/LineRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,YAAY,EAAC,MAAM,oBAAoB,CAAC;AAChD,OAAO,EAAC,SAAS,EAAC,MAAM,qCAAqC,CAAC;AAC9D,OAAO,EAAC,IAAI,EAAE,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAC,IAAI,EAAC,MAAM,WAAW,CAAC;AAC/B,OAAO,EACN,YAAY,EACZ,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EAEjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO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AAI,CAExB;IAED,IAAW,iBAAiB,IAAI,gBAAgB,GAAG,SAAS,CAE3D;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,iBAAiB,IAAI,gBAAgB,GAAG,SAAS,CAE3D;IAED,IAAW,MAAM,IAAI,MAAM,CAE1B;IAED,IAAW,gBAAgB,IAAI;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAC,CAE/D;IAMM,cAAc,CAAC,KAAK,EAAE,IAAI,GAAG,OAAO;IAuDpC,QAAQ,CACd,GAAG,EAAE,IAAI,EACT,QAAQ,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,GAAG,SAAS;IAwJhC,SAAS,CAAC,iBAAiB,IAAI,IAAI;CAGnC"}
@@ -1,4 +1,27 @@
1
1
  "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || function (mod) {
19
+ if (mod && mod.__esModule) return mod;
20
+ var result = {};
21
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
+ __setModuleDefault(result, mod);
23
+ return result;
24
+ };
2
25
  var __classPrivateFieldSet = (this && this.__classPrivateFieldSet) || function (receiver, state, value, kind, f) {
3
26
  if (kind === "m") throw new TypeError("Private method is not writable");
4
27
  if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
@@ -10,21 +33,23 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
33
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
34
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
35
  };
13
- var _LineRestriction_viewport, _LineRestriction_dragLineLength, _LineRestriction_dragRay, _LineRestriction_point1, _LineRestriction_point1Restriction, _LineRestriction_point2, _LineRestriction_point2Restriction, _LineRestriction_radius, _LineRestriction_snapRestrictions;
36
+ var _LineRestriction_viewport, _LineRestriction_dragLineLength, _LineRestriction_dragRay, _LineRestriction_point1, _LineRestriction_point1Restriction, _LineRestriction_point2, _LineRestriction_point2Restriction, _LineRestriction_radius, _LineRestriction_settings, _LineRestriction_snapRestrictions, _LineRestriction_visualizationObject, _LineRestriction_wireframe, _LineRestriction_wireframeColor, _LineRestriction_wireframeDepthTest;
14
37
  Object.defineProperty(exports, "__esModule", { value: true });
15
38
  exports.LineRestriction = void 0;
16
39
  const gl_matrix_1 = require("gl-matrix");
40
+ const THREE = __importStar(require("three"));
17
41
  const IRestriction_1 = require("../../../interfaces/IRestriction");
18
42
  const AbstractRestriction_1 = require("../AbstractRestriction");
19
43
  const PointRestriction_1 = require("../point/PointRestriction");
20
44
  // #endregion Type aliases (1)
21
45
  // #region Classes (1)
22
46
  class LineRestriction extends AbstractRestriction_1.AbstractRestriction {
23
- // #endregion Properties (7)
47
+ // #endregion Properties (11)
24
48
  // #region Constructors (1)
25
49
  constructor(viewport, geometryMathManager, parentNode, id, settings, properties) {
50
+ var _a, _b, _c, _d, _e;
26
51
  super(viewport, parentNode, id, properties);
27
- // #region Properties (7)
52
+ // #region Properties (11)
28
53
  _LineRestriction_viewport.set(this, void 0);
29
54
  _LineRestriction_dragLineLength.set(this, void 0);
30
55
  _LineRestriction_dragRay.set(this, void 0);
@@ -33,16 +58,28 @@ class LineRestriction extends AbstractRestriction_1.AbstractRestriction {
33
58
  _LineRestriction_point2.set(this, void 0);
34
59
  _LineRestriction_point2Restriction.set(this, void 0);
35
60
  _LineRestriction_radius.set(this, void 0);
61
+ _LineRestriction_settings.set(this, void 0);
36
62
  _LineRestriction_snapRestrictions.set(this, {});
63
+ _LineRestriction_visualizationObject.set(this, new THREE.Object3D());
64
+ _LineRestriction_wireframe.set(this, void 0);
65
+ _LineRestriction_wireframeColor.set(this, void 0);
66
+ _LineRestriction_wireframeDepthTest.set(this, void 0);
37
67
  __classPrivateFieldSet(this, _LineRestriction_viewport, viewport, "f");
38
68
  __classPrivateFieldSet(this, _LineRestriction_point1, properties.point1, "f");
39
69
  __classPrivateFieldSet(this, _LineRestriction_point2, properties.point2, "f");
40
70
  __classPrivateFieldSet(this, _LineRestriction_radius, properties.radius || 0, "f");
71
+ __classPrivateFieldSet(this, _LineRestriction_settings, settings, "f");
72
+ __classPrivateFieldSet(this, _LineRestriction_wireframe, (_b = (_a = properties.wireframe) !== null && _a !== void 0 ? _a : settings.wireframe) !== null && _b !== void 0 ? _b : true, "f");
73
+ __classPrivateFieldSet(this, _LineRestriction_wireframeColor, (_d = (_c = properties.wireframeColor) !== null && _c !== void 0 ? _c : settings.wireframeColor) !== null && _d !== void 0 ? _d : settings.points.color_1, "f");
74
+ __classPrivateFieldSet(this, _LineRestriction_wireframeDepthTest, (_e = properties.wireframeDepthTest) !== null && _e !== void 0 ? _e : false, "f");
41
75
  if (properties.point1Radius !== undefined) {
42
76
  __classPrivateFieldSet(this, _LineRestriction_point1Restriction, new PointRestriction_1.PointRestriction(viewport, geometryMathManager, parentNode, id, settings, {
43
77
  type: IRestriction_1.RESTRICTION_TYPE.POINT,
44
78
  point: properties.point1,
45
79
  radius: properties.point1Radius,
80
+ wireframe: properties.wireframe,
81
+ wireframeColor: properties.wireframeColor,
82
+ wireframeDepthTest: properties.wireframeDepthTest,
46
83
  }), "f");
47
84
  }
48
85
  if (properties.point2Radius !== undefined) {
@@ -50,6 +87,9 @@ class LineRestriction extends AbstractRestriction_1.AbstractRestriction {
50
87
  type: IRestriction_1.RESTRICTION_TYPE.POINT,
51
88
  point: properties.point2,
52
89
  radius: properties.point2Radius,
90
+ wireframe: properties.wireframe,
91
+ wireframeColor: properties.wireframeColor,
92
+ wireframeDepthTest: properties.wireframeDepthTest,
53
93
  }), "f");
54
94
  }
55
95
  const direction = gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), __classPrivateFieldGet(this, _LineRestriction_point2, "f"), __classPrivateFieldGet(this, _LineRestriction_point1, "f"));
@@ -58,6 +98,26 @@ class LineRestriction extends AbstractRestriction_1.AbstractRestriction {
58
98
  origin: __classPrivateFieldGet(this, _LineRestriction_point1, "f"),
59
99
  direction: gl_matrix_1.vec3.divide(gl_matrix_1.vec3.create(), direction, gl_matrix_1.vec3.fromValues(__classPrivateFieldGet(this, _LineRestriction_dragLineLength, "f"), __classPrivateFieldGet(this, _LineRestriction_dragLineLength, "f"), __classPrivateFieldGet(this, _LineRestriction_dragLineLength, "f"))),
60
100
  }, "f");
101
+ if (__classPrivateFieldGet(this, _LineRestriction_wireframe, "f")) {
102
+ const geometry = new THREE.BufferGeometry();
103
+ geometry.setAttribute("position", new THREE.Float32BufferAttribute([
104
+ __classPrivateFieldGet(this, _LineRestriction_point1, "f")[0],
105
+ __classPrivateFieldGet(this, _LineRestriction_point1, "f")[1],
106
+ __classPrivateFieldGet(this, _LineRestriction_point1, "f")[2],
107
+ __classPrivateFieldGet(this, _LineRestriction_point2, "f")[0],
108
+ __classPrivateFieldGet(this, _LineRestriction_point2, "f")[1],
109
+ __classPrivateFieldGet(this, _LineRestriction_point2, "f")[2],
110
+ ], 3));
111
+ const line = new THREE.Line(geometry, new THREE.LineBasicMaterial({
112
+ color: new THREE.Color(__classPrivateFieldGet(this, _LineRestriction_wireframeColor, "f")),
113
+ depthTest: __classPrivateFieldGet(this, _LineRestriction_wireframeDepthTest, "f"),
114
+ depthWrite: !__classPrivateFieldGet(this, _LineRestriction_wireframeDepthTest, "f"),
115
+ }));
116
+ line.matrixAutoUpdate = false;
117
+ line.renderOrder = 100;
118
+ __classPrivateFieldGet(this, _LineRestriction_visualizationObject, "f").add(line);
119
+ this._object3D.add(__classPrivateFieldGet(this, _LineRestriction_visualizationObject, "f"));
120
+ }
61
121
  }
62
122
  // #endregion Constructors (1)
63
123
  // #region Public Getters And Setters (5)
@@ -217,6 +277,6 @@ class LineRestriction extends AbstractRestriction_1.AbstractRestriction {
217
277
  visibilityChanged() { }
218
278
  }
219
279
  exports.LineRestriction = LineRestriction;
220
- _LineRestriction_viewport = new WeakMap(), _LineRestriction_dragLineLength = new WeakMap(), _LineRestriction_dragRay = new WeakMap(), _LineRestriction_point1 = new WeakMap(), _LineRestriction_point1Restriction = new WeakMap(), _LineRestriction_point2 = new WeakMap(), _LineRestriction_point2Restriction = new WeakMap(), _LineRestriction_radius = new WeakMap(), _LineRestriction_snapRestrictions = new WeakMap();
280
+ _LineRestriction_viewport = new WeakMap(), _LineRestriction_dragLineLength = new WeakMap(), _LineRestriction_dragRay = new WeakMap(), _LineRestriction_point1 = new WeakMap(), _LineRestriction_point1Restriction = new WeakMap(), _LineRestriction_point2 = new WeakMap(), _LineRestriction_point2Restriction = new WeakMap(), _LineRestriction_radius = new WeakMap(), _LineRestriction_settings = new WeakMap(), _LineRestriction_snapRestrictions = new WeakMap(), _LineRestriction_visualizationObject = new WeakMap(), _LineRestriction_wireframe = new WeakMap(), _LineRestriction_wireframeColor = new WeakMap(), _LineRestriction_wireframeDepthTest = new WeakMap();
221
281
  // #endregion Classes (1)
222
282
  //# sourceMappingURL=LineRestriction.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"LineRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/line/LineRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAGA,yCAA+B;AAC/B,mEAM0C;AAG1C,gEAA2D;AAC3D,gE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S,EACb,KAAK,CACL,CAAC;YAEF,OAAO;gBACN,wBAAwB;gBACxB,+CAA+C,EAAE,KAAK,GAAG,KAAK;gBAC9D,WAAW,EAAE,MAAM;gBACnB,wCAAwC,EAAE,QAAQ;gBAClD,WAAW,EAAE,IAAI;aACjB,CAAC;SACF;QAED,OAAO;IACR,CAAC;IAED,gCAAgC;IAEhC,gCAAgC;IAEtB,iBAAiB,KAAU,CAAC;CAGtC;AArUD,0CAqUC;;AAED,yBAAyB"}
1
+ {"version":3,"file":"LineRestriction.js","sourceRoot":"","sources":["../../../../src/implementation/restrictions/line/LineRestriction.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAGA,yCAA+B;AAC/B,6CAA+B;AAC/B,mEAM0C;AAG1C,gEAA2D;AAC3D,gEAA2D;AAuC3D,8BAA8B;AAE9B,sBAAsB;AAEtB,MAAa,eACZ,SAAQ,yCAAmB;IAoB3B,6BAA6B;IAE7B,2BAA2B;IAE3B,YACC,QAAsB,EACtB,mBAAwC,EACxC,UAAqB,EACrB,EAAU,EACV,QAAgC,EAChC,UAAqC;;QAErC,KAAK,CAAC,QAAQ,EAAE,UAAU,EAAE,EAAE,EAAE,UAAU,CAAC,CAAC;QA7B7C,0BAA0B;QAE1B,4CAAiC;QAEjC,kDAAwB;QACxB,2CAAe;QACf,0CAAc;QACd,qDAAiD;QACjD,0CAAc;QACd,qDAAiD;QACjD,0CAAgB;QAChB,4CAAkC;QAClC,4CAAuD,EAAE,EAAC;QAC1D,+CAAuC,IAAI,KAAK,CAAC,QAAQ,EAAE,EAAC;QAC5D,6CAAoB;QACpB,kDAAwB;QACxB,sDAA6B;QAe5B,uBAAA,IAAI,6BAAa,QAAQ,MAAA,CAAC;QAC1B,uBAAA,IAAI,2BAAW,UAAU,CAAC,MAAM,MAAA,CAAC;QACjC,uBAAA,IAAI,2BAAW,UAAU,CAAC,MAAM,MAAA,CAAC;QACjC,uBAAA,IAAI,2BAAW,UAA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AgC;IAEtB,iBAAiB,KAAU,CAAC;CAGtC;AArXD,0CAqXC;;AAED,yBAAyB"}
@@ -1 +1 @@
1
- {"version":3,"file":"PlaneRestriction.d.ts","sourceRoot":"","sources":["../../../../src/implementation/restrictions/plane/PlaneRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,SAAS,EACT,YAAY,EAEZ,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,IAAI,EAAE,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AAC7E,OAAO,EAAC,IAAI,EAAE,IAAI,EAAC,MAAM,WAAW,CAAC;AACrC,OAAO,EACN,YAAY,EAGZ,mBAAmB,EACnB,yBAAyB,EACzB,iBAAiB,EACjB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAC,gBAAgB,EAAC,MAAM,sCAAsC,CAAC;AACtE,OAAO,EAAC,mBAAmB,EAAC,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EACN,kBAAkB,EAClB,4BAA4B,EAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACN,eAAe,EACf,yBAAyB,EACzB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACN,eAAe,EACf,yBAAyB,EACzB,MAAM,wBAAwB,CAAC;AAIhC,MAAM,WAAW,0BAA2B,SAAQ,yBAAyB;IAC5E;;;;OAIG;IACH,MAAM,CAAC,EAAE,IAAI,CAAC;IAEd;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB;;;OAGG;IACH,QAAQ,CAAC,EAAE,IAAI,CAAC;IAEhB;;OAEG;IACH,mBAAmB,CAAC,EAAE,yBAAyB,CAAC;IAEhD;;OAEG;IACH,sBAAsB,CAAC,EAAE,4BAA4B,CAAC;IAEtD;;OAEG;IACH,mBAAmB,CAAC,EAAE,yBAAyB,CAAC;CAChD;AAMD,qBAAa,gBACZ,SAAQ,mBACR,YAAW,YAAY;;gBAyBtB,QAAQ,EAAE,YAAY,EACtB,mBAAmB,EAAE,mBAAmB,EACxC,UAAU,EAAE,SAAS,EACrB,EAAE,EAAE,MAAM,EACV,QAAQ,EAAE,sBAAsB,EAChC,UAAU,EAAE,0BAA0B;IA4CvC,IAAW,kBAAkB,IAAI,kBAAkB,CAElD;IAED,IAAW,eAAe,IAAI,eAAe,CAE5C;IAED,IAAW,eAAe,IAAI,eAAe,CAE5C;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,IAAI,EAG5B;IAED,IAAW,gBAAgB,IAAI;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAC,CAE/D;IAED,IAAW,+BAA+B,IAAI,IAAI,CAEjD;IAED,IAAW,6BAA6B,IAAI,IAAI,CAE/C;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAG7B;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAG7B;IAMM,QAAQ,CACd,GAAG,EAAE,IAAI,EACT,QAAQ,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,GAAG,SAAS;IA+DhC,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAMnC,OAAO,CAAC,kBAAkB;IAuC1B,OAAO,CAAC,4BAA4B;IA4DpC,OAAO,CAAC,IAAI;IAwEZ,OAAO,CAAC,qBAAqB;CA2E7B"}
1
+ {"version":3,"file":"PlaneRestriction.d.ts","sourceRoot":"","sources":["../../../../src/implementation/restrictions/plane/PlaneRestriction.ts"],"names":[],"mappings":"AAAA,OAAO,EAIN,SAAS,EACT,YAAY,EAEZ,MAAM,oBAAoB,CAAC;AAE5B,OAAO,EAAC,IAAI,EAAE,sBAAsB,EAAC,MAAM,iCAAiC,CAAC;AAC7E,OAAO,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AAM,IAAI,IAAI,CAExB;IAED,IAAW,MAAM,CAAC,KAAK,EAAE,IAAI,EAG5B;IAED,IAAW,gBAAgB,IAAI;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,gBAAgB,CAAA;KAAC,CAE/D;IAED,IAAW,+BAA+B,IAAI,IAAI,CAEjD;IAED,IAAW,6BAA6B,IAAI,IAAI,CAE/C;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAG7B;IAED,IAAW,OAAO,IAAI,IAAI,CAEzB;IAED,IAAW,OAAO,CAAC,KAAK,EAAE,IAAI,EAG7B;IAMM,QAAQ,CACd,GAAG,EAAE,IAAI,EACT,QAAQ,CAAC,EAAE,mBAAmB,GAC5B,iBAAiB,GAAG,SAAS;IA+DhC,SAAS,CAAC,iBAAiB,IAAI,IAAI;IAMnC,OAAO,CAAC,kBAAkB;IAuC1B,OAAO,CAAC,4BAA4B;IA4DpC,OAAO,CAAC,IAAI;IAwEZ,OAAO,CAAC,qBAAqB;CAwG7B"}
@@ -10,7 +10,7 @@ var __classPrivateFieldGet = (this && this.__classPrivateFieldGet) || function (
10
10
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
11
11
  return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
12
12
  };
13
- var _PlaneRestriction_properties, _PlaneRestriction_viewport, _PlaneRestriction_angularRestriction, _PlaneRestriction_axisRestriction, _PlaneRestriction_cameraId, _PlaneRestriction_gridRestriction, _PlaneRestriction_normal, _PlaneRestriction_origin, _PlaneRestriction_plane, _PlaneRestriction_snapRestrictions, _PlaneRestriction_transformationFromXYPlaneMatrix, _PlaneRestriction_transformationToXYPlaneMatrix, _PlaneRestriction_vectorU, _PlaneRestriction_vectorV;
13
+ var _PlaneRestriction_parentNode, _PlaneRestriction_properties, _PlaneRestriction_viewport, _PlaneRestriction_angularRestriction, _PlaneRestriction_axisRestriction, _PlaneRestriction_cameraId, _PlaneRestriction_gridRestriction, _PlaneRestriction_normal, _PlaneRestriction_origin, _PlaneRestriction_plane, _PlaneRestriction_snapRestrictions, _PlaneRestriction_transformationFromXYPlaneMatrix, _PlaneRestriction_transformationToXYPlaneMatrix, _PlaneRestriction_vectorU, _PlaneRestriction_vectorV;
14
14
  Object.defineProperty(exports, "__esModule", { value: true });
15
15
  exports.PlaneRestriction = void 0;
16
16
  const viewer_1 = require("@shapediver/viewer");
@@ -24,11 +24,12 @@ const GridRestriction_1 = require("./snap/GridRestriction");
24
24
  // #endregion Type aliases (1)
25
25
  // #region Classes (1)
26
26
  class PlaneRestriction extends AbstractRestriction_1.AbstractRestriction {
27
- // #endregion Properties (14)
27
+ // #endregion Properties (15)
28
28
  // #region Constructors (1)
29
29
  constructor(viewport, geometryMathManager, parentNode, id, settings, properties) {
30
30
  super(viewport, parentNode, id, properties);
31
- // #region Properties (14)
31
+ // #region Properties (15)
32
+ _PlaneRestriction_parentNode.set(this, void 0);
32
33
  _PlaneRestriction_properties.set(this, void 0);
33
34
  _PlaneRestriction_viewport.set(this, void 0);
34
35
  _PlaneRestriction_angularRestriction.set(this, void 0);
@@ -43,12 +44,24 @@ class PlaneRestriction extends AbstractRestriction_1.AbstractRestriction {
43
44
  _PlaneRestriction_transformationToXYPlaneMatrix.set(this, gl_matrix_1.mat4.create());
44
45
  _PlaneRestriction_vectorU.set(this, gl_matrix_1.vec3.create());
45
46
  _PlaneRestriction_vectorV.set(this, gl_matrix_1.vec3.create());
47
+ __classPrivateFieldSet(this, _PlaneRestriction_parentNode, parentNode, "f");
46
48
  __classPrivateFieldSet(this, _PlaneRestriction_viewport, viewport, "f");
47
49
  __classPrivateFieldSet(this, _PlaneRestriction_cameraId, __classPrivateFieldGet(this, _PlaneRestriction_viewport, "f").camera.id, "f");
48
50
  __classPrivateFieldSet(this, _PlaneRestriction_properties, properties, "f");
49
- __classPrivateFieldSet(this, _PlaneRestriction_gridRestriction, new GridRestriction_1.GridRestriction(viewport, geometryMathManager, parentNode, this, __classPrivateFieldGet(this, _PlaneRestriction_properties, "f").gridSnapRestriction), "f");
50
- __classPrivateFieldSet(this, _PlaneRestriction_angularRestriction, new AngularRestriction_1.AngularRestriction(viewport, geometryMathManager, parentNode, this, settings, __classPrivateFieldGet(this, _PlaneRestriction_properties, "f").angularSnapRestriction), "f");
51
- __classPrivateFieldSet(this, _PlaneRestriction_axisRestriction, new AxisRestriction_1.AxisRestriction(viewport, geometryMathManager, parentNode, this, __classPrivateFieldGet(this, _PlaneRestriction_properties, "f").axisSnapRestriction), "f");
51
+ // Propagate createHelperObjects to sub-restrictions that don't have
52
+ // an explicit override, so that a single flag on the plane restriction
53
+ // suppresses helper objects for all its child snap restrictions.
54
+ const inheritHelperObjects = (sub) => {
55
+ var _a;
56
+ if (properties.createHelperObjects === undefined)
57
+ return sub;
58
+ if (sub === undefined)
59
+ return { createHelperObjects: properties.createHelperObjects };
60
+ return Object.assign(Object.assign({}, sub), { createHelperObjects: (_a = sub.createHelperObjects) !== null && _a !== void 0 ? _a : properties.createHelperObjects });
61
+ };
62
+ __classPrivateFieldSet(this, _PlaneRestriction_gridRestriction, new GridRestriction_1.GridRestriction(viewport, geometryMathManager, parentNode, this, inheritHelperObjects(__classPrivateFieldGet(this, _PlaneRestriction_properties, "f").gridSnapRestriction)), "f");
63
+ __classPrivateFieldSet(this, _PlaneRestriction_angularRestriction, new AngularRestriction_1.AngularRestriction(viewport, geometryMathManager, parentNode, this, settings, inheritHelperObjects(__classPrivateFieldGet(this, _PlaneRestriction_properties, "f").angularSnapRestriction)), "f");
64
+ __classPrivateFieldSet(this, _PlaneRestriction_axisRestriction, new AxisRestriction_1.AxisRestriction(viewport, geometryMathManager, parentNode, this, inheritHelperObjects(__classPrivateFieldGet(this, _PlaneRestriction_properties, "f").axisSnapRestriction)), "f");
52
65
  this.updatePlaneDefinition();
53
66
  __classPrivateFieldSet(this, _PlaneRestriction_snapRestrictions, {
54
67
  grid: __classPrivateFieldGet(this, _PlaneRestriction_gridRestriction, "f"),
@@ -240,9 +253,27 @@ class PlaneRestriction extends AbstractRestriction_1.AbstractRestriction {
240
253
  gl_matrix_1.vec3.normalize(vectorV, gl_matrix_1.vec3.cross(gl_matrix_1.vec3.create(), normal, vectorU));
241
254
  if (camera.type === viewer_1.CAMERA_TYPE.ORTHOGRAPHIC) {
242
255
  const cameraApi = camera;
243
- const cameraDirection = gl_matrix_1.vec3.normalize(gl_matrix_1.vec3.create(), gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), cameraApi.target, cameraApi.position));
244
- // if the dot product of the camera direction and the normal tells us that they are parallel
245
- // the plane is perpendicular to the camera direction
256
+ const cameraDirectionWS = gl_matrix_1.vec3.normalize(gl_matrix_1.vec3.create(), gl_matrix_1.vec3.sub(gl_matrix_1.vec3.create(), cameraApi.target, cameraApi.position));
257
+ // When this restriction is used inside a drawing tool that
258
+ // transforms rays to the parent node's local space (via
259
+ // DrawingToolsManager.transformRayToLocalSpace), the plane
260
+ // vectors (vectorU, vectorV, normal) are in local space while
261
+ // cameraDirectionWS is still in world space. Converting to
262
+ // local space ensures the edge-on check is performed in the
263
+ // same coordinate frame as the plane normal.
264
+ const invParentMatrix = gl_matrix_1.mat4.invert(gl_matrix_1.mat4.create(), __classPrivateFieldGet(this, _PlaneRestriction_parentNode, "f").worldMatrix);
265
+ const cameraDirection = invParentMatrix
266
+ ? gl_matrix_1.vec3.normalize(gl_matrix_1.vec3.create(), gl_matrix_1.vec3.fromValues(invParentMatrix[0] * cameraDirectionWS[0] +
267
+ invParentMatrix[4] * cameraDirectionWS[1] +
268
+ invParentMatrix[8] * cameraDirectionWS[2], invParentMatrix[1] * cameraDirectionWS[0] +
269
+ invParentMatrix[5] * cameraDirectionWS[1] +
270
+ invParentMatrix[9] * cameraDirectionWS[2], invParentMatrix[2] * cameraDirectionWS[0] +
271
+ invParentMatrix[6] * cameraDirectionWS[1] +
272
+ invParentMatrix[10] * cameraDirectionWS[2]))
273
+ : cameraDirectionWS;
274
+ // If the (local-space) camera direction is perpendicular to the
275
+ // plane normal the plane is seen edge-on and intersection would
276
+ // be degenerate — fall back to a camera-facing plane instead.
246
277
  if (Math.abs(gl_matrix_1.vec3.dot(cameraDirection, normal)) < 0.0001) {
247
278
  this.createDefaultPlane(camera);
248
279
  }
@@ -271,6 +302,6 @@ class PlaneRestriction extends AbstractRestriction_1.AbstractRestriction {
271
302
  }
272
303
  }
273
304
  exports.PlaneRestriction = PlaneRestriction;
274
- _PlaneRestriction_properties = new WeakMap(), _PlaneRestriction_viewport = new WeakMap(), _PlaneRestriction_angularRestriction = new WeakMap(), _PlaneRestriction_axisRestriction = new WeakMap(), _PlaneRestriction_cameraId = new WeakMap(), _PlaneRestriction_gridRestriction = new WeakMap(), _PlaneRestriction_normal = new WeakMap(), _PlaneRestriction_origin = new WeakMap(), _PlaneRestriction_plane = new WeakMap(), _PlaneRestriction_snapRestrictions = new WeakMap(), _PlaneRestriction_transformationFromXYPlaneMatrix = new WeakMap(), _PlaneRestriction_transformationToXYPlaneMatrix = new WeakMap(), _PlaneRestriction_vectorU = new WeakMap(), _PlaneRestriction_vectorV = new WeakMap();
305
+ _PlaneRestriction_parentNode = new WeakMap(), _PlaneRestriction_properties = new WeakMap(), _PlaneRestriction_viewport = new WeakMap(), _PlaneRestriction_angularRestriction = new WeakMap(), _PlaneRestriction_axisRestriction = new WeakMap(), _PlaneRestriction_cameraId = new WeakMap(), _PlaneRestriction_gridRestriction = new WeakMap(), _PlaneRestriction_normal = new WeakMap(), _PlaneRestriction_origin = new WeakMap(), _PlaneRestriction_plane = new WeakMap(), _PlaneRestriction_snapRestrictions = new WeakMap(), _PlaneRestriction_transformationFromXYPlaneMatrix = new WeakMap(), _PlaneRestriction_transformationToXYPlaneMatrix = new WeakMap(), _PlaneRestriction_vectorU = new WeakMap(), _PlaneRestriction_vectorV = new WeakMap();
275
306
  // #endregion Classes (1)
276
307
  //# sourceMappingURL=PlaneRestriction.js.map