Icon + Documentation update

This commit is contained in:
skv 2015-02-13 11:20:18 +03:00
parent 0081236a16
commit ba80f03d60
7 changed files with 33 additions and 20 deletions

View File

@ -38,3 +38,19 @@ prj = geompy.MakeProjection(v1, w1)
geompy.addToStudy(w1, "w1") geompy.addToStudy(w1, "w1")
geompy.addToStudy(v1, "v1") geompy.addToStudy(v1, "v1")
geompy.addToStudy(prj, "projOnWire") 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")

Binary file not shown.

Before

Width:  |  Height:  |  Size: 25 KiB

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -8,11 +8,10 @@
\n This operation makes a projection of a <b>Source planar wire or face</b> on \n This operation makes a projection of a <b>Source planar wire or face</b> on
a cylinder defined by its radius. The cylinder's coordinate system is 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 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 a face that represents a projection of the source shape onto a cylinder.
shape onto a cylinder.
To make a projection it is necessary to define: 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; - \b Radius of the cylinder;
- <b>Starting angle</b> from the cylinder's X axis around Z axis. This is - <b>Starting angle</b> from the cylinder's X axis around Z axis. This is
the angle of the projection starting. the angle of the projection starting.

Binary file not shown.

Before

Width:  |  Height:  |  Size: 792 B

After

Width:  |  Height:  |  Size: 764 B

View File

@ -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 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 Offset = geompy.MakeOffset(Box, 10.) #(GEOM_Object, Double)->GEOM_Object
ProjOnWire = geompy.MakeProjectionOnWire(p0, Wire) ProjOnWire = geompy.MakeProjectionOnWire(p0, Wire)
ProjOnCyl = geompy.MakeProjectionOnCylinder(Wire, 100)
Orientation = geompy.ChangeOrientation(Box) Orientation = geompy.ChangeOrientation(Box)
ExtEdge = geompy.ExtendEdge(Edge1, -0.3, 1.3) ExtEdge = geompy.ExtendEdge(Edge1, -0.3, 1.3)
ExtFace = geompy.ExtendFace(Face5, -0.3, 1.3, -0.1, 1.1) 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_Offset = geompy.addToStudy(Offset, "Offset")
id_Orientation = geompy.addToStudy(Orientation, "Orientation") id_Orientation = geompy.addToStudy(Orientation, "Orientation")
id_ProjOnWire = geompy.addToStudy(ProjOnWire[1], "ProjOnWire") id_ProjOnWire = geompy.addToStudy(ProjOnWire[1], "ProjOnWire")
id_ProjOnCyl = geompy.addToStudy(ProjOnCyl, "ProjOnCyl")
id_ExtEdge = geompy.addToStudy(ExtEdge, "ExtendedEdge") id_ExtEdge = geompy.addToStudy(ExtEdge, "ExtendedEdge")
id_ExtFace = geompy.addToStudy(ExtFace, "ExtendedFace") id_ExtFace = geompy.addToStudy(ExtFace, "ExtendedFace")
id_Surface = geompy.addToStudy(Surface, "Surface From Face") id_Surface = geompy.addToStudy(Surface, "Surface From Face")

View File

@ -9348,9 +9348,9 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
return anObj return anObj
## ##
# Compute a wire or a face or a compound of faces that represents # Compute a wire or a face that represents a projection of the source
# a projection of the source shape onto cylinder. The cylinder's # shape onto cylinder. The cylinder's coordinate system is the same
# coordinate system is the same as the global coordinate system. # as the global coordinate system.
# #
# @param theObject The object to be projected. It can be either # @param theObject The object to be projected. It can be either
# a planar wire or a face. # 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. # publication is switched on, default value is used for result name.
# #
# @return New GEOM.GEOM_Object, containing the result shape. The result # @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 wire or a face that represents a projection of
# represents a projection of the source shape onto a cylinder. # the source shape onto a cylinder.
# #
# @ref tui_fillet "Example 1" # @ref tui_projection "Example"
# \n @ref swig_MakeFilletAll "Example 2"
def MakeProjectionOnCylinder (self, theObject, theRadius, def MakeProjectionOnCylinder (self, theObject, theRadius,
theStartAngle=0.0, theAngleLength=-1.0, theStartAngle=0.0, theAngleLength=-1.0,
theName=None): theName=None):
""" """
Compute a wire or a face or a compound of faces that represents Compute a wire or a face that represents a projection of the source
a projection of the source shape onto cylinder. The cylinder's shape onto cylinder. The cylinder's coordinate system is the same
coordinate system is the same as the global coordinate system. as the global coordinate system.
Parameters: Parameters:
theObject The object to be projected. It can be either theObject The object to be projected. It can be either
@ -9396,13 +9395,10 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
Returns: Returns:
New GEOM.GEOM_Object, containing the result shape. The result New GEOM.GEOM_Object, containing the result shape. The result
represents a wire or a face or a compound of faces that represents a wire or a face that represents a projection of
represents a projection of the source shape onto a cylinder. the source shape onto a cylinder.
Example of usage:
filletall = geompy.MakeFilletAll(prism, 10.)
""" """
# Example: see GEOM_TestOthers.py # Example: see GEOM_TestAll.py
theRadius, theStartAngle, theAngleLength, Parameters = ParseParameters( theRadius, theStartAngle, theAngleLength, Parameters = ParseParameters(
theRadius, theStartAngle, theAngleLength) theRadius, theStartAngle, theAngleLength)
anObj = self.TrsfOp.MakeProjectionOnCylinder(theObject, theRadius, anObj = self.TrsfOp.MakeProjectionOnCylinder(theObject, theRadius,

View File

@ -117,7 +117,7 @@ TransformationGUI_ProjectionOnCylDlg::TransformationGUI_ProjectionOnCylDlg
/***************************************************************/ /***************************************************************/
setHelpFileName("project_on_cylinder_operation_page.html"); setHelpFileName("projection_on_cylinder_operation_page.html");
Init(); Init();
} }