2013-02-12 17:35:16 +06:00
|
|
|
# Fillet 2D
|
|
|
|
|
|
|
|
import salome
|
2021-08-12 11:43:44 +05:00
|
|
|
salome.salome_init_without_session()
|
2013-04-04 13:06:43 +06:00
|
|
|
import GEOM
|
|
|
|
from salome.geom import geomBuilder
|
2017-06-13 14:57:14 +05:00
|
|
|
geompy = geomBuilder.New()
|
2013-02-12 17:35:16 +06:00
|
|
|
gg = salome.ImportComponentGUI("GEOM")
|
|
|
|
|
|
|
|
# create a face in OXY plane
|
|
|
|
face = geompy.MakeFaceHW(100, 100, 1)
|
|
|
|
fillet2d = geompy.MakeFillet2D(face, 30, [7, 9])
|
|
|
|
|
|
|
|
# add objects in the study
|
|
|
|
id_face = geompy.addToStudy(face,"Face_1")
|
|
|
|
id_fillet2d = geompy.addToStudy(fillet2d,"Fillet 2D_1")
|
|
|
|
|
|
|
|
# display disks
|
|
|
|
gg.createAndDisplayGO(id_face)
|
|
|
|
gg.createAndDisplayGO(id_fillet2d)
|