Release 28 June 2021 #387

Merged
Irev-Dev merged 12 commits from main into release 2021-06-28 12:51:55 +02:00
2 changed files with 7 additions and 3 deletions
Showing only changes of commit e95d47cfdf - Show all commits

View File

@@ -1,10 +1,12 @@
const { makeFile, runCommand } = require('../common/utils')
const { nanoid } = require('nanoid')
module.exports.runCQ = async ({ file, settings = {} } = {}) => {
module.exports.runCQ = async ({ file, settings: {
deflection = 0.3
} = {} } = {}) => {
const tempFile = await makeFile(file, '.py', nanoid)
const fullPath = `/tmp/${tempFile}/output.stl`
const command = `cq-cli/cq-cli --codec stl --infile /tmp/${tempFile}/main.py --outfile ${fullPath}`
const command = `cq-cli/cq-cli --codec stl --infile /tmp/${tempFile}/main.py --outfile ${fullPath} --outputopts "deflection:${deflection};angularDeflection:${deflection};"`
console.log('command', command)
try {

View File

@@ -8,7 +8,9 @@ import {
export const render = async ({ code }) => {
const body = JSON.stringify({
settings: {},
settings: {
deflection: 0.2
},
file: code,
})
try {