Cura.proto 1.3 KB

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