diff --git a/backend/profiles/bambu_a1.json b/backend/profiles/bambu_a1.json new file mode 100644 index 0000000..0595557 --- /dev/null +++ b/backend/profiles/bambu_a1.json @@ -0,0 +1,3 @@ +{ + "inherits": "Bambu Lab A1 0.4 nozzle" +} diff --git a/backend/profiles/draft.json b/backend/profiles/draft.json new file mode 100644 index 0000000..2b6ac7a --- /dev/null +++ b/backend/profiles/draft.json @@ -0,0 +1,3 @@ +{ + "inherits": "0.28mm Extra Draft @BBL A1" +} diff --git a/backend/profiles/extra_fine.json b/backend/profiles/extra_fine.json new file mode 100644 index 0000000..f6f2d79 --- /dev/null +++ b/backend/profiles/extra_fine.json @@ -0,0 +1,3 @@ +{ + "inherits": "0.08mm High Quality @BBL A1" +} diff --git a/backend/profiles/pla_basic.json b/backend/profiles/pla_basic.json new file mode 100644 index 0000000..d8f1018 --- /dev/null +++ b/backend/profiles/pla_basic.json @@ -0,0 +1,3 @@ +{ + "inherits": "Bambu PLA Basic @BBL A1" +} diff --git a/backend/profiles/standard.json b/backend/profiles/standard.json new file mode 100644 index 0000000..5bb0608 --- /dev/null +++ b/backend/profiles/standard.json @@ -0,0 +1,3 @@ +{ + "inherits": "0.20mm Standard @BBL A1" +} diff --git a/backend/src/main/java/com/printcalculator/controller/QuoteController.java b/backend/src/main/java/com/printcalculator/controller/QuoteController.java index 301f01a..0d5ae1c 100644 --- a/backend/src/main/java/com/printcalculator/controller/QuoteController.java +++ b/backend/src/main/java/com/printcalculator/controller/QuoteController.java @@ -20,9 +20,9 @@ public class QuoteController { private final QuoteCalculator quoteCalculator; // Defaults - private static final String DEFAULT_MACHINE = "Bambu_Lab_A1_machine"; - private static final String DEFAULT_FILAMENT = "Bambu_PLA_Basic"; - private static final String DEFAULT_PROCESS = "Bambu_Process_0.20_Standard"; + private static final String DEFAULT_MACHINE = "bambu_a1"; + private static final String DEFAULT_FILAMENT = "pla_basic"; + private static final String DEFAULT_PROCESS = "standard"; public QuoteController(SlicerService slicerService, QuoteCalculator quoteCalculator) { this.slicerService = slicerService; diff --git a/frontend/src/app/features/calculator/services/quote-estimator.service.ts b/frontend/src/app/features/calculator/services/quote-estimator.service.ts index efe6e9c..4085054 100644 --- a/frontend/src/app/features/calculator/services/quote-estimator.service.ts +++ b/frontend/src/app/features/calculator/services/quote-estimator.service.ts @@ -67,8 +67,7 @@ export class QuoteEstimatorService { return new Observable(observer => { const formData = new FormData(); - formData.append('file', file); - formData.append('machine', 'bambu_a1'); + formData.append('file', file); formData.append('filament', this.mapMaterial(request.material)); formData.append('quality', this.mapQuality(request.quality)); diff --git a/test.stl b/test.stl new file mode 100644 index 0000000..fa7c1cb --- /dev/null +++ b/test.stl @@ -0,0 +1,9 @@ +solid test +facet normal 0 0 0 +outer loop +vertex 0 0 0 +vertex 1 0 0 +vertex 0 1 0 +endloop +endfacet +endsolid test