ISET / iset3d-v3

LEGACY: Replaced by iset3d (v4) -- Read a PBRT file. Edit the parameters. Render an ISET scene or optical image.
MIT License
36 stars 8 forks source link

Depth map causes issues because it changes object #1

Closed tlian7 closed 7 years ago

tlian7 commented 7 years ago

Because we cannot (easily) make a deep copy of a handle object, when we change the recipe for the depth map we end up changing the original reference to the object as well. This causes a lot of issues if you don't reread the scene after every render.

I need to figure out how to make a deep copy to avoid this issue.

tlian7 commented 7 years ago

Fixed (perhaps temporarily) by having the recipe class inherit "matlab.mixin.Copyable" so we can call:

newRecipe = copy(recipe);