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

Function convert

src/Tools.cc:232–240  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

230}
231
232static v8::Local<v8::Array> convert(std::list<v8::Local<v8::Object> > & shapes) {
233 v8::Local<v8::Array> arr = Nan::New<v8::Array>((int)shapes.size());
234 int i = 0;
235 for (std::list<v8::Local<v8::Object> >::iterator it = shapes.begin(); it != shapes.end(); it++) {
236 Nan::Set(arr,i, *it);
237 i++;
238 }
239 return arr;
240}
241
242
243bool mutex_initialised = false;

Callers 1

WorkCompleteMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected