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

Class Vertex

src/Vertex.h:4–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2#include "Shape.h"
3
4class Vertex : public Shape {
5private:
6 TopoDS_Vertex m_vertex;
7public:
8
9 double x() ;
10 double y() ;
11 double z() ;
12
13 gp_Pnt point() const;
14
15 virtual const TopoDS_Shape& shape() const;
16 const TopoDS_Vertex& vertex() const {
17 return m_vertex;
18 }
19 virtual void setShape( const TopoDS_Shape&);
20 virtual v8::Local<v8::Object> Clone() const ;
21 virtual Base* Unwrap(v8::Local<v8::Object> obj) const {
22 return Nan::ObjectWrap::Unwrap<Vertex>(obj);
23 }
24
25
26 virtual void InitNew(_NAN_METHOD_ARGS);
27
28
29 static void Init(v8::Local<v8::Object> target);
30 static NAN_METHOD(NewInstance);
31 static NAN_METHOD(New);
32 static Nan::Persistent<v8::FunctionTemplate> _template;
33};

Callers 1

setShapeMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected