w-mesh-tecplot 1.0.9 → 1.0.11

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/docs/global.html CHANGED
@@ -29,7 +29,7 @@
29
29
  <nav >
30
30
 
31
31
 
32
- <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WMeshTecplot">WMeshTecplot</a></li><li><a href="global.html#readTecplot">readTecplot</a></li><li><a href="global.html#writeTecplot">writeTecplot</a></li></ul>
32
+ <h2><a href="index.html">Home</a></h2><h3>Global</h3><ul><li><a href="global.html#WMeshTecplot">WMeshTecplot</a></li><li><a href="global.html#convertColumn">convertColumn</a></li><li><a href="global.html#convertLay">convertLay</a></li><li><a href="global.html#eachSliceValue">eachSliceValue</a></li><li><a href="global.html#execExportPng">execExportPng</a></li><li><a href="global.html#parseSliceData">parseSliceData</a></li><li><a href="global.html#parseViewData">parseViewData</a></li><li><a href="global.html#readTecplot">readTecplot</a></li><li><a href="global.html#writeTecplot">writeTecplot</a></li></ul>
33
33
 
34
34
  </nav>
35
35
 
@@ -206,6 +206,1278 @@
206
206
 
207
207
 
208
208
 
209
+ <h4 class="name" id="convertColumn"><span class="type-signature"></span>convertColumn<span class="signature">(eles)</span><span class="type-signature"> &rarr; {Object}</span></h4>
210
+
211
+
212
+
213
+
214
+
215
+
216
+ <dl class="details">
217
+
218
+ <dt class="tag-description">Description:</dt>
219
+ <dd class="tag-description"><ul class="dummy"><li><p>將柱狀(box)元素陣列轉換為Tecplot brick所需之節點與元素資料</p>
220
+ <p>各輸入元素以中心點(x、y、z)與長寬高(dx、dy、dz)展開為8個角節點,節點與元素皆帶有材料mat與類型type。</p></li></ul></dd>
221
+
222
+
223
+
224
+ <dt class="tag-source">Source:</dt>
225
+ <dd class="tag-source"><ul class="dummy"><li>
226
+ <a href="convertColumn.mjs.html">convertColumn.mjs</a>, <a href="convertColumn.mjs.html#line18">line 18</a>
227
+ </li></ul></dd>
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
+ </dl>
260
+
261
+
262
+
263
+
264
+
265
+
266
+
267
+
268
+
269
+
270
+
271
+ <h5 class="h5-examples">Example</h5>
272
+
273
+ <pre class="prettyprint"><code>let r = convertColumn([{ x: 0, y: 0, z: 0, dx: 1, dy: 1, dz: 1, mat: 1, type: 0 }])
274
+
275
+
276
+
277
+
278
+ <h5 class="h5-parameters">Parameters:</h5>
279
+
280
+
281
+ <table class="params">
282
+ <thead>
283
+ <tr>
284
+
285
+ <th>Name</th>
286
+
287
+
288
+ <th>Type</th>
289
+
290
+
291
+
292
+
293
+
294
+ <th class="last">Description</th>
295
+ </tr>
296
+ </thead>
297
+
298
+ <tbody>
299
+
300
+
301
+ <tr>
302
+
303
+ <td class="name"><code>eles</code></td>
304
+
305
+
306
+ <td class="type">
307
+
308
+
309
+ <span class="param-type">Array</span>
310
+
311
+
312
+
313
+
314
+ </td>
315
+
316
+
317
+
318
+
319
+
320
+ <td class="description last"><p>輸入元素物件陣列,各元素含x、y、z、dx、dy、dz、mat、type</p></td>
321
+ </tr>
322
+
323
+
324
+ </tbody>
325
+ </table>
326
+
327
+
328
+
329
+
330
+
331
+
332
+
333
+
334
+
335
+
336
+
337
+
338
+
339
+
340
+
341
+
342
+ <h5 class="h5-returns">Returns:</h5>
343
+
344
+
345
+ <div class="param-desc">
346
+ <p>回傳物件,含nodes(節點物件陣列,各含x、y、z、mat、type)與eles(元素物件陣列,各含nodes節點索引陣列、mat、type)</p>
347
+ </div>
348
+
349
+
350
+
351
+ <dl class="param-type">
352
+ <dt>
353
+ Type
354
+ </dt>
355
+ <dd>
356
+
357
+ <span class="param-type">Object</span>
358
+
359
+
360
+
361
+ </dd>
362
+ </dl>
363
+
364
+
365
+
366
+
367
+
368
+
369
+
370
+
371
+
372
+
373
+ <h4 class="name" id="convertLay"><span class="type-signature"></span>convertLay<span class="signature">(fpInLay, fnInDat, type, fpOutLay)</span><span class="type-signature"></span></h4>
374
+
375
+
376
+
377
+
378
+
379
+
380
+ <dl class="details">
381
+
382
+ <dt class="tag-description">Description:</dt>
383
+ <dd class="tag-description"><ul class="dummy"><li><p>由來源Tecplot的lay套用內建範本,另存為展示用lay</p>
384
+ <p>視角設定(三軸範圍、旋轉原點、視角位置、角度、視距)由來源lay經parseViewData內部解析後,替換範本內對應佔位符;當type為'slice'時,另由parseSliceData就地移植切片起訖點座標與中間切片數,來源lay缺少者沿用範本預設。</p></li></ul></dd>
385
+
386
+
387
+
388
+ <dt class="tag-source">Source:</dt>
389
+ <dd class="tag-source"><ul class="dummy"><li>
390
+ <a href="convertLay.mjs.html">convertLay.mjs</a>, <a href="convertLay.mjs.html#line31">line 31</a>
391
+ </li></ul></dd>
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
+ </dl>
424
+
425
+
426
+
427
+
428
+
429
+
430
+
431
+
432
+
433
+
434
+
435
+ <h5 class="h5-examples">Example</h5>
436
+
437
+ <pre class="prettyprint"><code>convertLay('./ttt.lay', 'abc', 'mesh', './out_mesh.lay')</code></pre>
438
+
439
+
440
+
441
+
442
+ <h5 class="h5-parameters">Parameters:</h5>
443
+
444
+
445
+ <table class="params">
446
+ <thead>
447
+ <tr>
448
+
449
+ <th>Name</th>
450
+
451
+
452
+ <th>Type</th>
453
+
454
+
455
+
456
+
457
+
458
+ <th class="last">Description</th>
459
+ </tr>
460
+ </thead>
461
+
462
+ <tbody>
463
+
464
+
465
+ <tr>
466
+
467
+ <td class="name"><code>fpInLay</code></td>
468
+
469
+
470
+ <td class="type">
471
+
472
+
473
+ <span class="param-type">String</span>
474
+
475
+
476
+
477
+
478
+ </td>
479
+
480
+
481
+
482
+
483
+
484
+ <td class="description last"><p>輸入來源Tecplot的lay檔案位置字串,供內部解析視角與切片設定</p></td>
485
+ </tr>
486
+
487
+
488
+
489
+ <tr>
490
+
491
+ <td class="name"><code>fnInDat</code></td>
492
+
493
+
494
+ <td class="type">
495
+
496
+
497
+ <span class="param-type">String</span>
498
+
499
+
500
+
501
+
502
+ </td>
503
+
504
+
505
+
506
+
507
+
508
+ <td class="description last"><p>輸入資料集名稱字串,替換範本內{fn}佔位符</p></td>
509
+ </tr>
510
+
511
+
512
+
513
+ <tr>
514
+
515
+ <td class="name"><code>type</code></td>
516
+
517
+
518
+ <td class="type">
519
+
520
+
521
+ <span class="param-type">String</span>
522
+
523
+
524
+
525
+
526
+ </td>
527
+
528
+
529
+
530
+
531
+
532
+ <td class="description last"><p>輸入範本類型字串,可選'mesh'、'hole'、'slice'</p></td>
533
+ </tr>
534
+
535
+
536
+
537
+ <tr>
538
+
539
+ <td class="name"><code>fpOutLay</code></td>
540
+
541
+
542
+ <td class="type">
543
+
544
+
545
+ <span class="param-type">String</span>
546
+
547
+
548
+
549
+
550
+ </td>
551
+
552
+
553
+
554
+
555
+
556
+ <td class="description last"><p>輸入另存展示用lay之檔案位置字串</p></td>
557
+ </tr>
558
+
559
+
560
+ </tbody>
561
+ </table>
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
+ <h4 class="name" id="eachSliceValue"><span class="type-signature"></span>eachSliceValue<span class="signature">(vs, fun)</span><span class="type-signature"></span></h4>
587
+
588
+
589
+
590
+
591
+
592
+
593
+ <dl class="details">
594
+
595
+ <dt class="tag-description">Description:</dt>
596
+ <dd class="tag-description"><ul class="dummy"><li><p>走訪Tecplot的lay內slice區段之每個可移植數值(切片起訖點座標與中間切片數),對每個值呼叫回調函數</p></li></ul></dd>
597
+
598
+
599
+
600
+ <dt class="tag-source">Source:</dt>
601
+ <dd class="tag-source"><ul class="dummy"><li>
602
+ <a href="parseSliceData.mjs.html">parseSliceData.mjs</a>, <a href="parseSliceData.mjs.html#line18">line 18</a>
603
+ </li></ul></dd>
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
+ </dl>
636
+
637
+
638
+
639
+
640
+
641
+
642
+
643
+
644
+
645
+
646
+
647
+ <h5 class="h5-examples">Example</h5>
648
+
649
+ <pre class="prettyprint"><code>eachSliceValue(vs, (key, k, val) => { ... })</code></pre>
650
+
651
+
652
+
653
+
654
+ <h5 class="h5-parameters">Parameters:</h5>
655
+
656
+
657
+ <table class="params">
658
+ <thead>
659
+ <tr>
660
+
661
+ <th>Name</th>
662
+
663
+
664
+ <th>Type</th>
665
+
666
+
667
+
668
+
669
+
670
+ <th class="last">Description</th>
671
+ </tr>
672
+ </thead>
673
+
674
+ <tbody>
675
+
676
+
677
+ <tr>
678
+
679
+ <td class="name"><code>vs</code></td>
680
+
681
+
682
+ <td class="type">
683
+
684
+
685
+ <span class="param-type">Array</span>
686
+
687
+
688
+
689
+
690
+ </td>
691
+
692
+
693
+
694
+
695
+
696
+ <td class="description last"><p>輸入lay逐行字串陣列</p></td>
697
+ </tr>
698
+
699
+
700
+
701
+ <tr>
702
+
703
+ <td class="name"><code>fun</code></td>
704
+
705
+
706
+ <td class="type">
707
+
708
+
709
+ <span class="param-type">function</span>
710
+
711
+
712
+
713
+
714
+ </td>
715
+
716
+
717
+
718
+
719
+
720
+ <td class="description last"><p>輸入回調函數,簽章為fun(key, k, val),key如'SLICE2_START_X'或'SLICE2_NUMINTER',k為該數值所在行索引,val為trim後字串</p></td>
721
+ </tr>
722
+
723
+
724
+ </tbody>
725
+ </table>
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
+ <h4 class="name" id="execExportPng"><span class="type-signature type-signature-async">(async) </span>execExportPng<span class="signature">(fpLay, fpOut, opt<span class="signature-attributes">opt</span>)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
751
+
752
+
753
+
754
+
755
+
756
+
757
+ <dl class="details">
758
+
759
+ <dt class="tag-description">Description:</dt>
760
+ <dd class="tag-description"><ul class="dummy"><li><p>呼叫Tecplot執行檔執行巨集(*.mcr),將lay輸出(export)為png圖檔</p>
761
+ <p>內部產生暫存巨集與暫存png,透過Tecplot批次模式產圖後改名至fpOut,並清除暫存檔;產圖失敗時throw。</p></li></ul></dd>
762
+
763
+
764
+
765
+ <dt class="tag-source">Source:</dt>
766
+ <dd class="tag-source"><ul class="dummy"><li>
767
+ <a href="execExportPng.mjs.html">execExportPng.mjs</a>, <a href="execExportPng.mjs.html#line31">line 31</a>
768
+ </li></ul></dd>
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
+ </dl>
801
+
802
+
803
+
804
+
805
+
806
+
807
+
808
+
809
+
810
+
811
+
812
+ <h5 class="h5-examples">Example</h5>
813
+
814
+ <pre class="prettyprint"><code>await execExportPng('./ttt.lay', './out.png')</code></pre>
815
+
816
+
817
+
818
+
819
+ <h5 class="h5-parameters">Parameters:</h5>
820
+
821
+
822
+ <table class="params">
823
+ <thead>
824
+ <tr>
825
+
826
+ <th>Name</th>
827
+
828
+
829
+ <th>Type</th>
830
+
831
+
832
+ <th>Attributes</th>
833
+
834
+
835
+
836
+ <th>Default</th>
837
+
838
+
839
+ <th class="last">Description</th>
840
+ </tr>
841
+ </thead>
842
+
843
+ <tbody>
844
+
845
+
846
+ <tr>
847
+
848
+ <td class="name"><code>fpLay</code></td>
849
+
850
+
851
+ <td class="type">
852
+
853
+
854
+ <span class="param-type">String</span>
855
+
856
+
857
+
858
+
859
+ </td>
860
+
861
+
862
+ <td class="attributes">
863
+
864
+
865
+
866
+
867
+
868
+ </td>
869
+
870
+
871
+
872
+ <td class="default">
873
+
874
+ </td>
875
+
876
+
877
+ <td class="description last"><p>輸入Tecplot的lay檔案位置字串</p></td>
878
+ </tr>
879
+
880
+
881
+
882
+ <tr>
883
+
884
+ <td class="name"><code>fpOut</code></td>
885
+
886
+
887
+ <td class="type">
888
+
889
+
890
+ <span class="param-type">String</span>
891
+
892
+
893
+
894
+
895
+ </td>
896
+
897
+
898
+ <td class="attributes">
899
+
900
+
901
+
902
+
903
+
904
+ </td>
905
+
906
+
907
+
908
+ <td class="default">
909
+
910
+ </td>
911
+
912
+
913
+ <td class="description last"><p>輸入另存png圖檔之檔案位置字串</p></td>
914
+ </tr>
915
+
916
+
917
+
918
+ <tr>
919
+
920
+ <td class="name"><code>opt</code></td>
921
+
922
+
923
+ <td class="type">
924
+
925
+
926
+ <span class="param-type">Object</span>
927
+
928
+
929
+
930
+
931
+ </td>
932
+
933
+
934
+ <td class="attributes">
935
+
936
+ &lt;optional><br>
937
+
938
+
939
+
940
+
941
+
942
+ </td>
943
+
944
+
945
+
946
+ <td class="default">
947
+
948
+ <code>{}</code>
949
+
950
+ </td>
951
+
952
+
953
+ <td class="description last"><p>輸入設定物件,預設{}</p>
954
+ <h6>Properties</h6>
955
+
956
+
957
+ <table class="params">
958
+ <thead>
959
+ <tr>
960
+
961
+ <th>Name</th>
962
+
963
+
964
+ <th>Type</th>
965
+
966
+
967
+ <th>Attributes</th>
968
+
969
+
970
+
971
+ <th>Default</th>
972
+
973
+
974
+ <th class="last">Description</th>
975
+ </tr>
976
+ </thead>
977
+
978
+ <tbody>
979
+
980
+
981
+ <tr>
982
+
983
+ <td class="name"><code>head</code></td>
984
+
985
+
986
+ <td class="type">
987
+
988
+
989
+ <span class="param-type">String</span>
990
+
991
+
992
+
993
+
994
+ </td>
995
+
996
+
997
+ <td class="attributes">
998
+
999
+ &lt;optional><br>
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+ </td>
1006
+
1007
+
1008
+
1009
+ <td class="default">
1010
+
1011
+ </td>
1012
+
1013
+
1014
+ <td class="description last"><p>輸入巨集開頭字串,預設'#!MC 1400'</p></td>
1015
+ </tr>
1016
+
1017
+
1018
+
1019
+ <tr>
1020
+
1021
+ <td class="name"><code>fpExe</code></td>
1022
+
1023
+
1024
+ <td class="type">
1025
+
1026
+
1027
+ <span class="param-type">String</span>
1028
+
1029
+
1030
+
1031
+
1032
+ </td>
1033
+
1034
+
1035
+ <td class="attributes">
1036
+
1037
+ &lt;optional><br>
1038
+
1039
+
1040
+
1041
+
1042
+
1043
+ </td>
1044
+
1045
+
1046
+
1047
+ <td class="default">
1048
+
1049
+ </td>
1050
+
1051
+
1052
+ <td class="description last"><p>輸入Tecplot執行檔位置字串,預設'C:\Program Files\Tecplot\Tec360 2013R1\bin\tec360.exe'</p></td>
1053
+ </tr>
1054
+
1055
+
1056
+
1057
+ <tr>
1058
+
1059
+ <td class="name"><code>widthPic</code></td>
1060
+
1061
+
1062
+ <td class="type">
1063
+
1064
+
1065
+ <span class="param-type">Number</span>
1066
+
1067
+
1068
+
1069
+
1070
+ </td>
1071
+
1072
+
1073
+ <td class="attributes">
1074
+
1075
+ &lt;optional><br>
1076
+
1077
+
1078
+
1079
+
1080
+
1081
+ </td>
1082
+
1083
+
1084
+
1085
+ <td class="default">
1086
+
1087
+ <code>1000</code>
1088
+
1089
+ </td>
1090
+
1091
+
1092
+ <td class="description last"><p>輸入輸出圖片寬度數字,預設1000</p></td>
1093
+ </tr>
1094
+
1095
+
1096
+ </tbody>
1097
+ </table>
1098
+
1099
+ </td>
1100
+ </tr>
1101
+
1102
+
1103
+ </tbody>
1104
+ </table>
1105
+
1106
+
1107
+
1108
+
1109
+
1110
+
1111
+
1112
+
1113
+
1114
+
1115
+
1116
+
1117
+
1118
+
1119
+
1120
+
1121
+ <h5 class="h5-returns">Returns:</h5>
1122
+
1123
+
1124
+ <div class="param-desc">
1125
+ <p>回傳Promise,resolve回傳undefined,reject回傳錯誤訊息</p>
1126
+ </div>
1127
+
1128
+
1129
+
1130
+ <dl class="param-type">
1131
+ <dt>
1132
+ Type
1133
+ </dt>
1134
+ <dd>
1135
+
1136
+ <span class="param-type">Promise</span>
1137
+
1138
+
1139
+
1140
+ </dd>
1141
+ </dl>
1142
+
1143
+
1144
+
1145
+
1146
+
1147
+
1148
+
1149
+
1150
+
1151
+
1152
+ <h4 class="name" id="parseSliceData"><span class="type-signature"></span>parseSliceData<span class="signature">(fpLay)</span><span class="type-signature"> &rarr; {Object}</span></h4>
1153
+
1154
+
1155
+
1156
+
1157
+
1158
+
1159
+ <dl class="details">
1160
+
1161
+ <dt class="tag-description">Description:</dt>
1162
+ <dd class="tag-description"><ul class="dummy"><li><p>解析Tecplot的lay,提取slice切片起訖點座標與中間切片數</p>
1163
+ <p>容錯設計:僅回傳實際解析到的鍵,來源lay未設定者不納入(與parseViewData之嚴格throw不同)。</p></li></ul></dd>
1164
+
1165
+
1166
+
1167
+ <dt class="tag-source">Source:</dt>
1168
+ <dd class="tag-source"><ul class="dummy"><li>
1169
+ <a href="parseSliceData.mjs.html">parseSliceData.mjs</a>, <a href="parseSliceData.mjs.html#line87">line 87</a>
1170
+ </li></ul></dd>
1171
+
1172
+
1173
+
1174
+
1175
+
1176
+
1177
+
1178
+
1179
+
1180
+
1181
+
1182
+
1183
+
1184
+
1185
+
1186
+
1187
+
1188
+
1189
+
1190
+
1191
+
1192
+
1193
+
1194
+
1195
+
1196
+
1197
+
1198
+
1199
+
1200
+
1201
+
1202
+ </dl>
1203
+
1204
+
1205
+
1206
+
1207
+
1208
+
1209
+
1210
+
1211
+
1212
+
1213
+
1214
+ <h5 class="h5-examples">Example</h5>
1215
+
1216
+ <pre class="prettyprint"><code>let kpSlice = parseSliceData('./ttt.lay')
1217
+ // => { SLICE1_START_X: '251615.668889', ..., SLICE2_NUMINTER: '3' }</code></pre>
1218
+
1219
+
1220
+
1221
+
1222
+ <h5 class="h5-parameters">Parameters:</h5>
1223
+
1224
+
1225
+ <table class="params">
1226
+ <thead>
1227
+ <tr>
1228
+
1229
+ <th>Name</th>
1230
+
1231
+
1232
+ <th>Type</th>
1233
+
1234
+
1235
+
1236
+
1237
+
1238
+ <th class="last">Description</th>
1239
+ </tr>
1240
+ </thead>
1241
+
1242
+ <tbody>
1243
+
1244
+
1245
+ <tr>
1246
+
1247
+ <td class="name"><code>fpLay</code></td>
1248
+
1249
+
1250
+ <td class="type">
1251
+
1252
+
1253
+ <span class="param-type">String</span>
1254
+
1255
+
1256
+
1257
+
1258
+ </td>
1259
+
1260
+
1261
+
1262
+
1263
+
1264
+ <td class="description last"><p>輸入Tecplot的lay檔案位置字串</p></td>
1265
+ </tr>
1266
+
1267
+
1268
+ </tbody>
1269
+ </table>
1270
+
1271
+
1272
+
1273
+
1274
+
1275
+
1276
+
1277
+
1278
+
1279
+
1280
+
1281
+
1282
+
1283
+
1284
+
1285
+
1286
+ <h5 class="h5-returns">Returns:</h5>
1287
+
1288
+
1289
+ <div class="param-desc">
1290
+ <p>回傳切片設定物件,各值為trim後字串,鍵如SLICE2_START_X、SLICE2_NUMINTER</p>
1291
+ </div>
1292
+
1293
+
1294
+
1295
+ <dl class="param-type">
1296
+ <dt>
1297
+ Type
1298
+ </dt>
1299
+ <dd>
1300
+
1301
+ <span class="param-type">Object</span>
1302
+
1303
+
1304
+
1305
+ </dd>
1306
+ </dl>
1307
+
1308
+
1309
+
1310
+
1311
+
1312
+
1313
+
1314
+
1315
+
1316
+
1317
+ <h4 class="name" id="parseViewData"><span class="type-signature"></span>parseViewData<span class="signature">(fpLay)</span><span class="type-signature"> &rarr; {Object}</span></h4>
1318
+
1319
+
1320
+
1321
+
1322
+
1323
+
1324
+ <dl class="details">
1325
+
1326
+ <dt class="tag-description">Description:</dt>
1327
+ <dd class="tag-description"><ul class="dummy"><li><p>解析Tecplot的lay,提取展示相關之視角與模型設定</p>
1328
+ <p>提取三軸範圍與網格間距(XDETAIL/YDETAIL/ZDETAIL之RANGEMIN、RANGEMAX、GRSPACING)、旋轉原點(ROTATEORIGIN_X/Y/Z)、視角位置(VIEWERPOSITION_X/Y/Z)、視角角度(PSIANGLE、THETAANGLE、ALPHAANGLE)與視距(VIEWWIDTH)共19項;任一欄位非數字即throw。</p></li></ul></dd>
1329
+
1330
+
1331
+
1332
+ <dt class="tag-source">Source:</dt>
1333
+ <dd class="tag-source"><ul class="dummy"><li>
1334
+ <a href="parseViewData.mjs.html">parseViewData.mjs</a>, <a href="parseViewData.mjs.html#line23">line 23</a>
1335
+ </li></ul></dd>
1336
+
1337
+
1338
+
1339
+
1340
+
1341
+
1342
+
1343
+
1344
+
1345
+
1346
+
1347
+
1348
+
1349
+
1350
+
1351
+
1352
+
1353
+
1354
+
1355
+
1356
+
1357
+
1358
+
1359
+
1360
+
1361
+
1362
+
1363
+
1364
+
1365
+
1366
+
1367
+ </dl>
1368
+
1369
+
1370
+
1371
+
1372
+
1373
+
1374
+
1375
+
1376
+
1377
+
1378
+
1379
+ <h5 class="h5-examples">Example</h5>
1380
+
1381
+ <pre class="prettyprint"><code>let kp = parseViewData('./ttt.lay')
1382
+
1383
+
1384
+
1385
+
1386
+ <h5 class="h5-parameters">Parameters:</h5>
1387
+
1388
+
1389
+ <table class="params">
1390
+ <thead>
1391
+ <tr>
1392
+
1393
+ <th>Name</th>
1394
+
1395
+
1396
+ <th>Type</th>
1397
+
1398
+
1399
+
1400
+
1401
+
1402
+ <th class="last">Description</th>
1403
+ </tr>
1404
+ </thead>
1405
+
1406
+ <tbody>
1407
+
1408
+
1409
+ <tr>
1410
+
1411
+ <td class="name"><code>fpLay</code></td>
1412
+
1413
+
1414
+ <td class="type">
1415
+
1416
+
1417
+ <span class="param-type">String</span>
1418
+
1419
+
1420
+
1421
+
1422
+ </td>
1423
+
1424
+
1425
+
1426
+
1427
+
1428
+ <td class="description last"><p>輸入Tecplot的lay檔案位置字串</p></td>
1429
+ </tr>
1430
+
1431
+
1432
+ </tbody>
1433
+ </table>
1434
+
1435
+
1436
+
1437
+
1438
+
1439
+
1440
+
1441
+
1442
+
1443
+
1444
+
1445
+
1446
+
1447
+
1448
+
1449
+
1450
+ <h5 class="h5-returns">Returns:</h5>
1451
+
1452
+
1453
+ <div class="param-desc">
1454
+ <p>回傳視角設定物件,各值為等號後含前導空白之原字串,鍵含XDETAIL_RANGEMIN至VIEWWIDTH共19項</p>
1455
+ </div>
1456
+
1457
+
1458
+
1459
+ <dl class="param-type">
1460
+ <dt>
1461
+ Type
1462
+ </dt>
1463
+ <dd>
1464
+
1465
+ <span class="param-type">Object</span>
1466
+
1467
+
1468
+
1469
+ </dd>
1470
+ </dl>
1471
+
1472
+
1473
+
1474
+
1475
+
1476
+
1477
+
1478
+
1479
+
1480
+
209
1481
  <h4 class="name" id="readTecplot"><span class="type-signature type-signature-async">(async) </span>readTecplot<span class="signature">(fp)</span><span class="type-signature"> &rarr; {Promise}</span></h4>
210
1482
 
211
1483
 
@@ -642,7 +1914,7 @@
642
1914
  <br class="clear">
643
1915
 
644
1916
  <footer>
645
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.2</a> on Tue Oct 07 2025 10:57:17 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
1917
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 4.0.5</a> on Thu Jul 02 2026 17:41:31 GMT+0800 (台北標準時間) using the <a href="https://github.com/clenemt/docdash">docdash</a> theme.
646
1918
  </footer>
647
1919
 
648
1920
  <script>prettyPrint();</script>