mirror of
https://git.salome-platform.org/gitpub/modules/geom.git
synced 2024-12-25 08:50:36 +05:00
Merge multi-study removal branch.
This commit is contained in:
parent
61e3f7e90a
commit
a79bb58153
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# Create a 3D sketcher (wire) on the given points coordinates
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# a box
|
||||
|
@ -5,7 +5,7 @@ salome.salome_init()
|
||||
# --- geom Python interface
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# --- Create a box and publish it into the salome study
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
@ -13,4 +13,4 @@ geompy.addToStudy( Box_1, 'Box_1' )
|
||||
|
||||
# --- update the study object browser
|
||||
if salome.sg.hasDesktop():
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create PipeTShape object
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create DividedDisk object
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create DividedCylinder object
|
||||
|
@ -1,6 +1,6 @@
|
||||
import salome, GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a could of points
|
||||
points = [
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
|
||||
OX = geompy.MakeVectorDXDYDZ(10, 0,0)
|
||||
|
@ -5,7 +5,7 @@ salome.salome_init()
|
||||
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
Circle_1 = geompy.MakeCircle(None, None, 100)
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
@ -22,4 +22,4 @@ geompy.PutListToFolder([Box_1, Cylinder_1], Primitives)
|
||||
|
||||
|
||||
if salome.sg.hasDesktop():
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices and vectors
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
import SALOMEDS
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
import SALOMEDS
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import SALOMEDS
|
||||
|
||||
# create a box and a cylinder
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import SALOMEDS
|
||||
|
||||
# create a box and partigion it by two planes
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box and a sphere
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
check_box = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
@ -20,4 +20,4 @@ for chain in listChains:
|
||||
ii = ii + 1
|
||||
pass
|
||||
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,30,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create boxes
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,100,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,100,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,30,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
mindeg = 2
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
Wire_1 = geompy.MakeSketcher("Sketcher:F 0 0:TT 100 0:R 0:C 100 90:T 0 200", [0, 0, 0, 0, 0, 1, 1, 0, -0])
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import salome
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -3,7 +3,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
def MakeHelix(radius, height, rotation, direction):
|
||||
# - create a helix -
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# Create a box
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# Create Vertexes for curve
|
||||
Vertex_1 = geompy.MakeVertex(0, 0, 0)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,100,100)
|
||||
|
@ -3,7 +3,7 @@
|
||||
import salome
|
||||
salome.salome_init()
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a shape
|
||||
box1 = geompy.MakeBox(0, 0, 0, 100, 100, 100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create solids
|
||||
box = geompy.MakeBoxDXDYDZ(100, 100, 100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
import tempfile, os
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,30,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# Create two curves with three closest points
|
||||
Vertex_1 = geompy.MakeVertex(0, 0, 0)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import salome_notebook
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -5,7 +5,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a point
|
||||
point = geompy.MakeVertex(15., 23., 80.)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -6,7 +6,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices, an edge, an arc, a wire, a face and a prism
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices and vectors
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome, math
|
||||
salome.salome_init()
|
||||
from salome.geom import geomBuilder
|
||||
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create base points
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create boxes
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create boxes
|
||||
@ -30,4 +30,4 @@ geompy.addToStudy(glue1, "Glue all edges")
|
||||
geompy.addToStudy(glue2, "Glue two edges")
|
||||
|
||||
if salome.sg.hasDesktop():
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# import initial topology with bad tolerances (more than 1e-07)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# Variant 1: using DivideEdge()
|
||||
|
||||
@ -40,4 +40,4 @@ edge = geompy.GetEdgeNearPoint( box, p1, theName="edge to split")
|
||||
div = geompy.DivideEdgeByPoint( box, edge, [p1, p2], theName="box (edge divided)")
|
||||
|
||||
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create vertices
|
||||
p1 = geompy.MakeVertex(0, 0, 0)
|
||||
@ -49,4 +49,4 @@ for wire in wires:
|
||||
ii = ii + 1
|
||||
pass
|
||||
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create solids with some coincident faces
|
||||
Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
|
||||
@ -23,4 +23,4 @@ geompy.addToStudy(Partition_1, 'Partition_1')
|
||||
Joined_1 = geompy.RemoveInternalFaces(Partition_1)
|
||||
geompy.addToStudy(Joined_1, 'Joined_1')
|
||||
|
||||
salome.sg.updateObjBrowser(True)
|
||||
salome.sg.updateObjBrowser()
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a box
|
||||
box = geompy.MakeBoxDXDYDZ(100,30,100)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
#
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
#create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
#create vertices
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a vertex and a vector
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
import math
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box and a sphere
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a box and a sphere
|
||||
|
@ -3,7 +3,7 @@
|
||||
import salome
|
||||
salome.salome_init()
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
|
||||
# create a cylindric face and a curve(edge)
|
||||
cylinder = geompy.MakeCylinderRH(100, 300)
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create vertices and vectors
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
import math
|
||||
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create a face in OXY plane
|
||||
|
@ -4,7 +4,7 @@ import salome
|
||||
salome.salome_init()
|
||||
import GEOM
|
||||
from salome.geom import geomBuilder
|
||||
geompy = geomBuilder.New(salome.myStudy)
|
||||
geompy = geomBuilder.New()
|
||||
gg = salome.ImportComponentGUI("GEOM")
|
||||
|
||||
# create box
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user