Cura.proto 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. syntax = "proto3";
  2. package cura.proto;
  3. message ObjectList
  4. {
  5. repeated Object objects = 1;
  6. repeated Setting settings = 2;
  7. }
  8. // typeid 1
  9. message Slice
  10. {
  11. repeated ObjectList object_lists = 1;
  12. }
  13. message Object
  14. {
  15. int64 id = 1;
  16. bytes vertices = 2; //An array of 3 floats.
  17. bytes normals = 3; //An array of 3 floats.
  18. bytes indices = 4; //An array of ints.
  19. repeated Setting settings = 5; // Setting override per object, overruling the global settings.
  20. }
  21. // typeid 3
  22. message Progress
  23. {
  24. float amount = 1;
  25. }
  26. // typeid 2
  27. message SlicedObjectList
  28. {
  29. repeated SlicedObject objects = 1;
  30. }
  31. message SlicedObject
  32. {
  33. int64 id = 1;
  34. repeated Layer layers = 2;
  35. }
  36. message Layer {
  37. int32 id = 1;
  38. float height = 2;
  39. float thickness = 3;
  40. repeated Polygon polygons = 4;
  41. }
  42. message Polygon {
  43. enum Type {
  44. NoneType = 0;
  45. Inset0Type = 1;
  46. InsetXType = 2;
  47. SkinType = 3;
  48. SupportType = 4;
  49. SkirtType = 5;
  50. InfillType = 6;
  51. SupportInfillType = 7;
  52. MoveCombingType = 8;
  53. MoveRetractionType = 9;
  54. }
  55. Type type = 1;
  56. bytes points = 2;
  57. float line_width = 3;
  58. }
  59. // typeid 4
  60. message GCodeLayer {
  61. int64 id = 1;
  62. bytes data = 2;
  63. }
  64. // typeid 5
  65. message ObjectPrintTime {
  66. int64 id = 1;
  67. float time = 2;
  68. float material_amount = 3;
  69. }
  70. // typeid 6
  71. message SettingList {
  72. repeated Setting settings = 1;
  73. }
  74. message Setting {
  75. string name = 1;
  76. bytes value = 2;
  77. }
  78. // typeid 7
  79. message GCodePrefix {
  80. bytes data = 2;
  81. }
  82. // typeid 8
  83. message SlicingFinished {
  84. }