Arcane  4.1.12.0
User documentation
Loading...
Searching...
No Matches
Arcane::IRayFaceIntersector Class Referenceabstract

Generic interface for calculating the intersection of a ray with a face. More...

#include <arcane/core/IRayMeshIntersection.h>

Public Member Functions

virtual bool computeIntersection (Real3 origin, Real3 direction, Int32 orig_face_local_id, Int32 face_local_id, Real3ConstArrayView face_nodes, Int32 *user_value, Real *distance, Real3 *intersection_position)=0
 Calculates the intersection between a ray and a face.

Detailed Description

Generic interface for calculating the intersection of a ray with a face.

Definition at line 32 of file IRayMeshIntersection.h.

Constructor & Destructor Documentation

◆ ~IRayFaceIntersector()

virtual Arcane::IRayFaceIntersector::~IRayFaceIntersector ( )
inlinevirtual

Definition at line 36 of file IRayMeshIntersection.h.

Member Function Documentation

◆ computeIntersection()

virtual bool Arcane::IRayFaceIntersector::computeIntersection ( Real3 origin,
Real3 direction,
Int32 orig_face_local_id,
Int32 face_local_id,
Real3ConstArrayView face_nodes,
Int32 * user_value,
Real * distance,
Real3 * intersection_position )
pure virtual

Calculates the intersection between a ray and a face.

Parameters
originray origin position.
directiondirection of the ray.
orig_face_local_idlocal ID of the ray's origin face
face_nodespositions of the face nodes.
face_local_idlocal ID of the face. If it is not a sub-domain face, it equals ITEM_NULL_LOCAL_ID.
user_valueuser value to be filled by the caller if necessary.
distancereturned, intersection distance if one exists.
intersection_positionreturned, position of the intersection point.
Returns
true if an intersection is found, false otherwise.

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