]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
Documentation creation
authorskv <skv@opencascade.com>
Tue, 28 Oct 2014 15:04:25 +0000 (18:04 +0300)
committerskv <skv@opencascade.com>
Tue, 28 Oct 2014 15:04:25 +0000 (18:04 +0300)
doc/salome/examples/CMakeLists.txt
doc/salome/examples/basic_geom_objs_ex10.py [new file with mode: 0644]
doc/salome/gui/GEOM/images/surface_from_face1.png [new file with mode: 0644]
doc/salome/gui/GEOM/images/surface_from_face_example.png [new file with mode: 0644]
doc/salome/gui/GEOM/input/creating_basic_go.doc
doc/salome/gui/GEOM/input/creating_surface_from_face.doc [new file with mode: 0644]
doc/salome/gui/GEOM/input/tui_basic_geom_objs.doc
src/GEOM_SWIG/geomBuilder.py

index 67721de680685bd017589058c8b4e8a5978dd17b..76c3883e125f51b8ae0f6de40a7b5d632d362bf1 100644 (file)
@@ -37,6 +37,7 @@ SET(GOOD_TESTS
   basic_geom_objs_ex07.py  
   basic_geom_objs_ex08.py  
   basic_geom_objs_ex09.py  
+  basic_geom_objs_ex10.py  
   basic_operations_ex01.py  
   basic_operations_ex02.py  
   basic_operations_ex03.py  
diff --git a/doc/salome/examples/basic_geom_objs_ex10.py b/doc/salome/examples/basic_geom_objs_ex10.py
new file mode 100644 (file)
index 0000000..f9f7f01
--- /dev/null
@@ -0,0 +1,37 @@
+# Creation of a Surface From Face
+
+import salome
+salome.salome_init()
+import GEOM
+from salome.geom import geomBuilder
+geompy = geomBuilder.New(salome.myStudy)
+import math
+import SALOMEDS
+
+# Create Vertices, Edges, Wire, Face and Disk
+Vertex_1 = geompy.MakeVertex(0,    0, 0)
+Vertex_2 = geompy.MakeVertex(100,  0, 0)
+Vertex_3 = geompy.MakeVertex(50, 100, 0)
+Edge_1   = geompy.MakeEdge(Vertex_1, Vertex_2)
+Edge_2   = geompy.MakeEdge(Vertex_2, Vertex_3)
+Edge_3   = geompy.MakeEdge(Vertex_3, Vertex_1)
+Wire_1   = geompy.MakeWire([Edge_1, Edge_2, Edge_3])
+Face_1   = geompy.MakeFace(Wire_1, True)
+Disk_1   = geompy.MakeDiskR(100, 1)
+
+# Create Surfaces From Faces.
+SurfaceFromFace_1 = geompy.MakeSurfaceFromFace(Face_1)
+SurfaceFromFace_2 = geompy.MakeSurfaceFromFace(Disk_1)
+
+#Add created object to study
+geompy.addToStudy( Vertex_1,          "Vertex_1" )
+geompy.addToStudy( Vertex_2,          "Vertex_2" )
+geompy.addToStudy( Vertex_3,          "Vertex_3" )
+geompy.addToStudy( Edge_1,            "Edge_1" )
+geompy.addToStudy( Edge_2,            "Edge_2" )
+geompy.addToStudy( Edge_3,            "Edge_3" )
+geompy.addToStudy( Wire_1,            "Wire_1" )
+geompy.addToStudy( Face_1,            "Face_1" )
+geompy.addToStudy( Disk_1,            "Disk_1" )
+geompy.addToStudy( SurfaceFromFace_1, "SurfaceFromFace_1" )
+geompy.addToStudy( SurfaceFromFace_2, "SurfaceFromFace_2" )
diff --git a/doc/salome/gui/GEOM/images/surface_from_face1.png b/doc/salome/gui/GEOM/images/surface_from_face1.png
new file mode 100644 (file)
index 0000000..ba039fd
Binary files /dev/null and b/doc/salome/gui/GEOM/images/surface_from_face1.png differ
diff --git a/doc/salome/gui/GEOM/images/surface_from_face_example.png b/doc/salome/gui/GEOM/images/surface_from_face_example.png
new file mode 100644 (file)
index 0000000..db22d6f
Binary files /dev/null and b/doc/salome/gui/GEOM/images/surface_from_face_example.png differ
index 6693b469d61b294e6281b7877342f5e4ad1f2622..19758a3d64eb6300cf459cd8400bc17070d13072 100644 (file)
@@ -15,6 +15,7 @@ geometrical objects as:
 <li>\subpage create_isoline_page</li>
 <li>\subpage create_sketcher_page</li>
 <li>\subpage create_3dsketcher_page</li>
+<li>\subpage create_surface_from_face_page</li>
 <li>\subpage create_vector_page</li>
 <li>\subpage create_plane_page</li>
 <li>\subpage create_lcs_page</li>
diff --git a/doc/salome/gui/GEOM/input/creating_surface_from_face.doc b/doc/salome/gui/GEOM/input/creating_surface_from_face.doc
new file mode 100644 (file)
index 0000000..6034ed5
--- /dev/null
@@ -0,0 +1,27 @@
+/*!
+
+\page create_surface_from_face_page Surface From Face
+
+To create a <b>Surface From Face</B> in the <b>Main Menu</b> select <b>New Entity - > Basic - > Surface From Face</b>
+
+\n This function takes some face as input parameter and creates new
+GEOM_Object, i.e. topological shape by extracting underlying surface
+of the source face and limiting it by the Umin, Umax, Vmin, Vmax
+parameters of the source face (in the parametrical space).
+\n
+\ref restore_presentation_parameters_page "Advanced options".
+
+\n <b>TUI Command:</b> <em>geompy.MakeSurfaceFromFace(theFace)</em>,
+where \em theFace the input face.
+\n <b>Arguments:</b> Name + Object (Face).
+
+\image html surface_from_face1.png "Surface From Face"
+
+\n <b>Example:</b>
+
+\image html surface_from_face_example.png "Original Face (white) and Created Surface"
+
+Our <b>TUI Scripts</b> provide you with useful examples of the use of
+\ref tui_creation_surface "Surface From Face" creation.
+
+*/
index 89be6f64b4bb13c51c72a33057bc4f25f9bc6553..2083bcc461cf3cb4493b01b2c2ca2fc8750c105d 100644 (file)
@@ -38,4 +38,8 @@
 <br><h2>Creation of a Local Coordinate System</h2>
 \tui_script{basic_geom_objs_ex09.py}
 
+\anchor tui_creation_surface
+<br><h2>Creation of a Surface From Face</h2>
+\tui_script{basic_geom_objs_ex10.py}
+
 */
index 5a4f7eeffe9c77ea0685fa81b59f4320126a4635..f1968ee101e30675020aba4f889d17485564df1f 100644 (file)
@@ -5765,7 +5765,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
         #         publication is switched on, default value is used for result name.
         #  @return New GEOM.GEOM_Object, containing the created face.
         #
-        #  @ref tui_surf_from_face "Example"
+        #  @ref tui_creation_surface "Example"
         @ManageTransactions("ShapesOp")
         def MakeSurfaceFromFace(self, theFace, theName=None):
             """