mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2025-01-27 18:40:34 +05:00
Movement of examples to CVS EXAMPLES SAMPLES_SRC.
This commit is contained in:
parent
5b66adc250
commit
5fec7e4eb7
@ -63,9 +63,9 @@ Chamfer_2 = geompy.MakeChamferEdge(Chamfer_1, 10, 10, 21, 31 )
|
|||||||
geompy.addToStudy(Chamfer_2, "Chamfer_2")
|
geompy.addToStudy(Chamfer_2, "Chamfer_2")
|
||||||
|
|
||||||
#Import of the shape from "slots.brep"
|
#Import of the shape from "slots.brep"
|
||||||
print "Import multi-rotation from the KERNEL_ROOT_DIR/examples/slots.brep"
|
print "Import multi-rotation from the DATA_DIR/Shapes/Brep/slots.brep"
|
||||||
thePath = os.getenv("KERNEL_ROOT_DIR")
|
thePath = os.getenv("DATA_DIR")
|
||||||
theFileName = thePath + "/examples/slots.brep"
|
theFileName = thePath + "/Shapes/Brep/slots.brep"
|
||||||
theShapeForCut = geompy.ImportBREP(theFileName)
|
theShapeForCut = geompy.ImportBREP(theFileName)
|
||||||
geompy.addToStudy(theShapeForCut, "slot.brep_1")
|
geompy.addToStudy(theShapeForCut, "slot.brep_1")
|
||||||
|
|
||||||
|
@ -64,7 +64,7 @@ def ConvertMED2UNV(thePath,theFile) :
|
|||||||
smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
|
smesh = salome.lcc.FindOrLoadComponent("FactoryServer", "SMESH")
|
||||||
smesh.SetCurrentStudy(salome.myStudy)
|
smesh.SetCurrentStudy(salome.myStudy)
|
||||||
|
|
||||||
aPath = os.getenv('KERNEL_ROOT_DIR') + '/examples/'
|
aPath = os.getenv('DATA_DIR') + '/MedFiles/'
|
||||||
aListDir = os.listdir(aPath)
|
aListDir = os.listdir(aPath)
|
||||||
print aListDir
|
print aListDir
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user