Skip to content

Commit

Permalink
Merge pull request #84 from denis-anuprienko/master
Browse files Browse the repository at this point in the history
fix: wrong triangle choice when finding ray intersection point with e…
  • Loading branch information
LogashenkoDL authored Jun 4, 2024
2 parents b800b86 + a02a508 commit 908a60a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ugbase/lib_disc/common/geometry_util.h
Original file line number Diff line number Diff line change
Expand Up @@ -820,7 +820,7 @@ struct ElementSideRayIntersectionWrapper<TRefElem, 3, 3>
if(rRefElem.num(dim-1, sideOut, 0) == 3) continue;

// get corner number 4
p2 = rRefElem.id(dim-1, sideOut, 0, 3);
p1 = rRefElem.id(dim-1, sideOut, 0, 3);

// if match: break
if(RayTriangleIntersection( GlobalIntersectionPointOut, bc0, bc1, t,
Expand Down

0 comments on commit 908a60a

Please sign in to comment.