3
This commit is contained in:
parent
9d6be32673
commit
b267fd173d
6
3-modeling/python/.polyscope.ini
Normal file
6
3-modeling/python/.polyscope.ini
Normal file
@ -0,0 +1,6 @@
|
|||||||
|
{
|
||||||
|
"windowHeight": 720,
|
||||||
|
"windowPosX": 20,
|
||||||
|
"windowPosY": 53,
|
||||||
|
"windowWidth": 1280
|
||||||
|
}
|
20
3-modeling/python/demo.py
Normal file
20
3-modeling/python/demo.py
Normal 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()
|
||||||
|
|
Loading…
x
Reference in New Issue
Block a user