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

Function getVerticeData

test/test_applyTransform.js:8–13  ·  view source on GitHub ↗
(box)

Source from the content-addressed store, hash-verified

6
7
8 function getVerticeData(box) {
9 let vert = box.getVertices();
10 vert = vert.map(function(v) { return [v.x, v.y, v.z]; });
11 vert.length.should.eql(8);
12 return vert;
13 }
14 function add(v1,v2) {
15 return [v1[0]+v2[0],v1[1]+v2[1],v1[2]+v2[2]];
16 }

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected