mirror of
https://git.salome-platform.org/gitpub/modules/smesh.git
synced 2024-11-15 10:08:34 +05:00
0020310: EDF 997 SMESH : Tell the mesh to pass through different points
This commit is contained in:
parent
e99aa58380
commit
663d2b6a46
@ -199,24 +199,34 @@ minimum and maximum value of this parameter.
|
||||
\anchor fixed_points_1d_anchor
|
||||
<h2>Fixed points 1D hypothesis</h2>
|
||||
|
||||
<b>Fixed points 1D</b> hypothesis allows spliting edges through a
|
||||
set of points parametrized on the edge (from 1 to 0)and a number of segments for each
|
||||
interval limited by the points.
|
||||
<b>Fixed points 1D</b> hypothesis allows to split edges into segments
|
||||
using set of fixed points given by normalized parameters on edge and
|
||||
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.
|
||||
|
||||
The direction of the splitting is defined by the orientation of the
|
||||
underlying geometrical edge. <b>"Reverse Edges"</b> list box allows to
|
||||
specify the edges for which the splitting should be made in the
|
||||
direction opposing to their orientation. This list box is enabled only
|
||||
if the geometry object is selected for the meshing. In this case the
|
||||
user can select edges to be reversed either directly picking them in
|
||||
the 3D viewer or by selecting the edges or groups of edges in the
|
||||
Object browser.
|
||||
|
||||
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
|
||||
|
||||
It is possible to check in <b>Same Nb. Segments for all intervals</b>
|
||||
option and to define one value for all intervals.
|
||||
Resulting 2D mesh:
|
||||
|
||||
The splitting direction is defined by the orientation of the
|
||||
underlying geometrical edge. <b>"Reverse Edges"</b> list box allows to
|
||||
specify the edges for which the splitting should be made in the
|
||||
direction opposite to their orientation. This list box is enabled only
|
||||
if the geometrical object is selected for meshing. In this case it is
|
||||
possible to select the edges to be reversed either directly picking them in
|
||||
the 3D viewer or selecting the edges or groups of edges in the
|
||||
Object browser.
|
||||
\image html mesh_fixedpnt.png
|
||||
|
||||
\image html mesh_fixedpnt.png "Example of a submesh on the edge built using Fixed points 1D hypothesis"
|
||||
<b>See Also</b> a sample TUI Script of a
|
||||
\ref tui_fixed_points "Defining Fixed Points" hypothesis operation.
|
||||
|
||||
*/
|
||||
|
@ -468,10 +468,47 @@ src_mesh.TranslateObject( src_mesh, MakeDirStruct( 210, 0, 0 ), Copy=False)
|
||||
|
||||
\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:
|
||||
|
||||
<ul>
|
||||
<li>\subpage tui_defining_blsurf_hypotheses_page</li>
|
||||
<li>\subpage tui_defining_ghs3d_hypotheses_page</li>
|
||||
</ul>
|
||||
*/
|
||||
|
Loading…
Reference in New Issue
Block a user