From: eap Date: Wed, 25 Mar 2015 09:36:47 +0000 (+0300) Subject: IMP 22264: EDF 2648 GEOM: Propagate edges automatic orientation X-Git-Tag: V7_6_0a1~5 X-Git-Url: http://git.salome-platform.org/gitweb/?p=modules%2Fsmesh.git;a=commitdiff_plain;h=bbca2cb797c37bb7695d3f35490bcd328fbddd4e IMP 22264: EDF 2648 GEOM: Propagate edges automatic orientation + Optimize SMDS_VolumeTool::IsFreeFace() + Add icons for Evaluate and Change Sub-mesh order + Make "Meduim nodes on geometry" ON by default + Disable "Group on geometry" if mesh is not on geometry + SMESHGUI_MeshOp: fix switch from Sub-mesh creation to Sub-mesh edition --- diff --git a/doc/salome/examples/filters_ex01.py b/doc/salome/examples/filters_ex01.py index 03f6c7477..233b699a9 100644 --- a/doc/salome/examples/filters_ex01.py +++ b/doc/salome/examples/filters_ex01.py @@ -9,12 +9,12 @@ ids = mesh.GetIdsFromFilter(filter) print "Number of faces with aspect ratio > 1.5:", len(ids) # copy the faces with aspect ratio > 1.5 to another mesh; -# this demostrates that a filter can be used where usually a group or submesh is acceptable +# this demostrates that a filter can be used where usually a group or sub-mesh is acceptable filter.SetMesh( mesh.GetMesh() ) mesh2 = smesh.CopyMesh( filter, "AR > 1.5" ) print "Number of copied faces with aspect ratio > 1.5:", mesh2.NbFaces() -# create a Group of faces with Aspect Ratio < 1.5 +# create a group (Group on Filter) of faces with Aspect Ratio < 1.5 group = mesh.MakeGroup("AR < 1.5", SMESH.FACE, SMESH.FT_AspectRatio, '<', 1.5) print "Number of faces with aspect ratio < 1.5:", group.Size() @@ -22,7 +22,6 @@ print "Number of faces with aspect ratio < 1.5:", group.Size() # note that contents of a GroupOnFilter is dynamically updated as the mesh changes crit = [ smesh.GetCriterion( SMESH.FACE, SMESH.FT_AspectRatio, '<', 1.5, BinaryOp=SMESH.FT_LogicalAND ), smesh.GetCriterion( SMESH.FACE, SMESH.FT_ElemGeomType,'=', SMESH.Geom_TRIANGLE ) ] -filter = smesh.GetFilterFromCriteria( crit ) -triaGroup = mesh.GroupOnFilter( SMESH.FACE, "Tria AR < 1.5", filter ) +triaGroup = mesh.MakeGroupByCriteria( "Tria AR < 1.5", crit ) print "Number of triangles with aspect ratio < 1.5:", triaGroup.Size() diff --git a/doc/salome/gui/SMESH/images/a-arithmetic1d.png b/doc/salome/gui/SMESH/images/a-arithmetic1d.png old mode 100755 new mode 100644 index aa43beb5f..9bc67b052 Binary files a/doc/salome/gui/SMESH/images/a-arithmetic1d.png and b/doc/salome/gui/SMESH/images/a-arithmetic1d.png differ diff --git a/doc/salome/gui/SMESH/images/a-creategroup.png b/doc/salome/gui/SMESH/images/a-creategroup.png old mode 100755 new mode 100644 index 734e6c82d..553fb98e5 Binary files a/doc/salome/gui/SMESH/images/a-creategroup.png and b/doc/salome/gui/SMESH/images/a-creategroup.png differ diff --git a/doc/salome/gui/SMESH/images/a-geometric1d.png b/doc/salome/gui/SMESH/images/a-geometric1d.png index a60be94a4..cb5b9ccfa 100644 Binary files a/doc/salome/gui/SMESH/images/a-geometric1d.png and b/doc/salome/gui/SMESH/images/a-geometric1d.png differ diff --git a/doc/salome/gui/SMESH/images/a-nbsegments2.png b/doc/salome/gui/SMESH/images/a-nbsegments2.png old mode 100755 new mode 100644 index 2a7c9fcaa..d9f9c566c Binary files a/doc/salome/gui/SMESH/images/a-nbsegments2.png and b/doc/salome/gui/SMESH/images/a-nbsegments2.png differ diff --git a/doc/salome/gui/SMESH/images/a-startendlength.png b/doc/salome/gui/SMESH/images/a-startendlength.png old mode 100755 new mode 100644 index ba29d91df..33293d389 Binary files a/doc/salome/gui/SMESH/images/a-startendlength.png and b/doc/salome/gui/SMESH/images/a-startendlength.png differ diff --git a/doc/salome/gui/SMESH/images/create_groups_from_geometry.png b/doc/salome/gui/SMESH/images/create_groups_from_geometry.png index f20d4a724..7da08fca5 100644 Binary files a/doc/salome/gui/SMESH/images/create_groups_from_geometry.png and b/doc/salome/gui/SMESH/images/create_groups_from_geometry.png differ diff --git a/doc/salome/gui/SMESH/images/distributionwithanalyticdensity.png b/doc/salome/gui/SMESH/images/distributionwithanalyticdensity.png index 170428dc2..53c618ce0 100644 Binary files a/doc/salome/gui/SMESH/images/distributionwithanalyticdensity.png and b/doc/salome/gui/SMESH/images/distributionwithanalyticdensity.png differ diff --git a/doc/salome/gui/SMESH/images/distributionwithtabledensity.png b/doc/salome/gui/SMESH/images/distributionwithtabledensity.png index 5fa982c4c..75bd6981d 100644 Binary files a/doc/salome/gui/SMESH/images/distributionwithtabledensity.png and b/doc/salome/gui/SMESH/images/distributionwithtabledensity.png differ diff --git a/doc/salome/gui/SMESH/images/groups_in_OB.png b/doc/salome/gui/SMESH/images/groups_in_OB.png new file mode 100644 index 000000000..1ffb96a6b Binary files /dev/null and b/doc/salome/gui/SMESH/images/groups_in_OB.png differ diff --git a/doc/salome/gui/SMESH/images/hypo_fixedpnt_dlg.png b/doc/salome/gui/SMESH/images/hypo_fixedpnt_dlg.png old mode 100755 new mode 100644 index 74276bd96..d1c131a48 Binary files a/doc/salome/gui/SMESH/images/hypo_fixedpnt_dlg.png and b/doc/salome/gui/SMESH/images/hypo_fixedpnt_dlg.png differ diff --git a/doc/salome/gui/SMESH/images/propagation_chain.png b/doc/salome/gui/SMESH/images/propagation_chain.png new file mode 100644 index 000000000..420dee036 Binary files /dev/null and b/doc/salome/gui/SMESH/images/propagation_chain.png differ diff --git a/doc/salome/gui/SMESH/images/rev_edges_helper_dlg.png b/doc/salome/gui/SMESH/images/rev_edges_helper_dlg.png new file mode 100644 index 000000000..e8790a134 Binary files /dev/null and b/doc/salome/gui/SMESH/images/rev_edges_helper_dlg.png differ diff --git a/doc/salome/gui/SMESH/images/smesh_sort_groups.png b/doc/salome/gui/SMESH/images/smesh_sort_groups.png new file mode 100644 index 000000000..0176a30e8 Binary files /dev/null and b/doc/salome/gui/SMESH/images/smesh_sort_groups.png differ diff --git a/doc/salome/gui/SMESH/input/1d_meshing_hypo.doc b/doc/salome/gui/SMESH/input/1d_meshing_hypo.doc index 751695259..87c20b74f 100644 --- a/doc/salome/gui/SMESH/input/1d_meshing_hypo.doc +++ b/doc/salome/gui/SMESH/input/1d_meshing_hypo.doc @@ -76,6 +76,10 @@ be reversed either directly picking them in the 3D viewer or by selecting the edges or groups of edges in the Object Browser. Use \b Add button to add the selected edges to the list. +\ref reversed_edges_helper_anchor "Helper" group assists you in +defining Reversed Edges parameter. + + \image html a-arithmetic1d.png \image html b-ithmetic1d.png "Arithmetic 1D hypothesis - the size of mesh elements gradually increases" @@ -102,6 +106,9 @@ be reversed either directly picking them in the 3D viewer or by selecting the edges or groups of edges in the Object Browser. Use \b Add button to add the selected edges to the list. +\ref reversed_edges_helper_anchor "Helper" group assists you in +defining Reversed Edges parameter. + \image html a-geometric1d.png See Also a sample TUI Script of a @@ -178,7 +185,7 @@ edges by a definite number of mesh segments with length depending on the selected type of distribution of nodes. The direction of the splitting is defined by the orientation of the -underlying geometrical edge. "Reverse Edges" list box allows to +underlying geometrical edge. Reverse Edges 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 it is @@ -186,7 +193,8 @@ possible to select edges to be reversed either by directly picking them in the 3D viewer or by selecting the edges or groups of edges in the Object Browser. -\image html image46.gif +\ref reversed_edges_helper_anchor "Helper" group assists you in +defining Reversed Edges parameter. You can set the type of node distribution for this hypothesis in the Hypothesis Construction dialog bog : @@ -229,7 +237,7 @@ distribution as blue crosses. The node distribution is computed in the same way as for \ref analyticdensity_anchor "Distribution with Analytic Density". You can select the Conversion mode from\b Exponent and Cut -negative. +negative. \image html distributionwithtabledensity.png @@ -248,7 +256,7 @@ length. The length of medium segments changes with automatically chosen geometric progression. The direction of the splitting is defined by the orientation of the -underlying geometrical edge. "Reverse Edges" list box allows to +underlying geometrical edge. Reverse Edges 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 it is @@ -256,6 +264,10 @@ possible to select edges to be reversed either by directly picking them in the 3D viewer or by selecting the edges or groups of edges in the Object Browser. +\ref reversed_edges_helper_anchor "Helper" group assists you in +defining Reversed Edges parameter. + + \image html a-startendlength.png \image html b-art_end_length.png "The lengths of the first and the last segment are strictly defined" @@ -290,13 +302,13 @@ minimum and maximum value of this parameter. set of points parametrized on the edge (from 1 to 0) and a number of segments for each interval limited by the points. -\image html hypo_fixedpnt_dlg.png +\image html hypo_fixedpnt_dlg.png It is possible to check in Same Nb. Segments for all intervals option and to define one value for all intervals. The splitting direction is defined by the orientation of the -underlying geometrical edge. "Reverse Edges" list box allows to +underlying geometrical edge. Reverse Edges 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 @@ -304,9 +316,38 @@ 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. +\ref reversed_edges_helper_anchor "Helper" group assists you in +defining Reversed Edges parameter. + + \image html mesh_fixedpnt.png "Example of a sub-mesh on the edge built using Fixed points 1D hypothesis" See Also a sample TUI Script of a \ref tui_fixed_points "Defining Fixed Points" hypothesis operation. +\anchor reversed_edges_helper_anchor +

Reversed Edges Helper

+ +\image html rev_edges_helper_dlg.png + +\b Helper group assists you in defining Reversed Edges +parameter of the hypotheses depending on edge direction. + +Show whole geometry check-box lets you see the whole +geometrical model in the 3D Viewer. This can help you to understand +location within the model of a set of edges shown in the Viewer. + +Propagation chains group helps you to define +Reversed Edges so that opposite edges of quadrilateral faces +will be split in the logically same direction. When this group is +activated, the list is filled with propagation chains found within the +model. When you select a chain in the list, edges of the chain are +shown in the Viewer with arrows so that you can chose a common +direction for all chain edges. \b Reverse button inverses the common +direction of chain edges. If \b Add button is active, this means that some +edges of a chain have different direction and you can click \b Add +button to add such edges to Reversed Edges list. + +\image html propagation_chain.png "The whole geometry and a propagation chain" + */ diff --git a/doc/salome/gui/SMESH/input/about_filters.doc b/doc/salome/gui/SMESH/input/about_filters.doc index af52b4bac..d05b8f09a 100644 --- a/doc/salome/gui/SMESH/input/about_filters.doc +++ b/doc/salome/gui/SMESH/input/about_filters.doc @@ -17,7 +17,7 @@ to filter mesh nodes / elements by specific characteristic (Area, Length, etc). The functinality of mesh filters is available in both GUI and TUI modes: -- In GUI, filters are available in some dialog boxes via an additional +- In GUI, filters are available in some dialog boxes via "Set Filters" button, clicking on which opens the dialog box allowing to specify the list of filter criteria to be applied to the current selection. See \subpage selection_filter_library_page page to learn more @@ -26,6 +26,7 @@ about selection filters and their usage in GUI. - In Python scripts, filters can be used to choose only some mesh entities (nodes or elements) for the operations, which require the list of entities as input parameter (create/modify group, remove - nodes/elements, etc). The page \ref tui_filters_page provides + nodes/elements, etc) and for the operations, which accept objects as + as input parameter. The page \ref tui_filters_page provides examples of the filters usage in Python scripts. */ diff --git a/doc/salome/gui/SMESH/input/about_meshes.doc b/doc/salome/gui/SMESH/input/about_meshes.doc index ebab52e8b..60ad290a8 100644 --- a/doc/salome/gui/SMESH/input/about_meshes.doc +++ b/doc/salome/gui/SMESH/input/about_meshes.doc @@ -51,6 +51,8 @@ Mesh module provides several ways to create the mesh:
  • The whole mesh or its part (sub-mesh or group) can be \subpage copy_mesh_page "copied" into a new mesh.
  • +
  • A new mesh can be created from a transformed, e.g. \ref + translation_page "translated", part of the mesh.
  • Meshes can be edited using the MESH functions destined for @@ -65,7 +67,7 @@ the the element basing on elements of lower dimension is NOT supported. \anchor mesh_entities -The mesh can include the following entities (also referred as \a elements): +The mesh can include the following entities: