|
QGIS API Documentation 3.99.0-Master (2fe06baccd8)
|
Functions | |
| bool | rayBoxIntersection (const QgsRay3D &ray, const QgsAABB &nodeBbox) |
| Tests whether an axis aligned box is intersected by a ray. | |
| bool | rayMeshIntersection (Qt3DRender::QGeometryRenderer *geometryRenderer, const QgsRay3D &r, float maxDist, const QMatrix4x4 &worldTransform, QVector3D &intPt, int &triangleIndex) |
| Tests whether a triangular mesh is intersected by a ray. | |
| bool | rayTriangleIntersection (const QgsRay3D &ray, float maxDist, const QVector3D &a, const QVector3D &b, const QVector3D &c, QVector3D &uvw, float &t) |
| Tests whether a triangle is intersected by a ray. | |
Tests whether an axis aligned box is intersected by a ray.
| bool QgsRayCastingUtils::rayMeshIntersection | ( | Qt3DRender::QGeometryRenderer * | geometryRenderer, |
| const QgsRay3D & | r, | ||
| float | maxDist, | ||
| const QMatrix4x4 & | worldTransform, | ||
| QVector3D & | intPt, | ||
| int & | triangleIndex ) |
Tests whether a triangular mesh is intersected by a ray.
Returns whether an intersection was found. If found, it outputs the point at which the intersection happened in world coordinates and the index of the intersecting triangle.
| bool QgsRayCastingUtils::rayTriangleIntersection | ( | const QgsRay3D & | ray, |
| float | maxDist, | ||
| const QVector3D & | a, | ||
| const QVector3D & | b, | ||
| const QVector3D & | c, | ||
| QVector3D & | uvw, | ||
| float & | t ) |
Tests whether a triangle is intersected by a ray.