From d72e8ad79db50bd52e3f5843e0e8a04c4e2ec13b Mon Sep 17 00:00:00 2001 From: Viktor Kovacs Date: Fri, 21 May 2021 19:33:02 +0200 Subject: [PATCH] Add solidity check tests. --- test/tests/modelutils_test.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/tests/modelutils_test.js b/test/tests/modelutils_test.js index 4682f5c..819a14e 100644 --- a/test/tests/modelutils_test.js +++ b/test/tests/modelutils_test.js @@ -117,6 +117,7 @@ describe ('Model Utils', function () { it ('Tetrahedron Topology Calculation', function () { let tetrahedron = testUtils.GetModelWithOneMesh (testUtils.GetTetrahedronMesh ()); let topology = OV.GetTopology (tetrahedron); + assert (OV.IsSolid (tetrahedron)); assert.strictEqual (topology.vertices.length, 4); assert.strictEqual (topology.edges.length, 6); assert.strictEqual (topology.triangleEdges.length, 4 * 3); @@ -132,6 +133,8 @@ describe ('Model Utils', function () { it ('Cube Topology Calculation', function () { let cube = testUtils.GetModelWithOneMesh (testUtils.GetCubeMesh ()); + assert (OV.IsSolid (cube)); + let topology = OV.GetTopology (cube); assert.strictEqual (topology.vertices.length, 8); assert.strictEqual (topology.edges.length, 12 + 6); @@ -168,5 +171,6 @@ describe ('Model Utils', function () { const model = testUtils.GetTwoCubesConnectingInOneEdgeModel (); let topology = OV.GetTopology (model); assert.strictEqual (topology.vertices.length, 14); + assert (!OV.IsSolid (model)); // TODO: should be identified as solid }); });