From f11ae15a45aa595beff6789a240592dac8653f76 Mon Sep 17 00:00:00 2001 From: eap Date: Thu, 16 Feb 2006 11:05:40 +0000 Subject: [PATCH] PAL11200. Fix deflection example --- .../gui/SMESH/defining_hypotheses_tui.htm | 55 ++++++------------- 1 file changed, 17 insertions(+), 38 deletions(-) diff --git a/doc/salome/gui/SMESH/defining_hypotheses_tui.htm b/doc/salome/gui/SMESH/defining_hypotheses_tui.htm index 581805053..4859c4d00 100755 --- a/doc/salome/gui/SMESH/defining_hypotheses_tui.htm +++ b/doc/salome/gui/SMESH/defining_hypotheses_tui.htm @@ -284,57 +284,46 @@ 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

+

# add objects in the study

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

+

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

 

@@ -350,44 +339,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)

 

-- 2.39.2