This commit is contained in:
David Coeurjolly 2021-02-02 12:45:32 +01:00
parent 9d6be32673
commit b267fd173d
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,6 @@
{
"windowHeight": 720,
"windowPosX": 20,
"windowPosY": 53,
"windowWidth": 1280
}

20
3-modeling/python/demo.py Normal file
View File

@ -0,0 +1,20 @@
# Demo polyscope + python
#
# make sure to have `pip install polyscope numpy`
#
import polyscope
import numpy as np
pts = np.array([[0,0,0], [0,0,1], [0,1,0], [1,0,0], [1,1,0],[0,1,1],[1,0,1],[1,1,1]])
val = np.array([ 0.3, 3.4, 0.2, 0.4, 1.2, 4.0,3.6,5.0])
polyscope.init()
polyscope.register_point_cloud("My Points", pts)
polyscope.get_point_cloud("My Points").add_scalar_quantity("Some values",val)
polyscope.show()