\r
<p class="whs3"># create vertices</p>\r
\r
-<p class="whs2">px = \r
- geompy.MakeVertex(100., 0. , \r
- 0. )</p>\r
+<p class="whs2">px =geompy.MakeVertex(100., 0. ,0. )</p>\r
\r
-<p class="whs2">py = \r
- geompy.MakeVertex(0. , \r
- 100., 0. )</p>\r
+<p class="whs2">py =geompy.MakeVertex(0. ,100., 0. )</p>\r
\r
-<p class="whs2">pz = \r
- geompy.MakeVertex(0. , \r
- 0. , 100.)</p>\r
+<p class="whs2">pz =geompy.MakeVertex(0. ,0. , 100.)</p>\r
\r
<p class="whs2"> </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"> </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"> </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"> </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"> </p>\r
\r
-<p class="whs3"># add objects in the \r
- study</p>\r
+<p class="whs3"># add objects in the study</p>\r
\r
<p class="whs2">id_face1 = geompy.addToStudy(face1,"Face1")</p>\r
+<p class="whs2">id_arc = geompy.addToStudyInFather(arc,"Arc Edge")</p>\r
\r
<p class="whs2"> </p>\r
\r
\r
<p class="whs3"># create hexahedral mesh</p>\r
\r
-<p class="whs2">hexa = smesh.Mesh(face1, \r
- "Face compound : hexahedrical mesh")</p>\r
+<p class="whs2">hexa = smesh.Mesh(face1,"Face compound : hexahedrical mesh")</p>\r
\r
<p class="whs2">algo = hexa.Triangle()</p>\r
\r
<p class="whs2"> </p>\r
\r
-<p class="whs3"># define "MaxElementArea" \r
- hypothesis to be applied to \r
- each triangle</p>\r
+<p class="whs3"># define "MaxElementArea"hypothesis</p>\r
\r
<p class="whs2">algo.MaxElementArea(30)</p>\r
\r
<p class="whs2"> </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"> </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"> </p>\r
\r
-<p class="whs3"># define "NumberOfSegments" \r
- hypothesis to cut an edge in a fixed number of segments</p>\r
+<p class="whs3"># define "NumberOfSegments"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"> </p>\r
\r
-<p class="whs3"># define "Deflection1D" \r
- hypothesis</p>\r
+<p class="whs3"># define a local "Deflection1D"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"> </p>\r