]> SALOME platform Git repositories - modules/smesh.git/commitdiff
Salome HOME
IMP19938
authorptv <ptv@opencascade.com>
Fri, 16 Jan 2009 13:21:30 +0000 (13:21 +0000)
committerptv <ptv@opencascade.com>
Fri, 16 Jan 2009 13:21:30 +0000 (13:21 +0000)
22 files changed:
doc/salome/gui/SMESH/images/extrusion1.png
doc/salome/gui/SMESH/images/extrusion2.png
doc/salome/gui/SMESH/images/extrusionalongaline1.png
doc/salome/gui/SMESH/images/extrusionalongaline2.png
doc/salome/gui/SMESH/images/free_faces.png [new file with mode: 0644]
doc/salome/gui/SMESH/images/removeelements.png
doc/salome/gui/SMESH/images/removenodes.png
doc/salome/gui/SMESH/images/revolution1.png
doc/salome/gui/SMESH/images/revolution2.png
doc/salome/gui/SMESH/images/rotation.png
doc/salome/gui/SMESH/images/smoothing.png
doc/salome/gui/SMESH/images/symmetry1.png
doc/salome/gui/SMESH/images/symmetry2.png
doc/salome/gui/SMESH/images/symmetry3.png
doc/salome/gui/SMESH/images/translation1.png
doc/salome/gui/SMESH/images/translation2.png
doc/salome/gui/SMESH/input/about_quality_controls.doc
doc/salome/gui/SMESH/input/free_faces.doc [new file with mode: 0644]
doc/salome/gui/SMESH/input/free_nodes.doc
doc/salome/gui/SMESH/input/index.doc
doc/salome/gui/SMESH/input/quality_controls.doc
doc/salome/gui/SMESH/input/tui_quality_controls.doc

index ba8177b9c55c244ecdf43e6d2d5487affa785cd6..9f34a0febf186ffd09abba1cd3faa7f9d89488b4 100644 (file)
Binary files a/doc/salome/gui/SMESH/images/extrusion1.png and b/doc/salome/gui/SMESH/images/extrusion1.png differ
index 958a8f2e994d5b5fcb166be0cf875630208dc616..527b67a171af95c1162c6acfa649e816d4e0b7c5 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/extrusion2.png and b/doc/salome/gui/SMESH/images/extrusion2.png differ
index 5458adb5f0441e401dedcfcd9554b4997902c353..76a60bd345e80fe5a9d903e0ce070b27c3e766d9 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/extrusionalongaline1.png and b/doc/salome/gui/SMESH/images/extrusionalongaline1.png differ
index b98b6d2793a24fd71c4701509879420560b4dfac..fb04562508b66ae0b3a8ae645907a6d12c4600bd 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/extrusionalongaline2.png and b/doc/salome/gui/SMESH/images/extrusionalongaline2.png differ
diff --git a/doc/salome/gui/SMESH/images/free_faces.png b/doc/salome/gui/SMESH/images/free_faces.png
new file mode 100644 (file)
index 0000000..8b5bee4
Binary files /dev/null and b/doc/salome/gui/SMESH/images/free_faces.png differ
index b743efb318ae29556be492d14a2c8ce9cd9caefd..78e495946f92497379d27952e21ea2d5d4d4d01b 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/removeelements.png and b/doc/salome/gui/SMESH/images/removeelements.png differ
index c7d4ba591a400c232eebc1f44ca6380e699e1b08..52a5ac6b08a8bca134bada4c0c11402716d39b3a 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/removenodes.png and b/doc/salome/gui/SMESH/images/removenodes.png differ
index 17307999b5246a337e22361daa3c142bf2e76d0c..c4a4c174838018877918dac9547a740ae210cd38 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/revolution1.png and b/doc/salome/gui/SMESH/images/revolution1.png differ
index 1f20ac0d810835ca3d71ee4eb0cb123956d42804..7d5777c9edbe058e67d6c535094c2a52f926a7e9 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/revolution2.png and b/doc/salome/gui/SMESH/images/revolution2.png differ
index afde4eda361322d6c266848f073db06ded5c435d..ae6df4b9f9621d774a36229a8fb6468cf18d600f 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/rotation.png and b/doc/salome/gui/SMESH/images/rotation.png differ
index dbd903ea99127f1d0594ec4dde2f2562e06d69a3..26a427eb6e0b002e4e2c8729884aacf13edc2809 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/smoothing.png and b/doc/salome/gui/SMESH/images/smoothing.png differ
index af9e4d29e154bb99fd368a474ab73f329d3506ab..b37fb0ab1a833a69a8da8db557e09b7950350f42 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/symmetry1.png and b/doc/salome/gui/SMESH/images/symmetry1.png differ
index 5af1c2039743e1f6bad49435a452733d0292dc34..9304d6734ec5079bfdbecfd509089c72e83f4dd3 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/symmetry2.png and b/doc/salome/gui/SMESH/images/symmetry2.png differ
index 35533ea05bddd4ffb7eaff80031d1744d04d0298..f15c5fcaa542d6247610aac9536f4d3a9bdfe6b3 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/symmetry3.png and b/doc/salome/gui/SMESH/images/symmetry3.png differ
index 320e2fc95ace3da96d31f54a7584310629196269..b7e811645b68e56f618ddc3f2fd204e1c95bac04 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/translation1.png and b/doc/salome/gui/SMESH/images/translation1.png differ
index 55365399673ad7aa154e644b3c7609d786fb21fc..c0bbad0a59c30efa56650acdc2fed21ed714f904 100755 (executable)
Binary files a/doc/salome/gui/SMESH/images/translation2.png and b/doc/salome/gui/SMESH/images/translation2.png differ
index 6f2bde7236795d7cd130871ff8ca65160bf9024e..d88661b20b77cced37f130a0a1f94407ba217971 100644 (file)
@@ -44,6 +44,7 @@ There are 0D, 1D, 2D and 3D quality controls.
 <ul>
 <li>\ref aspect_ratio_3d_page "Aspect ratio 3D"</li>
 <li>\ref volume_page "Volume"</li>
+<li>\ref free_faces_page "Free faces"</li>
 </ul>
 
-*/
\ No newline at end of file
+*/
diff --git a/doc/salome/gui/SMESH/input/free_faces.doc b/doc/salome/gui/SMESH/input/free_faces.doc
new file mode 100644 (file)
index 0000000..4a87b99
--- /dev/null
@@ -0,0 +1,17 @@
+/*!
+
+\page free_faces_page Free faces
+
+\n This mesh quality control highlights faces which are connected
+less than to two mesh volume elements. Free faces are shown with a color differs from
+the color of shared faces.
+
+\image html free_faces.png
+<center>In this picture some volume mesh element are removed as
+a result some faces become connected only to one
+volume. i.e. become free.
+
+<br><b>See Also</b> a sample TUI Script of a 
+\ref tui_free_faces "Free Faces quality control" operation.  
+
+*/
index a36ed06ef63b125bd37af9da2bda5964d29bc1e2..13f31430994306e64f949fa205e9448420004ec1 100644 (file)
@@ -13,4 +13,4 @@ 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 2eacc896ba6f5747a0c163e8a6fefae7c4ecb173..ff61e8a2e4ae045e4f6179a692def0c0acd45f03 100644 (file)
@@ -63,6 +63,7 @@
 <li>\ref skew_page</li>
 <li>\ref aspect_ratio_3d_page</li>
 <li>\ref volume_page</li>
+<li>\ref free_faces_page</li>
 </ul>
 <li>\subpage grouping_elements_page</li>
 <ul>
index 37c8312b1fd1329510767ccefed1c3c79d72fb37..742a4cf67f1f6072a967b78abb566fa6acc5865f 100644 (file)
@@ -19,6 +19,7 @@
 <li>\subpage skew_page</li>
 <li>\subpage aspect_ratio_3d_page</li>
 <li>\subpage volume_page</li>
+<li>\subpage free_faces_page</li>
 </ul>
 
-*/
\ No newline at end of file
+*/
index 80c5a45a1281b00ae190f0450529340d1e176bad..57d52c69e7a3d04c657d9ade576a4986dc7f72a5 100644 (file)
@@ -242,6 +242,87 @@ print ""
 salome.sg.updateObjBrowser(1)
 \endcode
 
+
+<br>
+\anchor tui_free_faces
+<h2>Free Faces</h2>
+
+\code
+import salome
+import geompy
+
+####### GEOM part ########
+
+Box_1 = geompy.MakeBoxDXDYDZ(200, 200, 200)
+Box_1_vertex_6 = geompy.GetSubShape(Box_1, [6])
+Box_1 = geompy.GetMainShape(Box_1_vertex_6)
+Box_1_vertex_16 = geompy.GetSubShape(Box_1, [16])
+Box_1 = geompy.GetMainShape(Box_1_vertex_16)
+Box_1_vertex_11 = geompy.GetSubShape(Box_1, [11])
+Box_1 = geompy.GetMainShape(Box_1_vertex_11)
+Plane_1 = geompy.MakePlaneThreePnt(Box_1_vertex_6, Box_1_vertex_16, Box_1_vertex_11, 2000)
+Partition_1 = geompy.MakePartition([Box_1], [Plane_1], [], [], geompy.ShapeType["SOLID"], 0, [], 0)
+
+Box_1_vertex_19 = geompy.GetSubShape(Box_1, [19])
+Box_1_vertex_21 = geompy.GetSubShape(Box_1, [21])
+Plane_2 = geompy.MakePlaneThreePnt(Box_1_vertex_16, Box_1_vertex_19, Box_1_vertex_21, 2000)
+
+geompy.addToStudy( Box_1, "Box_1" )
+geompy.addToStudyInFather( Box_1, Box_1_vertex_6, "Box_1:vertex_6" )
+geompy.addToStudyInFather( Box_1, Box_1_vertex_16, "Box_1:vertex_16" )
+geompy.addToStudyInFather( Box_1, Box_1_vertex_11, "Box_1:vertex_11" )
+geompy.addToStudy( Plane_1, "Plane_1" )
+geompy.addToStudy( Partition_1, "Partition_1" )
+geompy.addToStudyInFather( Box_1, Box_1_vertex_19, "Box_1:vertex_19" )
+geompy.addToStudyInFather( Box_1, Box_1_vertex_21, "Box_1:vertex_21" )
+geompy.addToStudy( Plane_2, "Plane_2" )
+
+###### SMESH part ######
+import smesh
+
+import StdMeshers
+import NETGENPlugin
+
+Mesh_1 = smesh.Mesh(Partition_1)
+Regular_1D = Mesh_1.Segment()
+Max_Size_1 = Regular_1D.MaxSize(34.641)
+MEFISTO_2D = Mesh_1.Triangle()
+Tetrahedron_Netgen = Mesh_1.Tetrahedron(algo=smesh.NETGEN)
+isDone = Mesh_1.Compute()
+
+# create a group of free faces
+aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_FreeFaces )
+aFaceIds = Mesh_1.GetIdsFromFilter(aFilter)
+
+aGroup = Mesh_1.CreateEmptyGroup(smesh.FACE, "Free_faces")
+aGroup.Add(aFaceIds)
+
+# print the result
+print "Criterion: Free nodes Nb = ", len(anNodeIds)
+j = 1
+for i in range(len(aFaceIds)):
+  if j > 20: j = 1; print ""
+  print anNodeIds[i],
+  j = j + 1
+  pass
+print ""
+
+#filter faces from plane 2
+aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_BelongToPlane, Plane_2)
+aFaceIds = Mesh_1.GetIdsFromFilter(aFilter)
+aGroup.Remove(aFaceIds)
+
+# create a group of shared faces (located on partition boundary inside box)
+aFilter = smesh.GetFilter(smesh.FACE, smesh.FT_BelongToPlane, Plane_1)
+aFaceIds = Mesh_1.GetIdsFromFilter(aFilter)
+
+aGroup = Mesh_1.CreateEmptyGroup(smesh.FACE, "Shared_faces")
+aGroup.Add(aFaceIds)
+
+salome.sg.updateObjBrowser(1)
+\endcode
+
+
 <br>
 \anchor tui_length_2d
 <h2>Length 2D</h2>
@@ -625,4 +706,4 @@ aGroup.Add(anIds)
 salome.sg.updateObjBrowser(1) 
 \endcode
 
-*/
\ No newline at end of file
+*/