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

Method NewInstance

src/Solid.cc:122–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

120}
121
122v8::Local<v8::Value> Solid::NewInstance()
123{
124 v8::Local<v8::Object> instance = makeInstance(Solid::_template);
125 Solid* pThis = Nan::ObjectWrap::Unwrap<Solid>(instance);
126 return instance;
127}
128
129v8::Local<v8::Value> Solid::NewInstance(TopoDS_Shape shape)
130{

Callers

nothing calls this directly

Calls 2

makeInstanceFunction · 0.85
setShapeMethod · 0.45

Tested by

no test coverage detected