1.3.64
 
Loading...
Searching...
No Matches
primitiveIntersection.cu File Reference
#include <optix.h>
#include <optixu/optixu_aabb_namespace.h>
#include <optixu/optixu_math_namespace.h>
#include <optixu/optixu_matrix_namespace.h>
#include "RayTracing.cuh"

Go to the source code of this file.

Functions

 rtDeclareVariable (Ray, ray, rtCurrentRay,)
 
 rtDeclareVariable (PerRayData, prd, rtPayload,)
 
 rtDeclareVariable (unsigned int, UUID, attribute UUID,)
 
RT_PROGRAM void rectangle_intersect (int objID)
 
RT_PROGRAM void rectangle_bounds (int objID, float result[6])
 
RT_PROGRAM void triangle_intersect (int objID)
 
RT_PROGRAM void triangle_bounds (int objID, float result[6])
 
RT_PROGRAM void disk_intersect (int objID)
 
RT_PROGRAM void disk_bounds (int objID, float result[6])
 
RT_PROGRAM void voxel_intersect (int objID)
 
RT_PROGRAM void voxel_bounds (int objID, float result[6])
 
RT_PROGRAM void bbox_intersect (int objID)
 
RT_PROGRAM void bbox_bounds (int objID, float result[6])
 
RT_PROGRAM void tile_intersect (int objID)
 
RT_PROGRAM void tile_bounds (int objID, float result[6])
 

Detailed Description

"File containing OptiX ray-primitive intersection and bounding-box programs"

Copyright (C) 2016-2026 Brian Bailey

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, version 2.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

Definition in file primitiveIntersection.cu.

Function Documentation

◆ bbox_bounds()

RT_PROGRAM void bbox_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for bounding box rectangle primitives.

Definition at line 429 of file primitiveIntersection.cu.

◆ bbox_intersect()

RT_PROGRAM void bbox_intersect ( int  objID)

OptiX ray-rectangle intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 380 of file primitiveIntersection.cu.

◆ disk_bounds()

RT_PROGRAM void disk_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for disk primitives.

Definition at line 270 of file primitiveIntersection.cu.

◆ disk_intersect()

RT_PROGRAM void disk_intersect ( int  objID)

OptiX ray-disk intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 236 of file primitiveIntersection.cu.

◆ rectangle_bounds()

RT_PROGRAM void rectangle_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for rectangle primitives.

Definition at line 123 of file primitiveIntersection.cu.

◆ rectangle_intersect()

RT_PROGRAM void rectangle_intersect ( int  objID)

OptiX ray-rectangle intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 35 of file primitiveIntersection.cu.

◆ tile_bounds()

RT_PROGRAM void tile_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for tile objects.

Definition at line 527 of file primitiveIntersection.cu.

◆ tile_intersect()

RT_PROGRAM void tile_intersect ( int  objID)

OptiX ray-tile intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 444 of file primitiveIntersection.cu.

◆ triangle_bounds()

RT_PROGRAM void triangle_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for triangle primitives.

Definition at line 222 of file primitiveIntersection.cu.

◆ triangle_intersect()

RT_PROGRAM void triangle_intersect ( int  objID)

OptiX ray-triangle intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 138 of file primitiveIntersection.cu.

◆ voxel_bounds()

RT_PROGRAM void voxel_bounds ( int  objID,
float  result[6] 
)

Axis-aligned bounding box program for voxel primitives.

Definition at line 369 of file primitiveIntersection.cu.

◆ voxel_intersect()

RT_PROGRAM void voxel_intersect ( int  objID)

OptiX ray-voxel intersection program.

Parameters
[in]objIDindex of primitive in geometric object.

Definition at line 281 of file primitiveIntersection.cu.