Skip to content

Instantly share code, notes, and snippets.

@kephale
Created January 30, 2019 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kephale/84d0c894cdad4399fb5d32dd93919814 to your computer and use it in GitHub Desktop.
Save kephale/84d0c894cdad4399fb5d32dd93919814 to your computer and use it in GitHub Desktop.
Example for loading a point cloud into SciView
# @SciView sciView
my_test_xyz = """-0.180226841 0.360945118 -1.120304970
-0.180226841 1.559292118 -0.407860970
-0.180226841 1.503191118 0.986935030
-0.180226841 0.360945118 1.685965030
-0.180226841 -0.781300882 0.986935030
-0.180226841 -0.837401882 -0.407860970
-0.180226841 0.360945118 -2.206546970
-0.180226841 2.517950118 -0.917077970
-0.180226841 2.421289118 1.572099030
-0.180226841 -1.699398882 1.572099030
-0.180226841 -1.796059882 -0.917077970"""
# Open and write our test data to file
xyz_filename = 'test.xyz'
with open(xyz_filename,'w') as f:
f.write(my_test_xyz)
# Open and display the point cloud in SciView
sciView.open(xyz_filename)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment