Closed nizartaha closed 11 months ago
after updating to compas_view2 version 0.5.0
this issue happen only in example v120_points.py
when adding each point
separately in the loop.
however, it works if pointsize
is set when adding the cloud
to viewer.
viewer = App()
for i in range(10):
point = Point(random()*10, random()*10, random()*10)
viewer.add(point, pointcolor=Color(random(), random(), random()))
cloud = Pointcloud.from_bounds(5, 5, 5, 1000)
colors = {i: Color(random(), random(), random()) for i in range(1000)}
viewer.add(cloud, pointcolors=colors, pointsize=30)
viewer.show()
This should be fixed in the latest version. You can try the example files to test.
Describe the bug
i installed compas_view2 in a new environment:
conda create -n compas_view2 python=3.7 compas compas_view2
then i run examplev120_ui_elements2.py
from compas_view2/scripts/To Reproduce
it happens the following examples:
v120_points.py
,v120_ui_elements.py
andv120_ui_elements2.py
from compas_view2/scripts/