ruba / cortex-vfx

Automatically exported from code.google.com/p/cortex-vfx
Other
2 stars 1 forks source link

linearObjectInterpolation segfaults with meshPrimitive #11

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
the problem -

from IECore import *
p1 = MeshPrimitive.createPlane( Box2f( V2f( -1 ), V2f( 0 ) ) )
p2 = MeshPrimitive.createPlane( Box2f( V2f( 0 ), V2f( 1 ) ) )
pb = linearObjectInterpolation( p1, p2, 0.5 )

SEGFAULT

What is the expected output? What do you see instead?

pb should be the half way interpolation of the two meshes

TODO:
- fix the crash
- add unit tests to exercise the bug

Original issue reported on code.google.com by carsten....@gmail.com on 16 Jun 2010 at 11:29

GoogleCodeExporter commented 8 years ago

Original comment by thehaddo...@gmail.com on 20 Sep 2010 at 11:29

GoogleCodeExporter commented 8 years ago
The interpolation functions actually only work with CompoundObject and Data 
derived classes. We could add Primitive interpolation there somehow. For now, 
I've added a check to prevent the crash and raise an exception instead.

Original comment by lucio.im...@gmail.com on 24 Sep 2010 at 9:34