ID 519465 - Imath.Frustumd throws an error when using the five parameter overloaded constructor

Follow

Problem summary
The overloaded constructor for Imath.Frustumd throws an error in an OpScript:
Imath.Frustumd(double nearPlane, double farPlane, double fovx, double fovy, double aspect)
 
Customer reported version
katana.5.0v3
 
Customer reported platform
centos7
 
Steps to reproduce
  1. In the Node Graph tab, create a LocationCreate node.
  2. Create a OpScript node, connected downstream to the LocationCreate node.
  3. Set the edit flag on the OpScript node.
  4. In the Parameters tab, change the applyWhere parameter to "at all location".
  5. In the script parameter, add the following Lua code:
    1. 4.5 and 5.0: Imath.Frustumd(0.1, 100, 30, 30, 1)

    2. 6.0 and above: Imath.Frustumd(0.1, 100, 30, 0, 1):ZToDepthExc(0,0,0)

  6. In the Scene Graph tab, Expand All the scene graph.
 
Expected behavior
Imath.Frustumd returns a valid Frustumd object.
 
Actual behavior
The following Lua Error is printed in the Scene Graph tab locations.
Lua Runtime Error: C++ exception
 
Workaround
Use the other overloaded Imath.Frustumd constructor:
Frustumd(double nearPlane, double farPlane, double left, double right, double top, double bottom[, boolean ortho=false]) → Frustumd
 
Reproduced by support
This bug has been reproduced in:
Katana 5.0v4 - CentOS 7, Windows 10
Katana 5.0v1 - CentOS 7, Windows 10
Katana 4.5v4 - CentOS 7, Windows 10
Katana 4.5v1 - CentOS 7, Windows 10
Katana 4.0v2 - CentOS 7, Windows 10
 
Earliest version tested
Katana 4.0v2 - Imath.Frustumd was not exposed before this version.
 

    We're sorry to hear that

    Please tell us why