Compare commits

...

1 Commits

Author SHA1 Message Date
737dd206cd Sectional default update in point-and-click sweep 2025-05-14 12:38:47 -04:00
3 changed files with 6 additions and 5 deletions

View File

@ -152,9 +152,10 @@ export function addSweep({
// Extra labeled args expressions // Extra labeled args expressions
const pathExpr = createLocalName(pathDeclaration.node.declaration.id.name) const pathExpr = createLocalName(pathDeclaration.node.declaration.id.name)
const sectionalExpr = sectional const sectionalExpr =
? [createLabeledArg('sectional', createLiteral(sectional))] sectional == false
: [] ? [createLabeledArg('sectional', createLiteral(sectional))]
: []
const sketchesExpr = createSketchExpression(sketchesExprList) const sketchesExpr = createSketchExpression(sketchesExprList)
const call = createCallExpressionStdLibKw('sweep', sketchesExpr, [ const call = createCallExpressionStdLibKw('sweep', sketchesExpr, [

View File

@ -434,7 +434,7 @@ export const modelingMachineCommandConfig: StateMachineCommandSetConfig<
sectional: { sectional: {
inputType: 'options', inputType: 'options',
skip: true, skip: true,
defaultValue: false, defaultValue: true,
hidden: false, hidden: false,
required: true, required: true,
options: [ options: [

View File

@ -290,7 +290,7 @@ export const sweepValidator = async ({
const command = async () => { const command = async () => {
// TODO: second look on defaults here // TODO: second look on defaults here
const DEFAULT_TOLERANCE: Models['LengthUnit_type'] = 1e-7 const DEFAULT_TOLERANCE: Models['LengthUnit_type'] = 1e-7
const DEFAULT_SECTIONAL = false const DEFAULT_SECTIONAL = false // the more permissive for validation
const cmdArgs = { const cmdArgs = {
target, target,
trajectory, trajectory,