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

Support for mesh preview #1449

Closed
LogWell opened this issue Jun 28, 2023 · 1 comment
Closed

Support for mesh preview #1449

LogWell opened this issue Jun 28, 2023 · 1 comment
Labels
wontfix This will not be worked on

Comments

@LogWell
Copy link

LogWell commented Jun 28, 2023

May I ask if it supports visualization of 3D data, such as OBJ and PLY.

import igl  # https://libigl.github.io/libigl-python-bindings/igl_docs/
import h5py

path_mesh = "bunny.obj"
v, f = igl.read_triangle_mesh(path_mesh)

path_h5 = path_mesh[:-4] + ".h5"
with h5py.File(path_h5, 'w') as h5f:
    g_mesh = h5f.create_group('mesh')
    g_geo = g_mesh.create_group('geometry')
    g_geo.create_dataset("v", data=v, dtype='float32', compression='gzip', compression_opts=4)
    g_geo.create_dataset("f", data=f, dtype='int32', compression='gzip', compression_opts=4)
@LogWell LogWell added the enhancement New feature or request label Jun 28, 2023
@loichuder
Copy link
Member

I worked in the past on a surface vis (progress tracked as #1292) but it stayed in experimental stage.

Unfortunately, I no longer have the bandwidth to work on this 😞

@LogWell LogWell closed this as completed Jun 29, 2023
@axelboc axelboc added wontfix This will not be worked on and removed enhancement New feature or request labels Jul 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants