Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error while running example.py #21

Open
Samiksha1603 opened this issue Dec 3, 2023 · 0 comments
Open

Error while running example.py #21

Samiksha1603 opened this issue Dec 3, 2023 · 0 comments

Comments

@Samiksha1603
Copy link

Traceback (most recent call last):
File "D:\3d-body-measurements-main\3d-body-measurements-main\example\example.py", line 37, in
main()
File "D:\3d-body-measurements-main\3d-body-measurements-main\example\example.py", line 19, in main
body = Body3D(vertices, faces)
^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\body_measurements\measurement.py", line 212, in init
self.sections = getSections(self.mesh, self.levels)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\body_measurements\measurement.py", line 172, in getSections
sections = mesh.section_multiplane(plane_origin=mesh.centroid,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\trimesh\base.py", line 2264, in section_multiplane
lines, transforms, faces = intersections.mesh_multiplane(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "C:\Users\Admin\AppData\Local\Programs\Python\Python311\Lib\site-packages\trimesh\intersections.py", line 237, in mesh_multiplane
vertex_dots = np.dot(plane_normal, (mesh.vertices - plane_origin).T)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "<array_function internals>", line 200, in dot
ValueError: shapes (3,) and (6,45966) not aligned: 3 (dim 0) != 6 (dim 0)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant