Wenn ich jetzt den ganzen Code der Bibliothek laufen lasse kommt folgender Fehler:
Code: Alles auswählen
[(0.19995470506696, 0.199980986871306, 0.0), (0.19995470506696, 0.199980986871306, 2.6), (0.19995470506696, 6.59998098687132, 0.0), (0.19995470506696, 6.59998098687132, 2.6), (0.19995470506696, 6.59998098687132, 0.0), (0.19995470506696, 6.59998098687132, 2.6), (-4.52949330401187e-05, 6.59998098687132, 0.0), (-4.52949330401187e-05, 6.59998098687132, 2.6), (-4.52949330401187e-05, 6.59998098687132, 0.0), (-4.52949330401187e-05, 6.59998098687132, 2.6), (-4.52949330401187e-05, 0.199980986871306, 0.0), (-4.52949330401187e-05, 0.199980986871306, 2.6), (-4.52949330401187e-05, 0.199980986871306, 0.0), (-4.52949330401187e-05, 0.199980986871306, 2.6), (0.19995470506696, 0.199980986871306, 0.0), (0.19995470506696, 0.199980986871306, 2.6), (0.19995470506696, 0.199980986871306, 0.0), (0.19995470506696, 6.59998098687132, 0.0), (-4.52949330401187e-05, 6.59998098687132, 0.0), (-4.52949330401187e-05, 0.199980986871306, 0.0), (0.19995470506696, 0.199980986871306, 2.6), (0.19995470506696, 6.59998098687132, 2.6), (-4.52949330401187e-05, 6.59998098687132, 2.6), (-4.52949330401187e-05, 0.199980986871306, 2.6), (8.69995470506695, 0.19998098687131, 0.0), (8.69995470506695, 0.19998098687131, 2.6), (-4.52949330507576e-05, 0.19998098687131, 0.0), (-4.52949330507576e-05, 0.19998098687131, 2.6), (-4.52949330507576e-05, 0.19998098687131, 0.0), (-4.52949330507576e-05, 0.19998098687131, 2.6), (-4.52949330507576e-05, -1.90131286900014e-05, 0.0), (-4.52949330507576e-05, -1.90131286900014e-05, 2.6), (-4.52949330507576e-05, -1.90131286900014e-05, 0.0), (-4.52949330507576e-05, -1.90131286900014e-05, 2.6), (8.69995470506695, -1.90131286900014e-05, 0.0), (8.69995470506695, -1.90131286900014e-05, 2.6), (8.69995470506695, -1.90131286900014e-05, 0.0), (8.69995470506695, -1.90131286900014e-05, 2.6), (8.69995470506695, 0.19998098687131, 0.0), (8.69995470506695, 0.19998098687131, 2.6), (8.69995470506695, 0.19998098687131, 0.0), (-4.52949330507576e-05, 0.19998098687131, 0.0), (-4.52949330507576e-05, -1.90131286900014e-05, 0.0), (8.69995470506695, -1.90131286900014e-05, 0.0), (8.69995470506695, 0.19998098687131, 2.6), (-4.52949330507576e-05, 0.19998098687131, 2.6), (-4.52949330507576e-05, -1.90131286900014e-05, 2.6), (8.69995470506695, -1.90131286900014e-05, 2.6), (8.49995470506695, 6.7999809868713, 0.0), (8.49995470506695, 6.7999809868713, 2.6), (8.49995470506695, 0.199980986871296, 0.0), (8.49995470506695, 0.199980986871296, 2.6), (8.49995470506695, 0.199980986871296, 0.0), (8.49995470506695, 0.199980986871296, 2.6), (8.69995470506695, 0.199980986871296, 0.0), (8.69995470506695, 0.199980986871296, 2.6), (8.69995470506695, 0.199980986871296, 0.0), (8.69995470506695, 0.199980986871296, 2.6), (8.69995470506695, 6.7999809868713, 0.0), (8.69995470506695, 6.7999809868713, 2.6), (8.69995470506695, 6.7999809868713, 0.0), (8.69995470506695, 6.7999809868713, 2.6), (8.49995470506695, 6.7999809868713, 0.0), (8.49995470506695, 6.7999809868713, 2.6), (8.49995470506695, 6.7999809868713, 0.0), (8.49995470506695, 0.199980986871296, 0.0), (8.69995470506695, 0.199980986871296, 0.0), (8.69995470506695, 6.7999809868713, 0.0), (8.49995470506695, 6.7999809868713, 2.6), (8.49995470506695, 0.199980986871296, 2.6), (8.69995470506695, 0.199980986871296, 2.6), (8.69995470506695, 6.7999809868713, 2.6), (-4.52949330362884e-05, 6.5999809868713, 0.0), (-4.52949330362884e-05, 6.5999809868713, 2.6), (8.49995470506695, 6.5999809868713, 0.0), (8.49995470506695, 6.5999809868713, 2.6), (8.49995470506695, 6.5999809868713, 0.0), (8.49995470506695, 6.5999809868713, 2.6), (8.49995470506695, 6.7999809868713, 0.0), (8.49995470506695, 6.7999809868713, 2.6), (8.49995470506695, 6.7999809868713, 0.0), (8.49995470506695, 6.7999809868713, 2.6), (-4.52949330362884e-05, 6.7999809868713, 0.0), (-4.52949330362884e-05, 6.7999809868713, 2.6), (-4.52949330362884e-05, 6.7999809868713, 0.0), (-4.52949330362884e-05, 6.7999809868713, 2.6), (-4.52949330362884e-05, 6.5999809868713, 0.0), (-4.52949330362884e-05, 6.5999809868713, 2.6), (-4.52949330362884e-05, 6.5999809868713, 0.0), (8.49995470506695, 6.5999809868713, 0.0), (8.49995470506695, 6.7999809868713, 0.0), (-4.52949330362884e-05, 6.7999809868713, 0.0), (-4.52949330362884e-05, 6.5999809868713, 2.6), (8.49995470506695, 6.5999809868713, 2.6), (8.49995470506695, 6.7999809868713, 2.6), (-4.52949330362884e-05, 6.7999809868713, 2.6)]
[[1, 0, 2], [3, 1, 2], [5, 4, 6], [7, 5, 6], [9, 8, 10], [11, 9, 10], [13, 12, 14], [15, 13, 14], [18, 17, 16], [19, 18, 16], [20, 21, 22], [20, 22, 23], [25, 24, 26], [27, 25, 26], [29, 28, 30], [31, 29, 30], [33, 32, 34], [35, 33, 34], [37, 36, 38], [39, 37, 38], [42, 41, 40], [43, 42, 40], [44, 45, 46], [44, 46, 47], [49, 48, 50], [51, 49, 50], [53, 52, 54], [55, 53, 54], [57, 56, 58], [59, 57, 58], [61, 60, 62], [63, 61, 62], [66, 65, 64], [67, 66, 64], [68, 69, 70], [68, 70, 71], [73, 72, 74], [75, 73, 74], [77, 76, 78], [79, 77, 78], [81, 80, 82], [83, 81, 82], [85, 84, 86], [87, 85, 86], [90, 89, 88], [91, 90, 88], [92, 93, 94], [92, 94, 95]]
Traceback (most recent call last):
File "C:/Users/Darija/PycharmProjects/untitled1/Test.py", line 23, in <module>
ray_directions = ray_directions)
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 107, in intersects_location
**kwargs)
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 66, in intersects_id
triangles_normal=self.mesh.face_normals)
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 240, in ray_triangle_id
tree=tree)
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 344, in ray_triangle_candidates
bounds=tree.bounds)
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 390, in ray_bounds
for i, a in enumerate(axis)]).reshape((-1, 1))
File "C:\ProgramData\Anaconda3\envs\Punktwolke_3D\lib\site-packages\trimesh\ray\ray_triangle.py", line 390, in <listcomp>
for i, a in enumerate(axis)]).reshape((-1, 1))
IndexError: invalid index to scalar variable.
Return unique cartesian locations where rays hit the mesh.
If you are counting the number of hits a ray had, this method
should be used as if only the triangle index is used on- edge hits
will be counted twice.
Parameters
------------
ray_origins : (m, 3) float
Ray origin points
ray_directions : (m, 3) float
Ray direction vectors
Returns
---------
locations : (n) sequence of (m,3) float
Intersection points
index_ray : (n,) int
Array of ray indexes
index_tri: (n,) int
Array of triangle (face) indexes
Process finished with exit code 1