mirror of
https://git.mirrors.martin98.com/https://github.com/Ultimaker/Cura
synced 2025-05-06 22:19:01 +08:00

This is done to prevent the very large messages that would be sent otherwise. Protobuf can't do anything with messages above 512MB. As we no longer send a "collection" message, this should no longer occur. CURA-1210
81 lines
1.3 KiB
Protocol Buffer
81 lines
1.3 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package cura.proto;
|
|
|
|
message ObjectList
|
|
{
|
|
repeated Object objects = 1;
|
|
repeated Setting settings = 2;
|
|
}
|
|
|
|
message Slice
|
|
{
|
|
repeated ObjectList object_lists = 1;
|
|
}
|
|
|
|
message Object
|
|
{
|
|
int64 id = 1;
|
|
bytes vertices = 2; //An array of 3 floats.
|
|
bytes normals = 3; //An array of 3 floats.
|
|
bytes indices = 4; //An array of ints.
|
|
repeated Setting settings = 5; // Setting override per object, overruling the global settings.
|
|
}
|
|
|
|
message Progress
|
|
{
|
|
float amount = 1;
|
|
}
|
|
|
|
message Layer {
|
|
int32 id = 1;
|
|
float height = 2;
|
|
float thickness = 3;
|
|
|
|
repeated Polygon polygons = 4;
|
|
}
|
|
|
|
message Polygon {
|
|
enum Type {
|
|
NoneType = 0;
|
|
Inset0Type = 1;
|
|
InsetXType = 2;
|
|
SkinType = 3;
|
|
SupportType = 4;
|
|
SkirtType = 5;
|
|
InfillType = 6;
|
|
SupportInfillType = 7;
|
|
MoveCombingType = 8;
|
|
MoveRetractionType = 9;
|
|
}
|
|
Type type = 1;
|
|
bytes points = 2;
|
|
float line_width = 3;
|
|
}
|
|
|
|
message GCodeLayer {
|
|
bytes data = 2;
|
|
}
|
|
|
|
message ObjectPrintTime {
|
|
int64 id = 1;
|
|
float time = 2;
|
|
float material_amount = 3;
|
|
}
|
|
|
|
message SettingList {
|
|
repeated Setting settings = 1;
|
|
}
|
|
|
|
message Setting {
|
|
string name = 1;
|
|
|
|
bytes value = 2;
|
|
}
|
|
|
|
message GCodePrefix {
|
|
bytes data = 2;
|
|
}
|
|
|
|
message SlicingFinished {
|
|
} |