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

Function buildWrapper

src/ShapeIterator.cc:33–39  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31 return v8::Local<v8::Object>();
32}
33v8::Local<v8::Object> buildWrapper(const TopoDS_Shape shape)
34{
35 v8::Local<v8::Object> obj = v8::Local<v8::Object>(buildEmptyWrapper(shape.ShapeType()));
36 Base* pShape = Nan::ObjectWrap::Unwrap<Base>(obj);
37 pShape->setShape(shape);
38 return obj;
39}
40
41bool ShapeIterator::more()
42{

Callers 4

NAN_PROPERTY_GETTERFunction · 0.85
nextMethod · 0.85
NAN_METHODFunction · 0.85

Calls 2

buildEmptyWrapperFunction · 0.85
setShapeMethod · 0.45

Tested by

no test coverage detected