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

Function NAN_PROPERTY_GETTER

src/Edge.cc:286–305  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

284}
285
286NAN_PROPERTY_GETTER(Edge::getter_firstVertex) {
287
288 if (info.This().IsEmpty()) {
289 info.GetReturnValue().SetUndefined();
290 return;
291 }
292
293 if (info.This()->InternalFieldCount() == 0) {
294 info.GetReturnValue().SetUndefined();
295 return;
296 }
297
298 Edge* pThis = Nan::ObjectWrap::Unwrap<Edge>(info.This());
299
300 TopoDS_Vertex shape = TopExp::FirstVertex(pThis->edge()/*,CumOri=false*/);
301
302 v8::Local<v8::Object> obj = buildWrapper(shape);
303 info.GetReturnValue().Set(obj);
304
305}
306NAN_PROPERTY_GETTER(Edge::getter_lastVertex) {
307
308 if (info.This().IsEmpty()) {

Callers

nothing calls this directly

Calls 1

buildWrapperFunction · 0.85

Tested by

no test coverage detected