Commit Graph

117 Commits

Author SHA1 Message Date
kovacsv
f2c5bffa9b Merge branch 'dev' into ifcimporter 2021-06-13 18:31:23 +02:00
kovacsv
1cdf592c4f Visualization is slow in case of large number of meshes #82 2021-06-13 18:25:44 +02:00
kovacsv
e416aae4bc Transparency handling. 2021-06-13 07:37:11 +02:00
kovacsv
855ba95d66 Merge branch 'dev' into ifcimporter 2021-06-13 07:30:35 +02:00
kovacsv
8fbe59d656 Add public IntegerToHexString function. 2021-06-13 07:30:11 +02:00
kovacsv
64cad6383a Fix JSHint errors. 2021-06-12 19:51:23 +02:00
kovacsv
4df8d25236 Add experimental importer for ifc. 2021-06-12 19:49:26 +02:00
kovacsv
dde3e08687 Load external libraries only once. 2021-06-12 18:04:21 +02:00
kovacsv
094189ce4f Delay load rhino3dm so it will be loaded only if it's needed. 2021-06-12 17:58:58 +02:00
Viktor Kovacs
edd2245915 Comment to explain checker code. 2021-06-05 09:15:12 +02:00
Viktor Kovacs
c7ef690933 All materials render black on some mobile devices #69
Let's detect the wrong devices, and set precision to mediump only if needed.
2021-06-05 09:01:24 +02:00
Viktor Kovacs
ff46ecc7d2 Rename files. 2021-06-03 21:53:40 +02:00
Viktor Kovacs
756c6376c2 Visual glitches on mobile #75 2021-06-03 08:29:12 +02:00
Viktor Kovacs
377ab38e6c All materials render black on some mobile devices #69 2021-05-29 14:07:41 +02:00
Viktor Kovacs
a3d283f613 Add o3dv file format for testing purposes. 2021-05-27 20:20:00 +02:00
Viktor Kovacs
d971350443 Minor modification. 2021-05-24 20:51:27 +02:00
Viktor Kovacs
251b42ad06 Do not calculate same normal multiple times so triangulation won't effect curved normal calculation. 2021-05-24 20:40:34 +02:00
Viktor Kovacs
6613cd96cd Add todo. 2021-05-24 20:19:01 +02:00
Viktor Kovacs
38cde4b11f Use cuboid generator in tests. 2021-05-24 13:15:33 +02:00
Viktor Kovacs
0394d60581 Add quaternion class. 2021-05-24 09:19:44 +02:00
Viktor Kovacs
2815c27a32 Add cuboid generator. 2021-05-23 18:05:53 +02:00
Viktor Kovacs
265464fb60 Fix closed model detection when meshes are connected in an edge. 2021-05-22 09:40:43 +02:00
Viktor Kovacs
aff5740fba Add todo. 2021-05-21 19:20:00 +02:00
Viktor Kovacs
5184fe9346 Move material and triangle to a separate file. 2021-05-21 09:38:09 +02:00
Viktor Kovacs
55072f6d6d Base class for model and mesh so they can be handled similarly. 2021-05-21 09:29:44 +02:00
Viktor Kovacs
a39de09715 Add base enumerator class so meshes and models can be handled in the same way for calculations. 2021-05-20 10:07:37 +02:00
Viktor Kovacs
4bceb5b2b2 Fix solid body detection: an edge should appear with different directions in the neighbour triangles. 2021-05-18 17:21:37 +02:00
Viktor Kovacs
9a8e54a804 Minor modification. 2021-05-17 16:55:54 +02:00
Viktor Kovacs
bdef08756a Code for surface area and volume calculation. 2021-05-17 16:05:52 +02:00
Viktor Kovacs
f02b660b23 Add topology calculator. 2021-05-15 19:23:14 +02:00
Viktor Kovacs
39ecb7af61 Add bounding box calculator. 2021-05-15 12:04:48 +02:00
Viktor Kovacs
4ee5eb6040 Bounding box calculation test. 2021-05-15 11:57:00 +02:00
Viktor Kovacs
e7c42dd067 Build fix. 2021-05-15 11:49:00 +02:00
Viktor Kovacs
371044bf67 Move exporter utils content to model utils. 2021-05-15 11:47:43 +02:00
Viktor Kovacs
8937cafdfd Add minimal octree implementation. 2021-05-14 16:58:28 +02:00
Viktor Kovacs
51f42f8505 Revert PNG Transparency #21
It breaks other models, so keep it as it is until a better solution.
2021-05-11 20:47:21 +02:00
Viktor Kovacs
3842e1afcf PNG Transparency #21
Treat materials with png texture automatically as transparent.
2021-05-11 20:43:57 +02:00
Viktor Kovacs
e9509d1696 Use wheel event instead of deprecated DOMMouseScroll and mousewheel. 2021-05-09 15:38:32 +02:00
Viktor Kovacs
31635229af Remove dead code (also contained a typo). 2021-05-09 15:21:59 +02:00
Viktor Kovacs
7b7a989b1e Fix object detection under mouse. 2021-05-05 08:09:08 +02:00
Viktor Kovacs
72e45a8030 Separate class to store geometry. 2021-04-30 07:49:36 +02:00
Viktor Kovacs
482a6958a7 Flip triangles when the model should be mirrored. 2021-04-25 19:52:33 +02:00
Viktor Kovacs
a9aebe77f4 Export mesh names to rhino. 2021-04-25 18:48:10 +02:00
Viktor Kovacs
6f1707ae10 Write double-sided triangles during glTF export #63 2021-04-25 18:45:21 +02:00
Viktor Kovacs
0d329ea37b Add Rhino exporter. 2021-04-25 18:01:52 +02:00
Viktor Kovacs
1bc47cfa08 Aynchronous export. 2021-04-25 16:03:17 +02:00
Viktor Kovacs
b47d6b0ce4 Maintain device pixel ratio during resize, so the render won't be blurry when the users set the scale for the whole webpage. 2021-04-25 15:33:36 +02:00
Viktor Kovacs
ba0d642512
Revert "Add optional edge displaying and settings" 2021-04-25 15:19:17 +02:00
X-Ryl669
8a5782b8ec Add optional edge displaying and settings 2021-04-23 17:55:35 +02:00
Viktor Kovacs
e6452eb39f Modify error message when there are no 3D meshes in the rhino file. 2021-04-22 08:28:17 +02:00