Arcane  4.1.12.0
Developer documentation
Loading...
Searching...
No Matches
Arcane::BasicRayFaceIntersector Class Reference
Inheritance diagram for Arcane::BasicRayFaceIntersector:
Collaboration diagram for Arcane::BasicRayFaceIntersector:

Public Member Functions

 BasicRayFaceIntersector (ITraceMng *tm)
bool computeIntersection (Real3 origin, Real3 direction, Int32 orig_face_local_id, Int32 face_local_id, Real3ConstArrayView face_nodes, Int32 *user_value, Real *distance, Real3 *position)
 Calculates the intersection between a ray and a face.

Public Attributes

RayTriangle3DIntersection m_triangle_intersector

Detailed Description

Definition at line 363 of file BasicRayMeshIntersection.cc.

Constructor & Destructor Documentation

◆ BasicRayFaceIntersector()

Arcane::BasicRayFaceIntersector::BasicRayFaceIntersector ( ITraceMng * tm)
inline

Definition at line 368 of file BasicRayMeshIntersection.cc.

Member Function Documentation

◆ computeIntersection()

bool Arcane::BasicRayFaceIntersector::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 )
inlinevirtual

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.

Implements Arcane::IRayFaceIntersector.

Definition at line 375 of file BasicRayMeshIntersection.cc.

References Arcane::ConstArrayView< T >::size().

Here is the call graph for this function:

Member Data Documentation

◆ m_triangle_intersector

RayTriangle3DIntersection Arcane::BasicRayFaceIntersector::m_triangle_intersector

Definition at line 425 of file BasicRayMeshIntersection.cc.


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