Retinal OCT Visualization

  • CamFrustum
    • Viewing (mod)
  • Program
    • Program (mod)
  • UI
    • Model (mod)
    • Model.ShaderType (union)
    • Model.State (rec)
    • Server (mod)
    • View (mod)
  • Visualization
    • OCTSlicePlane (mod)
    • OCTTexture (mod)
    • OCTVolume (mod)
    • OCTVolume.OCTVolumeConfig (rec)
    • Shader (mod)
    • ShaderUtils (mod)
    • Shadows (mod)
    • SliceShader (mod)
    • Tasks (mod)
    • VolumeShaders (mod)
Show / Hide Table of Contents

Class ShaderUtils (mod)

intersection tests, inside tests, behind plane tests

Inheritance
ShaderUtils (mod)
Namespace: Visualization
Assembly: OCTVis.dll
Syntax
module ShaderUtils

Fields

val eps

Declaration
val eps: float
Field Value
Type Description
float

val inf

Declaration
val inf: float
Field Value
Type Description
float

val near

Declaration
val near: float
Field Value
Type Description
float

Methods

val behindPlane: V3d -> V3d -> V3d -> bool

tests if a point lies behind a plane

Declaration
[<ReflectedDefinition>]
val behindPlane: n:V3d -> p0:V3d -> p:V3d -> bool
Parameters
Type Name Description
Aardvark.Base.V3d n

normal vector of the plane (normalized)

Aardvark.Base.V3d p0

point on the plane

Aardvark.Base.V3d p

point to be tested

Returns
Type Description
bool

val boxIntersect: V3d -> V3d -> V3d

box/ray intersection returns 3D vector: X: t0, Y: t1, Z: hit hit=true -> 1.0, hit=false -> -1.0

Declaration
[<ReflectedDefinition>]
val boxIntersect: rayOrigin:V3d -> rayDir:V3d -> V3d
Parameters
Type Name Description
Aardvark.Base.V3d rayOrigin

ray origin

Aardvark.Base.V3d rayDir

ray direction (normalized)

Returns
Type Description
Aardvark.Base.V3d

val insideBox: V2d -> V3d -> V3d -> bool

tests if a point lies inside the 3D volume

Declaration
[<ReflectedDefinition>]
val insideBox: itrsec:V2d -> rayOrigin:V3d -> rayDir:V3d -> bool
Parameters
Type Name Description
Aardvark.Base.V2d itrsec

Plane/Ray intersection result

Aardvark.Base.V3d rayOrigin

ray origin

Aardvark.Base.V3d rayDir

ray direction (normalized)

Returns
Type Description
bool

val planeIntersect: V3d -> V3d -> V3d -> V3d -> V2d

plane-ray intersection. returns a 2D vector: X: t, Y: hit) hit=true -> 1.0, hit=false -> -1.0

Declaration
[<ReflectedDefinition>]
val planeIntersect: n:V3d -> p0:V3d -> rayOrigin:V3d -> rayDir:V3d -> V2d
Parameters
Type Name Description
Aardvark.Base.V3d n

normal vector of the plane (normalized)

Aardvark.Base.V3d p0

point on the plane

Aardvark.Base.V3d rayOrigin

ray origin point

Aardvark.Base.V3d rayDir

ray direction (normalized)

Returns
Type Description
Aardvark.Base.V2d
Back to top Generated by DocFX