質問編集履歴

3

書式の改善

2021/12/22 16:09

投稿

jy8666
jy8666

スコア2

test CHANGED
File without changes
test CHANGED
@@ -228,7 +228,7 @@
228
228
 
229
229
         sphere_stl = mesh.Mesh.from_file('grape.stl')
230
230
 
231
- sphere_points = sphere_stl.points.reshape([-1, 3])#stlから点群を抽出
231
+ sphere_points = sphere_stl.points.reshape([0,1,2,3])#stlから点群を抽出
232
232
 
233
233
 
234
234
 
@@ -256,10 +256,26 @@
256
256
 
257
257
 
258
258
 
259
-
260
-
261
-
262
-
263
-
264
-
265
259
  ```
260
+
261
+ ###エラー
262
+
263
+ ```
264
+
265
+ WARNING:root:Encountered issue in callback (most recent call last):
266
+
267
+ File "C:\Users\anaconda3\lib\site-packages\pyvista\plotting\render_window_interactor.py", line 133, in _click_callback
268
+
269
+ callback(self._plotter.pick_click_position())
270
+
271
+ File "sample.py", line 115, in right_click
272
+
273
+ print(approx(vector))
274
+
275
+ File "sample.py", line 78, in approx
276
+
277
+ sphere_points = sphere_stl.points.reshape([0,1,2,3])#stl から点群を抽出
278
+
279
+ ValueError: cannot reshape array of size 2069388 into shape (0,1,2,3)
280
+
281
+ ```

2

文字の修正

2021/12/22 16:09

投稿

jy8666
jy8666

スコア2

test CHANGED
File without changes
test CHANGED
@@ -8,7 +8,7 @@
8
8
 
9
9
  1個の3Dモデルを球近似するプログラムは既出ですが、近似する物体が複数個画面上にあるような3Dモデルの時はどうするのだろうかと思い質問させていただきました。
10
10
 
11
- よろしくお願いします。
11
+ 以下のソースコードではvalueエラーが出てしまい機能しないので解決策を教えてほしいです。よろしくお願いします。
12
12
 
13
13
 
14
14
 

1

書式の改善

2021/12/22 15:45

投稿

jy8666
jy8666

スコア2

test CHANGED
File without changes
test CHANGED
File without changes