Ah, I see your point about global variables. (See below)
As of right now, I'm not certain that the Check_return_type stuff is set up properly...
But, if it was, my next concern would be as follows:
Ideally, I would like all of this code to be defined as a function to which I can pass information about a particular Triangle and LineSegment and get a return value about whether these two intersect (and if so, how)
If I make the variable local rather than global, I imagine this will help... since I am passing one Triangle and LineSegment after the next, I don't want the variables related to this function to become locked to the values associated with any instance of the Triangle and LineSegment.
But how do I take my present implementation and move it towards being an enclosed function...
An example of what I'd like:
Does_Intersect {Triangle: PtA x,y,z PtB x,y,z PtC x,y,z AND LineSeg: PtP x,y,z PtQ x,y,z}
and then this would return a value through Check_return_type to say if and how this triangle and lineseg intersect.
You see what I mean?
Thanks

