# -*- coding: iso-8859-1 -*-

###
### This file is generated automatically by SALOME v6.5.0 with dump python functionality
###

import sys
import salome

salome.salome_init()
theStudy = salome.myStudy

###
### GEOM component
###

import GEOM
import geompy
import math
import SALOMEDS


geompy.init_geom(theStudy)

Scale_1_brep_1 = geompy.ImportFile("Scale_1.brep", "BREP")
[Shell_1,Shell_2] = geompy.ExtractShapes(Scale_1_brep_1, geompy.ShapeType["SHAPE"], True)
Plane_1 = geompy.MakePlaneLCS(None, 2000, 2)
Partition_1 = geompy.MakePartition([Shell_1], [Plane_1])
Compound_1 = geompy.MakeCompound([Shell_2, Partition_1])
Glue_1 = geompy.MakeGlueEdges(Compound_1, 1e-07)
geompy.addToStudy( Scale_1_brep_1, 'Scale_1.brep_1' )
geompy.addToStudyInFather( Scale_1_brep_1, Shell_1, 'Shell_1' )
geompy.addToStudyInFather( Scale_1_brep_1, Shell_2, 'Shell_2' )
geompy.addToStudy( Plane_1, 'Plane_1' )
geompy.addToStudy( Partition_1, 'Partition_1' )
geompy.addToStudy( Compound_1, 'Compound_1' )
geompy.addToStudy( Glue_1, 'Glue_1' )


if salome.sg.hasDesktop():
  salome.sg.updateObjBrowser(1)
