AutodeskAILab / Fusion360GalleryDataset

Data, tools, and documentation of the Fusion 360 Gallery Dataset
Other
408 stars 49 forks source link

Add a simple viewing script to visualize the obj meshes and segmentation information #78

Closed JoeLambourne closed 3 years ago

JoeLambourne commented 3 years ago

Why?

We need tools to visualize the segmentation dataset. The tooling using the forge platform requires a special extractor.

What?

Add a simple viewer script which can visualize the obj meshes and segmentation information.

karldd commented 3 years ago

Excellent. This will be very useful.

Minor suggestion: Would it be possible to add an image of what the expected visualization output is to the readme? I find it is easy to upload the image to gyazo.com (or similar) rather than fill up the repo with images. And then include it like this:

<img src="https://i.gyazo.com/2e3ad713965f5dea85ccaa6681fe7886.png" width="400" alt="Regraph">
karldd commented 3 years ago

@JoeLambourne I managed to run the script. I updated the readme to list the requirements. I had to install pyglet. This is what I am seeing, with what looks like some odd color smoothing going on. Is this what you see too?

image
JoeLambourne commented 3 years ago

It looks like it doesn't work in a notebook https://github.com/mikedh/trimesh/issues/226

karldd commented 3 years ago

The screenshot above is not from a notebook, but from running the script as is.

karldd commented 3 years ago

Thanks for fixing this. I added an example image and fixed a few typos. Will merge.