6 from salome.geom
import geomBuilder
7 geompy = geomBuilder.New(salome.myStudy)
8 gg = salome.ImportComponentGUI(
"GEOM")
11 sketcher1 = geompy.Make3DSketcher([ 0,0,0, 50,50,50, 0,50,0, 50,0,25, 10,20,100, 0,0,0 ])
14 id_sketcher1 = geompy.addToStudy(sketcher1,
"Sketcher1")
17 gg.createAndDisplayGO(id_sketcher1)
22 sk = geompy.Sketcher3D()
27 sk.addPointsAbsolute(1,2,3, 7,0,0, 10,-3.5,-11)
30 sk.addPointRadiusAnglesRelative(45, 0, 100,
"OXY")
34 sk.addPointsRelative(20,0,0, 20,0,100, -40,0,-50)
43 id_sketcher2 = geompy.addToStudy(sketcher2,
"Sketcher2")
46 gg.createAndDisplayGO(id_sketcher2)