solvespace/polygon.h
Jonathan Westhues 1331457928 Rough file/save for SolveSpace; that's all done from a single
table, relatively small code size. No user interface for it,
though.

[git-p4: depot-paths = "//depot/solvespace/": change = 1685]
2008-04-23 22:22:16 -08:00

41 lines
403 B
C++

#ifndef __POLYGON_H
#define __POLYGON_H
template <class T>
class SList {
public:
T *elem;
int n;
int elemsAllocated;
};
class SEdge {
public:
Vector a, b;
};
class SEdgeList {
public:
SList<SEdge> l;
};
class SContour {
public:
SList<Vector> l;
};
class SPolygon {
public:
SList<SContour> l;
};
class SPolyhedron {
SList<SPolygon> l;
public:
};
#endif