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

Function NAN_PROPERTY_GETTER

src/Solid.cc:416–423  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

414
415
416NAN_PROPERTY_GETTER(Solid::_mesh)
417{
418 Solid* pThis = UNWRAP(Solid);
419 if (pThis->m_cacheMesh.IsEmpty()) {
420 pThis->m_cacheMesh.Reset(pThis->createMesh(1,0.5,true));
421 }
422 info.GetReturnValue().Set(Nan::New(pThis->m_cacheMesh));
423}
424
425
426//void Solid::Mesh()

Callers

nothing calls this directly

Calls 1

createMeshMethod · 0.45

Tested by

no test coverage detected