]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
Fix for improvement 0019927 (EDF770 SMESH: Analyzing the Mesh Quality: Orphan nodes...
authormzn <mzn@opencascade.com>
Fri, 26 Dec 2008 11:01:09 +0000 (11:01 +0000)
committermzn <mzn@opencascade.com>
Fri, 26 Dec 2008 11:01:09 +0000 (11:01 +0000)
doc/salome/gui/SMESH/images/free_nodes.png [new file with mode: 0644]
doc/salome/gui/SMESH/input/about_quality_controls.doc
doc/salome/gui/SMESH/input/free_nodes.doc [new file with mode: 0644]
doc/salome/gui/SMESH/input/index.doc
doc/salome/gui/SMESH/input/quality_controls.doc
doc/salome/gui/SMESH/input/tui_quality_controls.doc

diff --git a/doc/salome/gui/SMESH/images/free_nodes.png b/doc/salome/gui/SMESH/images/free_nodes.png
new file mode 100644 (file)
index 0000000..c1d23c1
Binary files /dev/null and b/doc/salome/gui/SMESH/images/free_nodes.png differ
index f197bae0cd12570baf6a6ee7fcd29ec2a6679912..6f2bde7236795d7cd130871ff8ca65160bf9024e 100644 (file)
@@ -13,7 +13,12 @@ the meshing elements and these calculated values is shown with the
 help of a scalar bar, which is displayed near the presentation of your
 mesh.
 
-There are 1D, 2D and 3D quality controls.
+There are 0D, 1D, 2D and 3D quality controls.
+
+0D mesh quality controls:
+<ul>
+<li>\ref free_nodes_page "Free nodes"</li>
+</ul>
 
 1D mesh quality controls:
 <ul>
diff --git a/doc/salome/gui/SMESH/input/free_nodes.doc b/doc/salome/gui/SMESH/input/free_nodes.doc
new file mode 100644 (file)
index 0000000..a36ed06
--- /dev/null
@@ -0,0 +1,16 @@
+/*!
+
+\page free_nodes_page Free nodes
+
+\n This mesh quality control highlights nodes which are not connected
+to any  mesh element. Free nodes are shown with a color differs from
+the color of nodes.
+
+\image html free_nodes.png
+<center>In this picture some nodes don't connected to a mesh element as
+a result of deleting elements and adding several isolated nodes.
+
+<br><b>See Also</b> a sample TUI Script of a 
+\ref tui_free_nodes "Free Nodes quality control" operation.  
+
+*/
\ No newline at end of file
index 8cb09dbc414038691936f19f68eeaa418dde267a..2eacc896ba6f5747a0c163e8a6fefae7c4ecb173 100644 (file)
@@ -51,6 +51,7 @@
 <li>\ref free_borders_page</li>
 <li>\ref borders_at_multi_connection_page</li>
 <li>\ref length_page</li>
+<li>\ref free_nodes_page</li>
 <li>\ref free_edges_page</li>
 <li>\ref length_2d_page</li>
 <li>\ref borders_at_multi_connection_2d_page</li>
index 5a36e7bdb632a74459a82b32bda1580328c3ef52..37c8312b1fd1329510767ccefed1c3c79d72fb37 100644 (file)
@@ -7,6 +7,7 @@
 <li>\subpage free_borders_page</li>
 <li>\subpage borders_at_multi_connection_page</li>
 <li>\subpage length_page</li>
+<li>\subpage free_nodes_page</li>
 <li>\subpage free_edges_page</li>
 <li>\subpage length_2d_page</li>
 <li>\subpage borders_at_multi_connection_2d_page</li>
index e1b8b700e662893abfbcfbe16e7d1e3ce1127273..80c5a45a1281b00ae190f0450529340d1e176bad 100644 (file)
@@ -189,6 +189,59 @@ for i in range(len(aBorders)):
 salome.sg.updateObjBrowser(1)
 \endcode
 
+<br>
+\anchor tui_free_nodes
+<h2>Free Nodes</h2>
+
+\code
+import salome
+import geompy
+
+import smesh
+
+# create box
+box = geompy.MakeBox(0., 0., 0., 100., 200., 300.)
+idbox = geompy.addToStudy(box, "box")
+
+# create a mesh
+mesh = smesh.Mesh(box, "Mesh_free_nodes")
+algo = mesh.Segment()
+algo.NumberOfSegments(10)
+algo = mesh.Triangle(smesh.MEFISTO)
+algo.MaxElementArea(150.)
+mesh.Compute() 
+
+# Remove some elements to obtain free nodes
+# Criterion : AREA < 80.
+area_margin = 80.
+
+aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_Area, smesh.FT_LessThan, area_margin)
+
+anIds = mesh.GetIdsFromFilter(aFilter)
+
+mesh.RemoveElements(anIds)
+
+# criterion : free nodes
+aFilter = smesh.GetFilter(smesh.NODE, smesh.FT_FreeNodes) 
+anNodeIds = mesh.GetIdsFromFilter(aFilter)
+
+# create a group
+aGroup = mesh.CreateEmptyGroup(smesh.NODE, "Free_nodes")
+aGroup.Add(anNodeIds)
+
+# print the result
+print "Criterion: Free nodes Nb = ", len(anNodeIds)
+j = 1
+for i in range(len(anNodeIds)):
+  if j > 20: j = 1; print ""
+  print anNodeIds[i],
+  j = j + 1
+  pass
+print ""
+
+salome.sg.updateObjBrowser(1)
+\endcode
+
 <br>
 \anchor tui_length_2d
 <h2>Length 2D</h2>