scene.reset() doesn't work as defined #1263
Unanswered
AhmedEltayyebXL2
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Description
I'm trying to render a whole dataset, so I want to make it as efficient as possible. I try to create the scene once so that it takes less time overall. Then, I reset the scene every iteration because my functions create_entity_surface() and add_defects_to_scene() generate different entities every time.
Issue
My problem is that with the following code, I get the error: "Scene is already built" when I try to add the entity to the scene.
I also can't save the state of the scene before building it. I get the error: "genesis.GenesisException: Scene is not built yet."
Is there an efficient way to solve this?
Main()
def main():
args = parse_args()
Beta Was this translation helpful? Give feedback.
All reactions