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

Function NAN_METHOD

src/BoundingBox.cc:52–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

50
51
52NAN_METHOD(BoundingBox::New)
53{
54 if (!info.IsConstructCall()) {
55 return Nan::ThrowError(" use new occ.BoundingBox() to construct a BoundingBox");
56 }
57
58 BoundingBox* pThis = new BoundingBox();
59 pThis->Wrap(info.This());
60
61 BoundingBox::Update(pThis,info);
62 pThis->InitNew(info);
63
64 info.GetReturnValue().Set(info.This());
65
66}
67
68NAN_METHOD(BoundingBox::addPoint)
69{

Callers

nothing calls this directly

Calls 3

checkCoerceToPointFunction · 0.85
ReadPointFunction · 0.85
InitNewMethod · 0.45

Tested by

no test coverage detected