Commit Graph

176 Commits

Author SHA1 Message Date
kovacsv
a0594d5ee2 Enable calling Init3DViewerElements from everywhere #375 2023-04-03 17:35:10 +02:00
kovacsv
9bd495bcd5 Texture map options not parsed from mtl file #371 2023-03-22 22:15:59 +01:00
kovacsv
fefee144bd Read custom properties from glTF elements #368 2023-03-03 20:23:30 +01:00
Wojciech Radaczyński
9e0ee3000c
Update exporterbim.js (#359)
The only change (schema version update)
2023-02-08 15:05:18 +01:00
kovacsv
12de8537bc Set the default up vector direction to y. 2023-02-04 12:05:06 +01:00
kovacsv
65cea7fb20 Make function names shorter. 2023-02-01 22:28:47 +01:00
kovacsv
ee5ecbd028 Update three.js to v149. 2023-02-01 22:22:19 +01:00
kovacsv
34f3ad2bf7 Move tsconfig.json file to the tools folder. 2023-01-29 19:01:15 +01:00
Callum Gander
83eb66f0d3
Added config + command to build_engine_module to generate .d.ts on building engine module (#356) 2023-01-29 18:52:56 +01:00
kovacsv
9482ed0b0a Update three.js to version 0.148.0. 2023-01-21 23:35:04 +01:00
kovacsv
b9fe936047 Add utility function for string to rgba color conversion. 2023-01-21 22:54:31 +01:00
kovacsv
0217122621 Correct the type of element parameter. 2023-01-15 15:47:28 +01:00
kovacsv
1950e3619e Update documentation. 2023-01-14 22:11:46 +01:00
Ilia Pozdnyakov
c95f7c2026
Allow initializing viewer element from File objects. (#352)
Co-authored-by: Ilia Pozdnyakov <pozdnyakov@peterpartner.net>
2023-01-14 22:09:07 +01:00
kovacsv
ff05887daa Model can't open if an url parameter contains slash #351 2023-01-10 20:19:57 +01:00
kovacsv
1718e9bb92 Failed to load glTF files with invalid texture coordinates #349 2023-01-08 22:17:00 +01:00
kovacsv
bd10b196d9 Create documentation for the engine #328 2023-01-07 08:22:23 +01:00
kovacsv
f3e79a74c2 Create class for environment settings. 2023-01-03 21:58:36 +01:00
kovacsv
6c66557884 Move shading model to a separate file. 2022-12-31 12:36:08 +01:00
kovacsv
c39a63bc1c Create class for edge settings. 2022-12-31 12:20:27 +01:00
kovacsv
f83e28cd88 Rename geometry to model. 2022-12-31 08:40:31 +01:00
kovacsv
4fd581e215 Use ViewerModel in ViewerMainModel. 2022-12-19 14:44:20 +01:00
kovacsv
69b423e837 Rename viewer geometry to viewer model. 2022-12-19 14:16:49 +01:00
kovacsv
c244562ed0 Context and Closure Memory Leaks #321 2022-12-16 13:24:31 +01:00
Viktor Kovacs
a558a31240 Initialize model loader in the constructor. 2022-12-05 17:54:16 +01:00
GuYounes
cb2e48cf11
feat(EmbeddedViewer): add the loader as class property (#327)
Co-authored-by: Younes Guarssifi <younes.guarssifi@sms-group.com>
2022-12-05 17:42:18 +01:00
Viktor Kovacs
feb4b81deb Remove o3dv importer. 2022-11-18 21:42:13 +01:00
kovacsv
499c867f4c Modify fix up vector parameter name. 2022-10-30 07:35:38 +01:00
kovacsv
ae8f1b0c25 Update dependencies. 2022-10-27 17:23:34 +02:00
kovacsv
3b63efc4f9 Gltf file with VALUE_NOT_IN_RANGE not opening #311 2022-10-10 18:19:35 +02:00
kovacsv
d7345647fc Prevent crash when no importable objects found. 2022-10-10 17:35:45 +02:00
kovacsv
f9b3d9bc82 Support for FCStd format #307 2022-10-08 15:56:23 +02:00
kovacsv
990d6329aa Handle worker lifetime. 2022-10-02 12:04:33 +02:00
kovacsv
79568915f9 Fix error handling. 2022-10-01 23:32:20 +02:00
kovacsv
ba6995efc3 Import BREP files #310 2022-10-01 23:03:36 +02:00
kovacsv
81cd18083d Background doesn't work with orthographic camera #305 2022-09-26 18:21:05 +02:00
kovacsv
b102ee622d Add mesh name as info during dotbim export #301 2022-09-19 18:05:08 +02:00
kovacsv
dca2dc1ec4 Adjust clipping planes when switching between camera modes. 2022-09-18 17:09:23 +02:00
kovacsv
12537cdac8 Enable camera mode setting during embedding. 2022-09-18 14:35:06 +02:00
kovacsv
14b0863d64 Add orthographic mode to the viewer class. 2022-09-18 13:01:51 +02:00
kovacsv
19b81d0b4c Fix field of view during embedding. 2022-09-18 11:11:23 +02:00
kovacsv
73417f2a90 Store field of view in engine's camera. 2022-09-18 10:43:20 +02:00
kovacsv
f43327ddd8 Support IGES format #279 2022-07-03 17:34:34 +02:00
kovacsv
f806549e9c Code formatting. 2022-07-02 23:36:17 +02:00
kovacsv
71958671bc Add function to check if there is a listener for an event. 2022-07-02 22:47:55 +02:00
kovacsv
2a80468276 Rename EventSource to EventNotifier. 2022-07-02 22:34:43 +02:00
kovacsv
bd6c2b5114 Add EventSource class. 2022-07-02 22:25:34 +02:00
kovacsv
235149c325 Rename callback. 2022-07-02 22:14:10 +02:00
kovacsv
784715e89c Show progress bar for file download #288 2022-07-02 13:07:14 +02:00
kovacsv
e0b046d1b7 Add callbacks for file loading progress. 2022-07-02 09:16:45 +02:00
kovacsv
79595fcdf9 Transparent background color #286 2022-06-25 12:02:36 +02:00
kovacsv
62af23cafc Use RGBAColor for background. 2022-06-25 11:36:53 +02:00
kovacsv
c168f944f6 Rename Color to RGBColor. 2022-06-25 10:20:58 +02:00
kovacsv
d85d3c336f Minor modification. 2022-06-18 16:25:46 +02:00
kovacsv
2593bbba4e Calculate the volume of a model by calculating the sum of volumes of all meshes. 2022-06-18 16:24:15 +02:00
kovacsv
7e9a191671 OFF mesh file import with colors #278 2022-06-17 19:14:28 +02:00
kovacsv
a7a76cec4b Fix svg importer. 2022-06-16 19:02:16 +02:00
kovacsv
a4ec93ebcd Use ColorToMaterialConverter in ifc importer. 2022-06-14 22:30:43 +02:00
kovacsv
006e5aafc2 Use ColorToMaterialConverter where possible. 2022-06-14 21:15:20 +02:00
kovacsv
d34c710c0a Minor modification. 2022-06-06 16:58:09 +02:00
kovacsv
15dcf8b44d Do not fit model to window when camera parameters are provided. 2022-06-06 10:17:38 +02:00
kovacsv
41b65010f2 Rename filelist.js to importerfiles.js. 2022-06-05 21:08:53 +02:00
kovacsv
316c8e7293 Introduce InputFile class that can specify the name and the url as well (#202). 2022-06-05 14:44:05 +02:00
kovacsv
61c98e6f2e Environment and background improvements. 2022-06-04 14:32:50 +02:00
kovacsv
d5e33c00f0 Build fix. 2022-05-29 11:30:19 +02:00
kovacsv
6f54184dc6 Escape html special characters in properties. 2022-05-29 11:26:58 +02:00
kovacsv
dc60397102 Implement face colors for dotbim #270 2022-05-28 19:20:04 +02:00
kovacsv
48fc88cb70 Do not show empty property group. 2022-05-28 00:38:08 +02:00
kovacsv
12c0f7df8d Prepare npm package. 2022-05-20 22:06:02 +02:00
kovacsv
f133ced651 Bundle three.js together with the library. 2022-05-20 18:52:37 +02:00
kovacsv
5843fc3cc8 Fix lint error. 2022-05-18 20:21:51 +02:00
kovacsv
9aff0be5f0 Show assembly structure of step files #265 2022-05-18 20:19:02 +02:00
kovacsv
5dcedf559f Replace tabs with spaces. 2022-05-10 08:04:37 +02:00
kovacsv
b3ab00fbbe Make File Upload Possible in the Embedded Viewer #253 2022-05-05 22:02:56 +02:00
Wojciech Radaczyński
99797e6b09
Creates empty info if there is no properties
Subjective opinion that it makes it easier when all properties are filled 100% of a time, even if it means empty list. To check if after this change it actually creates "info": {} :)
2022-05-02 17:54:53 +02:00
kovacsv
afe6cce6da Remove url from texture, since it's not a core data, and needed only for three.js conversion. 2022-04-27 18:19:55 +02:00
kovacsv
e9a308bcfe Can't calculate the volume on model in the Embedded Viewer #241 2022-04-21 18:11:29 +02:00
kovacsv
104fa9a0ff The list of meshes doesn't have names in the Embedded Viewer #249 2022-04-21 18:09:02 +02:00
kovacsv
d3f930f72c Generate a pseudo-random guid during bim export. 2022-04-19 23:01:41 +02:00
kovacsv
e178e53fbd glB material import not displaying correctly #248 2022-04-19 18:29:28 +02:00
kovacsv
df05dd9a51 Add mandatory fields to bim files. 2022-04-19 17:11:15 +02:00
kovacsv
267aeec79a bim export #246 2022-04-18 18:09:17 +02:00
kovacsv
abeb281c65 Url detection in element properties #235 2022-04-15 08:58:58 +02:00
kovacsv
c41ff07def Host occt-import-js locally. 2022-03-24 19:08:51 +01:00
kovacsv
dc19691fa5 Show textures in Rhino files #230 2022-03-14 19:41:56 +01:00
kovacsv
f4f6228426 Move website related code outside of the engine. 2022-03-06 20:16:02 +01:00
kovacsv
43d707ed8e Update engine exports. 2022-03-06 19:54:02 +01:00
kovacsv
76ccea789a Add snapshot dialog skeleton. 2022-03-06 19:50:01 +01:00
kovacsv
98706cfceb Temporary measure marker is visible on the snapshot #229 2022-03-06 14:28:19 +01:00
kovacsv
97d9e560d1 When importing STP format file, the model structure has no name and the material information is lost #220 2022-03-05 11:40:39 +01:00
kovacsv
47cb58183a Handle error when occt-import-js is not accessible. 2022-02-24 18:56:55 +01:00
kovacsv
0dd11501aa Load occt-import-js from cdn. 2022-02-23 20:21:40 +01:00
kovacsv
722e8db2e9 Add error messages when external library loading fails. 2022-02-23 17:56:49 +01:00
kovacsv
a5f4d41455 Remove grid code. 2022-02-21 21:21:22 +01:00
kovacsv
15a3214eea Draw crosshair instead of cone in measure tool. 2022-02-20 17:17:32 +01:00
kovacsv
f18748f5e6 Move measure button to the toolbar. 2022-02-20 14:35:24 +01:00
kovacsv
dd8360fd92 Add bim importer #219 2022-02-19 16:45:31 +01:00
kovacsv
edd6fe43bc glTF import fails when using multiple primitives without indices #218 2022-02-18 18:23:34 +01:00
kovacsv
c531a2c89c Attribute item size is not used when converting a three.js mesh #214 2022-02-09 19:51:40 +01:00
kovacsv
fa7f82e9c2 Minor modification. 2022-02-06 16:43:18 +01:00