#include <xac_interface_scene_elements_doc.h>
Public Types | |
typedef Sample_info_surface | Base_info_type |
Declaration of the surface type. More... | |
Public Member Functions | |
uint | get_light_id () const |
Retrieve associated scene light id. More... | |
uint | get_material_id () const |
Retrieve associated scene material id. More... | |
const float3 & | get_bottom () const |
Get the bottom position of the cone in scene space coordinates. More... | |
const float3 & | get_top () const |
Get the top position of the cone in scene space coordinates. More... | |
float | get_radius () const |
Get the scene space radius of the cylinder. More... | |
bool | is_valid () const |
Check if the properties of the current shape are valid. More... | |
bool | is_capped () const |
Check if the bottom surface of the cone are active. More... | |
bool | is_inside (const float3 &world_position) const |
Check if a given position in scene space coordinates is inside the boundary surface. More... | |
float | get_distance (const float3 &scene_position) const |
Compute the signed distance to the boundary surface for a given position in scene space coordinates. More... | |
Cone.
Declaration of the surface type.
const float3 & nv::index::xac::Cone::get_bottom | ( | ) | const |
Get the bottom position of the cone in scene space coordinates.
float nv::index::xac::Cone::get_distance | ( | const float3 & | scene_position | ) | const |
Compute the signed distance to the boundary surface for a given position in scene space coordinates.
uint nv::index::xac::Cone::get_light_id | ( | ) | const |
Retrieve associated scene light id.
uint nv::index::xac::Cone::get_material_id | ( | ) | const |
Retrieve associated scene material id.
float nv::index::xac::Cone::get_radius | ( | ) | const |
Get the scene space radius of the cylinder.
const float3 & nv::index::xac::Cone::get_top | ( | ) | const |
Get the top position of the cone in scene space coordinates.
bool nv::index::xac::Cone::is_capped | ( | ) | const |
Check if the bottom surface of the cone are active.
bool nv::index::xac::Cone::is_inside | ( | const float3 & | world_position | ) | const |
Check if a given position in scene space coordinates is inside the boundary surface.
bool nv::index::xac::Cone::is_valid | ( | ) | const |
Check if the properties of the current shape are valid.