@shapediver/viewer.data-engine.material-database-engine 3.13.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/LICENSE +73 -0
- package/README.md +3 -0
- package/dist/MaterialDatabaseEngine.d.ts +25 -0
- package/dist/MaterialDatabaseEngine.d.ts.map +1 -0
- package/dist/MaterialDatabaseEngine.js +124 -0
- package/dist/MaterialDatabaseEngine.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +10 -0
- package/dist/index.js.map +1 -0
- package/package.json +50 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
Required Notice: Copyright 2025 ShapeDiver GmbH (https://www.shapediver.com)
|
|
2
|
+
|
|
3
|
+
https://polyformproject.org/licenses/noncommercial/1.0.0
|
|
4
|
+
|
|
5
|
+
Acceptance
|
|
6
|
+
|
|
7
|
+
In order to get any license under these terms, you must agree to them as both strict obligations and conditions to all your licenses.
|
|
8
|
+
|
|
9
|
+
Copyright License
|
|
10
|
+
|
|
11
|
+
The licensor grants you a copyright license for the software to do everything you might do with the software that would otherwise infringe the licensor’s copyright in it for any permitted purpose. However, you may only distribute the software according to Distribution License and make changes or new works based on the software according to Changes and New Works License.
|
|
12
|
+
|
|
13
|
+
Distribution License
|
|
14
|
+
|
|
15
|
+
The licensor grants you an additional copyright license to distribute copies of the software. Your license to distribute covers distributing the software with changes and new works permitted by Changes and New Works License.
|
|
16
|
+
|
|
17
|
+
Notices
|
|
18
|
+
|
|
19
|
+
You must ensure that anyone who gets a copy of any part of the software from you also gets a copy of these terms or the URL for them above, as well as copies of any plain-text lines beginning with Required Notice: that the licensor provided with the software. For example:
|
|
20
|
+
|
|
21
|
+
Required Notice: Copyright 2025 ShapeDiver GmbH (https://www.shapediver.com)
|
|
22
|
+
|
|
23
|
+
Changes and New Works License
|
|
24
|
+
|
|
25
|
+
The licensor grants you an additional copyright license to make changes and new works based on the software for any permitted purpose.
|
|
26
|
+
|
|
27
|
+
Patent License
|
|
28
|
+
|
|
29
|
+
The licensor grants you a patent license for the software that covers patent claims the licensor can license, or becomes able to license, that you would infringe by using the software.
|
|
30
|
+
|
|
31
|
+
Noncommercial Purposes
|
|
32
|
+
|
|
33
|
+
Any noncommercial purpose is a permitted purpose.
|
|
34
|
+
|
|
35
|
+
Personal Uses
|
|
36
|
+
|
|
37
|
+
Personal use for research, experiment, and testing for the benefit of public knowledge, personal study, private entertainment, hobby projects, amateur pursuits, or religious observance, without any anticipated commercial application, is use for a permitted purpose.
|
|
38
|
+
|
|
39
|
+
Noncommercial Organizations
|
|
40
|
+
|
|
41
|
+
Use by any charitable organization, educational institution, public research organization, public safety or health organization, environmental protection organization, or government institution is use for a permitted purpose regardless of the source of funding or obligations resulting from the funding.
|
|
42
|
+
|
|
43
|
+
Fair Use
|
|
44
|
+
|
|
45
|
+
You may have “fair use” rights for the software under the law. These terms do not limit them.
|
|
46
|
+
|
|
47
|
+
No Other Rights
|
|
48
|
+
|
|
49
|
+
These terms do not allow you to sublicense or transfer any of your licenses to anyone else, or prevent the licensor from granting licenses to anyone else. These terms do not imply any other licenses.
|
|
50
|
+
|
|
51
|
+
Patent Defense
|
|
52
|
+
|
|
53
|
+
If you make any written claim that the software infringes or contributes to infringement of any patent, your patent license for the software granted under these terms ends immediately. If your company makes such a claim, your patent license ends immediately for work on behalf of your company.
|
|
54
|
+
|
|
55
|
+
Violations
|
|
56
|
+
|
|
57
|
+
The first time you are notified in writing that you have violated any of these terms, or done anything with the software not covered by your licenses, your licenses can nonetheless continue if you come into full compliance with these terms, and take practical steps to correct past violations, within 32 days of receiving notice. Otherwise, all your licenses end immediately.
|
|
58
|
+
|
|
59
|
+
No Liability
|
|
60
|
+
|
|
61
|
+
As far as the law allows, the software comes as is, without any warranty or condition, and the licensor will not be liable to you for any damages arising out of these terms or the use or nature of the software, under any kind of legal claim.
|
|
62
|
+
|
|
63
|
+
Definitions
|
|
64
|
+
|
|
65
|
+
The licensor is the individual or entity offering these terms, and the software is the software the licensor makes available under these terms.
|
|
66
|
+
|
|
67
|
+
You refers to the individual or entity agreeing to these terms.
|
|
68
|
+
|
|
69
|
+
Your company is any legal entity, sole proprietorship, or other kind of organization that you work for, plus all organizations that have control over, are under the control of, or are under common control with that organization. Control means ownership of substantially all the assets of an entity, or the power to direct its management and policies by vote, contract, or otherwise. Control can be direct or indirect.
|
|
70
|
+
|
|
71
|
+
Your licenses are all the licenses granted to you for the software under these terms.
|
|
72
|
+
|
|
73
|
+
Use means anything you do with the software requiring one of your licenses.
|
package/README.md
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { ResOutputContent } from "@shapediver/sdk.geometry-api-sdk-v2";
|
|
2
|
+
import { ITreeNode } from "@shapediver/viewer.shared.node-tree";
|
|
3
|
+
export declare class MaterialDatabaseEngine {
|
|
4
|
+
private readonly _converter;
|
|
5
|
+
private readonly _httpClient;
|
|
6
|
+
private readonly _logger;
|
|
7
|
+
private readonly _materialDatabase;
|
|
8
|
+
private readonly _materialEngine;
|
|
9
|
+
private static _instance;
|
|
10
|
+
static get instance(): MaterialDatabaseEngine;
|
|
11
|
+
/**
|
|
12
|
+
* Assigns materials from the material database to the geometry data in the given node.
|
|
13
|
+
*
|
|
14
|
+
* @param node the scene graph node
|
|
15
|
+
*/
|
|
16
|
+
assignMaterialFromDatabase(node: ITreeNode): Promise<void>;
|
|
17
|
+
/**
|
|
18
|
+
* Load the material database from the given output content.
|
|
19
|
+
*
|
|
20
|
+
* @param content the output content
|
|
21
|
+
* @returns a scene graph node placeholder for the material database
|
|
22
|
+
*/
|
|
23
|
+
loadContent(content: ResOutputContent): Promise<ITreeNode>;
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=MaterialDatabaseEngine.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialDatabaseEngine.d.ts","sourceRoot":"","sources":["../src/MaterialDatabaseEngine.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,qCAAqC,CAAC;AAErE,OAAO,EAAC,SAAS,EAAW,MAAM,qCAAqC,CAAC;AAaxE,qBAAa,sBAAsB;IAClC,OAAO,CAAC,QAAQ,CAAC,UAAU,CAAiC;IAC5D,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAmC;IAC/D,OAAO,CAAC,QAAQ,CAAC,OAAO,CAA2B;IACnD,OAAO,CAAC,QAAQ,CAAC,iBAAiB,CAO3B;IACP,OAAO,CAAC,QAAQ,CAAC,eAAe,CAA2C;IAE3E,OAAO,CAAC,MAAM,CAAC,SAAS,CAAyB;IAEjD,WAAkB,QAAQ,2BAEzB;IAED;;;;OAIG;IACU,0BAA0B,CAAC,IAAI,EAAE,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC;IAmEvE;;;;;OAKG;IACU,WAAW,CAAC,OAAO,EAAE,gBAAgB,GAAG,OAAO,CAAC,SAAS,CAAC;CA4BvE"}
|
|
@@ -0,0 +1,124 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.MaterialDatabaseEngine = void 0;
|
|
13
|
+
const viewer_data_engine_material_engine_1 = require("@shapediver/viewer.data-engine.material-engine");
|
|
14
|
+
const viewer_shared_node_tree_1 = require("@shapediver/viewer.shared.node-tree");
|
|
15
|
+
const viewer_shared_services_1 = require("@shapediver/viewer.shared.services");
|
|
16
|
+
const viewer_shared_types_1 = require("@shapediver/viewer.shared.types");
|
|
17
|
+
class MaterialDatabaseEngine {
|
|
18
|
+
constructor() {
|
|
19
|
+
this._converter = viewer_shared_services_1.Converter.instance;
|
|
20
|
+
this._httpClient = viewer_shared_services_1.HttpClient.instance;
|
|
21
|
+
this._logger = viewer_shared_services_1.Logger.instance;
|
|
22
|
+
this._materialDatabase = {};
|
|
23
|
+
this._materialEngine = viewer_data_engine_material_engine_1.MaterialEngine.instance;
|
|
24
|
+
}
|
|
25
|
+
static get instance() {
|
|
26
|
+
return this._instance || (this._instance = new this());
|
|
27
|
+
}
|
|
28
|
+
/**
|
|
29
|
+
* Assigns materials from the material database to the geometry data in the given node.
|
|
30
|
+
*
|
|
31
|
+
* @param node the scene graph node
|
|
32
|
+
*/
|
|
33
|
+
assignMaterialFromDatabase(node) {
|
|
34
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
35
|
+
if (Object.keys(this._materialDatabase).length === 0)
|
|
36
|
+
return;
|
|
37
|
+
// gather the materials that still need to be created
|
|
38
|
+
// and the corresponding geometry data to assign the created material to
|
|
39
|
+
const materialsToCreate = {};
|
|
40
|
+
node.traverse((n) => {
|
|
41
|
+
var _a;
|
|
42
|
+
// check if the name of the material is corresponding to a material in the material database output
|
|
43
|
+
for (let i = 0; i < n.data.length; i++) {
|
|
44
|
+
const data = n.data[i];
|
|
45
|
+
if (data instanceof viewer_shared_types_1.GeometryData) {
|
|
46
|
+
const materialName = (_a = data.material) === null || _a === void 0 ? void 0 : _a.name;
|
|
47
|
+
if (materialName) {
|
|
48
|
+
if (this._materialDatabase[materialName]) {
|
|
49
|
+
if (!this._materialDatabase[materialName].material) {
|
|
50
|
+
if (!materialsToCreate[materialName])
|
|
51
|
+
materialsToCreate[materialName] = [];
|
|
52
|
+
materialsToCreate[materialName].push(data);
|
|
53
|
+
}
|
|
54
|
+
else if (data.material !==
|
|
55
|
+
this._materialDatabase[materialName].material) {
|
|
56
|
+
data.material =
|
|
57
|
+
this._materialDatabase[materialName]
|
|
58
|
+
.material || null;
|
|
59
|
+
// trigger an update of the geometry and the node
|
|
60
|
+
data.updateVersion();
|
|
61
|
+
node.updateVersion();
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
});
|
|
68
|
+
// create the materials that are missing
|
|
69
|
+
const materialNames = Object.keys(materialsToCreate);
|
|
70
|
+
if (materialNames.length === 0)
|
|
71
|
+
return;
|
|
72
|
+
const promises = [];
|
|
73
|
+
for (const materialName of materialNames) {
|
|
74
|
+
promises.push(this._materialEngine.createMaterialDataFromDefinition(this._materialDatabase[materialName].definition));
|
|
75
|
+
}
|
|
76
|
+
// create the materials
|
|
77
|
+
const materials = yield Promise.all(promises);
|
|
78
|
+
// assign the created materials to the corresponding geometry data
|
|
79
|
+
for (let i = 0; i < materialNames.length; i++) {
|
|
80
|
+
const material = materials[i];
|
|
81
|
+
material.name = materialNames[i];
|
|
82
|
+
this._materialDatabase[material.name].material = material;
|
|
83
|
+
const geometryData = materialsToCreate[material.name];
|
|
84
|
+
for (const data of geometryData) {
|
|
85
|
+
data.material = material;
|
|
86
|
+
data.updateVersion();
|
|
87
|
+
node.updateVersion();
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
/**
|
|
93
|
+
* Load the material database from the given output content.
|
|
94
|
+
*
|
|
95
|
+
* @param content the output content
|
|
96
|
+
* @returns a scene graph node placeholder for the material database
|
|
97
|
+
*/
|
|
98
|
+
loadContent(content) {
|
|
99
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
100
|
+
const materialDatabaseData = content.data;
|
|
101
|
+
const materialDatabase = new viewer_shared_node_tree_1.TreeNode("materialDatabase");
|
|
102
|
+
if (!materialDatabaseData)
|
|
103
|
+
return materialDatabase;
|
|
104
|
+
for (const key in materialDatabaseData) {
|
|
105
|
+
if (this._materialDatabase[key]) {
|
|
106
|
+
if (JSON.stringify(this._materialDatabase[key].definition) !==
|
|
107
|
+
JSON.stringify(materialDatabaseData[key])) {
|
|
108
|
+
this._materialDatabase[key] = {
|
|
109
|
+
definition: materialDatabaseData[key],
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
this._materialDatabase[key] = {
|
|
115
|
+
definition: materialDatabaseData[key],
|
|
116
|
+
};
|
|
117
|
+
}
|
|
118
|
+
}
|
|
119
|
+
return materialDatabase;
|
|
120
|
+
});
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
exports.MaterialDatabaseEngine = MaterialDatabaseEngine;
|
|
124
|
+
//# sourceMappingURL=MaterialDatabaseEngine.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MaterialDatabaseEngine.js","sourceRoot":"","sources":["../src/MaterialDatabaseEngine.ts"],"names":[],"mappings":";;;;;;;;;;;;AACA,uGAA8E;AAC9E,iFAAwE;AACxE,+EAI4C;AAC5C,yEAKyC;AAEzC,MAAa,sBAAsB;IAAnC;QACkB,eAAU,GAAc,kCAAS,CAAC,QAAQ,CAAC;QAC3C,gBAAW,GAAe,mCAAU,CAAC,QAAQ,CAAC;QAC9C,YAAO,GAAW,+BAAM,CAAC,QAAQ,CAAC;QAClC,sBAAiB,GAO9B,EAAE,CAAC;QACU,oBAAe,GAAmB,mDAAc,CAAC,QAAQ,CAAC;IAkH5E,CAAC;IA9GO,MAAM,KAAK,QAAQ;QACzB,OAAO,IAAI,CAAC,SAAS,IAAI,CAAC,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC,CAAC;IACxD,CAAC;IAED;;;;OAIG;IACU,0BAA0B,CAAC,IAAe;;YACtD,IAAI,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC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CAAC,iBAAiB,CAAC,GAAG,CAAC,EAAE;oBAChC,IACC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,CAAC,UAAU,CAAC;wBACtD,IAAI,CAAC,SAAS,CAAC,oBAAoB,CAAC,GAAG,CAAC,CAAC,EACxC;wBACD,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG;4BAC7B,UAAU,EAAE,oBAAoB,CAAC,GAAG,CAAC;yBACrC,CAAC;qBACF;iBACD;qBAAM;oBACN,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,GAAG;wBAC7B,UAAU,EAAE,oBAAoB,CAAC,GAAG,CAAC;qBACrC,CAAC;iBACF;aACD;YAED,OAAO,gBAAgB,CAAC;QACzB,CAAC;KAAA;CACD;AA9HD,wDA8HC"}
|
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAC,sBAAsB,EAAC,MAAM,0BAA0B,CAAC;AAEhE,OAAO,EAAC,sBAAsB,EAAC,CAAC"}
|
package/dist/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.MaterialDatabaseEngine = void 0;
|
|
4
|
+
const viewer_shared_global_access_objects_1 = require("@shapediver/viewer.shared.global-access-objects");
|
|
5
|
+
const MaterialDatabaseEngine_1 = require("./MaterialDatabaseEngine");
|
|
6
|
+
Object.defineProperty(exports, "MaterialDatabaseEngine", { enumerable: true, get: function () { return MaterialDatabaseEngine_1.MaterialDatabaseEngine; } });
|
|
7
|
+
const instance = MaterialDatabaseEngine_1.MaterialDatabaseEngine.instance;
|
|
8
|
+
viewer_shared_global_access_objects_1.GlobalAccessObjects.instance.assignMaterialFromDatabase =
|
|
9
|
+
instance.assignMaterialFromDatabase.bind(instance);
|
|
10
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,yGAAoF;AACpF,qEAAgE;AAExD,uGAFA,+CAAsB,OAEA;AAC9B,MAAM,QAAQ,GAAG,+CAAsB,CAAC,QAAQ,CAAC;AACjD,yDAAmB,CAAC,QAAQ,CAAC,0BAA0B;IACtD,QAAQ,CAAC,0BAA0B,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC"}
|
package/package.json
ADDED
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@shapediver/viewer.data-engine.material-database-engine",
|
|
3
|
+
"version": "3.13.4",
|
|
4
|
+
"description": "",
|
|
5
|
+
"keywords": [],
|
|
6
|
+
"author": "Michael Oppitz <michael@shapediver.com>",
|
|
7
|
+
"license": "polyform-noncommercial-1.0.0",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"directories": {
|
|
10
|
+
"test": "__tests__"
|
|
11
|
+
},
|
|
12
|
+
"files": [
|
|
13
|
+
"package.json",
|
|
14
|
+
"dist/",
|
|
15
|
+
"README.md",
|
|
16
|
+
"LICENSE"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"repository": {
|
|
22
|
+
"type": "git",
|
|
23
|
+
"url": "git+https://github.com/shapediver/Viewer.git"
|
|
24
|
+
},
|
|
25
|
+
"scripts": {
|
|
26
|
+
"check": "tsc --noEmit",
|
|
27
|
+
"build": "bash ../../scripts/building/build.sh",
|
|
28
|
+
"build-watch": "bash ../../scripts/building/build-watch.sh",
|
|
29
|
+
"build-dep": "bash ../../scripts/building/build-dep.sh"
|
|
30
|
+
},
|
|
31
|
+
"bugs": {
|
|
32
|
+
"url": "https://github.com/shapediver/Viewer/issues"
|
|
33
|
+
},
|
|
34
|
+
"homepage": "https://github.com/shapediver/Viewer#readme",
|
|
35
|
+
"typings": "dist/index.d.ts",
|
|
36
|
+
"jest": {
|
|
37
|
+
"preset": "ts-jest",
|
|
38
|
+
"testEnvironment": "node"
|
|
39
|
+
},
|
|
40
|
+
"dependencies": {
|
|
41
|
+
"@shapediver/viewer.data-engine.material-engine": "3.13.4",
|
|
42
|
+
"@shapediver/viewer.data-engine.shared-types": "3.13.4",
|
|
43
|
+
"@shapediver/viewer.shared.global-access-objects": "3.13.4",
|
|
44
|
+
"@shapediver/viewer.shared.node-tree": "3.13.4",
|
|
45
|
+
"@shapediver/viewer.shared.services": "3.13.4",
|
|
46
|
+
"@shapediver/viewer.shared.types": "3.13.4",
|
|
47
|
+
"gl-matrix": "3.3.0"
|
|
48
|
+
},
|
|
49
|
+
"gitHead": "e93748d2f46c1ffcbe6170a654e81d5b9e81ef5b"
|
|
50
|
+
}
|