X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FSMESH%2Fdefining_hypotheses_tui.htm;h=0874e45078cc068dff489cf745d6d965814b7ea6;hb=4ff5bd61540272713e48de1eee75625028c32155;hp=581805053ad610e95c56764e29a6b9b0da72e5c8;hpb=50eb85fb3d790dcf6607bb1eb63a9fd68bcaadba;p=modules%2Fsmesh.git diff --git a/doc/salome/gui/SMESH/defining_hypotheses_tui.htm b/doc/salome/gui/SMESH/defining_hypotheses_tui.htm index 581805053..0874e4507 100755 --- a/doc/salome/gui/SMESH/defining_hypotheses_tui.htm +++ b/doc/salome/gui/SMESH/defining_hypotheses_tui.htm @@ -284,58 +284,54 @@ else

# create vertices

-

px   = - geompy.MakeVertex(100., 0.  , - 0.  )

+

px   =geompy.MakeVertex(100., 0.  ,0.  )

-

py   = - geompy.MakeVertex(0.  , - 100., 0.  )

+

py   =geompy.MakeVertex(0.  ,100., 0.  )

-

pz   = - geompy.MakeVertex(0.  , - 0.  , 100.)

+

pz   =geompy.MakeVertex(0.  ,0.  , 100.)

 

# create a vector from two points

-

vxy = geompy.MakeVector(px, - py)

+

vxy = geompy.MakeVector(px,py)

 

# create an arc from three points

-

arc = geompy.MakeArc(py, - pz, px)

+

arc = geompy.MakeArc(py, pz, px)

 

# create a wire

-

wire = geompy.MakeWire([vxy, - arc])

+

wire = geompy.MakeWire([vxy,arc])

isPlanarFace = 1

 

-

# create a face from - the wire

+

# create a face from the wire

-

face1 = geompy.MakeFace(wire, - isPlanarFace)

+

face1 = geompy.MakeFace(wire,isPlanarFace)

 

-

# add objects in the - study

+

# get edges from the face

+ +

vxy, arc = geompy.SubShapeAll(face1, geompy.ShapeType["EDGE"])

+ +

 

+ +

# add objects in the study

id_face1 = geompy.addToStudy(face1,"Face1")

+

id_arc = geompy.addToStudyInFather(face1,arc,"Arc Edge")

+

 

# display faces

@@ -350,44 +346,34 @@ else

# create hexahedral mesh

-

hexa = smesh.Mesh(face1, - "Face compound : hexahedrical mesh")

+

hexa = smesh.Mesh(face1,"Face compound : hexahedrical mesh")

algo = hexa.Triangle()

 

-

# define "MaxElementArea" - hypothesis to be applied  to - each triangle

+

# define "MaxElementArea"hypothesis

algo.MaxElementArea(30)

 

-

# create a quadrangle - 2D algorithm for faces

- -

hexa.Quadrangle()

- -

 

- -

# create a local hypothesis

+

# create a local hypothesis on the wire

algo = hexa.Segment(wire)

 

-

# define "NumberOfSegments" - hypothesis to cut an edge in a fixed number of segments

+

# define "NumberOfSegments"hypothesis to cut +a straight edge in a fixed number of segments

algo.NumberOfSegments(6)

 

-

# define "Deflection1D" - hypothesis

+

# define a local "Deflection1D"hypothesis on the arc

+

algo = hexa.Segment(arc)

algo.Deflection1D(1)