@@ -33,6 +33,8 @@ import {
33
33
freeSurferAsciiWriteMesh ,
34
34
freeSurferBinaryReadMesh ,
35
35
freeSurferBinaryWriteMesh ,
36
+ mz3ReadMesh ,
37
+ mz3WriteMesh ,
36
38
objReadMesh ,
37
39
objWriteMesh ,
38
40
offReadMesh ,
@@ -47,6 +49,8 @@ import {
47
49
wasmWriteMesh ,
48
50
wasmZstdReadMesh ,
49
51
wasmZstdWriteMesh ,
52
+ mz3ReadPointSet ,
53
+ mz3WritePointSet ,
50
54
objReadPointSet ,
51
55
objWritePointSet ,
52
56
offReadPointSet ,
@@ -388,6 +392,73 @@ async function freeSurferBinaryWriteMesh(
388
392
| ` serializedMesh ` | * BinaryFile * | Output mesh |
389
393
| ` webWorker ` | * Worker * | WebWorker used for computation . |
390
394
395
+ #### mz3ReadMesh
396
+
397
+ * Read a mesh file format and convert it to the itk - wasm file format *
398
+
399
+ ` ` ` ts
400
+ async function mz3ReadMesh(
401
+ serializedMesh: File | BinaryFile,
402
+ options: Mz3ReadMeshOptions = {}
403
+ ) : Promise<Mz3ReadMeshResult>
404
+ ` ` `
405
+
406
+ | Parameter | Type | Description |
407
+ | :-------------- : | :---------------- - : | :-------------------------------------- - |
408
+ | ` serializedMesh ` | * File | BinaryFile * | Input mesh serialized in the file format |
409
+
410
+ ** ` Mz3ReadMeshOptions ` interface :**
411
+
412
+ | Property | Type | Description |
413
+ | :-------------- - : | :------------------------ - : | :---------------------------------------------------------------------------------------------------------------------------------------------------- |
414
+ | ` informationOnly ` | * boolean * | Only read image metadata -- do not read pixel data . |
415
+ | ` webWorker ` | * null or Worker or boolean * | WebWorker for computation . Set to null to create a new worker . Or , pass an existing worker . Or , set to ` false ` to run in the current thread / worker . |
416
+ | ` noCopy ` | * boolean * | When SharedArrayBuffer ' s are not available, do not copy inputs. |
417
+
418
+ ** ` Mz3ReadMeshResult ` interface :**
419
+
420
+ | Property | Type | Description |
421
+ | :-------- - : | :-------------- : | :---------------------------------------------------------------------- - |
422
+ | ` couldRead ` | * JsonCompatible * | Whether the input could be read . If false , the output mesh is not valid . |
423
+ | ` mesh ` | * Mesh * | Output mesh |
424
+ | ` webWorker ` | * Worker * | WebWorker used for computation . |
425
+
426
+ #### mz3WriteMesh
427
+
428
+ * Write an itk - wasm file format converted to an mesh file format *
429
+
430
+ ` ` ` ts
431
+ async function mz3WriteMesh(
432
+ mesh: Mesh,
433
+ serializedMesh: string,
434
+ options: Mz3WriteMeshOptions = {}
435
+ ) : Promise<Mz3WriteMeshResult>
436
+ ` ` `
437
+
438
+ | Parameter | Type | Description |
439
+ | :-------------- : | :------ : | :---------- |
440
+ | ` mesh ` | * Mesh * | Input mesh |
441
+ | ` serializedMesh ` | * string * | Output mesh |
442
+
443
+ ** ` Mz3WriteMeshOptions ` interface :**
444
+
445
+ | Property | Type | Description |
446
+ | :-------------- - : | :------------------------ - : | :---------------------------------------------------------------------------------------------------------------------------------------------------- |
447
+ | ` informationOnly ` | * boolean * | Only write image metadata -- do not write pixel data . |
448
+ | ` useCompression ` | * boolean * | Use compression in the written file , if supported |
449
+ | ` binaryFileType ` | * boolean * | Use a binary file type in the written file, if supported |
450
+ | `webWorker` | *null or Worker or boolean* | WebWorker for computation. Set to null to create a new worker. Or, pass an existing worker. Or, set to `false` to run in the current thread / worker. |
451
+ | `noCopy` | *boolean* | When SharedArrayBuffer's are not available, do not copy inputs. |
452
+
453
+ ** ` Mz3WriteMeshResult ` interface :**
454
+
455
+ | Property | Type | Description |
456
+ | :-------------- : | :-------------- : | :-------------------------------------------------------------------------- |
457
+ | ` couldWrite ` | * JsonCompatible * | Whether the input could be written . If false , the output mesh is not valid . |
458
+ | ` serializedMesh ` | * BinaryFile * | Output mesh |
459
+ | ` webWorker ` | * Worker * | WebWorker used for computation . |
460
+
461
+
391
462
#### objReadMesh
392
463
393
464
* Read a mesh file format and convert it to the itk - wasm file format *
@@ -885,6 +956,8 @@ import {
885
956
freeSurferAsciiWriteMeshNode,
886
957
freeSurferBinaryReadMeshNode,
887
958
freeSurferBinaryWriteMeshNode,
959
+ mz3ReadMeshNode,
960
+ mz3WriteMeshNode,
888
961
objReadMeshNode,
889
962
objWriteMeshNode,
890
963
offReadMeshNode,
@@ -899,6 +972,8 @@ import {
899
972
wasmWriteMeshNode,
900
973
wasmZstdReadMeshNode,
901
974
wasmZstdWriteMeshNode,
975
+ mz3ReadPointSetNode,
976
+ mz3WritePointSetNode,
902
977
objReadPointSetNode,
903
978
objWritePointSetNode,
904
979
offReadPointSetNode,
@@ -1092,6 +1167,66 @@ async function freeSurferBinaryWriteMeshNode(
1092
1167
| ` couldWrite ` | * JsonCompatible * | Whether the input could be written . If false , the output mesh is not valid . |
1093
1168
| ` serializedMesh ` | * BinaryFile * | Output mesh |
1094
1169
1170
+ #### mz3ReadMeshNode
1171
+
1172
+ * Read a mesh file format and convert it to the itk - wasm file format *
1173
+
1174
+ ` ` ` ts
1175
+ async function mz3ReadMeshNode(
1176
+ serializedMesh: string,
1177
+ options: Mz3ReadMeshNodeOptions = {}
1178
+ ) : Promise<Mz3ReadMeshNodeResult>
1179
+ ` ` `
1180
+
1181
+ | Parameter | Type | Description |
1182
+ | :-------------- : | :------ : | :-------------------------------------- - |
1183
+ | ` serializedMesh ` | * string * | Input mesh serialized in the file format |
1184
+
1185
+ ** ` Mz3ReadMeshNodeOptions ` interface :**
1186
+
1187
+ | Property | Type | Description |
1188
+ | :-------------- - : | :------ - : | :-------------------------------------------------- |
1189
+ | ` informationOnly ` | * boolean * | Only read image metadata -- do not read pixel data . |
1190
+
1191
+ ** ` Mz3ReadMeshNodeResult ` interface :**
1192
+
1193
+ | Property | Type | Description |
1194
+ | :-------- - : | :-------------- : | :---------------------------------------------------------------------- - |
1195
+ | ` couldRead ` | * JsonCompatible * | Whether the input could be read . If false , the output mesh is not valid . |
1196
+ | ` mesh ` | * Mesh * | Output mesh |
1197
+
1198
+ #### mz3WriteMeshNode
1199
+
1200
+ * Write an itk - wasm file format converted to an mesh file format *
1201
+
1202
+ ` ` ` ts
1203
+ async function mz3WriteMeshNode(
1204
+ mesh: Mesh,
1205
+ serializedMesh: string,
1206
+ options: Mz3WriteMeshNodeOptions = {}
1207
+ ) : Promise<Mz3WriteMeshNodeResult>
1208
+ ` ` `
1209
+
1210
+ | Parameter | Type | Description |
1211
+ | :-------------- : | :------ : | :---------- |
1212
+ | ` mesh ` | * Mesh * | Input mesh |
1213
+ | ` serializedMesh ` | * string * | Output mesh |
1214
+
1215
+ ** ` Mz3WriteMeshNodeOptions ` interface :**
1216
+
1217
+ | Property | Type | Description |
1218
+ | :-------------- - : | :------ - : | :------------------------------------------------------ - |
1219
+ | ` informationOnly ` | * boolean * | Only write image metadata -- do not write pixel data . |
1220
+ | ` useCompression ` | * boolean * | Use compression in the written file , if supported |
1221
+ | ` binaryFileType ` | * boolean * | Use a binary file type in the written file, if supported |
1222
+
1223
+ ** ` Mz3WriteMeshNodeResult ` interface :**
1224
+
1225
+ | Property | Type | Description |
1226
+ | :-------------- : | :-------------- : | :-------------------------------------------------------------------------- |
1227
+ | ` couldWrite ` | * JsonCompatible * | Whether the input could be written . If false , the output mesh is not valid . |
1228
+ | ` serializedMesh ` | * BinaryFile * | Output mesh |
1229
+
1095
1230
#### objReadMeshNode
1096
1231
1097
1232
* Read a mesh file format and convert it to the itk - wasm file format *
0 commit comments