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

AttributeError: 'Trimesh' object has no attribute 'as_open3d' #26

Open
MisuZeng opened this issue Oct 8, 2024 · 3 comments
Open

AttributeError: 'Trimesh' object has no attribute 'as_open3d' #26

MisuZeng opened this issue Oct 8, 2024 · 3 comments

Comments

@MisuZeng
Copy link

MisuZeng commented Oct 8, 2024

Hello, I encountered the following error while running run_cluster. py.

Traceback (most recent call last):
File "clustering/run_clustering.py", line 99, in
clustering = Clustering(remove_outliers_nb_points=Baum['remove_outliers_nb_points'],
File "clustering/run_clustering.py", line 51, in init
self.fruit_alpha_shape = self.fruit_alpha_shape_.as_open3d.sample_points_uniformly(1000)
AttributeError: 'Trimesh' object has no attribute 'as_open3d'

Before this, I had already configured the template path and was able to open .clustering/apple_template. ply.
This issue seems to be caused by the self.fruit_alpha.shape_=alphashape.alphashape (np. asarray (self.fruit_template. points), 10) returns a trimesh object, and the printed result is<trimesh Trimesh (vertices. shape=(1211,3), faces. shape=(2418,3))>, may I ask if this output meets expectations?
Also, I couldn't find as_open3d in the project. Is this a custom method ? It doesn't seem to be included in the trimesh or alphashape libraries.
Could you please help me solve the problem? Thank you so much!

@liuyi0316
Copy link

did you solve?

@MisuZeng
Copy link
Author

Yes, I have already solved.

@ikun-667
Copy link

@MisuZeng How did solve this error?
AttributeError: 'Trimesh' object has no attribute 'as_open3d'

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

3 participants