mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-10-23 00:31:11 -06:00
More porting work
This commit is contained in:
parent
346c17d483
commit
5adb187dd2
5 changed files with 184 additions and 6 deletions
|
@ -26,6 +26,30 @@ class TriangleMesh
|
|||
stl_file stl;
|
||||
};
|
||||
|
||||
enum FacetEdgeType { feNone, feTop, feBottom };
|
||||
|
||||
class IntersectionPoint : public Point
|
||||
{
|
||||
public:
|
||||
int point_id;
|
||||
int edge_id;
|
||||
IntersectionPoint() : point_id(-1), edge_id(-1) {};
|
||||
};
|
||||
|
||||
class IntersectionLine
|
||||
{
|
||||
public:
|
||||
Point a;
|
||||
Point b;
|
||||
int a_id;
|
||||
int b_id;
|
||||
int edge_a_id;
|
||||
int edge_b_id;
|
||||
FacetEdgeType edge_type;
|
||||
IntersectionLine() : a_id(-1), b_id(-1), edge_a_id(-1), edge_b_id(-1), edge_type(feNone) {};
|
||||
};
|
||||
typedef std::vector<IntersectionLine> IntersectionLines;
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue