質問編集履歴

1

内容を改善しました

2020/09/01 01:56

投稿

astromelt0416
astromelt0416

スコア15

test CHANGED
File without changes
test CHANGED
@@ -4,93 +4,65 @@
4
4
 
5
5
  以下のような三次元のデータセット(座標x,座標y,座標z,値w)があります。
6
6
 
7
+ (2020/09/01:データセットをテスト用に変更しました。)
7
8
 
8
9
 
9
- ```test
10
10
 
11
- 21.000000000000000 20.784609690826528 21.000000000000000 0.36762773602405902
11
+ ```test2
12
12
 
13
- 22.000000000000000 20.784609690826528 21.000000000000000 -0.76503366997639299
13
+ 1.0000000000000000 1.0000000000000000 1.0000000000000000 -0.13158839827673241
14
14
 
15
- 23.000000000000000 20.784609690826528 21.000000000000000 -0.99932965921787298
15
+ 2.0000000000000000 1.0000000000000000 1.0000000000000000 0.71925334812124575
16
16
 
17
- 20.500000000000000 21.650635094610966 21.000000000000000 0.50959339073286702
17
+ 3.0000000000000000 1.0000000000000000 1.0000000000000000 0.78471142747083489
18
18
 
19
- 21.500000000000000 21.650635094610966 21.000000000000000 0.53289055562116305
19
+ 1.0000000000000000 2.0000000000000000 1.0000000000000000 0.80090268277584165
20
20
 
21
- 22.500000000000000 21.650635094610966 21.000000000000000 0.51387287644585100
21
+ 2.0000000000000000 2.0000000000000000 1.0000000000000000 0.47791159839320740
22
22
 
23
- 23.500000000000000 21.650635094610966 21.000000000000000 0.93938575587905504
23
+ 3.0000000000000000 2.0000000000000000 1.0000000000000000 -0.66020035502971153
24
24
 
25
- 21.000000000000000 22.516660498395403 21.000000000000000 0.74912909531051797
25
+ 1.0000000000000000 3.0000000000000000 1.0000000000000000 0.59567696265775649
26
26
 
27
- 22.000000000000000 22.516660498395403 21.000000000000000 0.96393826365543300
27
+ 2.0000000000000000 3.0000000000000000 1.0000000000000000 0.63414183529888790
28
28
 
29
- 23.000000000000000 22.516660498395403 21.000000000000000 0.82253648870482299
29
+ 3.0000000000000000 3.0000000000000000 1.0000000000000000 -0.76203127712058638
30
30
 
31
- 20.500000000000000 23.382685902179841 21.000000000000000 0.96750099459057604
31
+ 1.0000000000000000 1.0000000000000000 2.0000000000000000 -0.86357330388007059
32
32
 
33
- 21.500000000000000 23.382685902179841 21.000000000000000 0.54171633834693500
33
+ 2.0000000000000000 1.0000000000000000 2.0000000000000000 -0.77094770683230540
34
34
 
35
- 22.500000000000000 23.382685902179841 21.000000000000000 -0.49411724598099399
35
+ 3.0000000000000000 1.0000000000000000 2.0000000000000000 -0.38407329315880157
36
36
 
37
- 23.500000000000000 23.382685902179841 21.000000000000000 0.71008294427895202
37
+ 1.0000000000000000 2.0000000000000000 2.0000000000000000 -0.77643663058440127
38
38
 
39
- 21.000000000000000 20.784609690826528 22.000000000000000 0.47089478204533203
39
+ 2.0000000000000000 2.0000000000000000 2.0000000000000000 0.29485883547339098
40
40
 
41
- 22.000000000000000 20.784609690826528 22.000000000000000 -0.48966440290941199
41
+ 3.0000000000000000 2.0000000000000000 2.0000000000000000 -0.90345817476125856
42
42
 
43
- 23.000000000000000 20.784609690826528 22.000000000000000 -0.75110417874224800
43
+ 1.0000000000000000 3.0000000000000000 2.0000000000000000 0.11249311806459295
44
44
 
45
- 20.500000000000000 21.650635094610966 22.000000000000000 -0.29231934984993402
45
+ 2.0000000000000000 3.0000000000000000 2.0000000000000000 -0.69983754858836478
46
46
 
47
- 21.500000000000000 21.650635094610966 22.000000000000000 0.52244778023291805
47
+ 3.0000000000000000 3.0000000000000000 2.0000000000000000 -0.41968109538305576
48
48
 
49
- 22.500000000000000 21.650635094610966 22.000000000000000 0.33588612156110798
49
+ 1.0000000000000000 1.0000000000000000 3.0000000000000000 -0.67405952831591942
50
50
 
51
- 23.500000000000000 21.650635094610966 22.000000000000000 0.57297344967052499
51
+ 2.0000000000000000 1.0000000000000000 3.0000000000000000 0.17664524847097818
52
52
 
53
- 21.000000000000000 22.516660498395403 22.000000000000000 0.76011108493218804
53
+ 3.0000000000000000 1.0000000000000000 3.0000000000000000 0.40055391690706688
54
54
 
55
- 22.000000000000000 22.516660498395403 22.000000000000000 0.95215768341148899
55
+ 1.0000000000000000 2.0000000000000000 3.0000000000000000 0.54128168000403831
56
56
 
57
- 23.000000000000000 22.516660498395403 22.000000000000000 0.45565677027778401
57
+ 2.0000000000000000 2.0000000000000000 3.0000000000000000 0.13337159555716704
58
58
 
59
- 20.500000000000000 23.382685902179841 22.000000000000000 0.83501909968891797
59
+ 3.0000000000000000 2.0000000000000000 3.0000000000000000 0.61191841485256293
60
60
 
61
- 21.500000000000000 23.382685902179841 22.000000000000000 0.14404150412601699
61
+ 1.0000000000000000 3.0000000000000000 3.0000000000000000 0.19400358833232989
62
62
 
63
- 22.500000000000000 23.382685902179841 22.000000000000000 -0.69902529737479502
63
+ 2.0000000000000000 3.0000000000000000 3.0000000000000000 -0.32331996535028329
64
64
 
65
- 23.500000000000000 23.382685902179841 22.000000000000000 -0.28290903761085900
66
-
67
- 21.000000000000000 20.784609690826528 23.000000000000000 0.63038968590583500
68
-
69
- 22.000000000000000 20.784609690826528 23.000000000000000 0.15788958679633100
70
-
71
- 23.000000000000000 20.784609690826528 23.000000000000000 -0.85471062141201803
65
+ 3.0000000000000000 3.0000000000000000 3.0000000000000000 -0.29791180540293261
72
-
73
- 20.500000000000000 21.650635094610966 23.000000000000000 0.14517695464640701
74
-
75
- 21.500000000000000 21.650635094610966 23.000000000000000 0.92571997753805202
76
-
77
- 22.500000000000000 21.650635094610966 23.000000000000000 0.48034013680882298
78
-
79
- 23.500000000000000 21.650635094610966 23.000000000000000 0.98448456343896795
80
-
81
- 21.000000000000000 22.516660498395403 23.000000000000000 5.3707461383729387E-002
82
-
83
- 22.000000000000000 22.516660498395403 23.000000000000000 0.69006836749195000
84
-
85
- 23.000000000000000 22.516660498395403 23.000000000000000 0.78132223797143197
86
-
87
- 20.500000000000000 23.382685902179841 23.000000000000000 0.80988507635854401
88
-
89
- 21.500000000000000 23.382685902179841 23.000000000000000 0.70556890542225403
90
-
91
- 22.500000000000000 23.382685902179841 23.000000000000000 -5.6205713949508129E-002
92
-
93
- 23.500000000000000 23.382685902179841 23.000000000000000 -0.49712719738417699
94
66
 
95
67
  ```
96
68
 
@@ -140,7 +112,7 @@
140
112
 
141
113
 
142
114
 
143
- f = open('test.d')
115
+ f = open('test2.d')
144
116
 
145
117
  for line in f:
146
118
 
@@ -176,9 +148,7 @@
176
148
 
177
149
  結果は以下のようになります。
178
150
 
179
- ![イメージ説明](0f21d742f5ea821001f7d6b9ab9ac9b1.png)
151
+ ![イメージ説明](558cb2b6b4bcf2bfc3ff096da5f4b106.png)
180
-
181
-
182
152
 
183
153
 
184
154
 
@@ -197,3 +167,17 @@
197
167
 
198
168
 
199
169
  詳しい方がいらっしゃればよろしくお願いします
170
+
171
+
172
+
173
+ ###追記
174
+
175
+ 具体的には以下のようなイメージです。
176
+
177
+ 写真のように、補間を各面上にある点に対して行う(下の画像中の黒の点を追加する、実際の色は値wで補間しているためグラデーションになるはずです。)ことで、連続な一つの面に見ることができます。
178
+
179
+ これと同じ操作を他の5面に対しても行うことで、外側から見た分には値wで連続した面が見えるようになるかと思います。今回は内部の点に関しては補間を適用していただかなくて大丈夫です。
180
+
181
+
182
+
183
+ ![イメージ説明](e12154b9f8afe89f8f7017e53f30f115.png)