DoCoplanarTrianglesOverlap
function · cmath · unreached
- Address
0x7c4150· 328 bytes, up to0x7c4297- Meaning
- Returns 1 when two coplanar triangles overlap
- Confidence
- inferred
- Finding
- cmath/geometry#triangles-in-the-plane
Finding: Triangles in the plane in cmath: intersections
0x7c3e30 takes two plane records with three vertices each (normal at +0, constant at +0xc, vertices at +0x10, +0x1c and +0x28) and
answers whether the triangles overlap. It classes the three vertices of the record in edx against the plane of the one in ecx (bounds at
0x8029d0 and 0x810ccc), and when all three lie in the plane calls 0x7c4150. 0x7c4150 projects both triangles onto the two axes other than
the dominant axis of the first normal (a tie goes to the later axis) and returns 1 when an edge of one meets the other (0x7c4030) or a vertex of one lies in the other (0x7c4090).
The derivation is in the doc.
Callers 1
- DoTrianglesOverlap cmath
Callees 2
- DoesSegmentCrossTriangle2D cmath
- IsPointInTriangle2D cmath
Calls and jumps by a bare address, from tables/calls.tsv.