set_defaults()
activate_newgeom()
-
+
sketch_create(help_points("XY_plane"), lambda: sketch_circle())
sketch_create(help_points("XY_plane"), lambda: sketch_lines())
+ test.vp("VP_SKETCHES")
part_create()
extrusion((299, 159), 10, 0)
#[step] Create V-shape sketch
extrusion((642, 176), 10, 0)
+
+ test.vp("VP_EXTRUSIONS")
+
#[step] Create plane: inner right for V-shape
activateItem(waitForObjectItem(":SALOME*_QMenuBar", "Construction"))
activateItem(waitForObjectItem(":_QMenu", "Plane"))
mouseDrag(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 305, 263, -2, -165, 67108866, Qt.RightButton)
mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 651, 229, 0, Qt.LeftButton)
clickButton(waitForObject(":Plane.property_panel_ok_QToolButton"))
+ test.vp("VP_INNER_RIGHT_PLANE")
+
#[step] Create plane: outer right for V-shape
activateItem(waitForObjectItem(":SALOME*_QMenuBar", "Construction"))
activateItem(waitForObjectItem(":_QMenu", "Plane"))
type(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), "<Control>")
mouseDrag(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 515, 402, -7, -305, 67108866, Qt.RightButton)
clickButton(waitForObject(":Plane.property_panel_ok_QToolButton"))
+ test.vp("VP_OUTER_RIGHT_PLANE")
#[step] Activate Partition feature
activateItem(waitForObjectItem(":SALOME*_QMenuBar", "Features"))
mouseClick(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 639, 210, 33554432, Qt.LeftButton)
type(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), "<Control>")
mouseDrag(waitForObject(":SALOME*.3D View Operations_OCCViewer_ViewPort3d"), 567, 436, -11, -351, 67108866, Qt.RightButton)
+
#[step] Apply Partition
clickButton(waitForObject(":Partition.property_panel_ok_QToolButton"))