mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2025-01-27 14:00:34 +05:00
PR: adaptation to geomBuilder
This commit is contained in:
parent
f53962865a
commit
3e9666a36b
@ -53,14 +53,6 @@ def getGeompy(studyId = None):
|
|||||||
studyId = getActiveStudyId()
|
studyId = getActiveStudyId()
|
||||||
if not _geompys.has_key(studyId):
|
if not _geompys.has_key(studyId):
|
||||||
from salome.geom import geomBuilder
|
from salome.geom import geomBuilder
|
||||||
_geompys[studyId] = salome.lcc.FindOrLoadComponent("FactoryServer",
|
|
||||||
"GEOM")
|
|
||||||
_geompys[studyId].ShapeType = geomBuilder.ShapeType
|
|
||||||
_geompys[studyId].GEOM = geomBuilder.GEOM
|
|
||||||
_geompys[studyId].kind = geomBuilder.kind
|
|
||||||
_geompys[studyId].info = geomBuilder.info
|
|
||||||
_geompys[studyId].PackData = geomBuilder.PackData
|
|
||||||
_geompys[studyId].ReadTexture = geomBuilder.ReadTexture
|
|
||||||
study = salome.myStudyManager.GetStudyByID(studyId)
|
study = salome.myStudyManager.GetStudyByID(studyId)
|
||||||
_geompys[studyId] = geomBuilder.New(study)
|
_geompys[studyId] = geomBuilder.New(study)
|
||||||
return _geompys[studyId]
|
return _geompys[studyId]
|
||||||
|
Loading…
Reference in New Issue
Block a user