| 284 | } |
| 285 | |
| 286 | NAN_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 | } |
| 306 | NAN_PROPERTY_GETTER(Edge::getter_lastVertex) { |
| 307 | |
| 308 | if (info.This().IsEmpty()) { |
nothing calls this directly
no test coverage detected