mirror of
https://github.com/Ultimaker/Cura.git
synced 2025-08-06 05:23:58 -06:00
Code cleanup
Changed to "is None" insted of "== None" to test if numpy.array was initialized Added extruder to PathSegment in Cura.proto Changed index_pattern to class variable in Layer.py
This commit is contained in:
parent
bbd49cee85
commit
d31516bbb1
3 changed files with 16 additions and 9 deletions
|
@ -61,7 +61,7 @@ message Polygon {
|
|||
float line_width = 3; // The width of the line being laid down
|
||||
}
|
||||
|
||||
message LayerOptimized {
|
||||
message LayerOptimized {
|
||||
int32 id = 1;
|
||||
float height = 2; // Z position
|
||||
float thickness = 3; // height of a single layer
|
||||
|
@ -71,10 +71,15 @@ message LayerOptimized {
|
|||
|
||||
|
||||
message PathSegment {
|
||||
int32 ordinal = 1; // The absolute ordinal of this line segment
|
||||
bytes line_type = 2; // Type of line segment as an unsigned char array of length 1 or N, where N is the number of line segments in this path
|
||||
bytes points = 3; // The points defining the line segments, bytes of int64[2]? array of length N+1
|
||||
bytes line_width = 4; // The widths of the line segments as bytes of a float?/int32? array of length 1 or N
|
||||
int32 extruder = 1; // The extruder used for this path segment
|
||||
enum PointType {
|
||||
Point2D = 0;
|
||||
Point3D = 1;
|
||||
}
|
||||
PointType point_type = 2;
|
||||
bytes points = 3; // The points defining the line segments, bytes of int64[2/3]? array of length N+1
|
||||
bytes line_type = 4; // Type of line segment as an unsigned char array of length 1 or N, where N is the number of line segments in this path
|
||||
bytes line_width = 5; // The widths of the line segments as bytes of a float? array of length 1 or N
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue