mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-27 19:06:16 +01:00
moved geometry selection activities to top of forms for fillet and shell tools. Made shell tool default toinside the selected face.
This commit is contained in:
parent
ad183f7293
commit
5e437794ce
2 changed files with 18 additions and 21 deletions
|
|
@ -25,6 +25,17 @@ export default {
|
|||
mutualExclusiveFields: [],
|
||||
paramsInfo: ({ size, opperationType, }) => `(${r(size)} ${r(opperationType)}})`,
|
||||
form: [
|
||||
{
|
||||
type: 'selection',
|
||||
name: 'edges',
|
||||
capture: [EntityKind.EDGE],
|
||||
label: 'edges',
|
||||
multi: true,
|
||||
defaultValue: {
|
||||
usePreselection: true,
|
||||
preselectionIndex: 0
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'choice',
|
||||
style: "dropdown",
|
||||
|
|
@ -39,19 +50,6 @@ export default {
|
|||
name: 'size',
|
||||
defaultValue: 5,
|
||||
},
|
||||
|
||||
{
|
||||
type: 'selection',
|
||||
name: 'edges',
|
||||
capture: [EntityKind.EDGE],
|
||||
label: 'edges',
|
||||
multi: true,
|
||||
defaultValue: {
|
||||
usePreselection: true,
|
||||
preselectionIndex: 0
|
||||
},
|
||||
},
|
||||
|
||||
],
|
||||
|
||||
run: (params, ctx: ApplicationContext) => {
|
||||
|
|
|
|||
|
|
@ -50,8 +50,7 @@ const ShellOperation: MDFCommand<ShellParams> = {
|
|||
console.log(shellToOpperateOn);
|
||||
|
||||
var bodyToPerformShellOpperationOn = shellToOpperateOn[0].shell;
|
||||
oci.offsetshape(newShellName, bodyToPerformShellOpperationOn , params.thickness, "1.e-3", ...shellToOpperateOn)
|
||||
|
||||
oci.offsetshape(newShellName, bodyToPerformShellOpperationOn, -params.thickness, "1.e-3", ...shellToOpperateOn)
|
||||
returnObject.created.push(occ.io.getShell(newShellName));
|
||||
});
|
||||
|
||||
|
|
@ -61,12 +60,6 @@ const ShellOperation: MDFCommand<ShellParams> = {
|
|||
|
||||
},
|
||||
form: [
|
||||
{
|
||||
type: 'number',
|
||||
name: 'thickness',
|
||||
label: 'thickness',
|
||||
defaultValue: 5,
|
||||
},
|
||||
{
|
||||
type: 'selection',
|
||||
name: 'faces',
|
||||
|
|
@ -78,6 +71,12 @@ const ShellOperation: MDFCommand<ShellParams> = {
|
|||
preselectionIndex: 0
|
||||
},
|
||||
},
|
||||
{
|
||||
type: 'number',
|
||||
name: 'thickness',
|
||||
label: 'thickness',
|
||||
defaultValue: 5,
|
||||
},
|
||||
],
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue