NVIDIA IndeX API nvidia_logo_transpbg.gif Up
nv::index::IDistributed_compute_intersection_points Class Referenceabstract

The interface class exposes intersection points that can be used, for instance, to texture or shade the surface of geometry. More...

#include <idistributed_compute_destination_buffer.h>

Inherits mi::base::Interface_declare< 0xd985cb6a, ... >.

Public Member Functions

virtual const mi::math::Vector_struct< mi::Float32, 3 > * generate_intersection_points (mi::Uint32 &nb_points)=0
 The interface method computes the intersections of rays with the geometry and returns a buffer of all intersection points to a user-defined computing class. More...
 

Detailed Description

The interface class exposes intersection points that can be used, for instance, to texture or shade the surface of geometry.

The IndeX library implements the serializable interface, which enables user-defined classes to distribute an instance of the class to different hosts in the cluster environment using DiCE's serialization and deserialization mechanism. Furthermore, the interface class exposes the intersections points through the interface method generate_intersection_points(). The internal implementation of this method creates the intersection points on the fly whenever the method is called. That is, all the intersection points never need to be communicated to nodes in the cluster. Instead, the instance of the interface class itself is sent to compute the intersection points on the remote machines on request.

Member Function Documentation

 generate_intersection_points()

virtual const mi::math::Vector_struct< mi::Float32, 3 > * nv::index::IDistributed_compute_intersection_points::generate_intersection_points ( mi::Uint32 &  nb_points)
pure virtual

The interface method computes the intersections of rays with the geometry and returns a buffer of all intersection points to a user-defined computing class.

The renderer computes the intersection points based on the present viewing parameters so that all intersection points match the internal rendering.

Parameters
[out]nb_pointsThe number of intersection points returned by the interface call.
Returns
The intersection points. They are defined in the local coordinate system of the geometry, that is, x and y will be in the range [0, extent], while the z-component will be 0. The ownership remains with the interface class.

The documentation for this class was generated from the following file: