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

Function TEST

source/MRTest/MRMeshBuildDeleteTest.cpp:11–22  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9{
10
11TEST(MRMesh, BuildTri)
12{
13 Triangulation t{ { 0_v, 1_v, 2_v } };
14 auto topology = MeshBuilder::fromTriangles( t );
15
16 EXPECT_EQ( topology.numValidVerts(), 3 );
17 EXPECT_EQ( topology.numValidFaces(), 1 );
18
19 auto bdEdges = topology.findHoleRepresentiveEdges();
20 EXPECT_EQ( bdEdges.size(), 1 );
21 EXPECT_FALSE( topology.left( bdEdges[0] ).valid() );
22}
23
24TEST(MRMesh, fromFaceSoup)
25{

Callers

nothing calls this directly

Calls 15

fromTrianglesFunction · 0.85
fromFaceSoupFunction · 0.85
getIncidentVertsFunction · 0.85
getInnerVertsFunction · 0.85
expandFunction · 0.85
shrinkFunction · 0.85
getIncidentFacesFunction · 0.85
getInnerFacesFunction · 0.85
numValidFacesMethod · 0.80
leftMethod · 0.80
getFaceDegreeMethod · 0.80

Tested by

no test coverage detected