Open Inventor Release 2024.1.3
 
Loading...
Searching...
No Matches
oivAlgebraicShape.h
1#ifndef ALGEBRAIC_SHAPE_H
2#define ALGEBRAIC_SHAPE_H
3
4#ifndef OIV_HAS_ASRAY
5#define OIV_HAS_ASRAY
9struct OivASRay {
10 vec3 rs; // ray start
11 vec3 re; // ray end
12 vec3 rd; // ray direction
13};
14#endif
15
19struct OivASPoint {
21 vec3 normal;
22 vec4 color;
23};
24
30bool OivASSolveQuadric ( in vec3 abc, inout vec2 roots );
31
37bool OivASRayPlaneIntersection ( in OivASRay ray, in vec4 plane, inout float t );
38
42vec4 OivASGetColor ();
43
47float OivASGetOpacity ();
48
52bool OivASIsOpaque ();
53
54/******************************** SLOT ***************************************/
55
61void OivASVertexShaderEntry ();
62
68vec4 OivASComputeColor ( in OivASPoint p );
69
86bool OivASRayIntersection ( in OivASRay ray, inout OivASPoint p );
87
88#endif // ALGEBRAIC_SHAPE_H
Structure containing information about the the raycast intersection point.
Structure for parameters of the ray.