mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
parent
763c6e08e8
commit
5a6468baef
@ -177,7 +177,10 @@ export async function slice(action, name, mesh, settings, updateProgress) {
|
||||
const centerX = dimensions.x / 2;
|
||||
const centerY = dimensions.y / 2;
|
||||
|
||||
const matrix = new THREE.Matrix4().makeTranslation(centerY, 0, centerX).multiply(mesh.matrix);
|
||||
const matrix = new THREE.Matrix4().makeRotationY(-Math.PI / 2.0)
|
||||
.multiply(new THREE.Matrix4().makeTranslation(centerY, 0, centerX))
|
||||
.multiply(mesh.matrix);
|
||||
|
||||
const { gcode } = await sliceGeometry(settings, mesh.geometry, mesh.material, matrix, false, false, ({ progress }) => {
|
||||
updateProgress({
|
||||
action: progress.action,
|
||||
|
Loading…
Reference in New Issue
Block a user