Click or drag to resize
SoAlgebraicShaperayIntersection Property

Field for an OIV.Inventor.Nodes.SoFragmentShader object that defines the GLSL ray intersection function.

Namespace: OIV.Inventor.Nodes
Assembly: OIV.Inventor (in OIV.Inventor.dll) Version: 10.12.3.0 (10.12.3.0)
Syntax
public SoSFNode rayIntersection { get; }

Property Value

Type: SoSFNode
Remarks

The GLSL function must compute the intersection between a ray and the shape. Note that position and direction space is chosen according to the value of OIV.Inventor.Nodes.SoAlgebraicShape.workspace. This function must be implemented as:

bool
OivASRayIntersection ( in OivASRay ray, inout OivASPoint p )
{
  DO SOMETHING
  return [ true | false ];
}

See Also