| 18 | } |
| 19 | |
| 20 | NAN_METHOD(Mesh::New) |
| 21 | { |
| 22 | if (!info.IsConstructCall()) { |
| 23 | return Nan::ThrowError(" use new occ.Mesh() to construct a Mesh"); |
| 24 | } |
| 25 | |
| 26 | Mesh* obj = new Mesh(); |
| 27 | |
| 28 | Nan::Set(info.This(),Nan::New("normals").ToLocalChecked(), Nan::New<v8::Object>()); |
| 29 | Nan::Set(info.This(),Nan::New("edgeIndices").ToLocalChecked(), Nan::New<v8::Object>()); |
| 30 | Nan::Set(info.This(),Nan::New("triangles").ToLocalChecked(), Nan::New<v8::Object>()); |
| 31 | |
| 32 | obj->Wrap(info.This()); |
| 33 | info.GetReturnValue().Set(info.This()); |
| 34 | } |
| 35 | |
| 36 | Nan::Persistent<v8::FunctionTemplate> Mesh::_template; |
| 37 |
nothing calls this directly
no test coverage detected