Skip to content

A question about the function Region.RayIntersectBoundary(...) #155

Closed Answered by hayakawa16
DWin233 asked this question in Q&A
Discussion options

You must be logged in to vote

I made your edits (R=0.0397598, Z=0.08 for the infinite cylinder) to my infile. There is an intersection point at (0,0,0.0402402). I should have mentioned on my last post that RayIntersectBoundary gets called twice, and the second call adjusts pseudo-collision point sometimes. Try this:

  1. at break point p1=(0,0,0) (oneIn=false) and p2=(0,0,0.1197598) (twoIn=true _onBoundary=true) so if at 132 true and exits.
  2. step through code at exit to see where the call to this method is coming from. It is in SingleInclusionTissue.GetDistanceToBoundary. Since no intersection this code continues on and sees if a "projected" photon hits the boundary. In this call to RayIntersectBoundary the photon track le…

Replies: 2 comments 3 replies

Comment options

You must be logged in to vote
1 reply
@DWin233
Comment options

Comment options

You must be logged in to vote
2 replies
@DWin233
Comment options

@hayakawa16
Comment options

Answer selected by DWin233
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants