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

Method NewInstance

src/Face.cc:159–166  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

157}
158
159v8::Local<v8::Object> Face::NewInstance(const TopoDS_Face& face)
160{
161 Face* obj = new Face();
162 v8::Local<v8::Object> instance = makeInstance(_template);
163 obj->Wrap(instance);
164 obj->setShape(face);
165 return instance;
166}
167
168NAN_PROPERTY_GETTER(Face::_mesh)
169{

Callers 1

makeTypedArrayFunction · 0.45

Calls 2

makeInstanceFunction · 0.85
setShapeMethod · 0.45

Tested by

no test coverage detected