MCPcopy Create free account
hub / github.com/BIMCoderLiang/LNLib / TEST

Function TEST

tests/T_AdvancedSurface.cpp:12–23  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

10using namespace LNLib;
11
12TEST(Test_AdvancedSurface, KnotVector)
13{
14 std::vector<double> kv0 = { 0,0,0,1.0 / 4,1.0 / 2,3.0 / 4,1,1,1 };
15 std::vector<double> kv1 = { 0,0,0,0,3.0 / 10,7.0 / 10,1,1,1,1 };
16
17 std::vector<std::vector<double>> kvs;
18 kvs.emplace_back(kv0);
19 kvs.emplace_back(kv1);
20 auto result = KnotVectorUtils::GetInsertedKnotElements(kvs);
21 EXPECT_TRUE(result[0].size() == 4);
22 EXPECT_TRUE(result[1].size() == 3);
23}
24
25TEST(Test_AdvancedSurface, CoonsSurface)
26{

Callers

nothing calls this directly

Calls 7

GetPointOnSurfaceFunction · 0.85
XYZClass · 0.50
XYZWClass · 0.50
UVClass · 0.50
IsAlmostEqualToMethod · 0.45
NormalizeMethod · 0.45
DotProductMethod · 0.45

Tested by

no test coverage detected