Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scene.clear() needs selective clearing #1298

Open
KEERTHANAUDAY opened this issue Feb 21, 2024 · 0 comments
Open

Scene.clear() needs selective clearing #1298

KEERTHANAUDAY opened this issue Feb 21, 2024 · 0 comments

Comments

@KEERTHANAUDAY
Copy link
Contributor

this is regarding the Scene class which allows to draw various compas geometry classes onto rhino.
Currently it appears that the Scene.clear() method clears all the layers in rhino and not just the layer that has an update.

It would be ideal to have the option to just clear the layer or sublayer that is updated.

code to recreate explanation above. (add a rhino object to any rhino layer before you run this)

from compas.geomtry import Point 
from compas.scene import Scene

points = Point[0,0,0]

scene = Scene()
scene.clear()
scene.add(Point, layer="geometry::boundaries")
scene.draw()

pseudo code for request, something like

Scene.clear( layer="geometry::boundaries")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant