MCPcopy Create free account
hub / github.com/MeshInspector/MeshLib / TEST

Function TEST

source/MRTest/MRTriangleIntersectionTests.cpp:55–67  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

53} //anonymous namespace
54
55TEST( MRMesh, TriangleSegmentIntersectFloat )
56{
57 Vector3f a{2, 1, 0};
58 Vector3f b{-2, 1, 0};
59 Vector3f c{0, -2, 0};
60
61 Vector3f d{0, 0, -1};
62 Vector3f e{0, 0, 1};
63
64 bool intersection = doTriangleSegmentIntersect( a, b, c, d, e );
65
66 EXPECT_TRUE( intersection );
67}
68
69TEST( MRMesh, PointTriangleIntersectFloat )
70{

Callers

nothing calls this directly

Calls 6

isPointInPlaneFunction · 0.85
isPointInTriangleFunction · 0.85
testNoIntersectFunction · 0.85
doTrianglesIntersectExtFunction · 0.85
findTriTriDistanceFunction · 0.85

Tested by

no test coverage detected