Skip to content
Snippets Groups Projects
Commit d10cf002 authored by Dipl.-Ing. Jonas Stienen's avatar Dipl.-Ing. Jonas Stienen
Browse files

Fixing culling parameter passing in ray tracer

parent 59c1c9b7
No related branches found
No related tags found
No related merge requests found
......@@ -79,9 +79,8 @@ void CEngine::Run( std::shared_ptr< ITAGeo::CPropagationAnchor > pSource, std::s
CITAMesh::FaceHandle hFace( *it++ ); // --> mach ein polygon
const ITAGeo::ECulling eCulling;
VistaVector3D v3IntersectionPoint;
bool bIntersects = ITAGeoUtils::RayFaceIntersectionTest(rRay, pMesh, hFace, v3IntersectionPoint, eCulling);
bool bIntersects = ITAGeoUtils::RayFaceIntersectionTest(rRay, pMesh, hFace, v3IntersectionPoint);
/* Check intersection by
if( ITAGeoUtils::IsPointInFace( ) )
......@@ -137,11 +136,11 @@ void CEngine::Run( std::shared_ptr< ITAGeo::CPropagationAnchor > pSource, std::s
// change reflected direction of the ray
VistaVector3D vPerpendicularDirComponent = rRay.GetDir().Dot(v3FaceNormal) * v3FaceNormal; // direction component of incident ray perpendicular to reflection face
rRay.SetDir(rRay.GetDir - 2 * vPerpendicularDirComponent);
rRay.SetDir(rRay.GetDir() - 2 * vPerpendicularDirComponent);
rRay.SetOrigin(v3IntersectionPoint);
// Check for detection at target
lPropagationPaths
lPropagationPaths;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment