Created
January 30, 2019 13:09
-
-
Save kephale/84d0c894cdad4399fb5d32dd93919814 to your computer and use it in GitHub Desktop.
Example for loading a point cloud into SciView
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# @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