Salome HOME
Join modifications from branch OCC_development_for_3_2_0a2
[modules/smesh.git] / doc / salome / gui / SMESH / defining_hypotheses_tui.htm
index 581805053ad610e95c56764e29a6b9b0da72e5c8..0874e45078cc068dff489cf745d6d965814b7ea6 100755 (executable)
@@ -284,58 +284,54 @@ else
 \r
 <p class="whs3"># create vertices</p>\r
 \r
-<p class="whs2">px &nbsp;&nbsp;= \r
- geompy.MakeVertex(100., 0. &nbsp;, \r
- 0. &nbsp;)</p>\r
+<p class="whs2">px &nbsp;&nbsp;=geompy.MakeVertex(100., 0. &nbsp;,0. &nbsp;)</p>\r
 \r
-<p class="whs2">py &nbsp;&nbsp;= \r
- geompy.MakeVertex(0. &nbsp;, \r
- 100., 0. &nbsp;)</p>\r
+<p class="whs2">py &nbsp;&nbsp;=geompy.MakeVertex(0. &nbsp;,100., 0. &nbsp;)</p>\r
 \r
-<p class="whs2">pz &nbsp;&nbsp;= \r
- geompy.MakeVertex(0. &nbsp;, \r
- 0. &nbsp;, 100.)</p>\r
+<p class="whs2">pz &nbsp;&nbsp;=geompy.MakeVertex(0. &nbsp;,0. &nbsp;, 100.)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
 <p class="whs3"># create a vector from \r
  two points</p>\r
 \r
-<p class="whs2">vxy = geompy.MakeVector(px, \r
- py)</p>\r
+<p class="whs2">vxy = geompy.MakeVector(px,py)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
 <p class="whs3"># create an arc from \r
  three points</p>\r
 \r
-<p class="whs2">arc = geompy.MakeArc(py, \r
- pz, px)</p>\r
+<p class="whs2">arc = geompy.MakeArc(py, pz, px)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
 <p class="whs3"># create a wire</p>\r
 \r
-<p class="whs2">wire = geompy.MakeWire([vxy, \r
- arc])</p>\r
+<p class="whs2">wire = geompy.MakeWire([vxy,arc])</p>\r
 \r
 <p class="whs2">isPlanarFace = 1</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># create a face from \r
- the wire</p>\r
+<p class="whs3"># create a face from the wire</p>\r
 \r
-<p class="whs2">face1 = geompy.MakeFace(wire, \r
- isPlanarFace)</p>\r
+<p class="whs2">face1 = geompy.MakeFace(wire,isPlanarFace)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># add objects in the \r
- study</p>\r
+<p class="whs3"># get edges from the face</p>\r
+\r
+<p class="whs2">vxy, arc = geompy.SubShapeAll(face1, geompy.ShapeType["EDGE"])</p>\r
+\r
+<p class="whs2">&nbsp;</p>\r
+\r
+<p class="whs3"># add objects in the study</p>\r
 \r
 <p class="whs2">id_face1 = geompy.addToStudy(face1,&quot;Face1&quot;)</p>\r
 \r
+<p class="whs2">id_arc = geompy.addToStudyInFather(face1,arc,&quot;Arc Edge&quot;)</p>\r
+\r
 <p class="whs2">&nbsp;</p>\r
 \r
 <p class="whs3"># display faces</p>\r
@@ -350,44 +346,34 @@ else
 \r
 <p class="whs3"># create hexahedral mesh</p>\r
 \r
-<p class="whs2">hexa = smesh.Mesh(face1, \r
- &quot;Face compound : hexahedrical mesh&quot;)</p>\r
+<p class="whs2">hexa = smesh.Mesh(face1,&quot;Face compound : hexahedrical mesh&quot;)</p>\r
 \r
 <p class="whs2">algo = hexa.Triangle()</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># define &quot;MaxElementArea&quot; \r
- hypothesis to be applied &nbsp;to \r
- each triangle</p>\r
+<p class="whs3"># define &quot;MaxElementArea&quot;hypothesis</p>\r
 \r
 <p class="whs2">algo.MaxElementArea(30)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># create a quadrangle \r
- 2D algorithm for faces</p>\r
-\r
-<p class="whs2">hexa.Quadrangle()</p>\r
-\r
-<p class="whs2">&nbsp;</p>\r
-\r
-<p class="whs3"># create a local hypothesis</p>\r
+<p class="whs3"># create a local hypothesis on the wire</p>\r
 \r
 <p class="whs2">algo = hexa.Segment(wire)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># define &quot;NumberOfSegments&quot; \r
- hypothesis to cut an edge in a fixed number of segments</p>\r
+<p class="whs3"># define &quot;NumberOfSegments&quot;hypothesis to cut\r
+a straight edge in a fixed number of segments</p>\r
 \r
 <p class="whs2">algo.NumberOfSegments(6)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r
 \r
-<p class="whs3"># define &quot;Deflection1D&quot; \r
- hypothesis</p>\r
+<p class="whs3"># define a local &quot;Deflection1D&quot;hypothesis on the arc</p>\r
 \r
+<p class="whs2">algo = hexa.Segment(arc)</p>\r
 <p class="whs2">algo.Deflection1D(1)</p>\r
 \r
 <p class="whs2">&nbsp;</p>\r