0020310: EDF 997 SMESH : Tell the mesh to pass through different points

This commit is contained in:
dmv 2009-11-03 15:21:09 +00:00
parent e99aa58380
commit 663d2b6a46
2 changed files with 62 additions and 15 deletions

View File

@ -199,24 +199,34 @@ minimum and maximum value of this parameter.
\anchor fixed_points_1d_anchor \anchor fixed_points_1d_anchor
<h2>Fixed points 1D hypothesis</h2> <h2>Fixed points 1D hypothesis</h2>
<b>Fixed points 1D</b> hypothesis allows spliting edges through a <b>Fixed points 1D</b> hypothesis allows to split edges into segments
set of points parametrized on the edge (from 1 to 0)and a number of segments for each using set of fixed points given by normalized parameters on edge and
interval limited by the points. set of numbers of segments for splitting each sub-segment between
fixed points. Optionally it is possible to set flag
<b>Same Nb. Segments for all intervals</b> and
only one value for mentioned number of segments.
\image html hypo_fixedpnt_dlg.png The direction of the splitting is defined by the orientation of the
It is possible to check in <b>Same Nb. Segments for all intervals</b>
option and to define one value for all intervals.
The splitting direction is defined by the orientation of the
underlying geometrical edge. <b>"Reverse Edges"</b> list box allows to underlying geometrical edge. <b>"Reverse Edges"</b> list box allows to
specify the edges for which the splitting should be made in the specify the edges for which the splitting should be made in the
direction opposite to their orientation. This list box is enabled only direction opposing to their orientation. This list box is enabled only
if the geometrical object is selected for meshing. In this case it is if the geometry object is selected for the meshing. In this case the
possible to select the edges to be reversed either directly picking them in user can select edges to be reversed either directly picking them in
the 3D viewer or selecting the edges or groups of edges in the the 3D viewer or by selecting the edges or groups of edges in the
Object browser. Object browser.
\image html mesh_fixedpnt.png "Example of a submesh on the edge built using Fixed points 1D hypothesis" Using of this hypothesis for quadrangle face where main mesh is
created using <b>Quadrangle(Mapping)</b> and <b>NumberOfSegments</b>
hypothesises. Creation hypothesis <b>FixedPoint_1D</b> for submesh on
one edge:
\image html hypo_fixedpnt_dlg.png
Resulting 2D mesh:
\image html mesh_fixedpnt.png
<b>See Also</b> a sample TUI Script of a
\ref tui_fixed_points "Defining Fixed Points" hypothesis operation.
*/ */

View File

@ -468,10 +468,47 @@ src_mesh.TranslateObject( src_mesh, MakeDirStruct( 210, 0, 0 ), Copy=False)
\endcode \endcode
<br>
\anchor tui_fixed_points
<h2>1D Mesh with Fixed Points example</h2>
\code
import salome
import geompy
import smesh
import StdMeshers
# Create face and explode it on edges
face = geompy.MakeFaceHW(100, 100, 1)
edges = geompy.SubShapeAllSorted(face, geompy.ShapeType["EDGE"])
geompy.addToStudy( face, "Face" )
# get the first edge from exploded result
edge1 = geompy.GetSubShapeID(face, edges[0])
# Define Mesh on previously created face
Mesh_1 = smesh.Mesh(face)
# Create Fixed Point 1D hypothesis and define parameters
Fixed_points_1D_1 = smesh.CreateHypothesis('FixedPoints1D')
Fixed_points_1D_1.SetPoints( [ 1.1, 0.9, 0.5, 0.0, 0.5, -0.3 ] )
Fixed_points_1D_1.SetNbSegments( [ 3, 1, 2 ] )
Fixed_points_1D_1.SetReversedEdges( [edge1] )
# Add hypothesis to mesh and define 2D parameters
Mesh_1.AddHypothesis(Fixed_points_1D_1)
Regular_1D = Mesh_1.Segment()
Quadrangle_2D = Mesh_1.Quadrangle()
# Compute mesh
Mesh_1.Compute()
\endcode
\n Other meshing algorithms: \n Other meshing algorithms:
<ul> <ul>
<li>\subpage tui_defining_blsurf_hypotheses_page</li> <li>\subpage tui_defining_blsurf_hypotheses_page</li>
<li>\subpage tui_defining_ghs3d_hypotheses_page</li>
</ul> </ul>
*/ */