SCENE C++ API  2.1.0
Public Member Functions | List of all members
LSVolumeDefinition Class Referenceabstract

LSVolumeDefinition is the base class for user-defined volumes. More...

#include <lsvolume.h>

+ Inheritance diagram for LSVolumeDefinition:

Public Member Functions

virtual IntersectResult testSphere (const Eigen::Vector3d &center, double radius)=0
 Tests if and how a sphere intersects the volume. More...
 
virtual bool testPoint (const Eigen::Vector3d &point)=0
 Tests if a point intersects the volume. More...
 

Additional Inherited Members

- Protected Member Functions inherited from LSRefType
void ref () const
 Increments the internal reference counter. More...
 
void unref () const
 Decrements the internal reference counter. More...
 

Detailed Description

LSVolumeDefinition is the base class for user-defined volumes.

Member Function Documentation

◆ testSphere()

virtual IntersectResult testSphere ( const Eigen::Vector3d &  center,
double  radius 
)
pure virtual

Tests if and how a sphere intersects the volume.

Parameters
centersphere center
radiussphere radius
Version
SCENE API Version 2.0.14.

◆ testPoint()

virtual bool testPoint ( const Eigen::Vector3d &  point)
pure virtual

Tests if a point intersects the volume.

Parameters
pointpoint position
Version
SCENE API Version 2.0.14.