Repository navigation
Expand file tree
/
Copy pathlib3mf_bindings.cpp
More file actions
2675 lines (2479 loc) · 132 KB
/
Copy pathlib3mf_bindings.cpp
File metadata and controls
2675 lines (2479 loc) · 132 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/*++
Copyright (C) 2024 3MF Consortium (Original Author)
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
This file has been generated by the Automatic Component Toolkit (ACT) version 1.8.0-develop.
Abstract: C++ Emscripten wrapper for WebAssembly
Interface version: 2.4.0
*/
#include <iostream>
#include <vector>
#include <string>
#include <emscripten.h>
#include <emscripten/bind.h>
#include "Cpp/lib3mf_implicit.hpp"
using namespace emscripten;
using namespace Lib3MF;
struct sTriangleWrapper {
sTriangle value;
Lib3MF_uint32 get_Indices0() const { return value.m_Indices[0]; }
void set_Indices0(Lib3MF_uint32 v) { value.m_Indices[0] = v; }
Lib3MF_uint32 get_Indices1() const { return value.m_Indices[1]; }
void set_Indices1(Lib3MF_uint32 v) { value.m_Indices[1] = v; }
Lib3MF_uint32 get_Indices2() const { return value.m_Indices[2]; }
void set_Indices2(Lib3MF_uint32 v) { value.m_Indices[2] = v; }
sTriangle toStruct() const { return value; }
static sTriangleWrapper fromStruct(const emscripten::val &js) {
sTriangleWrapper wrapper;
wrapper.value.m_Indices[0] = js["Indices0"].as<Lib3MF_uint32>();
wrapper.value.m_Indices[1] = js["Indices1"].as<Lib3MF_uint32>();
wrapper.value.m_Indices[2] = js["Indices2"].as<Lib3MF_uint32>();
return wrapper;
}
};
struct sTrianglePropertiesWrapper {
sTriangleProperties value;
Lib3MF_uint32 get_ResourceID() const { return value.m_ResourceID; }
void set_ResourceID(Lib3MF_uint32 v) { value.m_ResourceID = v; }
Lib3MF_uint32 get_PropertyIDs0() const { return value.m_PropertyIDs[0]; }
void set_PropertyIDs0(Lib3MF_uint32 v) { value.m_PropertyIDs[0] = v; }
Lib3MF_uint32 get_PropertyIDs1() const { return value.m_PropertyIDs[1]; }
void set_PropertyIDs1(Lib3MF_uint32 v) { value.m_PropertyIDs[1] = v; }
Lib3MF_uint32 get_PropertyIDs2() const { return value.m_PropertyIDs[2]; }
void set_PropertyIDs2(Lib3MF_uint32 v) { value.m_PropertyIDs[2] = v; }
sTriangleProperties toStruct() const { return value; }
static sTrianglePropertiesWrapper fromStruct(const emscripten::val &js) {
sTrianglePropertiesWrapper wrapper;
wrapper.value.m_ResourceID = js["ResourceID"].as<Lib3MF_uint32>();
wrapper.value.m_PropertyIDs[0] = js["PropertyIDs0"].as<Lib3MF_uint32>();
wrapper.value.m_PropertyIDs[1] = js["PropertyIDs1"].as<Lib3MF_uint32>();
wrapper.value.m_PropertyIDs[2] = js["PropertyIDs2"].as<Lib3MF_uint32>();
return wrapper;
}
};
struct sPositionWrapper {
sPosition value;
Lib3MF_single get_Coordinates0() const { return value.m_Coordinates[0]; }
void set_Coordinates0(Lib3MF_single v) { value.m_Coordinates[0] = v; }
Lib3MF_single get_Coordinates1() const { return value.m_Coordinates[1]; }
void set_Coordinates1(Lib3MF_single v) { value.m_Coordinates[1] = v; }
Lib3MF_single get_Coordinates2() const { return value.m_Coordinates[2]; }
void set_Coordinates2(Lib3MF_single v) { value.m_Coordinates[2] = v; }
sPosition toStruct() const { return value; }
static sPositionWrapper fromStruct(const emscripten::val &js) {
sPositionWrapper wrapper;
wrapper.value.m_Coordinates[0] = js["Coordinates0"].as<Lib3MF_single>();
wrapper.value.m_Coordinates[1] = js["Coordinates1"].as<Lib3MF_single>();
wrapper.value.m_Coordinates[2] = js["Coordinates2"].as<Lib3MF_single>();
return wrapper;
}
};
struct sPosition2DWrapper {
sPosition2D value;
Lib3MF_single get_Coordinates0() const { return value.m_Coordinates[0]; }
void set_Coordinates0(Lib3MF_single v) { value.m_Coordinates[0] = v; }
Lib3MF_single get_Coordinates1() const { return value.m_Coordinates[1]; }
void set_Coordinates1(Lib3MF_single v) { value.m_Coordinates[1] = v; }
sPosition2D toStruct() const { return value; }
static sPosition2DWrapper fromStruct(const emscripten::val &js) {
sPosition2DWrapper wrapper;
wrapper.value.m_Coordinates[0] = js["Coordinates0"].as<Lib3MF_single>();
wrapper.value.m_Coordinates[1] = js["Coordinates1"].as<Lib3MF_single>();
return wrapper;
}
};
struct sCompositeConstituentWrapper {
sCompositeConstituent value;
Lib3MF_uint32 get_PropertyID() const { return value.m_PropertyID; }
void set_PropertyID(Lib3MF_uint32 v) { value.m_PropertyID = v; }
Lib3MF_double get_MixingRatio() const { return value.m_MixingRatio; }
void set_MixingRatio(Lib3MF_double v) { value.m_MixingRatio = v; }
sCompositeConstituent toStruct() const { return value; }
static sCompositeConstituentWrapper fromStruct(const emscripten::val &js) {
sCompositeConstituentWrapper wrapper;
wrapper.value.m_PropertyID = js["PropertyID"].as<Lib3MF_uint32>();
wrapper.value.m_MixingRatio = js["MixingRatio"].as<Lib3MF_double>();
return wrapper;
}
};
struct sMultiPropertyLayerWrapper {
sMultiPropertyLayer value;
Lib3MF_uint32 get_ResourceID() const { return value.m_ResourceID; }
void set_ResourceID(Lib3MF_uint32 v) { value.m_ResourceID = v; }
eBlendMethod get_TheBlendMethod() const { return value.m_TheBlendMethod; }
void set_TheBlendMethod(eBlendMethod v) { value.m_TheBlendMethod = v; }
sMultiPropertyLayer toStruct() const { return value; }
static sMultiPropertyLayerWrapper fromStruct(const emscripten::val &js) {
sMultiPropertyLayerWrapper wrapper;
wrapper.value.m_ResourceID = js["ResourceID"].as<Lib3MF_uint32>();
wrapper.value.m_TheBlendMethod = js["TheBlendMethod"].as<eBlendMethod>();
return wrapper;
}
};
struct sTex2CoordWrapper {
sTex2Coord value;
Lib3MF_double get_U() const { return value.m_U; }
void set_U(Lib3MF_double v) { value.m_U = v; }
Lib3MF_double get_V() const { return value.m_V; }
void set_V(Lib3MF_double v) { value.m_V = v; }
sTex2Coord toStruct() const { return value; }
static sTex2CoordWrapper fromStruct(const emscripten::val &js) {
sTex2CoordWrapper wrapper;
wrapper.value.m_U = js["U"].as<Lib3MF_double>();
wrapper.value.m_V = js["V"].as<Lib3MF_double>();
return wrapper;
}
};
struct sTransformWrapper {
sTransform value;
Lib3MF_single get_Fields_0_0() const { return value.m_Fields[0][0]; }
void set_Fields_0_0(Lib3MF_single v) { value.m_Fields[0][0] = v; }
Lib3MF_single get_Fields_0_1() const { return value.m_Fields[0][1]; }
void set_Fields_0_1(Lib3MF_single v) { value.m_Fields[0][1] = v; }
Lib3MF_single get_Fields_0_2() const { return value.m_Fields[0][2]; }
void set_Fields_0_2(Lib3MF_single v) { value.m_Fields[0][2] = v; }
Lib3MF_single get_Fields_1_0() const { return value.m_Fields[1][0]; }
void set_Fields_1_0(Lib3MF_single v) { value.m_Fields[1][0] = v; }
Lib3MF_single get_Fields_1_1() const { return value.m_Fields[1][1]; }
void set_Fields_1_1(Lib3MF_single v) { value.m_Fields[1][1] = v; }
Lib3MF_single get_Fields_1_2() const { return value.m_Fields[1][2]; }
void set_Fields_1_2(Lib3MF_single v) { value.m_Fields[1][2] = v; }
Lib3MF_single get_Fields_2_0() const { return value.m_Fields[2][0]; }
void set_Fields_2_0(Lib3MF_single v) { value.m_Fields[2][0] = v; }
Lib3MF_single get_Fields_2_1() const { return value.m_Fields[2][1]; }
void set_Fields_2_1(Lib3MF_single v) { value.m_Fields[2][1] = v; }
Lib3MF_single get_Fields_2_2() const { return value.m_Fields[2][2]; }
void set_Fields_2_2(Lib3MF_single v) { value.m_Fields[2][2] = v; }
Lib3MF_single get_Fields_3_0() const { return value.m_Fields[3][0]; }
void set_Fields_3_0(Lib3MF_single v) { value.m_Fields[3][0] = v; }
Lib3MF_single get_Fields_3_1() const { return value.m_Fields[3][1]; }
void set_Fields_3_1(Lib3MF_single v) { value.m_Fields[3][1] = v; }
Lib3MF_single get_Fields_3_2() const { return value.m_Fields[3][2]; }
void set_Fields_3_2(Lib3MF_single v) { value.m_Fields[3][2] = v; }
sTransform toStruct() const { return value; }
static sTransformWrapper fromStruct(const emscripten::val &js) {
sTransformWrapper wrapper;
wrapper.value.m_Fields[0][0] = js["Fields_0_0"].as<Lib3MF_single>();
wrapper.value.m_Fields[1][0] = js["Fields_0_1"].as<Lib3MF_single>();
wrapper.value.m_Fields[2][0] = js["Fields_0_2"].as<Lib3MF_single>();
wrapper.value.m_Fields[3][0] = js["Fields_0_3"].as<Lib3MF_single>();
wrapper.value.m_Fields[0][1] = js["Fields_1_0"].as<Lib3MF_single>();
wrapper.value.m_Fields[1][1] = js["Fields_1_1"].as<Lib3MF_single>();
wrapper.value.m_Fields[2][1] = js["Fields_1_2"].as<Lib3MF_single>();
wrapper.value.m_Fields[3][1] = js["Fields_1_3"].as<Lib3MF_single>();
wrapper.value.m_Fields[0][2] = js["Fields_2_0"].as<Lib3MF_single>();
wrapper.value.m_Fields[1][2] = js["Fields_2_1"].as<Lib3MF_single>();
wrapper.value.m_Fields[2][2] = js["Fields_2_2"].as<Lib3MF_single>();
wrapper.value.m_Fields[3][2] = js["Fields_2_3"].as<Lib3MF_single>();
return wrapper;
}
};
struct sBoxWrapper {
sBox value;
Lib3MF_single get_MinCoordinate0() const { return value.m_MinCoordinate[0]; }
void set_MinCoordinate0(Lib3MF_single v) { value.m_MinCoordinate[0] = v; }
Lib3MF_single get_MinCoordinate1() const { return value.m_MinCoordinate[1]; }
void set_MinCoordinate1(Lib3MF_single v) { value.m_MinCoordinate[1] = v; }
Lib3MF_single get_MinCoordinate2() const { return value.m_MinCoordinate[2]; }
void set_MinCoordinate2(Lib3MF_single v) { value.m_MinCoordinate[2] = v; }
Lib3MF_single get_MaxCoordinate0() const { return value.m_MaxCoordinate[0]; }
void set_MaxCoordinate0(Lib3MF_single v) { value.m_MaxCoordinate[0] = v; }
Lib3MF_single get_MaxCoordinate1() const { return value.m_MaxCoordinate[1]; }
void set_MaxCoordinate1(Lib3MF_single v) { value.m_MaxCoordinate[1] = v; }
Lib3MF_single get_MaxCoordinate2() const { return value.m_MaxCoordinate[2]; }
void set_MaxCoordinate2(Lib3MF_single v) { value.m_MaxCoordinate[2] = v; }
sBox toStruct() const { return value; }
static sBoxWrapper fromStruct(const emscripten::val &js) {
sBoxWrapper wrapper;
wrapper.value.m_MinCoordinate[0] = js["MinCoordinate0"].as<Lib3MF_single>();
wrapper.value.m_MinCoordinate[1] = js["MinCoordinate1"].as<Lib3MF_single>();
wrapper.value.m_MinCoordinate[2] = js["MinCoordinate2"].as<Lib3MF_single>();
wrapper.value.m_MaxCoordinate[0] = js["MaxCoordinate0"].as<Lib3MF_single>();
wrapper.value.m_MaxCoordinate[1] = js["MaxCoordinate1"].as<Lib3MF_single>();
wrapper.value.m_MaxCoordinate[2] = js["MaxCoordinate2"].as<Lib3MF_single>();
return wrapper;
}
};
struct sColorWrapper {
sColor value;
Lib3MF_uint8 get_Red() const { return value.m_Red; }
void set_Red(Lib3MF_uint8 v) { value.m_Red = v; }
Lib3MF_uint8 get_Green() const { return value.m_Green; }
void set_Green(Lib3MF_uint8 v) { value.m_Green = v; }
Lib3MF_uint8 get_Blue() const { return value.m_Blue; }
void set_Blue(Lib3MF_uint8 v) { value.m_Blue = v; }
Lib3MF_uint8 get_Alpha() const { return value.m_Alpha; }
void set_Alpha(Lib3MF_uint8 v) { value.m_Alpha = v; }
sColor toStruct() const { return value; }
static sColorWrapper fromStruct(const emscripten::val &js) {
sColorWrapper wrapper;
wrapper.value.m_Red = js["Red"].as<Lib3MF_uint8>();
wrapper.value.m_Green = js["Green"].as<Lib3MF_uint8>();
wrapper.value.m_Blue = js["Blue"].as<Lib3MF_uint8>();
wrapper.value.m_Alpha = js["Alpha"].as<Lib3MF_uint8>();
return wrapper;
}
};
struct sBeamWrapper {
sBeam value;
Lib3MF_uint32 get_Indices0() const { return value.m_Indices[0]; }
void set_Indices0(Lib3MF_uint32 v) { value.m_Indices[0] = v; }
Lib3MF_uint32 get_Indices1() const { return value.m_Indices[1]; }
void set_Indices1(Lib3MF_uint32 v) { value.m_Indices[1] = v; }
Lib3MF_double get_Radii0() const { return value.m_Radii[0]; }
void set_Radii0(Lib3MF_double v) { value.m_Radii[0] = v; }
Lib3MF_double get_Radii1() const { return value.m_Radii[1]; }
void set_Radii1(Lib3MF_double v) { value.m_Radii[1] = v; }
eBeamLatticeCapMode get_CapModes0() const { return value.m_CapModes[0]; }
void set_CapModes0(eBeamLatticeCapMode v) { value.m_CapModes[0] = v; }
eBeamLatticeCapMode get_CapModes1() const { return value.m_CapModes[1]; }
void set_CapModes1(eBeamLatticeCapMode v) { value.m_CapModes[1] = v; }
sBeam toStruct() const { return value; }
static sBeamWrapper fromStruct(const emscripten::val &js) {
sBeamWrapper wrapper;
wrapper.value.m_Indices[0] = js["Indices0"].as<Lib3MF_uint32>();
wrapper.value.m_Indices[1] = js["Indices1"].as<Lib3MF_uint32>();
wrapper.value.m_Radii[0] = js["Radii0"].as<Lib3MF_double>();
wrapper.value.m_Radii[1] = js["Radii1"].as<Lib3MF_double>();
wrapper.value.m_CapModes[0] = js["CapModes0"].as<eBeamLatticeCapMode>();
wrapper.value.m_CapModes[1] = js["CapModes1"].as<eBeamLatticeCapMode>();
return wrapper;
}
};
struct sBallWrapper {
sBall value;
Lib3MF_uint32 get_Index() const { return value.m_Index; }
void set_Index(Lib3MF_uint32 v) { value.m_Index = v; }
Lib3MF_double get_Radius() const { return value.m_Radius; }
void set_Radius(Lib3MF_double v) { value.m_Radius = v; }
sBall toStruct() const { return value; }
static sBallWrapper fromStruct(const emscripten::val &js) {
sBallWrapper wrapper;
wrapper.value.m_Index = js["Index"].as<Lib3MF_uint32>();
wrapper.value.m_Radius = js["Radius"].as<Lib3MF_double>();
return wrapper;
}
};
struct sVectorWrapper {
sVector value;
Lib3MF_double get_Coordinates0() const { return value.m_Coordinates[0]; }
void set_Coordinates0(Lib3MF_double v) { value.m_Coordinates[0] = v; }
Lib3MF_double get_Coordinates1() const { return value.m_Coordinates[1]; }
void set_Coordinates1(Lib3MF_double v) { value.m_Coordinates[1] = v; }
Lib3MF_double get_Coordinates2() const { return value.m_Coordinates[2]; }
void set_Coordinates2(Lib3MF_double v) { value.m_Coordinates[2] = v; }
sVector toStruct() const { return value; }
static sVectorWrapper fromStruct(const emscripten::val &js) {
sVectorWrapper wrapper;
wrapper.value.m_Coordinates[0] = js["Coordinates0"].as<Lib3MF_double>();
wrapper.value.m_Coordinates[1] = js["Coordinates1"].as<Lib3MF_double>();
wrapper.value.m_Coordinates[2] = js["Coordinates2"].as<Lib3MF_double>();
return wrapper;
}
};
struct sMatrix4x4Wrapper {
sMatrix4x4 value;
Lib3MF_double get_Field_0_0() const { return value.m_Field[0][0]; }
void set_Field_0_0(Lib3MF_double v) { value.m_Field[0][0] = v; }
Lib3MF_double get_Field_0_1() const { return value.m_Field[0][1]; }
void set_Field_0_1(Lib3MF_double v) { value.m_Field[0][1] = v; }
Lib3MF_double get_Field_0_2() const { return value.m_Field[0][2]; }
void set_Field_0_2(Lib3MF_double v) { value.m_Field[0][2] = v; }
Lib3MF_double get_Field_0_3() const { return value.m_Field[0][3]; }
void set_Field_0_3(Lib3MF_double v) { value.m_Field[0][3] = v; }
Lib3MF_double get_Field_1_0() const { return value.m_Field[1][0]; }
void set_Field_1_0(Lib3MF_double v) { value.m_Field[1][0] = v; }
Lib3MF_double get_Field_1_1() const { return value.m_Field[1][1]; }
void set_Field_1_1(Lib3MF_double v) { value.m_Field[1][1] = v; }
Lib3MF_double get_Field_1_2() const { return value.m_Field[1][2]; }
void set_Field_1_2(Lib3MF_double v) { value.m_Field[1][2] = v; }
Lib3MF_double get_Field_1_3() const { return value.m_Field[1][3]; }
void set_Field_1_3(Lib3MF_double v) { value.m_Field[1][3] = v; }
Lib3MF_double get_Field_2_0() const { return value.m_Field[2][0]; }
void set_Field_2_0(Lib3MF_double v) { value.m_Field[2][0] = v; }
Lib3MF_double get_Field_2_1() const { return value.m_Field[2][1]; }
void set_Field_2_1(Lib3MF_double v) { value.m_Field[2][1] = v; }
Lib3MF_double get_Field_2_2() const { return value.m_Field[2][2]; }
void set_Field_2_2(Lib3MF_double v) { value.m_Field[2][2] = v; }
Lib3MF_double get_Field_2_3() const { return value.m_Field[2][3]; }
void set_Field_2_3(Lib3MF_double v) { value.m_Field[2][3] = v; }
Lib3MF_double get_Field_3_0() const { return value.m_Field[3][0]; }
void set_Field_3_0(Lib3MF_double v) { value.m_Field[3][0] = v; }
Lib3MF_double get_Field_3_1() const { return value.m_Field[3][1]; }
void set_Field_3_1(Lib3MF_double v) { value.m_Field[3][1] = v; }
Lib3MF_double get_Field_3_2() const { return value.m_Field[3][2]; }
void set_Field_3_2(Lib3MF_double v) { value.m_Field[3][2] = v; }
Lib3MF_double get_Field_3_3() const { return value.m_Field[3][3]; }
void set_Field_3_3(Lib3MF_double v) { value.m_Field[3][3] = v; }
sMatrix4x4 toStruct() const { return value; }
static sMatrix4x4Wrapper fromStruct(const emscripten::val &js) {
sMatrix4x4Wrapper wrapper;
wrapper.value.m_Field[0][0] = js["Field_0_0"].as<Lib3MF_double>();
wrapper.value.m_Field[1][0] = js["Field_0_1"].as<Lib3MF_double>();
wrapper.value.m_Field[2][0] = js["Field_0_2"].as<Lib3MF_double>();
wrapper.value.m_Field[3][0] = js["Field_0_3"].as<Lib3MF_double>();
wrapper.value.m_Field[0][1] = js["Field_1_0"].as<Lib3MF_double>();
wrapper.value.m_Field[1][1] = js["Field_1_1"].as<Lib3MF_double>();
wrapper.value.m_Field[2][1] = js["Field_1_2"].as<Lib3MF_double>();
wrapper.value.m_Field[3][1] = js["Field_1_3"].as<Lib3MF_double>();
wrapper.value.m_Field[0][2] = js["Field_2_0"].as<Lib3MF_double>();
wrapper.value.m_Field[1][2] = js["Field_2_1"].as<Lib3MF_double>();
wrapper.value.m_Field[2][2] = js["Field_2_2"].as<Lib3MF_double>();
wrapper.value.m_Field[3][2] = js["Field_2_3"].as<Lib3MF_double>();
wrapper.value.m_Field[0][3] = js["Field_3_0"].as<Lib3MF_double>();
wrapper.value.m_Field[1][3] = js["Field_3_1"].as<Lib3MF_double>();
wrapper.value.m_Field[2][3] = js["Field_3_2"].as<Lib3MF_double>();
wrapper.value.m_Field[3][3] = js["Field_3_3"].as<Lib3MF_double>();
return wrapper;
}
};
static void wrap_Resource_SetPackagePart(CResource &self, PPackagePart& PackagePart) {
self.SetPackagePart(classParam(PackagePart));
}
static void wrap_MetaDataGroup_RemoveMetaData(CMetaDataGroup &self, PMetaData& TheMetaData) {
self.RemoveMetaData(classParam(TheMetaData));
}
static void wrap_TriangleSet_Merge(CTriangleSet &self, PTriangleSet& OtherTriangleSet, const bool& DeleteOther) {
self.Merge(classParam(OtherTriangleSet), DeleteOther);
}
static void wrap_Object_SetAttachmentAsThumbnail(CObject &self, PAttachment& Attachment) {
self.SetAttachmentAsThumbnail(classParam(Attachment));
}
static sBoxWrapper wrap_Object_GetOutbox(CObject &self) {
auto result = self.GetOutbox();
sBoxWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_Object_AssignSliceStack(CObject &self, PSliceStack& SliceStackInstance) {
self.AssignSliceStack(classParam(SliceStackInstance));
}
static sPositionWrapper wrap_MeshObject_GetVertex(CMeshObject &self, const Lib3MF_uint32& Index) {
auto result = self.GetVertex(Index);
sPositionWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_MeshObject_SetVertex(CMeshObject &self, const Lib3MF_uint32& Index, const sPositionWrapper& Coordinates) {
self.SetVertex(Index, Coordinates.toStruct());
}
static Lib3MF_uint32 wrap_MeshObject_AddVertex(CMeshObject &self, const sPositionWrapper& Coordinates) {
auto result = self.AddVertex(Coordinates.toStruct());
return result;
}
static sTriangleWrapper wrap_MeshObject_GetTriangle(CMeshObject &self, const Lib3MF_uint32& Index) {
auto result = self.GetTriangle(Index);
sTriangleWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_MeshObject_SetTriangle(CMeshObject &self, const Lib3MF_uint32& Index, const sTriangleWrapper& Indices) {
self.SetTriangle(Index, Indices.toStruct());
}
static Lib3MF_uint32 wrap_MeshObject_AddTriangle(CMeshObject &self, const sTriangleWrapper& Indices) {
auto result = self.AddTriangle(Indices.toStruct());
return result;
}
static void wrap_MeshObject_SetTriangleProperties(CMeshObject &self, const Lib3MF_uint32& Index, const sTrianglePropertiesWrapper& Properties) {
self.SetTriangleProperties(Index, Properties.toStruct());
}
static void wrap_MeshObject_SetAllTriangleProperties(CMeshObject &self, const std::vector<sTrianglePropertiesWrapper>& PropertiesArray) {
std::vector<sTriangleProperties> converted_PropertiesArray;
converted_PropertiesArray.reserve(PropertiesArray.size());
for (const auto& w : PropertiesArray) converted_PropertiesArray.push_back(w.toStruct());
self.SetAllTriangleProperties(converted_PropertiesArray);
}
static void wrap_MeshObject_SetGeometry(CMeshObject &self, const std::vector<sPositionWrapper>& Vertices, const std::vector<sTriangleWrapper>& Indices) {
std::vector<sPosition> converted_Vertices;
converted_Vertices.reserve(Vertices.size());
for (const auto& w : Vertices) converted_Vertices.push_back(w.toStruct());
std::vector<sTriangle> converted_Indices;
converted_Indices.reserve(Indices.size());
for (const auto& w : Indices) converted_Indices.push_back(w.toStruct());
self.SetGeometry(converted_Vertices, converted_Indices);
}
static void wrap_MeshObject_SetVolumeData(CMeshObject &self, PVolumeData& TheVolumeData) {
self.SetVolumeData(classParam(TheVolumeData));
}
static void wrap_LevelSet_SetFunction(CLevelSet &self, PFunction& TheFunction) {
self.SetFunction(classParam(TheFunction));
}
static sTransformWrapper wrap_LevelSet_GetTransform(CLevelSet &self) {
auto result = self.GetTransform();
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_LevelSet_SetTransform(CLevelSet &self, const sTransformWrapper& Transform) {
self.SetTransform(Transform.toStruct());
}
static void wrap_LevelSet_SetMesh(CLevelSet &self, PMeshObject& TheMesh) {
self.SetMesh(classParam(TheMesh));
}
static void wrap_LevelSet_SetVolumeData(CLevelSet &self, PVolumeData& TheVolumeData) {
self.SetVolumeData(classParam(TheVolumeData));
}
static sBeamWrapper wrap_BeamLattice_GetBeam(CBeamLattice &self, const Lib3MF_uint32& Index) {
auto result = self.GetBeam(Index);
sBeamWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static Lib3MF_uint32 wrap_BeamLattice_AddBeam(CBeamLattice &self, const sBeamWrapper& BeamInfo) {
auto result = self.AddBeam(BeamInfo.toStruct());
return result;
}
static void wrap_BeamLattice_SetBeam(CBeamLattice &self, const Lib3MF_uint32& Index, const sBeamWrapper& BeamInfo) {
self.SetBeam(Index, BeamInfo.toStruct());
}
static void wrap_BeamLattice_SetBeams(CBeamLattice &self, const std::vector<sBeamWrapper>& BeamInfo) {
std::vector<sBeam> converted_BeamInfo;
converted_BeamInfo.reserve(BeamInfo.size());
for (const auto& w : BeamInfo) converted_BeamInfo.push_back(w.toStruct());
self.SetBeams(converted_BeamInfo);
}
static sBallWrapper wrap_BeamLattice_GetBall(CBeamLattice &self, const Lib3MF_uint32& Index) {
auto result = self.GetBall(Index);
sBallWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static Lib3MF_uint32 wrap_BeamLattice_AddBall(CBeamLattice &self, const sBallWrapper& BallInfo) {
auto result = self.AddBall(BallInfo.toStruct());
return result;
}
static void wrap_BeamLattice_SetBall(CBeamLattice &self, const Lib3MF_uint32& Index, const sBallWrapper& BallInfo) {
self.SetBall(Index, BallInfo.toStruct());
}
static void wrap_BeamLattice_SetBalls(CBeamLattice &self, const std::vector<sBallWrapper>& BallInfo) {
std::vector<sBall> converted_BallInfo;
converted_BallInfo.reserve(BallInfo.size());
for (const auto& w : BallInfo) converted_BallInfo.push_back(w.toStruct());
self.SetBalls(converted_BallInfo);
}
static sTransformWrapper wrap_FunctionReference_GetTransform(CFunctionReference &self) {
auto result = self.GetTransform();
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_FunctionReference_SetTransform(CFunctionReference &self, const sTransformWrapper& Transform) {
self.SetTransform(Transform.toStruct());
}
static void wrap_VolumeDataComposite_SetBaseMaterialGroup(CVolumeDataComposite &self, PBaseMaterialGroup& BaseMaterialGroupInstance) {
self.SetBaseMaterialGroup(classParam(BaseMaterialGroupInstance));
}
static PMaterialMapping wrap_VolumeDataComposite_AddMaterialMapping(CVolumeDataComposite &self, const sTransformWrapper& Transform) {
auto result = self.AddMaterialMapping(Transform.toStruct());
return result;
}
static PVolumeDataColor wrap_VolumeData_CreateNewColor(CVolumeData &self, PFunction& TheFunction) {
auto result = self.CreateNewColor(classParam(TheFunction));
return result;
}
static PVolumeDataProperty wrap_VolumeData_AddPropertyFromFunction(CVolumeData &self, const std::string& Name, PFunction& TheFunction) {
auto result = self.AddPropertyFromFunction(Name, classParam(TheFunction));
return result;
}
static sTransformWrapper wrap_Component_GetTransform(CComponent &self) {
auto result = self.GetTransform();
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_Component_SetTransform(CComponent &self, const sTransformWrapper& Transform) {
self.SetTransform(Transform.toStruct());
}
static PComponent wrap_ComponentsObject_AddComponent(CComponentsObject &self, PObject& ObjectResource, const sTransformWrapper& Transform) {
auto result = self.AddComponent(classParam(ObjectResource), Transform.toStruct());
return result;
}
static Lib3MF_uint32 wrap_BaseMaterialGroup_AddMaterial(CBaseMaterialGroup &self, const std::string& Name, const sColorWrapper& DisplayColor) {
auto result = self.AddMaterial(Name, DisplayColor.toStruct());
return result;
}
static void wrap_BaseMaterialGroup_SetDisplayColor(CBaseMaterialGroup &self, const Lib3MF_uint32& PropertyID, const sColorWrapper& TheColor) {
self.SetDisplayColor(PropertyID, TheColor.toStruct());
}
static sColorWrapper wrap_BaseMaterialGroup_GetDisplayColor(CBaseMaterialGroup &self, const Lib3MF_uint32& PropertyID) {
auto result = self.GetDisplayColor(PropertyID);
sColorWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static Lib3MF_uint32 wrap_ColorGroup_AddColor(CColorGroup &self, const sColorWrapper& TheColor) {
auto result = self.AddColor(TheColor.toStruct());
return result;
}
static void wrap_ColorGroup_SetColor(CColorGroup &self, const Lib3MF_uint32& PropertyID, const sColorWrapper& TheColor) {
self.SetColor(PropertyID, TheColor.toStruct());
}
static sColorWrapper wrap_ColorGroup_GetColor(CColorGroup &self, const Lib3MF_uint32& PropertyID) {
auto result = self.GetColor(PropertyID);
sColorWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static Lib3MF_uint32 wrap_Texture2DGroup_AddTex2Coord(CTexture2DGroup &self, const sTex2CoordWrapper& UVCoordinate) {
auto result = self.AddTex2Coord(UVCoordinate.toStruct());
return result;
}
static sTex2CoordWrapper wrap_Texture2DGroup_GetTex2Coord(CTexture2DGroup &self, const Lib3MF_uint32& PropertyID) {
auto result = self.GetTex2Coord(PropertyID);
sTex2CoordWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static Lib3MF_uint32 wrap_CompositeMaterials_AddComposite(CCompositeMaterials &self, const std::vector<sCompositeConstituentWrapper>& Composite) {
std::vector<sCompositeConstituent> converted_Composite;
converted_Composite.reserve(Composite.size());
for (const auto& w : Composite) converted_Composite.push_back(w.toStruct());
auto result = self.AddComposite(converted_Composite);
return result;
}
static Lib3MF_uint32 wrap_MultiPropertyGroup_AddLayer(CMultiPropertyGroup &self, const sMultiPropertyLayerWrapper& TheLayer) {
auto result = self.AddLayer(TheLayer.toStruct());
return result;
}
static sMultiPropertyLayerWrapper wrap_MultiPropertyGroup_GetLayer(CMultiPropertyGroup &self, const Lib3MF_uint32& LayerIndex) {
auto result = self.GetLayer(LayerIndex);
sMultiPropertyLayerWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_ImageStack_SetSheet(CImageStack &self, const Lib3MF_uint32& Index, PAttachment& Sheet) {
self.SetSheet(Index, classParam(Sheet));
}
static void wrap_Texture2D_SetAttachment(CTexture2D &self, PAttachment& Attachment) {
self.SetAttachment(classParam(Attachment));
}
static void wrap_ResourceIdNode_SetResource(CResourceIdNode &self, PResource& Resource) {
self.SetResource(classParam(Resource));
}
static void wrap_ConstVecNode_SetVector(CConstVecNode &self, const sVectorWrapper& Value) {
self.SetVector(Value.toStruct());
}
static sVectorWrapper wrap_ConstVecNode_GetVector(CConstVecNode &self) {
auto result = self.GetVector();
sVectorWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_ConstMatNode_SetMatrix(CConstMatNode &self, const sMatrix4x4Wrapper& Value) {
self.SetMatrix(Value.toStruct());
}
static sMatrix4x4Wrapper wrap_ConstMatNode_GetMatrix(CConstMatNode &self) {
auto result = self.GetMatrix();
sMatrix4x4Wrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_Function_RemoveInput(CFunction &self, PImplicitPort& Input) {
self.RemoveInput(classParam(Input));
}
static void wrap_Function_RemoveOutput(CFunction &self, PImplicitPort& Output) {
self.RemoveOutput(classParam(Output));
}
static void wrap_ImplicitFunction_RemoveNode(CImplicitFunction &self, PImplicitNode& Node) {
self.RemoveNode(classParam(Node));
}
static void wrap_ImplicitFunction_AddLink(CImplicitFunction &self, PImplicitPort& Source, PImplicitPort& Target) {
self.AddLink(classParam(Source), classParam(Target));
}
static void wrap_FunctionFromImage3D_SetImage3D(CFunctionFromImage3D &self, PImage3D& Image3D) {
self.SetImage3D(classParam(Image3D));
}
static sTransformWrapper wrap_BuildItem_GetObjectTransform(CBuildItem &self) {
auto result = self.GetObjectTransform();
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_BuildItem_SetObjectTransform(CBuildItem &self, const sTransformWrapper& Transform) {
self.SetObjectTransform(Transform.toStruct());
}
static sBoxWrapper wrap_BuildItem_GetOutbox(CBuildItem &self) {
auto result = self.GetOutbox();
sBoxWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_Slice_SetVertices(CSlice &self, const std::vector<sPosition2DWrapper>& Vertices) {
std::vector<sPosition2D> converted_Vertices;
converted_Vertices.reserve(Vertices.size());
for (const auto& w : Vertices) converted_Vertices.push_back(w.toStruct());
self.SetVertices(converted_Vertices);
}
static void wrap_SliceStack_AddSliceStackReference(CSliceStack &self, PSliceStack& TheSliceStack) {
self.AddSliceStackReference(classParam(TheSliceStack));
}
static PAccessRight wrap_ResourceDataGroup_AddAccessRight(CResourceDataGroup &self, PConsumer& Consumer, const eWrappingAlgorithm& WrappingAlgorithm, const eMgfAlgorithm& MgfAlgorithm, const eDigestMethod& DigestMethod) {
auto result = self.AddAccessRight(classParam(Consumer), WrappingAlgorithm, MgfAlgorithm, DigestMethod);
return result;
}
static PAccessRight wrap_ResourceDataGroup_FindAccessRightByConsumer(CResourceDataGroup &self, PConsumer& Consumer) {
auto result = self.FindAccessRightByConsumer(classParam(Consumer));
return result;
}
static void wrap_ResourceDataGroup_RemoveAccessRight(CResourceDataGroup &self, PConsumer& Consumer) {
self.RemoveAccessRight(classParam(Consumer));
}
static void wrap_KeyStore_RemoveConsumer(CKeyStore &self, PConsumer& Consumer) {
self.RemoveConsumer(classParam(Consumer));
}
static void wrap_KeyStore_RemoveResourceDataGroup(CKeyStore &self, PResourceDataGroup& ResourceDataGroup) {
self.RemoveResourceDataGroup(classParam(ResourceDataGroup));
}
static PResourceDataGroup wrap_KeyStore_FindResourceDataGroup(CKeyStore &self, PPackagePart& PartPath) {
auto result = self.FindResourceDataGroup(classParam(PartPath));
return result;
}
static PResourceData wrap_KeyStore_AddResourceData(CKeyStore &self, PResourceDataGroup& ResourceDataGroup, PPackagePart& PartPath, const eEncryptionAlgorithm& Algorithm, const eCompression& Compression, std::vector<Lib3MF_uint8>& AdditionalAuthenticationData) {
auto result = self.AddResourceData(classParam(ResourceDataGroup), classParam(PartPath), Algorithm, Compression, AdditionalAuthenticationData);
return result;
}
static void wrap_KeyStore_RemoveResourceData(CKeyStore &self, PResourceData& ResourceData) {
self.RemoveResourceData(classParam(ResourceData));
}
static PResourceData wrap_KeyStore_FindResourceData(CKeyStore &self, PPackagePart& ResourcePath) {
auto result = self.FindResourceData(classParam(ResourcePath));
return result;
}
static sBoxWrapper wrap_Model_GetOutbox(CModel &self) {
auto result = self.GetOutbox();
sBoxWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static void wrap_Model_MergeFromModel(CModel &self, PModel& ModelInstance) {
self.MergeFromModel(classParam(ModelInstance));
}
static PTexture2D wrap_Model_AddTexture2DFromAttachment(CModel &self, PAttachment& TextureAttachment) {
auto result = self.AddTexture2DFromAttachment(classParam(TextureAttachment));
return result;
}
static PTexture2DGroup wrap_Model_AddTexture2DGroup(CModel &self, PTexture2D& Texture2DInstance) {
auto result = self.AddTexture2DGroup(classParam(Texture2DInstance));
return result;
}
static PCompositeMaterials wrap_Model_AddCompositeMaterials(CModel &self, PBaseMaterialGroup& BaseMaterialGroupInstance) {
auto result = self.AddCompositeMaterials(classParam(BaseMaterialGroupInstance));
return result;
}
static PBuildItem wrap_Model_AddBuildItem(CModel &self, PObject& Object, const sTransformWrapper& Transform) {
auto result = self.AddBuildItem(classParam(Object), Transform.toStruct());
return result;
}
static void wrap_Model_RemoveBuildItem(CModel &self, PBuildItem& BuildItemInstance) {
self.RemoveBuildItem(classParam(BuildItemInstance));
}
static void wrap_Model_RemoveAttachment(CModel &self, PAttachment& AttachmentInstance) {
self.RemoveAttachment(classParam(AttachmentInstance));
}
static PFunctionFromImage3D wrap_Model_AddFunctionFromImage3D(CModel &self, PImage3D& Image3DInstance) {
auto result = self.AddFunctionFromImage3D(classParam(Image3DInstance));
return result;
}
static void wrap_Model_RemoveResource(CModel &self, PResource& Resource) {
self.RemoveResource(classParam(Resource));
}
static void wrap_Wrapper_Release(CWrapper &self, PBase& Instance) {
self.Release(classParam(Instance));
}
static void wrap_Wrapper_Acquire(CWrapper &self, PBase& Instance) {
self.Acquire(classParam(Instance));
}
static sColorWrapper wrap_Wrapper_RGBAToColor(CWrapper &self, const Lib3MF_uint8& Red, const Lib3MF_uint8& Green, const Lib3MF_uint8& Blue, const Lib3MF_uint8& Alpha) {
auto result = self.RGBAToColor(Red, Green, Blue, Alpha);
sColorWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static sColorWrapper wrap_Wrapper_FloatRGBAToColor(CWrapper &self, const Lib3MF_single& Red, const Lib3MF_single& Green, const Lib3MF_single& Blue, const Lib3MF_single& Alpha) {
auto result = self.FloatRGBAToColor(Red, Green, Blue, Alpha);
sColorWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static sTransformWrapper wrap_Wrapper_GetIdentityTransform(CWrapper &self) {
auto result = self.GetIdentityTransform();
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static sTransformWrapper wrap_Wrapper_GetUniformScaleTransform(CWrapper &self, const Lib3MF_single& Factor) {
auto result = self.GetUniformScaleTransform(Factor);
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static sTransformWrapper wrap_Wrapper_GetScaleTransform(CWrapper &self, const Lib3MF_single& FactorX, const Lib3MF_single& FactorY, const Lib3MF_single& FactorZ) {
auto result = self.GetScaleTransform(FactorX, FactorY, FactorZ);
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static sTransformWrapper wrap_Wrapper_GetTranslationTransform(CWrapper &self, const Lib3MF_single& VectorX, const Lib3MF_single& VectorY, const Lib3MF_single& VectorZ) {
auto result = self.GetTranslationTransform(VectorX, VectorY, VectorZ);
sTransformWrapper wrapper;
wrapper.value = result;
return wrapper;
}
static emscripten::val wrap_Writer_WriteToBuffer(CWriter &self) {
emscripten::val output = emscripten::val::object();
std::vector<Lib3MF_uint8> Buffer;
self.WriteToBuffer(Buffer);
output.set("Buffer", Buffer);
return output;
}
static emscripten::val wrap_Writer_GetWarning(CWriter &self, const Lib3MF_uint32& Index) {
emscripten::val output = emscripten::val::object();
Lib3MF_uint32 ErrorCode;
std::string return_value = self.GetWarning(Index, ErrorCode);
output.set("return", return_value);
output.set("ErrorCode", ErrorCode);
return output;
}
static emscripten::val wrap_Reader_GetWarning(CReader &self, const Lib3MF_uint32& Index) {
emscripten::val output = emscripten::val::object();
Lib3MF_uint32 ErrorCode;
std::string return_value = self.GetWarning(Index, ErrorCode);
output.set("return", return_value);
output.set("ErrorCode", ErrorCode);
return output;
}
static emscripten::val wrap_TriangleSet_GetTriangleList(CTriangleSet &self) {
emscripten::val output = emscripten::val::object();
std::vector<Lib3MF_uint32> TriangleIndices;
self.GetTriangleList(TriangleIndices);
output.set("TriangleIndices", TriangleIndices);
return output;
}
static emscripten::val wrap_Object_GetUUID(CObject &self) {
emscripten::val output = emscripten::val::object();
bool HasUUID;
std::string return_value = self.GetUUID(HasUUID);
output.set("return", return_value);
output.set("HasUUID", HasUUID);
return output;
}
static emscripten::val wrap_MeshObject_GetVertices(CMeshObject &self) {
emscripten::val output = emscripten::val::object();
std::vector<sPosition> Vertices;
self.GetVertices(Vertices);
output.set("Vertices", Vertices);
return output;
}
static emscripten::val wrap_MeshObject_GetTriangleIndices(CMeshObject &self) {
emscripten::val output = emscripten::val::object();
std::vector<sTriangle> Indices;
self.GetTriangleIndices(Indices);
output.set("Indices", Indices);
return output;
}
static emscripten::val wrap_MeshObject_GetObjectLevelProperty(CMeshObject &self) {
emscripten::val output = emscripten::val::object();
Lib3MF_uint32 UniqueResourceID;
Lib3MF_uint32 PropertyID;
bool return_value = self.GetObjectLevelProperty(UniqueResourceID, PropertyID);
output.set("return", return_value);
output.set("UniqueResourceID", UniqueResourceID);
output.set("PropertyID", PropertyID);
return output;
}
static emscripten::val wrap_MeshObject_GetTriangleProperties(CMeshObject &self, const Lib3MF_uint32& Index) {
emscripten::val output = emscripten::val::object();
sTrianglePropertiesWrapper Property;
self.GetTriangleProperties(Index, Property.value);
output.set("Property", Property);
return output;
}
static emscripten::val wrap_MeshObject_GetAllTriangleProperties(CMeshObject &self) {
emscripten::val output = emscripten::val::object();
std::vector<sTriangleProperties> PropertiesArray;
self.GetAllTriangleProperties(PropertiesArray);
output.set("PropertiesArray", PropertiesArray);
return output;
}
static emscripten::val wrap_BeamLattice_GetClipping(CBeamLattice &self) {
emscripten::val output = emscripten::val::object();
eBeamLatticeClipMode ClipMode;
Lib3MF_uint32 UniqueResourceID;
self.GetClipping(ClipMode, UniqueResourceID);
output.set("ClipMode", ClipMode);
output.set("UniqueResourceID", UniqueResourceID);
return output;
}
static emscripten::val wrap_BeamLattice_GetRepresentation(CBeamLattice &self) {
emscripten::val output = emscripten::val::object();
Lib3MF_uint32 UniqueResourceID;
bool return_value = self.GetRepresentation(UniqueResourceID);
output.set("return", return_value);
output.set("UniqueResourceID", UniqueResourceID);
return output;
}
static emscripten::val wrap_BeamLattice_GetBallOptions(CBeamLattice &self) {
emscripten::val output = emscripten::val::object();
eBeamLatticeBallMode BallMode;
Lib3MF_double BallRadius;
self.GetBallOptions(BallMode, BallRadius);
output.set("BallMode", BallMode);
output.set("BallRadius", BallRadius);
return output;
}
static emscripten::val wrap_BeamLattice_GetBeams(CBeamLattice &self) {