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

Function TEST

source/MRTest/MRMarkedContourTests.cpp:9–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7{
8
9TEST(MRMesh, MarkedContour)
10{
11 auto mc = markedContour( Contour3f{ Vector3f{ 0, 0, 0 }, Vector3f{ 1, 0, 0 } } );
12 auto rc = resample( mc, 2 );
13 EXPECT_EQ( mc.contour, rc.contour );
14 EXPECT_EQ( mc.marks, rc.marks );
15
16 rc = resample( mc, 0.4f );
17 EXPECT_EQ( rc.contour.size(), 4 );
18
19 auto spline = makeSpline( rc );
20 EXPECT_EQ( spline.contour.size(), 4 );
21}
22
23TEST(MRMesh, MakeClosedSpline)
24{

Callers

nothing calls this directly

Calls 5

markedContourFunction · 0.85
resampleFunction · 0.85
makeSplineFunction · 0.85
countMethod · 0.80
sizeMethod · 0.45

Tested by

no test coverage detected