From: skv Date: Fri, 13 Feb 2015 08:20:18 +0000 (+0300) Subject: Icon + Documentation update X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=ba80f03d6010a3f730c6fa12878e4541721123dc;p=modules%2Fgeom.git Icon + Documentation update --- diff --git a/doc/salome/examples/transformation_operations_ex07.py b/doc/salome/examples/transformation_operations_ex07.py index f76bd9036..d323cf0b7 100644 --- a/doc/salome/examples/transformation_operations_ex07.py +++ b/doc/salome/examples/transformation_operations_ex07.py @@ -38,3 +38,19 @@ prj = geompy.MakeProjection(v1, w1) geompy.addToStudy(w1, "w1") geompy.addToStudy(v1, "v1") geompy.addToStudy(prj, "projOnWire") + +#projection of a wire on cylinder +pp1 = geompy.MakeVertex(100, 200, 0) +pp2 = geompy.MakeVertex(100, 200, 80) +pp3 = geompy.MakeVertex(100, 220, 90) +pp4 = geompy.MakeVertex(100, 130, 80) +pp5 = geompy.MakeVertex(100, 90, 80) +cc1 = geompy.MakeInterpol([pp1, pp2, pp3, pp4, pp5], True, False) +ww1 = geompy.MakeWire([cc1], 1.e-7) +vx = geompy.MakeVectorDXDYDZ(100, 0, 0) +pln1 = geompy.MakePlane(pp1, vx, 200) +face1 = geompy.MakeFaceFromSurface(pln1, ww1) +prj_cyl = geompy.MakeProjectionOnCylinder(face1, 100) + +geompy.addToStudy(face1, "pln_face") +geompy.addToStudy(prj_cyl, "projOnCylinder") diff --git a/doc/salome/gui/GEOM/images/proj_on_cyl_dlg.png b/doc/salome/gui/GEOM/images/proj_on_cyl_dlg.png index 4bb2b8ac3..38d81b51e 100644 Binary files a/doc/salome/gui/GEOM/images/proj_on_cyl_dlg.png and b/doc/salome/gui/GEOM/images/proj_on_cyl_dlg.png differ diff --git a/doc/salome/gui/GEOM/input/projection_on_cylinder_operation.doc b/doc/salome/gui/GEOM/input/projection_on_cylinder_operation.doc index 10dc98eb1..be0c5aa27 100644 --- a/doc/salome/gui/GEOM/input/projection_on_cylinder_operation.doc +++ b/doc/salome/gui/GEOM/input/projection_on_cylinder_operation.doc @@ -8,11 +8,10 @@ \n This operation makes a projection of a Source planar wire or face on a cylinder defined by its radius. The cylinder's coordinate system is the same as the global coordinate system. The result represents a wire or -a face or a compound of faces that represents a projection of the source -shape onto a cylinder. +a face that represents a projection of the source shape onto a cylinder. To make a projection it is necessary to define: -- \b Object to be rotated. It can be either a planar wire or a face; +- \b Object to be projected. It can be either a planar wire or a face; - \b Radius of the cylinder; - Starting angle from the cylinder's X axis around Z axis. This is the angle of the projection starting. diff --git a/resources/proj_on_cyl.png b/resources/proj_on_cyl.png index 6b22c1dc7..bd52b7188 100644 Binary files a/resources/proj_on_cyl.png and b/resources/proj_on_cyl.png differ diff --git a/src/GEOM_SWIG/GEOM_TestAll.py b/src/GEOM_SWIG/GEOM_TestAll.py index 53e597c6c..bd60d7f43 100644 --- a/src/GEOM_SWIG/GEOM_TestAll.py +++ b/src/GEOM_SWIG/GEOM_TestAll.py @@ -266,6 +266,7 @@ def TestAll (geompy, math): Position2 = geompy.PositionAlongPath(Box, Arc, 0.5, 1, 0) #(2 GEOM_Object, 1 Double, 2 Bool)->GEOM_Object Offset = geompy.MakeOffset(Box, 10.) #(GEOM_Object, Double)->GEOM_Object ProjOnWire = geompy.MakeProjectionOnWire(p0, Wire) + ProjOnCyl = geompy.MakeProjectionOnCylinder(Wire, 100) Orientation = geompy.ChangeOrientation(Box) ExtEdge = geompy.ExtendEdge(Edge1, -0.3, 1.3) ExtFace = geompy.ExtendFace(Face5, -0.3, 1.3, -0.1, 1.1) @@ -488,6 +489,7 @@ def TestAll (geompy, math): id_Offset = geompy.addToStudy(Offset, "Offset") id_Orientation = geompy.addToStudy(Orientation, "Orientation") id_ProjOnWire = geompy.addToStudy(ProjOnWire[1], "ProjOnWire") + id_ProjOnCyl = geompy.addToStudy(ProjOnCyl, "ProjOnCyl") id_ExtEdge = geompy.addToStudy(ExtEdge, "ExtendedEdge") id_ExtFace = geompy.addToStudy(ExtFace, "ExtendedFace") id_Surface = geompy.addToStudy(Surface, "Surface From Face") diff --git a/src/GEOM_SWIG/geomBuilder.py b/src/GEOM_SWIG/geomBuilder.py index 2f8c983c2..95e3c2bf0 100644 --- a/src/GEOM_SWIG/geomBuilder.py +++ b/src/GEOM_SWIG/geomBuilder.py @@ -9348,9 +9348,9 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): return anObj ## - # Compute a wire or a face or a compound of faces that represents - # a projection of the source shape onto cylinder. The cylinder's - # coordinate system is the same as the global coordinate system. + # Compute a wire or a face that represents a projection of the source + # shape onto cylinder. The cylinder's coordinate system is the same + # as the global coordinate system. # # @param theObject The object to be projected. It can be either # a planar wire or a face. @@ -9367,18 +9367,17 @@ 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 result shape. The result - # represents a wire or a face or a compound of faces that - # represents a projection of the source shape onto a cylinder. + # represents a wire or a face that represents a projection of + # the source shape onto a cylinder. # - # @ref tui_fillet "Example 1" - # \n @ref swig_MakeFilletAll "Example 2" + # @ref tui_projection "Example" def MakeProjectionOnCylinder (self, theObject, theRadius, theStartAngle=0.0, theAngleLength=-1.0, theName=None): """ - Compute a wire or a face or a compound of faces that represents - a projection of the source shape onto cylinder. The cylinder's - coordinate system is the same as the global coordinate system. + Compute a wire or a face that represents a projection of the source + shape onto cylinder. The cylinder's coordinate system is the same + as the global coordinate system. Parameters: theObject The object to be projected. It can be either @@ -9396,13 +9395,10 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen): Returns: New GEOM.GEOM_Object, containing the result shape. The result - represents a wire or a face or a compound of faces that - represents a projection of the source shape onto a cylinder. - - Example of usage: - filletall = geompy.MakeFilletAll(prism, 10.) + represents a wire or a face that represents a projection of + the source shape onto a cylinder. """ - # Example: see GEOM_TestOthers.py + # Example: see GEOM_TestAll.py theRadius, theStartAngle, theAngleLength, Parameters = ParseParameters( theRadius, theStartAngle, theAngleLength) anObj = self.TrsfOp.MakeProjectionOnCylinder(theObject, theRadius, diff --git a/src/TransformationGUI/TransformationGUI_ProjectionOnCylDlg.cxx b/src/TransformationGUI/TransformationGUI_ProjectionOnCylDlg.cxx index 2f9ad4b36..d3efac641 100644 --- a/src/TransformationGUI/TransformationGUI_ProjectionOnCylDlg.cxx +++ b/src/TransformationGUI/TransformationGUI_ProjectionOnCylDlg.cxx @@ -117,7 +117,7 @@ TransformationGUI_ProjectionOnCylDlg::TransformationGUI_ProjectionOnCylDlg /***************************************************************/ - setHelpFileName("project_on_cylinder_operation_page.html"); + setHelpFileName("projection_on_cylinder_operation_page.html"); Init(); }