@roomle/web-sdk 3.6.0-alpha.3 → 3.6.0-alpha.4
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/lib/BufferGeometry-DLEagG41.mjs +1022 -0
- package/lib/BufferGeometry-DLEagG41.mjs.map +1 -0
- package/lib/ConfiguratorKernel.wasm +0 -0
- package/lib/GLTFExporter-D8qsdwDK.mjs +1092 -0
- package/lib/GLTFExporter-D8qsdwDK.mjs.map +1 -0
- package/lib/Object3D-DSjIOhON.mjs +1713 -0
- package/lib/Object3D-DSjIOhON.mjs.map +1 -0
- package/lib/PointLightHelper-BnjxGaOG.mjs +257 -0
- package/lib/PointLightHelper-BnjxGaOG.mjs.map +1 -0
- package/lib/RoomleCore.wasm +0 -0
- package/lib/RoomleToolsCore.wasm +0 -0
- package/lib/SpotLightHelper-DqsfqCrs.mjs +154 -0
- package/lib/SpotLightHelper-DqsfqCrs.mjs.map +1 -0
- package/lib/USDZExporter-DxIqi8St.mjs +296 -0
- package/lib/USDZExporter-DxIqi8St.mjs.map +1 -0
- package/lib/Vector4-DGmBYfpK.mjs +204 -0
- package/lib/Vector4-DGmBYfpK.mjs.map +1 -0
- package/lib/api-CNoIBuvr.mjs +55 -0
- package/lib/api-CNoIBuvr.mjs.map +1 -0
- package/lib/banana-for-scale-C_iNmlCT.mjs +36 -0
- package/lib/banana-for-scale-C_iNmlCT.mjs.map +1 -0
- package/lib/common-utils-DMSTohiS.mjs +187 -0
- package/lib/common-utils-DMSTohiS.mjs.map +1 -0
- package/lib/component-dimensioning-CvRmUja4.mjs +162 -0
- package/lib/component-dimensioning-CvRmUja4.mjs.map +1 -0
- package/lib/component-raycast-helper-CEp7wy9c.mjs +97 -0
- package/lib/component-raycast-helper-CEp7wy9c.mjs.map +1 -0
- package/lib/configurator-B_5XVG2O.mjs +45 -0
- package/lib/configurator-B_5XVG2O.mjs.map +1 -0
- package/lib/configurator-DCdvMM0o.mjs +2 -0
- package/lib/continuous-drawing-helper-v_5UAM9A.mjs +42 -0
- package/lib/continuous-drawing-helper-v_5UAM9A.mjs.map +1 -0
- package/lib/decorate-C1QnXPYw.mjs +35 -0
- package/lib/decorate-C1QnXPYw.mjs.map +1 -0
- package/lib/dimensioning-helper-DTcW85Oq.mjs +2 -0
- package/lib/dimensioning-helper-Fwpt1HTT.mjs +268 -0
- package/lib/dimensioning-helper-Fwpt1HTT.mjs.map +1 -0
- package/lib/fflate.module-dFNj5UPI.mjs +536 -0
- package/lib/fflate.module-dFNj5UPI.mjs.map +1 -0
- package/lib/glb-viewer-cP8g6bcm.mjs +315 -0
- package/lib/glb-viewer-cP8g6bcm.mjs.map +1 -0
- package/lib/glb-viewer-dZThmlwM.mjs +2 -0
- package/lib/homag-intelligence-LoOJ7roM.mjs +381 -0
- package/lib/homag-intelligence-LoOJ7roM.mjs.map +1 -0
- package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs +161 -0
- package/lib/imos-ix-poc-export-helper-CQh94HsO.mjs.map +1 -0
- package/lib/kernel-BAQSG9r5.mjs +46 -0
- package/lib/kernel-BAQSG9r5.mjs.map +1 -0
- package/lib/kernel-utils-H74uNY1h.mjs +44 -0
- package/lib/kernel-utils-H74uNY1h.mjs.map +1 -0
- package/lib/layer-C_JtkhdO.mjs +8 -0
- package/lib/layer-C_JtkhdO.mjs.map +1 -0
- package/lib/main-BxEZ11ag.mjs +20461 -0
- package/lib/main-BxEZ11ag.mjs.map +1 -0
- package/lib/material-viewer-njBFF0Zg.mjs +292 -0
- package/lib/material-viewer-njBFF0Zg.mjs.map +1 -0
- package/lib/planner-Cr495Cyn.mjs +2 -0
- package/lib/planner-DY73rplC.mjs +44 -0
- package/lib/planner-DY73rplC.mjs.map +1 -0
- package/lib/plugin-system-D9K46xJk.mjs +55 -0
- package/lib/plugin-system-D9K46xJk.mjs.map +1 -0
- package/lib/roomle-sdk.d.ts +15 -2
- package/lib/roomle-sdk.js +7 -36
- package/lib/scene-renderer-D8HkTFeZ.mjs +3826 -0
- package/lib/scene-renderer-D8HkTFeZ.mjs.map +1 -0
- package/lib/script-loader-KBq8SjP6.mjs +45 -0
- package/lib/script-loader-KBq8SjP6.mjs.map +1 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.js +34 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_decoder.wasm +0 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_encoder.js +33 -0
- package/lib/static/draco/node_modules/three/examples/jsm/libs/draco/draco_wasm_wrapper.js +117 -0
- package/lib/static/roomle-core-hsc/node_modules/roomle-core-hsc/package.json +1 -0
- package/lib/static/roomle-core-hsc/{src → node_modules/roomle-core-hsc/src}/embind/plannerCoreInterface.d.ts +2 -0
- package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/{RoomleCore.wasm → node_modules/roomle-core-hsc/wasm_modern/RoomleCore.wasm} +0 -0
- package/lib/static/roomle-core-hsc/{wasm_modern → node_modules/roomle-core-hsc/wasm_modern}/RoomleToolsCore.wasm +0 -0
- package/lib/stats-helper-HM0TaIM5.mjs +95 -0
- package/lib/stats-helper-HM0TaIM5.mjs.map +1 -0
- package/lib/three.core-CLIofecG.mjs +7629 -0
- package/lib/three.core-CLIofecG.mjs.map +1 -0
- package/lib/three.module-C4Q1skJQ.mjs +5795 -0
- package/lib/three.module-C4Q1skJQ.mjs.map +1 -0
- package/lib/three.webgpu-dFspy2yF.mjs +16057 -0
- package/lib/three.webgpu-dFspy2yF.mjs.map +1 -0
- package/lib/threejs-utils-jEzvlJF1.mjs +2233 -0
- package/lib/threejs-utils-jEzvlJF1.mjs.map +1 -0
- package/lib/tools-core-CZbPygRC.mjs +30 -0
- package/lib/tools-core-CZbPygRC.mjs.map +1 -0
- package/package.json +1 -1
- package/lib/BufferGeometry-C1o0MiFL.mjs +0 -2064
- package/lib/BufferGeometry-C1o0MiFL.mjs.map +0 -1
- package/lib/GLTFExporter-CXMBueJw.mjs +0 -1323
- package/lib/GLTFExporter-CXMBueJw.mjs.map +0 -1
- package/lib/PointLightHelper-ICWLqwjK.mjs +0 -522
- package/lib/PointLightHelper-ICWLqwjK.mjs.map +0 -1
- package/lib/SpotLightHelper-CW5lDGFp.mjs +0 -222
- package/lib/SpotLightHelper-CW5lDGFp.mjs.map +0 -1
- package/lib/USDZExporter-CUp3dX08.mjs +0 -552
- package/lib/USDZExporter-CUp3dX08.mjs.map +0 -1
- package/lib/banana-for-scale-CfQ8dnY2.mjs +0 -50
- package/lib/banana-for-scale-CfQ8dnY2.mjs.map +0 -1
- package/lib/component-dimensioning-C9AWhxvj.mjs +0 -237
- package/lib/component-dimensioning-C9AWhxvj.mjs.map +0 -1
- package/lib/continuous-drawing-helper-B5BlbPPz.mjs +0 -48
- package/lib/continuous-drawing-helper-B5BlbPPz.mjs.map +0 -1
- package/lib/homag-intelligence-UFo9Z8FS.mjs +0 -549
- package/lib/homag-intelligence-UFo9Z8FS.mjs.map +0 -1
- package/lib/imos-ix-poc-export-helper-CGSk-8yx.mjs +0 -180
- package/lib/imos-ix-poc-export-helper-CGSk-8yx.mjs.map +0 -1
- package/lib/index-DIyMlQBA.mjs +0 -100947
- package/lib/index-DIyMlQBA.mjs.map +0 -1
- package/lib/material-viewer-QTlidNBs.mjs +0 -451
- package/lib/material-viewer-QTlidNBs.mjs.map +0 -1
- package/lib/roomle-sdk.js.map +0 -1
- package/lib/static/draco/gltf/draco_decoder.js +0 -33
- package/lib/static/draco/gltf/draco_decoder.wasm +0 -0
- package/lib/static/draco/gltf/draco_encoder.js +0 -33
- package/lib/static/draco/gltf/draco_wasm_wrapper.js +0 -116
- package/lib/static/roomle-core-hsc/ConfiguratorKernel.wasm +0 -0
- package/lib/static/roomle-core-hsc/RoomleToolsCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.d.ts +0 -82
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.js +0 -355
- package/lib/static/roomle-core-hsc/embind/configuratorCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCore.d.ts +0 -19
- package/lib/static/roomle-core-hsc/embind/configuratorCore.js +0 -50
- package/lib/static/roomle-core-hsc/embind/configuratorCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.d.ts +0 -746
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js +0 -99
- package/lib/static/roomle-core-hsc/embind/configuratorCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.d.ts +0 -3
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.js +0 -52
- package/lib/static/roomle-core-hsc/embind/configuratorUtils.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/coreModue.d.ts +0 -4
- package/lib/static/roomle-core-hsc/embind/coreModue.js +0 -3
- package/lib/static/roomle-core-hsc/embind/coreModue.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/coreModule.d.ts +0 -11
- package/lib/static/roomle-core-hsc/embind/coreModule.js +0 -19
- package/lib/static/roomle-core-hsc/embind/coreModule.js.map +0 -1
- package/lib/static/roomle-core-hsc/embind/plannerCoreInterface.d.ts +0 -851
- package/lib/static/roomle-core-hsc/loader/configurableObject.d.ts +0 -30
- package/lib/static/roomle-core-hsc/loader/configurableObject.js +0 -111
- package/lib/static/roomle-core-hsc/loader/configurableObject.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.d.ts +0 -21
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js +0 -90
- package/lib/static/roomle-core-hsc/loader/configurationGeometryConstructor.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationLoader.d.ts +0 -116
- package/lib/static/roomle-core-hsc/loader/configurationLoader.js +0 -345
- package/lib/static/roomle-core-hsc/loader/configurationLoader.js.map +0 -1
- package/lib/static/roomle-core-hsc/loader/configurationManager.d.ts +0 -41
- package/lib/static/roomle-core-hsc/loader/configurationManager.js +0 -147
- package/lib/static/roomle-core-hsc/loader/configurationManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/loaderUtility.d.ts +0 -81
- package/lib/static/roomle-core-hsc/loaderUtility.js +0 -141
- package/lib/static/roomle-core-hsc/loaderUtility.js.map +0 -1
- package/lib/static/roomle-core-hsc/logger.d.ts +0 -29
- package/lib/static/roomle-core-hsc/logger.js +0 -61
- package/lib/static/roomle-core-hsc/logger.js.map +0 -1
- package/lib/static/roomle-core-hsc/package.json +0 -1
- package/lib/static/roomle-core-hsc/planElementManager.d.ts +0 -96
- package/lib/static/roomle-core-hsc/planElementManager.js +0 -300
- package/lib/static/roomle-core-hsc/planElementManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCore.d.ts +0 -31
- package/lib/static/roomle-core-hsc/plannerCore.js +0 -111
- package/lib/static/roomle-core-hsc/plannerCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCoreCallback.d.ts +0 -39
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js +0 -116
- package/lib/static/roomle-core-hsc/plannerCoreCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/plannerCoreInterface.d.ts +0 -851
- package/lib/static/roomle-core-hsc/plannerCoreInterface.js +0 -93
- package/lib/static/roomle-core-hsc/plannerCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/rapiAccess.d.ts +0 -70
- package/lib/static/roomle-core-hsc/rapiAccess.js +0 -227
- package/lib/static/roomle-core-hsc/rapiAccess.js.map +0 -1
- package/lib/static/roomle-core-hsc/serviceCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/serviceCore.js +0 -54
- package/lib/static/roomle-core-hsc/serviceCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/serviceCoreInterface.d.ts +0 -13
- package/lib/static/roomle-core-hsc/serviceCoreInterface.js +0 -3
- package/lib/static/roomle-core-hsc/serviceCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.d.ts +0 -82
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js +0 -355
- package/lib/static/roomle-core-hsc/src/embind/configuratorCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.d.ts +0 -19
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js +0 -50
- package/lib/static/roomle-core-hsc/src/embind/configuratorCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts +0 -746
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js +0 -99
- package/lib/static/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.d.ts +0 -3
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js +0 -52
- package/lib/static/roomle-core-hsc/src/embind/configuratorUtils.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/coreModue.d.ts +0 -4
- package/lib/static/roomle-core-hsc/src/embind/coreModue.js +0 -3
- package/lib/static/roomle-core-hsc/src/embind/coreModue.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/coreModule.d.ts +0 -11
- package/lib/static/roomle-core-hsc/src/embind/coreModule.js +0 -19
- package/lib/static/roomle-core-hsc/src/embind/coreModule.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCore.d.ts +0 -31
- package/lib/static/roomle-core-hsc/src/embind/plannerCore.js +0 -111
- package/lib/static/roomle-core-hsc/src/embind/plannerCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.d.ts +0 -39
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js +0 -116
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreCallback.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js +0 -93
- package/lib/static/roomle-core-hsc/src/embind/plannerCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.d.ts +0 -20
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.js +0 -54
- package/lib/static/roomle-core-hsc/src/embind/serviceCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.d.ts +0 -13
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js +0 -3
- package/lib/static/roomle-core-hsc/src/embind/serviceCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.d.ts +0 -17
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.js +0 -75
- package/lib/static/roomle-core-hsc/src/embind/toolsCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.d.ts +0 -40
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js +0 -8
- package/lib/static/roomle-core-hsc/src/embind/toolsCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurableObject.d.ts +0 -30
- package/lib/static/roomle-core-hsc/src/loader/configurableObject.js +0 -111
- package/lib/static/roomle-core-hsc/src/loader/configurableObject.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts +0 -21
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js +0 -90
- package/lib/static/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.d.ts +0 -116
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js +0 -345
- package/lib/static/roomle-core-hsc/src/loader/configurationLoader.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.d.ts +0 -41
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.js +0 -147
- package/lib/static/roomle-core-hsc/src/loader/configurationManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.d.ts +0 -81
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js +0 -141
- package/lib/static/roomle-core-hsc/src/loader/loaderUtility.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/logger.d.ts +0 -29
- package/lib/static/roomle-core-hsc/src/loader/logger.js +0 -61
- package/lib/static/roomle-core-hsc/src/loader/logger.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.d.ts +0 -96
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.js +0 -300
- package/lib/static/roomle-core-hsc/src/loader/planElementManager.js.map +0 -1
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.d.ts +0 -70
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js +0 -227
- package/lib/static/roomle-core-hsc/src/loader/rapiAccess.js.map +0 -1
- package/lib/static/roomle-core-hsc/toolsCore.d.ts +0 -17
- package/lib/static/roomle-core-hsc/toolsCore.js +0 -75
- package/lib/static/roomle-core-hsc/toolsCore.js.map +0 -1
- package/lib/static/roomle-core-hsc/toolsCoreInterface.d.ts +0 -40
- package/lib/static/roomle-core-hsc/toolsCoreInterface.js +0 -8
- package/lib/static/roomle-core-hsc/toolsCoreInterface.js.map +0 -1
- package/lib/static/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js +0 -74
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.js +0 -79
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleCore.wasm +0 -0
- package/lib/static/roomle-core-hsc/wasm_modern/RoomleToolsCore.js +0 -74
- package/lib/stats-helper-cTITQsAT.mjs +0 -108
- package/lib/stats-helper-cTITQsAT.mjs.map +0 -1
- package/lib/tools-core-CCWbo8fD.mjs +0 -36
- package/lib/tools-core-CCWbo8fD.mjs.map +0 -1
- /package/lib/static/draco/{README.md → node_modules/three/examples/jsm/libs/draco/README.md} +0 -0
- /package/lib/static/draco/{draco_decoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.js} +0 -0
- /package/lib/static/draco/{draco_decoder.wasm → node_modules/three/examples/jsm/libs/draco/gltf/draco_decoder.wasm} +0 -0
- /package/lib/static/draco/{draco_encoder.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_encoder.js} +0 -0
- /package/lib/static/draco/{draco_wasm_wrapper.js → node_modules/three/examples/jsm/libs/draco/gltf/draco_wasm_wrapper.js} +0 -0
- /package/lib/static/{asset-loader.worker.js → packages/workers/generated/asset-loader.worker.js} +0 -0
- /package/lib/static/{budgeteer.sw.js → packages/workers/generated/budgeteer.sw.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCallback.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.js → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCallback.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCallback.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCore.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCore.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCore.js → node_modules/roomle-core-hsc/src/embind/configuratorCore.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCore.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCore.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorCoreInterface.js.map → node_modules/roomle-core-hsc/src/embind/configuratorCoreInterface.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.d.ts → node_modules/roomle-core-hsc/src/embind/configuratorUtils.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.js → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configuratorUtils.js.map → node_modules/roomle-core-hsc/src/embind/configuratorUtils.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.d.ts → node_modules/roomle-core-hsc/src/embind/coreModue.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.js → node_modules/roomle-core-hsc/src/embind/coreModue.js} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModue.js.map → node_modules/roomle-core-hsc/src/embind/coreModue.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.d.ts → node_modules/roomle-core-hsc/src/embind/coreModule.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.js → node_modules/roomle-core-hsc/src/embind/coreModule.js} +0 -0
- /package/lib/static/roomle-core-hsc/{coreModule.js.map → node_modules/roomle-core-hsc/src/embind/coreModule.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreCallback.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreInterface.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/plannerCoreInterface.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/serviceCoreInterface.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCore.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js +0 -0
- /package/lib/static/roomle-core-hsc/{embind → node_modules/roomle-core-hsc/src/embind}/toolsCoreInterface.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{configurableObject.d.ts → node_modules/roomle-core-hsc/src/loader/configurableObject.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configurableObject.js → node_modules/roomle-core-hsc/src/loader/configurableObject.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configurableObject.js.map → node_modules/roomle-core-hsc/src/loader/configurableObject.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.d.ts → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationGeometryConstructor.js.map → node_modules/roomle-core-hsc/src/loader/configurationGeometryConstructor.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationLoader.d.ts → node_modules/roomle-core-hsc/src/loader/configurationLoader.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationLoader.js → node_modules/roomle-core-hsc/src/loader/configurationLoader.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationLoader.js.map → node_modules/roomle-core-hsc/src/loader/configurationLoader.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationManager.d.ts → node_modules/roomle-core-hsc/src/loader/configurationManager.d.ts} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationManager.js → node_modules/roomle-core-hsc/src/loader/configurationManager.js} +0 -0
- /package/lib/static/roomle-core-hsc/{configurationManager.js.map → node_modules/roomle-core-hsc/src/loader/configurationManager.js.map} +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/loaderUtility.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/logger.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/planElementManager.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.d.ts +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js +0 -0
- /package/lib/static/roomle-core-hsc/{loader → node_modules/roomle-core-hsc/src/loader}/rapiAccess.js.map +0 -0
- /package/lib/static/roomle-core-hsc/{ConfiguratorKernel.js → node_modules/roomle-core-hsc/wasm_modern/ConfiguratorKernel.js} +0 -0
- /package/lib/static/roomle-core-hsc/{RoomleCore.js → node_modules/roomle-core-hsc/wasm_modern/RoomleCore.js} +0 -0
- /package/lib/static/roomle-core-hsc/{RoomleToolsCore.js → node_modules/roomle-core-hsc/wasm_modern/RoomleToolsCore.js} +0 -0
|
@@ -1,522 +0,0 @@
|
|
|
1
|
-
import { V as f, X as U, Y as nt, Z as ot, O as rt, Q as at, W as ct, _ as Z, $ as ht, a0 as lt } from "./index-DIyMlQBA.mjs";
|
|
2
|
-
import { M as ut, C as pt, B as st, R as ft, F as X } from "./BufferGeometry-C1o0MiFL.mjs";
|
|
3
|
-
const x = /* @__PURE__ */ new f(), B = /* @__PURE__ */ new f(), k = /* @__PURE__ */ new f(), P = /* @__PURE__ */ new f(), T = /* @__PURE__ */ new f(), S = /* @__PURE__ */ new f(), $ = /* @__PURE__ */ new f(), N = /* @__PURE__ */ new f(), C = /* @__PURE__ */ new f(), G = /* @__PURE__ */ new f(), H = /* @__PURE__ */ new U(), E = /* @__PURE__ */ new U(), J = /* @__PURE__ */ new U();
|
|
4
|
-
class v {
|
|
5
|
-
/**
|
|
6
|
-
* Constructs a new triangle.
|
|
7
|
-
*
|
|
8
|
-
* @param {Vector3} [a=(0,0,0)] - The first corner of the triangle.
|
|
9
|
-
* @param {Vector3} [b=(0,0,0)] - The second corner of the triangle.
|
|
10
|
-
* @param {Vector3} [c=(0,0,0)] - The third corner of the triangle.
|
|
11
|
-
*/
|
|
12
|
-
constructor(t = new f(), e = new f(), i = new f()) {
|
|
13
|
-
this.a = t, this.b = e, this.c = i;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Computes the normal vector of a triangle.
|
|
17
|
-
*
|
|
18
|
-
* @param {Vector3} a - The first corner of the triangle.
|
|
19
|
-
* @param {Vector3} b - The second corner of the triangle.
|
|
20
|
-
* @param {Vector3} c - The third corner of the triangle.
|
|
21
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
22
|
-
* @return {Vector3} The triangle's normal.
|
|
23
|
-
*/
|
|
24
|
-
static getNormal(t, e, i, s) {
|
|
25
|
-
s.subVectors(i, e), x.subVectors(t, e), s.cross(x);
|
|
26
|
-
const n = s.lengthSq();
|
|
27
|
-
return n > 0 ? s.multiplyScalar(1 / Math.sqrt(n)) : s.set(0, 0, 0);
|
|
28
|
-
}
|
|
29
|
-
/**
|
|
30
|
-
* Computes a barycentric coordinates from the given vector.
|
|
31
|
-
* Returns `null` if the triangle is degenerate.
|
|
32
|
-
*
|
|
33
|
-
* @param {Vector3} point - A point in 3D space.
|
|
34
|
-
* @param {Vector3} a - The first corner of the triangle.
|
|
35
|
-
* @param {Vector3} b - The second corner of the triangle.
|
|
36
|
-
* @param {Vector3} c - The third corner of the triangle.
|
|
37
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
38
|
-
* @return {?Vector3} The barycentric coordinates for the given point
|
|
39
|
-
*/
|
|
40
|
-
static getBarycoord(t, e, i, s, n) {
|
|
41
|
-
x.subVectors(s, e), B.subVectors(i, e), k.subVectors(t, e);
|
|
42
|
-
const a = x.dot(x), o = x.dot(B), r = x.dot(k), u = B.dot(B), c = B.dot(k), l = a * u - o * o;
|
|
43
|
-
if (l === 0)
|
|
44
|
-
return n.set(0, 0, 0), null;
|
|
45
|
-
const M = 1 / l, d = (u * r - o * c) * M, p = (a * c - o * r) * M;
|
|
46
|
-
return n.set(1 - d - p, p, d);
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* Returns `true` if the given point, when projected onto the plane of the
|
|
50
|
-
* triangle, lies within the triangle.
|
|
51
|
-
*
|
|
52
|
-
* @param {Vector3} point - The point in 3D space to test.
|
|
53
|
-
* @param {Vector3} a - The first corner of the triangle.
|
|
54
|
-
* @param {Vector3} b - The second corner of the triangle.
|
|
55
|
-
* @param {Vector3} c - The third corner of the triangle.
|
|
56
|
-
* @return {boolean} Whether the given point, when projected onto the plane of the
|
|
57
|
-
* triangle, lies within the triangle or not.
|
|
58
|
-
*/
|
|
59
|
-
static containsPoint(t, e, i, s) {
|
|
60
|
-
return this.getBarycoord(t, e, i, s, P) === null ? !1 : P.x >= 0 && P.y >= 0 && P.x + P.y <= 1;
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Computes the value barycentrically interpolated for the given point on the
|
|
64
|
-
* triangle. Returns `null` if the triangle is degenerate.
|
|
65
|
-
*
|
|
66
|
-
* @param {Vector3} point - Position of interpolated point.
|
|
67
|
-
* @param {Vector3} p1 - The first corner of the triangle.
|
|
68
|
-
* @param {Vector3} p2 - The second corner of the triangle.
|
|
69
|
-
* @param {Vector3} p3 - The third corner of the triangle.
|
|
70
|
-
* @param {Vector3} v1 - Value to interpolate of first vertex.
|
|
71
|
-
* @param {Vector3} v2 - Value to interpolate of second vertex.
|
|
72
|
-
* @param {Vector3} v3 - Value to interpolate of third vertex.
|
|
73
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
74
|
-
* @return {?Vector3} The interpolated value.
|
|
75
|
-
*/
|
|
76
|
-
static getInterpolation(t, e, i, s, n, a, o, r) {
|
|
77
|
-
return this.getBarycoord(t, e, i, s, P) === null ? (r.x = 0, r.y = 0, "z" in r && (r.z = 0), "w" in r && (r.w = 0), null) : (r.setScalar(0), r.addScaledVector(n, P.x), r.addScaledVector(a, P.y), r.addScaledVector(o, P.z), r);
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Computes the value barycentrically interpolated for the given attribute and indices.
|
|
81
|
-
*
|
|
82
|
-
* @param {BufferAttribute} attr - The attribute to interpolate.
|
|
83
|
-
* @param {number} i1 - Index of first vertex.
|
|
84
|
-
* @param {number} i2 - Index of second vertex.
|
|
85
|
-
* @param {number} i3 - Index of third vertex.
|
|
86
|
-
* @param {Vector3} barycoord - The barycoordinate value to use to interpolate.
|
|
87
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
88
|
-
* @return {Vector3} The interpolated attribute value.
|
|
89
|
-
*/
|
|
90
|
-
static getInterpolatedAttribute(t, e, i, s, n, a) {
|
|
91
|
-
return H.setScalar(0), E.setScalar(0), J.setScalar(0), H.fromBufferAttribute(t, e), E.fromBufferAttribute(t, i), J.fromBufferAttribute(t, s), a.setScalar(0), a.addScaledVector(H, n.x), a.addScaledVector(E, n.y), a.addScaledVector(J, n.z), a;
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* Returns `true` if the triangle is oriented towards the given direction.
|
|
95
|
-
*
|
|
96
|
-
* @param {Vector3} a - The first corner of the triangle.
|
|
97
|
-
* @param {Vector3} b - The second corner of the triangle.
|
|
98
|
-
* @param {Vector3} c - The third corner of the triangle.
|
|
99
|
-
* @param {Vector3} direction - The (normalized) direction vector.
|
|
100
|
-
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
101
|
-
*/
|
|
102
|
-
static isFrontFacing(t, e, i, s) {
|
|
103
|
-
return x.subVectors(i, e), B.subVectors(t, e), x.cross(B).dot(s) < 0;
|
|
104
|
-
}
|
|
105
|
-
/**
|
|
106
|
-
* Sets the triangle's vertices by copying the given values.
|
|
107
|
-
*
|
|
108
|
-
* @param {Vector3} a - The first corner of the triangle.
|
|
109
|
-
* @param {Vector3} b - The second corner of the triangle.
|
|
110
|
-
* @param {Vector3} c - The third corner of the triangle.
|
|
111
|
-
* @return {Triangle} A reference to this triangle.
|
|
112
|
-
*/
|
|
113
|
-
set(t, e, i) {
|
|
114
|
-
return this.a.copy(t), this.b.copy(e), this.c.copy(i), this;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* Sets the triangle's vertices by copying the given array values.
|
|
118
|
-
*
|
|
119
|
-
* @param {Array<Vector3>} points - An array with 3D points.
|
|
120
|
-
* @param {number} i0 - The array index representing the first corner of the triangle.
|
|
121
|
-
* @param {number} i1 - The array index representing the second corner of the triangle.
|
|
122
|
-
* @param {number} i2 - The array index representing the third corner of the triangle.
|
|
123
|
-
* @return {Triangle} A reference to this triangle.
|
|
124
|
-
*/
|
|
125
|
-
setFromPointsAndIndices(t, e, i, s) {
|
|
126
|
-
return this.a.copy(t[e]), this.b.copy(t[i]), this.c.copy(t[s]), this;
|
|
127
|
-
}
|
|
128
|
-
/**
|
|
129
|
-
* Sets the triangle's vertices by copying the given attribute values.
|
|
130
|
-
*
|
|
131
|
-
* @param {BufferAttribute} attribute - A buffer attribute with 3D points data.
|
|
132
|
-
* @param {number} i0 - The attribute index representing the first corner of the triangle.
|
|
133
|
-
* @param {number} i1 - The attribute index representing the second corner of the triangle.
|
|
134
|
-
* @param {number} i2 - The attribute index representing the third corner of the triangle.
|
|
135
|
-
* @return {Triangle} A reference to this triangle.
|
|
136
|
-
*/
|
|
137
|
-
setFromAttributeAndIndices(t, e, i, s) {
|
|
138
|
-
return this.a.fromBufferAttribute(t, e), this.b.fromBufferAttribute(t, i), this.c.fromBufferAttribute(t, s), this;
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Returns a new triangle with copied values from this instance.
|
|
142
|
-
*
|
|
143
|
-
* @return {Triangle} A clone of this instance.
|
|
144
|
-
*/
|
|
145
|
-
clone() {
|
|
146
|
-
return new this.constructor().copy(this);
|
|
147
|
-
}
|
|
148
|
-
/**
|
|
149
|
-
* Copies the values of the given triangle to this instance.
|
|
150
|
-
*
|
|
151
|
-
* @param {Triangle} triangle - The triangle to copy.
|
|
152
|
-
* @return {Triangle} A reference to this triangle.
|
|
153
|
-
*/
|
|
154
|
-
copy(t) {
|
|
155
|
-
return this.a.copy(t.a), this.b.copy(t.b), this.c.copy(t.c), this;
|
|
156
|
-
}
|
|
157
|
-
/**
|
|
158
|
-
* Computes the area of the triangle.
|
|
159
|
-
*
|
|
160
|
-
* @return {number} The triangle's area.
|
|
161
|
-
*/
|
|
162
|
-
getArea() {
|
|
163
|
-
return x.subVectors(this.c, this.b), B.subVectors(this.a, this.b), x.cross(B).length() * 0.5;
|
|
164
|
-
}
|
|
165
|
-
/**
|
|
166
|
-
* Computes the midpoint of the triangle.
|
|
167
|
-
*
|
|
168
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
169
|
-
* @return {Vector3} The triangle's midpoint.
|
|
170
|
-
*/
|
|
171
|
-
getMidpoint(t) {
|
|
172
|
-
return t.addVectors(this.a, this.b).add(this.c).multiplyScalar(1 / 3);
|
|
173
|
-
}
|
|
174
|
-
/**
|
|
175
|
-
* Computes the normal of the triangle.
|
|
176
|
-
*
|
|
177
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
178
|
-
* @return {Vector3} The triangle's normal.
|
|
179
|
-
*/
|
|
180
|
-
getNormal(t) {
|
|
181
|
-
return v.getNormal(this.a, this.b, this.c, t);
|
|
182
|
-
}
|
|
183
|
-
/**
|
|
184
|
-
* Computes a plane the triangle lies within.
|
|
185
|
-
*
|
|
186
|
-
* @param {Plane} target - The target vector that is used to store the method's result.
|
|
187
|
-
* @return {Plane} The plane the triangle lies within.
|
|
188
|
-
*/
|
|
189
|
-
getPlane(t) {
|
|
190
|
-
return t.setFromCoplanarPoints(this.a, this.b, this.c);
|
|
191
|
-
}
|
|
192
|
-
/**
|
|
193
|
-
* Computes a barycentric coordinates from the given vector.
|
|
194
|
-
* Returns `null` if the triangle is degenerate.
|
|
195
|
-
*
|
|
196
|
-
* @param {Vector3} point - A point in 3D space.
|
|
197
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
198
|
-
* @return {?Vector3} The barycentric coordinates for the given point
|
|
199
|
-
*/
|
|
200
|
-
getBarycoord(t, e) {
|
|
201
|
-
return v.getBarycoord(t, this.a, this.b, this.c, e);
|
|
202
|
-
}
|
|
203
|
-
/**
|
|
204
|
-
* Computes the value barycentrically interpolated for the given point on the
|
|
205
|
-
* triangle. Returns `null` if the triangle is degenerate.
|
|
206
|
-
*
|
|
207
|
-
* @param {Vector3} point - Position of interpolated point.
|
|
208
|
-
* @param {Vector3} v1 - Value to interpolate of first vertex.
|
|
209
|
-
* @param {Vector3} v2 - Value to interpolate of second vertex.
|
|
210
|
-
* @param {Vector3} v3 - Value to interpolate of third vertex.
|
|
211
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
212
|
-
* @return {?Vector3} The interpolated value.
|
|
213
|
-
*/
|
|
214
|
-
getInterpolation(t, e, i, s, n) {
|
|
215
|
-
return v.getInterpolation(t, this.a, this.b, this.c, e, i, s, n);
|
|
216
|
-
}
|
|
217
|
-
/**
|
|
218
|
-
* Returns `true` if the given point, when projected onto the plane of the
|
|
219
|
-
* triangle, lies within the triangle.
|
|
220
|
-
*
|
|
221
|
-
* @param {Vector3} point - The point in 3D space to test.
|
|
222
|
-
* @return {boolean} Whether the given point, when projected onto the plane of the
|
|
223
|
-
* triangle, lies within the triangle or not.
|
|
224
|
-
*/
|
|
225
|
-
containsPoint(t) {
|
|
226
|
-
return v.containsPoint(t, this.a, this.b, this.c);
|
|
227
|
-
}
|
|
228
|
-
/**
|
|
229
|
-
* Returns `true` if the triangle is oriented towards the given direction.
|
|
230
|
-
*
|
|
231
|
-
* @param {Vector3} direction - The (normalized) direction vector.
|
|
232
|
-
* @return {boolean} Whether the triangle is oriented towards the given direction or not.
|
|
233
|
-
*/
|
|
234
|
-
isFrontFacing(t) {
|
|
235
|
-
return v.isFrontFacing(this.a, this.b, this.c, t);
|
|
236
|
-
}
|
|
237
|
-
/**
|
|
238
|
-
* Returns `true` if this triangle intersects with the given box.
|
|
239
|
-
*
|
|
240
|
-
* @param {Box3} box - The box to intersect.
|
|
241
|
-
* @return {boolean} Whether this triangle intersects with the given box or not.
|
|
242
|
-
*/
|
|
243
|
-
intersectsBox(t) {
|
|
244
|
-
return t.intersectsTriangle(this);
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* Returns the closest point on the triangle to the given point.
|
|
248
|
-
*
|
|
249
|
-
* @param {Vector3} p - The point to compute the closest point for.
|
|
250
|
-
* @param {Vector3} target - The target vector that is used to store the method's result.
|
|
251
|
-
* @return {Vector3} The closest point on the triangle.
|
|
252
|
-
*/
|
|
253
|
-
closestPointToPoint(t, e) {
|
|
254
|
-
const i = this.a, s = this.b, n = this.c;
|
|
255
|
-
let a, o;
|
|
256
|
-
T.subVectors(s, i), S.subVectors(n, i), N.subVectors(t, i);
|
|
257
|
-
const r = T.dot(N), u = S.dot(N);
|
|
258
|
-
if (r <= 0 && u <= 0)
|
|
259
|
-
return e.copy(i);
|
|
260
|
-
C.subVectors(t, s);
|
|
261
|
-
const c = T.dot(C), l = S.dot(C);
|
|
262
|
-
if (c >= 0 && l <= c)
|
|
263
|
-
return e.copy(s);
|
|
264
|
-
const M = r * l - c * u;
|
|
265
|
-
if (M <= 0 && r >= 0 && c <= 0)
|
|
266
|
-
return a = r / (r - c), e.copy(i).addScaledVector(T, a);
|
|
267
|
-
G.subVectors(t, n);
|
|
268
|
-
const d = T.dot(G), p = S.dot(G);
|
|
269
|
-
if (p >= 0 && d <= p)
|
|
270
|
-
return e.copy(n);
|
|
271
|
-
const w = d * u - r * p;
|
|
272
|
-
if (w <= 0 && u >= 0 && p <= 0)
|
|
273
|
-
return o = u / (u - p), e.copy(i).addScaledVector(S, o);
|
|
274
|
-
const h = c * p - d * l;
|
|
275
|
-
if (h <= 0 && l - c >= 0 && d - p >= 0)
|
|
276
|
-
return $.subVectors(n, s), o = (l - c) / (l - c + (d - p)), e.copy(s).addScaledVector($, o);
|
|
277
|
-
const m = 1 / (h + w + M);
|
|
278
|
-
return a = w * m, o = M * m, e.copy(i).addScaledVector(T, a).addScaledVector(S, o);
|
|
279
|
-
}
|
|
280
|
-
/**
|
|
281
|
-
* Returns `true` if this triangle is equal with the given one.
|
|
282
|
-
*
|
|
283
|
-
* @param {Triangle} triangle - The triangle to test for equality.
|
|
284
|
-
* @return {boolean} Whether this triangle is equal with the given one.
|
|
285
|
-
*/
|
|
286
|
-
equals(t) {
|
|
287
|
-
return t.a.equals(this.a) && t.b.equals(this.b) && t.c.equals(this.c);
|
|
288
|
-
}
|
|
289
|
-
}
|
|
290
|
-
class it extends ut {
|
|
291
|
-
/**
|
|
292
|
-
* Constructs a new mesh basic material.
|
|
293
|
-
*
|
|
294
|
-
* @param {Object} [parameters] - An object with one or more properties
|
|
295
|
-
* defining the material's appearance. Any property of the material
|
|
296
|
-
* (including any property from inherited materials) can be passed
|
|
297
|
-
* in here. Color values can be passed any type of value accepted
|
|
298
|
-
* by {@link Color#set}.
|
|
299
|
-
*/
|
|
300
|
-
constructor(t) {
|
|
301
|
-
super(), this.isMeshBasicMaterial = !0, this.type = "MeshBasicMaterial", this.color = new pt(16777215), this.map = null, this.lightMap = null, this.lightMapIntensity = 1, this.aoMap = null, this.aoMapIntensity = 1, this.specularMap = null, this.alphaMap = null, this.envMap = null, this.envMapRotation = new nt(), this.combine = ot, this.reflectivity = 1, this.refractionRatio = 0.98, this.wireframe = !1, this.wireframeLinewidth = 1, this.wireframeLinecap = "round", this.wireframeLinejoin = "round", this.fog = !0, this.setValues(t);
|
|
302
|
-
}
|
|
303
|
-
copy(t) {
|
|
304
|
-
return super.copy(t), this.color.copy(t.color), this.map = t.map, this.lightMap = t.lightMap, this.lightMapIntensity = t.lightMapIntensity, this.aoMap = t.aoMap, this.aoMapIntensity = t.aoMapIntensity, this.specularMap = t.specularMap, this.alphaMap = t.alphaMap, this.envMap = t.envMap, this.envMapRotation.copy(t.envMapRotation), this.combine = t.combine, this.reflectivity = t.reflectivity, this.refractionRatio = t.refractionRatio, this.wireframe = t.wireframe, this.wireframeLinewidth = t.wireframeLinewidth, this.wireframeLinecap = t.wireframeLinecap, this.wireframeLinejoin = t.wireframeLinejoin, this.fog = t.fog, this;
|
|
305
|
-
}
|
|
306
|
-
}
|
|
307
|
-
const K = /* @__PURE__ */ new ct(), _ = /* @__PURE__ */ new ft(), R = /* @__PURE__ */ new at(), tt = /* @__PURE__ */ new f(), F = /* @__PURE__ */ new f(), j = /* @__PURE__ */ new f(), q = /* @__PURE__ */ new f(), Q = /* @__PURE__ */ new f(), z = /* @__PURE__ */ new f(), et = /* @__PURE__ */ new f(), D = /* @__PURE__ */ new f();
|
|
308
|
-
class dt extends rt {
|
|
309
|
-
/**
|
|
310
|
-
* Constructs a new mesh.
|
|
311
|
-
*
|
|
312
|
-
* @param {BufferGeometry} [geometry] - The mesh geometry.
|
|
313
|
-
* @param {Material|Array<Material>} [material] - The mesh material.
|
|
314
|
-
*/
|
|
315
|
-
constructor(t = new st(), e = new it()) {
|
|
316
|
-
super(), this.isMesh = !0, this.type = "Mesh", this.geometry = t, this.material = e, this.morphTargetDictionary = void 0, this.morphTargetInfluences = void 0, this.count = 1, this.updateMorphTargets();
|
|
317
|
-
}
|
|
318
|
-
copy(t, e) {
|
|
319
|
-
return super.copy(t, e), t.morphTargetInfluences !== void 0 && (this.morphTargetInfluences = t.morphTargetInfluences.slice()), t.morphTargetDictionary !== void 0 && (this.morphTargetDictionary = Object.assign({}, t.morphTargetDictionary)), this.material = Array.isArray(t.material) ? t.material.slice() : t.material, this.geometry = t.geometry, this;
|
|
320
|
-
}
|
|
321
|
-
/**
|
|
322
|
-
* Sets the values of {@link Mesh#morphTargetDictionary} and {@link Mesh#morphTargetInfluences}
|
|
323
|
-
* to make sure existing morph targets can influence this 3D object.
|
|
324
|
-
*/
|
|
325
|
-
updateMorphTargets() {
|
|
326
|
-
const e = this.geometry.morphAttributes, i = Object.keys(e);
|
|
327
|
-
if (i.length > 0) {
|
|
328
|
-
const s = e[i[0]];
|
|
329
|
-
if (s !== void 0) {
|
|
330
|
-
this.morphTargetInfluences = [], this.morphTargetDictionary = {};
|
|
331
|
-
for (let n = 0, a = s.length; n < a; n++) {
|
|
332
|
-
const o = s[n].name || String(n);
|
|
333
|
-
this.morphTargetInfluences.push(0), this.morphTargetDictionary[o] = n;
|
|
334
|
-
}
|
|
335
|
-
}
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* Returns the local-space position of the vertex at the given index, taking into
|
|
340
|
-
* account the current animation state of both morph targets and skinning.
|
|
341
|
-
*
|
|
342
|
-
* @param {number} index - The vertex index.
|
|
343
|
-
* @param {Vector3} target - The target object that is used to store the method's result.
|
|
344
|
-
* @return {Vector3} The vertex position in local space.
|
|
345
|
-
*/
|
|
346
|
-
getVertexPosition(t, e) {
|
|
347
|
-
const i = this.geometry, s = i.attributes.position, n = i.morphAttributes.position, a = i.morphTargetsRelative;
|
|
348
|
-
e.fromBufferAttribute(s, t);
|
|
349
|
-
const o = this.morphTargetInfluences;
|
|
350
|
-
if (n && o) {
|
|
351
|
-
z.set(0, 0, 0);
|
|
352
|
-
for (let r = 0, u = n.length; r < u; r++) {
|
|
353
|
-
const c = o[r], l = n[r];
|
|
354
|
-
c !== 0 && (Q.fromBufferAttribute(l, t), a ? z.addScaledVector(Q, c) : z.addScaledVector(Q.sub(e), c));
|
|
355
|
-
}
|
|
356
|
-
e.add(z);
|
|
357
|
-
}
|
|
358
|
-
return e;
|
|
359
|
-
}
|
|
360
|
-
/**
|
|
361
|
-
* Computes intersection points between a casted ray and this line.
|
|
362
|
-
*
|
|
363
|
-
* @param {Raycaster} raycaster - The raycaster.
|
|
364
|
-
* @param {Array<Object>} intersects - The target array that holds the intersection points.
|
|
365
|
-
*/
|
|
366
|
-
raycast(t, e) {
|
|
367
|
-
const i = this.geometry, s = this.material, n = this.matrixWorld;
|
|
368
|
-
s !== void 0 && (i.boundingSphere === null && i.computeBoundingSphere(), R.copy(i.boundingSphere), R.applyMatrix4(n), _.copy(t.ray).recast(t.near), !(R.containsPoint(_.origin) === !1 && (_.intersectSphere(R, tt) === null || _.origin.distanceToSquared(tt) > (t.far - t.near) ** 2)) && (K.copy(n).invert(), _.copy(t.ray).applyMatrix4(K), !(i.boundingBox !== null && _.intersectsBox(i.boundingBox) === !1) && this._computeIntersections(t, e, _)));
|
|
369
|
-
}
|
|
370
|
-
_computeIntersections(t, e, i) {
|
|
371
|
-
let s;
|
|
372
|
-
const n = this.geometry, a = this.material, o = n.index, r = n.attributes.position, u = n.attributes.uv, c = n.attributes.uv1, l = n.attributes.normal, M = n.groups, d = n.drawRange;
|
|
373
|
-
if (o !== null)
|
|
374
|
-
if (Array.isArray(a))
|
|
375
|
-
for (let p = 0, w = M.length; p < w; p++) {
|
|
376
|
-
const h = M[p], m = a[h.materialIndex], b = Math.max(h.start, d.start), g = Math.min(o.count, Math.min(h.start + h.count, d.start + d.count));
|
|
377
|
-
for (let y = b, A = g; y < A; y += 3) {
|
|
378
|
-
const V = o.getX(y), L = o.getX(y + 1), W = o.getX(y + 2);
|
|
379
|
-
s = O(this, m, t, i, u, c, l, V, L, W), s && (s.faceIndex = Math.floor(y / 3), s.face.materialIndex = h.materialIndex, e.push(s));
|
|
380
|
-
}
|
|
381
|
-
}
|
|
382
|
-
else {
|
|
383
|
-
const p = Math.max(0, d.start), w = Math.min(o.count, d.start + d.count);
|
|
384
|
-
for (let h = p, m = w; h < m; h += 3) {
|
|
385
|
-
const b = o.getX(h), g = o.getX(h + 1), y = o.getX(h + 2);
|
|
386
|
-
s = O(this, a, t, i, u, c, l, b, g, y), s && (s.faceIndex = Math.floor(h / 3), e.push(s));
|
|
387
|
-
}
|
|
388
|
-
}
|
|
389
|
-
else if (r !== void 0)
|
|
390
|
-
if (Array.isArray(a))
|
|
391
|
-
for (let p = 0, w = M.length; p < w; p++) {
|
|
392
|
-
const h = M[p], m = a[h.materialIndex], b = Math.max(h.start, d.start), g = Math.min(r.count, Math.min(h.start + h.count, d.start + d.count));
|
|
393
|
-
for (let y = b, A = g; y < A; y += 3) {
|
|
394
|
-
const V = y, L = y + 1, W = y + 2;
|
|
395
|
-
s = O(this, m, t, i, u, c, l, V, L, W), s && (s.faceIndex = Math.floor(y / 3), s.face.materialIndex = h.materialIndex, e.push(s));
|
|
396
|
-
}
|
|
397
|
-
}
|
|
398
|
-
else {
|
|
399
|
-
const p = Math.max(0, d.start), w = Math.min(r.count, d.start + d.count);
|
|
400
|
-
for (let h = p, m = w; h < m; h += 3) {
|
|
401
|
-
const b = h, g = h + 1, y = h + 2;
|
|
402
|
-
s = O(this, a, t, i, u, c, l, b, g, y), s && (s.faceIndex = Math.floor(h / 3), e.push(s));
|
|
403
|
-
}
|
|
404
|
-
}
|
|
405
|
-
}
|
|
406
|
-
}
|
|
407
|
-
function mt(I, t, e, i, s, n, a, o) {
|
|
408
|
-
let r;
|
|
409
|
-
if (t.side === ht ? r = i.intersectTriangle(a, n, s, !0, o) : r = i.intersectTriangle(s, n, a, t.side === lt, o), r === null) return null;
|
|
410
|
-
D.copy(o), D.applyMatrix4(I.matrixWorld);
|
|
411
|
-
const u = e.ray.origin.distanceTo(D);
|
|
412
|
-
return u < e.near || u > e.far ? null : {
|
|
413
|
-
distance: u,
|
|
414
|
-
point: D.clone(),
|
|
415
|
-
object: I
|
|
416
|
-
};
|
|
417
|
-
}
|
|
418
|
-
function O(I, t, e, i, s, n, a, o, r, u) {
|
|
419
|
-
I.getVertexPosition(o, F), I.getVertexPosition(r, j), I.getVertexPosition(u, q);
|
|
420
|
-
const c = mt(I, t, e, i, F, j, q, et);
|
|
421
|
-
if (c) {
|
|
422
|
-
const l = new f();
|
|
423
|
-
v.getBarycoord(et, F, j, q, l), s && (c.uv = v.getInterpolatedAttribute(s, o, r, u, l, new Z())), n && (c.uv1 = v.getInterpolatedAttribute(n, o, r, u, l, new Z())), a && (c.normal = v.getInterpolatedAttribute(a, o, r, u, l, new f()), c.normal.dot(i.direction) > 0 && c.normal.multiplyScalar(-1));
|
|
424
|
-
const M = {
|
|
425
|
-
a: o,
|
|
426
|
-
b: r,
|
|
427
|
-
c: u,
|
|
428
|
-
normal: new f(),
|
|
429
|
-
materialIndex: 0
|
|
430
|
-
};
|
|
431
|
-
v.getNormal(F, j, q, M.normal), c.face = M, c.barycoord = l;
|
|
432
|
-
}
|
|
433
|
-
return c;
|
|
434
|
-
}
|
|
435
|
-
class Y extends st {
|
|
436
|
-
/**
|
|
437
|
-
* Constructs a new sphere geometry.
|
|
438
|
-
*
|
|
439
|
-
* @param {number} [radius=1] - The sphere radius.
|
|
440
|
-
* @param {number} [widthSegments=32] - The number of horizontal segments. Minimum value is `3`.
|
|
441
|
-
* @param {number} [heightSegments=16] - The number of vertical segments. Minimum value is `2`.
|
|
442
|
-
* @param {number} [phiStart=0] - The horizontal starting angle in radians.
|
|
443
|
-
* @param {number} [phiLength=Math.PI*2] - The horizontal sweep angle size.
|
|
444
|
-
* @param {number} [thetaStart=0] - The vertical starting angle in radians.
|
|
445
|
-
* @param {number} [thetaLength=Math.PI] - The vertical sweep angle size.
|
|
446
|
-
*/
|
|
447
|
-
constructor(t = 1, e = 32, i = 16, s = 0, n = Math.PI * 2, a = 0, o = Math.PI) {
|
|
448
|
-
super(), this.type = "SphereGeometry", this.parameters = {
|
|
449
|
-
radius: t,
|
|
450
|
-
widthSegments: e,
|
|
451
|
-
heightSegments: i,
|
|
452
|
-
phiStart: s,
|
|
453
|
-
phiLength: n,
|
|
454
|
-
thetaStart: a,
|
|
455
|
-
thetaLength: o
|
|
456
|
-
}, e = Math.max(3, Math.floor(e)), i = Math.max(2, Math.floor(i));
|
|
457
|
-
const r = Math.min(a + o, Math.PI);
|
|
458
|
-
let u = 0;
|
|
459
|
-
const c = [], l = new f(), M = new f(), d = [], p = [], w = [], h = [];
|
|
460
|
-
for (let m = 0; m <= i; m++) {
|
|
461
|
-
const b = [], g = m / i;
|
|
462
|
-
let y = 0;
|
|
463
|
-
m === 0 && a === 0 ? y = 0.5 / e : m === i && r === Math.PI && (y = -0.5 / e);
|
|
464
|
-
for (let A = 0; A <= e; A++) {
|
|
465
|
-
const V = A / e;
|
|
466
|
-
l.x = -t * Math.cos(s + V * n) * Math.sin(a + g * o), l.y = t * Math.cos(a + g * o), l.z = t * Math.sin(s + V * n) * Math.sin(a + g * o), p.push(l.x, l.y, l.z), M.copy(l).normalize(), w.push(M.x, M.y, M.z), h.push(V + y, 1 - g), b.push(u++);
|
|
467
|
-
}
|
|
468
|
-
c.push(b);
|
|
469
|
-
}
|
|
470
|
-
for (let m = 0; m < i; m++)
|
|
471
|
-
for (let b = 0; b < e; b++) {
|
|
472
|
-
const g = c[m][b + 1], y = c[m][b], A = c[m + 1][b], V = c[m + 1][b + 1];
|
|
473
|
-
(m !== 0 || a > 0) && d.push(g, y, V), (m !== i - 1 || r < Math.PI) && d.push(y, A, V);
|
|
474
|
-
}
|
|
475
|
-
this.setIndex(d), this.setAttribute("position", new X(p, 3)), this.setAttribute("normal", new X(w, 3)), this.setAttribute("uv", new X(h, 2));
|
|
476
|
-
}
|
|
477
|
-
copy(t) {
|
|
478
|
-
return super.copy(t), this.parameters = Object.assign({}, t.parameters), this;
|
|
479
|
-
}
|
|
480
|
-
/**
|
|
481
|
-
* Factory method for creating an instance of this class from the given
|
|
482
|
-
* JSON object.
|
|
483
|
-
*
|
|
484
|
-
* @param {Object} data - A JSON object representing the serialized geometry.
|
|
485
|
-
* @return {SphereGeometry} A new instance.
|
|
486
|
-
*/
|
|
487
|
-
static fromJSON(t) {
|
|
488
|
-
return new Y(t.radius, t.widthSegments, t.heightSegments, t.phiStart, t.phiLength, t.thetaStart, t.thetaLength);
|
|
489
|
-
}
|
|
490
|
-
}
|
|
491
|
-
class bt extends dt {
|
|
492
|
-
/**
|
|
493
|
-
* Constructs a new point light helper.
|
|
494
|
-
*
|
|
495
|
-
* @param {PointLight} light - The light to be visualized.
|
|
496
|
-
* @param {number} [sphereSize=1] - The size of the sphere helper.
|
|
497
|
-
* @param {number|Color|string} [color] - The helper's color. If not set, the helper will take
|
|
498
|
-
* the color of the light.
|
|
499
|
-
*/
|
|
500
|
-
constructor(t, e, i) {
|
|
501
|
-
const s = new Y(e, 4, 2), n = new it({ wireframe: !0, fog: !1, toneMapped: !1 });
|
|
502
|
-
super(s, n), this.light = t, this.color = i, this.type = "PointLightHelper", this.matrix = this.light.matrixWorld, this.matrixAutoUpdate = !1, this.update();
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Frees the GPU-related resources allocated by this instance. Call this
|
|
506
|
-
* method whenever this instance is no longer used in your app.
|
|
507
|
-
*/
|
|
508
|
-
dispose() {
|
|
509
|
-
this.geometry.dispose(), this.material.dispose();
|
|
510
|
-
}
|
|
511
|
-
/**
|
|
512
|
-
* Updates the helper to match the position of the
|
|
513
|
-
* light being visualized.
|
|
514
|
-
*/
|
|
515
|
-
update() {
|
|
516
|
-
this.light.updateWorldMatrix(!0, !1), this.color !== void 0 ? this.material.color.set(this.color) : this.material.color.copy(this.light.color);
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
export {
|
|
520
|
-
bt as PointLightHelper
|
|
521
|
-
};
|
|
522
|
-
//# sourceMappingURL=PointLightHelper-ICWLqwjK.mjs.map
|