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: 2024.1.1.0 (2024.1.1)
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