mirror of
https://github.com/xibyte/jsketcher
synced 2025-12-20 23:43:27 +01:00
24 lines
591 B
JavaScript
24 lines
591 B
JavaScript
import schema from './schema';
|
|
import {loftPreviewGeomProvider} from './loftPreviewer';
|
|
import {assignBooleanParams} from '../primitives/booleanOptionHelper';
|
|
import LoftForm from './LoftForm';
|
|
|
|
export default {
|
|
id: 'LOFT',
|
|
label: 'Loft',
|
|
icon: 'img/cad/loft',
|
|
info: 'creates a loft cross selected sections shape',
|
|
paramsInfo: () => '',
|
|
previewGeomProvider: loftPreviewGeomProvider,
|
|
run: runLoft,
|
|
form: LoftForm,
|
|
schema
|
|
};
|
|
|
|
|
|
function runLoft(params, services) {
|
|
return services.craftEngine.loft({
|
|
sections: params.sections.map(services.cadRegistry.findLoop)
|
|
});
|
|
}
|
|
|