MCPcopy Create free account
hub / github.com/OpenWebCAD/node-occ / testOuterShell

Function testOuterShell

test1.js:7–25  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

5
6
7function testOuterShell()
8{
9 var solid1 = occ.makeBox([10,20,30],[20,40,60]);
10 var solid2 = occ.makeBox([15,25,35],[-20,-40,-60]);
11 var solid = occ.fuse(solid1,solid2);
12
13
14 solid1 = occ.makeBox([0,0,0],[20,20,20]);
15 solid2 = occ.makeBox([10,10,10],[15,15,15]);
16 solid = occ.cut(solid1,solid2);
17
18 solid.getOuterShell();
19
20 var shells = solid.getShells();
21 for (var i in shells) {
22 var shell = shells[i];
23 console.log(shell.shapeType,shell.numFaces);
24 }
25}
26testOuterShell();
27
28console.log("-------------------");

Callers 1

test1.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected