Skip to content
This repository was archived by the owner on Jun 15, 2023. It is now read-only.
This repository was archived by the owner on Jun 15, 2023. It is now read-only.

Cannot set settings #16

@Eloik-dev

Description

@Eloik-dev

Hi!

I am currently implementing Cura-WASM (installed through NPM) in a Node JS web application, but simply cannot figure out why my parameters aren't taken into account while slicing. My main goal is to estimate an object's price based on its volume and the infill required by the customer. However, whenever I try to implement "infill_sparse_density=X", or any other setting, it doesn't seem to affect the output print time whatsoever. I have looked everywhere, but couldn't find anything on this issue.

Here's the code I currently have for slicing, let me know if anything else is needed

const slicer = new CuraWASM({

     command: 'slice -v -j definitions/fdmprinter.def.json -o Model.gcode -s layer_height=0.2 -s infill_sparse_density=50 -l Model.stl',

     verbose: true,
});

const res = await file;
const stl = await res.arrayBuffer();

slicer.on('progress', percent => {
  //...
});

const gcodeFile = await slicer.slice(stl, 'stl');
}

`
Thanks for your time,
Really awesome software by the way!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions