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

Class Wire

src/Wire.h:6–34  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4#include "Edge.h"
5
6class Wire : public Base {
7
8 TopoDS_Wire m_wire;
9public:
10 int numVertices();
11 int numEdges();
12 bool isClosed();
13
14
15 virtual const TopoDS_Shape& shape() const;
16 const TopoDS_Wire& wire() const {
17 return m_wire;
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<Wire>(obj);
23 }
24
25 static void Init(v8::Local<v8::Object> target);
26 static NAN_METHOD(New);
27 static NAN_METHOD(getEdges);
28 static NAN_METHOD(getVertices);
29
30 static NAN_METHOD(NewInstance);
31 virtual void InitNew(_NAN_METHOD_ARGS);
32
33 static Nan::Persistent<v8::FunctionTemplate> _template;
34};

Callers 3

setShapeMethod · 0.70
buildFaceMethod · 0.70
extractEdgeFromFaceMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected