import {assertFaceOrigination, assertFaceRole} from '../utils/asserts'; import {createPlaneAndOpenSketcher} from '../utils/scripts'; export const TEST_MODE = 'modellerUI'; export async function testExtrudePrism(env, ui) { let [sketcherUI, sketchedFace] = await createPlaneAndOpenSketcher(ui); let [S1, S2, S3, S4] = sketcherUI.addRectangle(-100, -100, 100, 100); // let gauge = ui.prismSurfaceGauge([-100, -100, 0], [100, -100, 0], [50, 50, 0], [-50, 50, 0] ); // // ui.__DEBUG__.AddParametricSurface(gauge.surface); ui.commitSketch(); ui.selectFaces([0, 0, -10], [0, 0, 10]); ui.openWizard('EXTRUDE'); ui.wizardContext.updateParam('height', 2000); ui.wizardContext.updateParam('prism', 0.1); await ui.wizardOK(); env.fail(); }