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

Function dumpSolid

test/test_named_faces.js:7–19  ·  view source on GitHub ↗
(b)

Source from the content-addressed store, hash-verified

5
6const doDebug = false;
7function dumpSolid(b) {
8 if (doDebug) {
9 console.log(" faces = ", b.getFaces().map(function (e) {
10 return b.getShapeName(e);
11 }).join(", "));
12 console.log(" edges = ", b.getEdges().map(function (e) {
13 return b.getShapeName(e);
14 }).join(", "));
15 console.log(" vertices = ", b.getVertices().map(function (e) {
16 return b.getShapeName(e);
17 }).join(", "));
18 }
19}
20// see https://npmjs.org/package/should
21
22describe("testing face naming on simple box", function () {

Callers 1

Calls 1

getShapeNameMethod · 0.80

Tested by

no test coverage detected