Typo-fix by Kunda

http://www.salome-platform.org/forum/forum_9/22126441
This commit is contained in:
eap 2017-12-28 14:41:31 +03:00
parent a9fe5759c5
commit 14bd7e1d70
25 changed files with 49 additions and 49 deletions

View File

@ -19,7 +19,7 @@ for fi in range(len(faces)):
fid = geompy.addToStudyInFather(cut, faces[fi], "Face %d" % (fi+1)) fid = geompy.addToStudyInFather(cut, faces[fi], "Face %d" % (fi+1))
isSuccess, closedWires, openWires = geompy.GetFreeBoundary(faces[fi]) isSuccess, closedWires, openWires = geompy.GetFreeBoundary(faces[fi])
if isSuccess: if isSuccess:
print "Check free boudaries in face %d: OK" % (fi+1) print "Check free boundaries in face %d: OK" % (fi+1)
print "-- Nb of closed boundaries = %d" % len(closedWires) print "-- Nb of closed boundaries = %d" % len(closedWires)
for wi in range(len(closedWires)): for wi in range(len(closedWires)):
wid = geompy.addToStudyInFather(faces[fi], closedWires[wi], "Closed wire %d" % (wi+1)) wid = geompy.addToStudyInFather(faces[fi], closedWires[wi], "Closed wire %d" % (wi+1))
@ -30,6 +30,6 @@ for fi in range(len(faces)):
pass pass
pass pass
else: else:
print "Check free boudaries in face %d: KO" % (fi+1) print "Check free boundaries in face %d: KO" % (fi+1)
pass pass
pass pass

View File

@ -13,7 +13,7 @@ water-line of the object plunged into the water (in Z direction).
\n <b>TUI Command:</b> \n <b>TUI Command:</b>
<em>geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection),</em> <em>geompy.Archimede(Shape,Weight,WaterDensity,MeshingDeflection),</em>
where \em Shape is a shape to put into the water, \em Weight is a weight of where \em Shape is a shape to put into the water, \em Weight is a weight of
the shape, \em WaterDensity is density of water, \em MeshingDeflection is a the shape, \em WaterDensity is density of water, \em MeshingDeflection is a
deflection of the mesh, using to compute the section. deflection of the mesh, using to compute the section.
\n <b>Arguments:</b> Name + 1 shape + 3 values (Weight, Water Density \n <b>Arguments:</b> Name + 1 shape + 3 values (Weight, Water Density
& Meshing Deflection). & Meshing Deflection).

View File

@ -2,7 +2,7 @@
\page blocks_operations_page Blocks Operations \page blocks_operations_page Blocks Operations
The solids built by blocks \ref build_by_blocks_page can be The solids built by blocks \ref build_by_blocks_page can be
processed with blocks transformation operations: processed with blocks transformation operations:
<ul> <ul>

View File

@ -45,7 +45,7 @@ This operation allows quickly detecting self-interferences of the given shape us
The algorithm works on the face level, i.e. it computes only face-to-face intersections. No additional intersection types are computed. The algorithm works on the face level, i.e. it computes only face-to-face intersections. No additional intersection types are computed.
This can be useful to detect all intersections between subshapes of type "surface" in an assembly. This can be useful to detect all intersections between subshapes of type "surface" in an assembly.
The result quality will depend on the tesselation quality. However, small deflection values can significantly decrease the performance of the algorithm. The result quality will depend on the tessellation quality. However, small deflection values can significantly decrease the performance of the algorithm.
Nevertheless, the performance of Fast Intersect algorithm is much higher than that of the topological intersection. Nevertheless, the performance of Fast Intersect algorithm is much higher than that of the topological intersection.
\image html measures13.png \image html measures13.png
@ -53,7 +53,7 @@ Nevertheless, the performance of Fast Intersect algorithm is much higher than th
In this dialog: In this dialog:
- \b Object - the checked object. \b Selection button allows picking it in the viewer or in the object browser. - \b Object - the checked object. \b Selection button allows picking it in the viewer or in the object browser.
- <b>Deflection coefficient</b> - a linear deflection coefficient that defines the tesselation quality. If theDeflection <= 0, default deflection 0.001 is used. - <b>Deflection coefficient</b> - a linear deflection coefficient that defines the tessellation quality. If theDeflection <= 0, default deflection 0.001 is used.
- <b>Detect gaps with tolerance</b> specifies the distance between shapes used for detecting gaps: - <b>Detect gaps with tolerance</b> specifies the distance between shapes used for detecting gaps:
- if theTolerance <= 0, the algorithm detects intersections; - if theTolerance <= 0, the algorithm detects intersections;
- if theTolerance > 0, the algorithm detects gapss. - if theTolerance > 0, the algorithm detects gapss.
@ -67,7 +67,7 @@ If no interferences are selected, all of them are published in the study. Each i
\n <b>TUI Command:</b> <em>geompy.CheckSelfIntersectionsFast(theShape, theDeflection, theTolerance),</em> \n \n <b>TUI Command:</b> <em>geompy.CheckSelfIntersectionsFast(theShape, theDeflection, theTolerance),</em> \n
where: \n where: \n
\em theShape is the shape checked for validity. \n \em theShape is the shape checked for validity. \n
\em theDeflection that specifies the quality of tesselation. \em theDeflection that specifies the quality of tessellation.
\em theTolerance Specifies the distance between shapes used for detecting gaps. \em theTolerance Specifies the distance between shapes used for detecting gaps.
See also a \ref tui_check_self_intersections_fast_page "TUI example". See also a \ref tui_check_self_intersections_fast_page "TUI example".

View File

@ -15,7 +15,7 @@ Radius)</em>
\n <b>Arguments:</b> Name + 1 vertex (for the center) + 1 edge (for \n <b>Arguments:</b> Name + 1 vertex (for the center) + 1 edge (for
the direction) + Radius. the direction) + Radius.
\note By default it is presumed that the <b>Center Point</b> is located at the Origin of the global \note By default it is presumed that the <b>Center Point</b> is located at the Origin of the global
coordinate system, and the \b Vector corresponds to OZ axis of the global coordinate system, and the \b Vector corresponds to OZ axis of the global
coordinate system. coordinate system.

View File

@ -8,7 +8,7 @@ select <b>New Entity > Explode</b>. This operation opens the
\image html neo-obj1.png \image html neo-obj1.png
To create a list of sub-shapes (vertices, edges, wires etc.) of the To create a list of sub-shapes (vertices, edges, wires etc.) of the
given shape using the \b Explode operation, you need to define the <b>Main given shape using the \b Explode operation, you need to define the <b>Main
Object</b>, which will be exploded and the <b>Type of Sub-shapes</b> you wish to Object</b>, which will be exploded and the <b>Type of Sub-shapes</b> you wish to
obtain from it. obtain from it.

View File

@ -8,7 +8,7 @@ To create a <b>Local Coordinate System</b> in the <b>Main Menu</b> select <b>New
\n Firstly, you can define the values of X, Y, and Z coordinates of origin and the directions of X and Y axes directly in the menu. \n Firstly, you can define the values of X, Y, and Z coordinates of origin and the directions of X and Y axes directly in the menu.
\n <b>TUI command:</b> <em>geompy.MakeMarker(OX, OY, OZ, XDX, XDY, XDZ, \n <b>TUI command:</b> <em>geompy.MakeMarker(OX, OY, OZ, XDX, XDY, XDZ,
YDX, YDY, YDZ)</em>, where OX, OY, OZ are coordinates of the origin of YDX, YDY, YDZ)</em>, where OX, OY, OZ are coordinates of the origin of
LCS, XDX, XDY, XDZ is a vector of OX direction of the LCS and YDX, LCS, XDX, XDY, XDZ is a vector of OX direction of the LCS and YDX,
YDY, YDZ is a a vector of OY direction of the LCS. YDY, YDZ is a a vector of OY direction of the LCS.
\n <b>Arguments:</b> Name + Coordinates of origin, X axis direction, Y axis direction. \n <b>Arguments:</b> Name + Coordinates of origin, X axis direction, Y axis direction.

View File

@ -9,7 +9,7 @@ There are 2 algorithms to create a \b Line in the 3D space.
The Result of each operation will be a GEOM_Object (edge). The Result of each operation will be a GEOM_Object (edge).
\n Firstly you can define a \b Line by \b Point1 and \b Point2, \n Firstly you can define a \b Line by \b Point1 and \b Point2,
which are the points through which the \b Line passes. which are the points through which the \b Line passes.
\n <b>TUI Command:</b> <em>geompy.MakeLineTwoPnt(Point1, Point2)</em> \n <b>TUI Command:</b> <em>geompy.MakeLineTwoPnt(Point1, Point2)</em>
\n <b>Arguments:</b> Name + 2 vertices. \n <b>Arguments:</b> Name + 2 vertices.
@ -30,7 +30,7 @@ which are the points through which the \b Line passes.
\b NB! There is another way to create a line, which is currently \b NB! There is another way to create a line, which is currently
accessible only via \b TUI commands. accessible only via \b TUI commands.
You can define a line passing through the given \b Point and parallel You can define a line passing through the given \b Point and parallel
to the given \b Vector. to the given \b Vector.
\n <b>TUI Command:</b> <em>geompy.MakeLine(Point, Vector)</em> \n <b>TUI Command:</b> <em>geompy.MakeLine(Point, Vector)</em>

View File

@ -8,7 +8,7 @@ Basic - > Plane</b>
\n There are three algorithms to create a plane in the 3D space. \n There are three algorithms to create a plane in the 3D space.
\n The \b Result of each operation will be a GEOM_Object (face). \n The \b Result of each operation will be a GEOM_Object (face).
\n Firstly, you can define a \b Plane by a \b Point through which the \n Firstly, you can define a \b Plane by a \b Point through which the
plane passes, a \b Vector giving a normal of the plane and a <b>Size plane passes, a \b Vector giving a normal of the plane and a <b>Size
of the Plane</b> (size of a side of quadrangle face, representing the of the Plane</b> (size of a side of quadrangle face, representing the
plane). plane).
@ -19,7 +19,7 @@ the size of the plane).
\image html plane1.png \image html plane1.png
\n Secondly, you can define a \b Plane by three \b Points through \n Secondly, you can define a \b Plane by three \b Points through
which the plane passes and a <b>Size of the Plane</b>. which the plane passes and a <b>Size of the Plane</b>.
\n <b>TUI Command:</b> <em>geompy.MakePlaneThreePnt(Point1, Point2, Point3, TrimSize)</em> \n <b>TUI Command:</b> <em>geompy.MakePlaneThreePnt(Point1, Point2, Point3, TrimSize)</em>
\n <b>Arguments:</b> Name + 3 vertices + 1 value (to define the size \n <b>Arguments:</b> Name + 3 vertices + 1 value (to define the size
of the plane). of the plane).

View File

@ -9,7 +9,7 @@ To create a <b>2D Polyline</b> select in the main menu <b>New Entity -> Basic -
\image html polyline_dlg.png \image html polyline_dlg.png
A polyline represents a section or a set of sections. Each section is constructed from a sequence of 2D points A polyline represents a section or a set of sections. Each section is constructed from a sequence of 2D points
connected by either linear segments or an interpolation curve. Every section has its own attributes: connected by either linear segments or an interpolation curve. Every section has its own attributes:
- \b Name, - \b Name,
- \b Type (Polyline or Spline), - \b Type (Polyline or Spline),
- \b Closed flag. - \b Closed flag.

View File

@ -2,7 +2,7 @@
\page create_sketcher_page 2D Sketcher \page create_sketcher_page 2D Sketcher
The 2D Sketcher allows drawing arbitrary 2D shapes. The 2D Sketcher allows drawing arbitrary 2D shapes.
To create a <b>2D Sketch</b> select in the main menu <b>New Entity -> Basic -> 2D Sketch</b>. To create a <b>2D Sketch</b> select in the main menu <b>New Entity -> Basic -> 2D Sketch</b>.
@ -73,7 +73,7 @@ If an \b ark radio button is chosen, \b Point or \b Direction define the locatio
\image html 2dsketch12.png \image html 2dsketch12.png
- \b Radius radio-button allows creating a more limited arc segment by defining a custom ark radius, which must be greater than half of the distance between the last point and the end point of the arc. - \b Radius radio-button allows creating a more limited arc segment by defining a custom ark radius, which must be greater than half of the distance between the last point and the end point of the arc.
\image html 2dsketch8.png \image html 2dsketch8.png

View File

@ -16,11 +16,11 @@
\n Secondly, you can define a \b Sphere with the center at the origin of \n Secondly, you can define a \b Sphere with the center at the origin of
coordinate system by the \b Radius. coordinate system by the \b Radius.
\n <b>TUI Command:</b> <em>geompy. MakeSphereR(Radius)</em> \n <b>TUI Command:</b> <em>geompy. MakeSphereR(Radius)</em>
\n <b>Arguments:</b> Name + 1 value (Radius from the origin). \n <b>Arguments:</b> Name + 1 value (Radius from the origin).
\image html sphere2.png \image html sphere2.png
\n <b>NB!</b> The is another way to create a\b Sphere, which is \n <b>NB!</b> The is another way to create a \b Sphere, which is
currently accessible only via \b TUI commands. currently accessible only via \b TUI commands.
\n You can define the \b Sphere by the coordinates of the <b>Center \n You can define the \b Sphere by the coordinates of the <b>Center
Point</b> and its \b Radius (in this way you don't need to create it in advance). Point</b> and its \b Radius (in this way you don't need to create it in advance).

View File

@ -4,7 +4,7 @@
A primitive called \b Rectangle is a rectangular face of certain dimensions and orientation A primitive called \b Rectangle is a rectangular face of certain dimensions and orientation
To create a \b Rectangle in the <b>Main Menu</b> select <b>New Entity - > To create a \b Rectangle in the <b>Main Menu</b> select <b>New Entity - >
Primitives - > Rectangle</b> Primitives - > Rectangle</b>
\n There are 2 algorithms to create a \b Rectangle in the 3D space. \n There are 2 algorithms to create a \b Rectangle in the 3D space.
@ -15,7 +15,7 @@ of coordinates defining its boundaries by the height and the width and its axis
radio buttons (OXY, OYZ or OZX).This radio buttons (OXY, OYZ or OZX).This
means that the \b Rectangle will lie in "OXY", "OYZ" or "OZX" plane correspondingly. means that the \b Rectangle will lie in "OXY", "OYZ" or "OZX" plane correspondingly.
\n <b>TUI Command:</b> <em>geompy.MakeFaceHW(Height, Width, Orientation)</em> \n <b>TUI Command:</b> <em>geompy.MakeFaceHW(Height, Width, Orientation)</em>
\n <b>Arguments:</b> Name + 3 values (Dimensions at origin: heigth, width and \n <b>Arguments:</b> Name + 3 values (Dimensions at origin: height, width and
orientation). orientation).

View File

@ -3,7 +3,7 @@
\page display_mode_page Display Mode \page display_mode_page Display Mode
\n This option is relevant for viewing 3D objects. Wireframe mode means \n This option is relevant for viewing 3D objects. Wireframe mode means
that you can see only edges of the object, while its shells remain that you can see only edges of the object, while its shells remain
transparent. Shading mode means that the shells are filled with color. transparent. Shading mode means that the shells are filled with color.
\n To change the display mode right-click on this geometrical object \n To change the display mode right-click on this geometrical object

View File

@ -16,7 +16,7 @@ from a compound.
\n <b>TUI Command:</b> <em>geompy.MakeBlockExplode(Compound, \n <b>TUI Command:</b> <em>geompy.MakeBlockExplode(Compound,
MinNbFaces, MaxNbFaces),</em> where \em Compound is a compound to be MinNbFaces, MaxNbFaces),</em> where \em Compound is a compound to be
exploded into the blocks, \em MinNbFaces, \em MaxNbFaces are correspondingly exploded into the blocks, \em MinNbFaces, \em MaxNbFaces are correspondingly
the minimal and the maximal number of faces of the resulting blocks. the minimal and the maximal number of faces of the resulting blocks.
\n <b>Arguments:</b> 1 compound + 2 integers (min. and max. number of \n <b>Arguments:</b> 1 compound + 2 integers (min. and max. number of
faces in the block to be extracted). faces in the block to be extracted).

View File

@ -40,7 +40,7 @@ further analysis (see below).
\note The result quality depends on the quality of triangulation. Changing the value of the deflection coefficient \note The result quality depends on the quality of triangulation. Changing the value of the deflection coefficient
parameter can strongly affect the result. However, small values of the deflection coefficient might lead to parameter can strongly affect the result. However, small values of the deflection coefficient might lead to
some performance loss of the algorithm, as number of triangles of the tesselation mesh depends on this parameter. some performance loss of the algorithm, as number of triangles of the tessellation mesh depends on this parameter.
Press <b>Apply and Close</b> or \b Apply button to store the selected sub-shapes in the study for further analysis. Press <b>Apply and Close</b> or \b Apply button to store the selected sub-shapes in the study for further analysis.
The selection will be published as a compound containing intersected sub-shapes from both source objects. The selection will be published as a compound containing intersected sub-shapes from both source objects.

View File

@ -12,7 +12,7 @@ It can be accessed from the main menu via <b>Measures -> Dimensions -> Manage Di
<b>List of Dimensions</b> <b>List of Dimensions</b>
This dialog provides the list of dimensions shown in the view for the selected geometrical <b>Object</b>. The list items are sorted by dimension type: <b>Distance</b>, <b>Diameter</b> and <b>Angle</b>. This dialog provides the list of dimensions shown in the view for the selected geometrical <b>Object</b>. The list items are sorted by dimension type: <b>Distance</b>, <b>Diameter</b> and <b>Angle</b>.
It is possible to show/hide a dimension in the view by checking on/off the box to the left of its name. It is possible to show/hide a dimension in the view by checking on/off the box to the left of its name.
@ -40,7 +40,7 @@ The following dimensions can be shown:
</ul> </ul>
</li> </li>
<li> <b>Diameter </b> of an an arc, a circular edge or face, a sphere, a cylinder, a cone or a torus.</li> <li> <b>Diameter </b> of an an arc, a circular edge or face, a sphere, a cylinder, a cone or a torus.</li>
<li> <b>Angle.</b> The angle dimension can be defined in one of two possible ways : </li> <li> <b>Angle.</b> The angle dimension can be defined in one of two possible ways : </li>

View File

@ -22,9 +22,9 @@ System in the center of it is to the left .
\image html image30.png \image html image30.png
\n The second algorithm modifies the location of the \b Object(s) using \b Start \n The second algorithm modifies the location of the \b Object(s) using \b Start
and \b End \b LCS, although the final position of the object will not and \b End \b LCS, although the final position of the object will not
coincide with the center of either of the two systems. In this method coincide with the center of either of the two systems. In this method
the object is shifted from its initial position by the value of the the object is shifted from its initial position by the value of the
remainder after subtraction of the coordinates of the <b>Start LCS</b> from remainder after subtraction of the coordinates of the <b>Start LCS</b> from
the coordinates of the <b>End LCS</b>. the coordinates of the <b>End LCS</b>.
@ -53,7 +53,7 @@ translated cube at the position (-100;0;0)
\image html image4.png \image html image4.png
The third algorithm modifies the location of the \b Object(s) using the <b>Path object</b> (Wire or Edge) The third algorithm modifies the location of the \b Object(s) using the <b>Path object</b> (Wire or Edge)
and the \b Distance parameter (ranging from 0 to 1) defining how far the object will move along the path. and the \b Distance parameter (ranging from 0 to 1) defining how far the object will move along the path.
\n <b>Create a copy</b> checkbox allows to keep the initial object, \n <b>Create a copy</b> checkbox allows to keep the initial object,
otherwise it will be removed. otherwise it will be removed.
\n <b>Select Unpublished edges</b> checkbox allows to select sub-shape edges on \n <b>Select Unpublished edges</b> checkbox allows to select sub-shape edges on

View File

@ -27,7 +27,7 @@ The resulting shape inherits the sub-shapes and the colour of Box_1.
\image html restore-ss-viewer-cut.png "The resulting shape" \image html restore-ss-viewer-cut.png "The resulting shape"
Second, we examine the case when the resulting shape is composed from multiple arguments Second, we examine the case when the resulting shape is composed from multiple arguments
(after all Boolean operations, except for Cut, or after the partition with (after all Boolean operations, except for Cut, or after the partition with
several object shapes, or if the resulting shape is a compound). several object shapes, or if the resulting shape is a compound).

View File

@ -1731,7 +1731,7 @@ module GEOM
/*! /*!
* \brief Add / Remove material to / from a solid by extrusion of the base shape on the given distance. * \brief Add / Remove material to / from a solid by extrusion of the base shape on the given distance.
* \param theInitShape Initial shape on which to perform the feature.It has to be a solid or * \param theInitShape Initial shape on which to perform the feature.It has to be a solid or
* a compound made of a single solid * a compound made of a single solid
* \param theBase Edge or wire defining the base shape to be extruded. * \param theBase Edge or wire defining the base shape to be extruded.
@ -1821,7 +1821,7 @@ module GEOM
* *
* The path shape can be a wire or an edge. * The path shape can be a wire or an edge.
* the several profiles can be specified in the several locations of path. * the several profiles can be specified in the several locations of path.
* \param theSeqBases - list of Bases shape to be extruded. * \param theSeqBases - list of Bases shape to be extruded.
* \param theLocations - list of locations on the path corresponding * \param theLocations - list of locations on the path corresponding
* specified list of the Bases shapes. Number of locations * specified list of the Bases shapes. Number of locations
* should be equal to number of bases or list of locations can be empty. * should be equal to number of bases or list of locations can be empty.
@ -1855,7 +1855,7 @@ module GEOM
* *
* The path shape can be a shell or a face. * The path shape can be a shell or a face.
* the several profiles can be specified in the several locations of path. * the several profiles can be specified in the several locations of path.
* \param theSeqBases - list of Bases shape to be extruded. * \param theSeqBases - list of Bases shape to be extruded.
* \param theSeqSubBases - list of corresponding sub-shapes of section shapes. * \param theSeqSubBases - list of corresponding sub-shapes of section shapes.
* \param theLocations - list of locations on the path corresponding * \param theLocations - list of locations on the path corresponding
* specified list of the Bases shapes. Number of locations * specified list of the Bases shapes. Number of locations
@ -2840,7 +2840,7 @@ module GEOM
/*! /*!
* \brief Create a quadrangle face from four edges. Order of Edges is not * \brief Create a quadrangle face from four edges. Order of Edges is not
* important. It is not necessary that edges share the same vertex. * important. It is not necessary that edges share the same vertex.
* \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound. * \param theEdge1,theEdge2,theEdge3,theEdge4 Edges for the face bound.
* \return New GEOM_Object, containing the created face. * \return New GEOM_Object, containing the created face.
*/ */
@ -2875,7 +2875,7 @@ module GEOM
* \brief Create a hexahedral solid, bounded by the six given faces. Order of * \brief Create a hexahedral solid, bounded by the six given faces. Order of
* faces is not important. * faces is not important.
* *
* It is not necessary that Faces share the same edge. * It is not necessary that Faces share the same edge.
* \param theFace1,theFace2,theFace3,theFace4,theFace5,theFace6 Faces for the hexahedral solid. * \param theFace1,theFace2,theFace3,theFace4,theFace5,theFace6 Faces for the hexahedral solid.
* \return New GEOM_Object, containing the created solid. * \return New GEOM_Object, containing the created solid.
*/ */
@ -4709,7 +4709,7 @@ module GEOM
interface GEOM_IGroupOperations : GEOM_IOperations interface GEOM_IGroupOperations : GEOM_IOperations
{ {
/*! /*!
* \brief Creates a new group which will store sub-shapes of theMainShape * \brief Creates a new group which will store sub-shapes of theMainShape
* \param theMainShape is a GEOM_Object on which the group is selected * \param theMainShape is a GEOM_Object on which the group is selected
* \param theShapeType defines a shape type of the group * \param theShapeType defines a shape type of the group
* \return a newly created GEOM group * \return a newly created GEOM group

View File

@ -450,7 +450,7 @@ void EntityGUI_FeatureDetectorDlg::SelectionIntoArgument()
myDetector->SetPath( theImgFileName.toStdString() ); myDetector->SetPath( theImgFileName.toStdString() );
height = myDetector->GetImgHeight(); height = myDetector->GetImgHeight();
width = myDetector->GetImgWidth(); width = myDetector->GetImgWidth();
pictureLeft = -0.5 * width; // X coordinate of the top left corner of the background image in the view pictureLeft = -0.5 * width; // X coordinate of the top left corner of the background image in the view
pictureTop = 0.5 * height; // Y coordinate of both top corners pictureTop = 0.5 * height; // Y coordinate of both top corners
} }

View File

@ -2120,7 +2120,7 @@ QString EntityGUI_SketcherDlg::GetNewCommand( QString& theParameters )
QString myNewCommand = ":"; QString myNewCommand = ":";
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 ); int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
int DigNum = qAbs(aPrecision); // options for the format of numbers in myNewCommand int DigNum = qAbs(aPrecision); // options for the format of numbers in myNewCommand
char Format = 'f'; char Format = 'f';
if ( aPrecision < 0 ) // f --> DigNum is the number of digits after the decimal point if ( aPrecision < 0 ) // f --> DigNum is the number of digits after the decimal point
Format = 'g'; // g --> DigNum is the maximum number of significant digits Format = 'g'; // g --> DigNum is the maximum number of significant digits
@ -2319,7 +2319,7 @@ bool EntityGUI_SketcherDlg::execute( ObjectList& objects )
MESSAGE("EntityGUI_SketcherDlg::execute") MESSAGE("EntityGUI_SketcherDlg::execute")
SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr(); SUIT_ResourceMgr* resMgr = SUIT_Session::session()->resourceMgr();
int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 ); int aPrecision = resMgr->integerValue( "Geometry", "length_precision", 6 );
int DigNum = qAbs(aPrecision); // options for the format of numbers in myNewCommand int DigNum = qAbs(aPrecision); // options for the format of numbers in myNewCommand
char Format = 'f'; char Format = 'f';
if ( aPrecision < 0 ) // f --> DigNum is the number of digits after the decimal point if ( aPrecision < 0 ) // f --> DigNum is the number of digits after the decimal point
Format = 'g'; // g --> DigNum is the maximum number of significant digits Format = 'g'; // g --> DigNum is the maximum number of significant digits

View File

@ -67,7 +67,7 @@ class GEOMAlgo_AlgoTools {
gp_Vec& aN); gp_Vec& aN);
//! Computes a point <theP> inside the face <theF>. <br> //! Computes a point <theP> inside the face <theF>. <br>
//! <theP2D> - 2D representation of <theP> <br> //! <theP2D> - 2D representation of <theP> <br>
//! on the surface of <theF> <br> //! on the surface of <theF> <br>
//! Returns 0 in case of success. <br> //! Returns 0 in case of success. <br>
Standard_EXPORT Standard_EXPORT

View File

@ -10437,7 +10437,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
Parameters: Parameters:
theInit Shape to remove material from. It must be a solid or a compound made of a single solid. theInit Shape to remove material from. It must be a solid or a compound made of a single solid.
theBase Closed edge or wire defining the base shape to be extruded. theBase Closed edge or wire defining the base shape to be extruded.
theH Prism dimension along the normal to theBase theH Prism dimension along the normal to theBase
theAngle Draft angle in degrees. theAngle Draft angle in degrees.
theInvert If true material changes the direction. theInvert If true material changes the direction.
theName Object name; when specified, this parameter is used theName Object name; when specified, this parameter is used
@ -10477,7 +10477,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
Parameters: Parameters:
theInit Shape to add material to. It must be a solid or a compound made of a single solid. theInit Shape to add material to. It must be a solid or a compound made of a single solid.
theBase Closed edge or wire defining the base shape to be extruded. theBase Closed edge or wire defining the base shape to be extruded.
theH Prism dimension along the normal to theBase theH Prism dimension along the normal to theBase
theAngle Draft angle in degrees. theAngle Draft angle in degrees.
theInvert If true material changes the direction. theInvert If true material changes the direction.
theName Object name; when specified, this parameter is used theName Object name; when specified, this parameter is used
@ -11817,7 +11817,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
## @{ ## @{
## Create a quadrangle face from four edges. Order of Edges is not ## Create a quadrangle face from four edges. Order of Edges is not
# important. It is not necessary that edges share the same vertex. # important. It is not necessary that edges share the same vertex.
# @param E1,E2,E3,E4 Edges for the face bound. # @param E1,E2,E3,E4 Edges for the face bound.
# @param theName Object name; when specified, this parameter is used # @param theName Object name; when specified, this parameter is used
# for result publication in the study. Otherwise, if automatic # for result publication in the study. Otherwise, if automatic
@ -11830,7 +11830,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
def MakeQuad(self, E1, E2, E3, E4, theName=None): def MakeQuad(self, E1, E2, E3, E4, theName=None):
""" """
Create a quadrangle face from four edges. Order of Edges is not Create a quadrangle face from four edges. Order of Edges is not
important. It is not necessary that edges share the same vertex. important. It is not necessary that edges share the same vertex.
Parameters: Parameters:
E1,E2,E3,E4 Edges for the face bound. E1,E2,E3,E4 Edges for the face bound.
@ -11935,7 +11935,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
return anObj return anObj
## Create a hexahedral solid, bounded by the six given faces. Order of ## Create a hexahedral solid, bounded by the six given faces. Order of
# faces is not important. It is not necessary that Faces share the same edge. # faces is not important. It is not necessary that Faces share the same edge.
# @param F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid. # @param F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid.
# @param theName Object name; when specified, this parameter is used # @param theName Object name; when specified, this parameter is used
# for result publication in the study. Otherwise, if automatic # for result publication in the study. Otherwise, if automatic
@ -11949,7 +11949,7 @@ class geomBuilder(object, GEOM._objref_GEOM_Gen):
def MakeHexa(self, F1, F2, F3, F4, F5, F6, theName=None): def MakeHexa(self, F1, F2, F3, F4, F5, F6, theName=None):
""" """
Create a hexahedral solid, bounded by the six given faces. Order of Create a hexahedral solid, bounded by the six given faces. Order of
faces is not important. It is not necessary that Faces share the same edge. faces is not important. It is not necessary that Faces share the same edge.
Parameters: Parameters:
F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid. F1,F2,F3,F4,F5,F6 Faces for the hexahedral solid.

View File

@ -78,21 +78,21 @@
<item row="3" column="0"> <item row="3" column="0">
<widget class="QLabel" name="label_3"> <widget class="QLabel" name="label_3">
<property name="text"> <property name="text">
<string>Big pipe height</string> <string>Big pipe height</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="2" column="0"> <item row="2" column="0">
<widget class="QLabel" name="label_2"> <widget class="QLabel" name="label_2">
<property name="text"> <property name="text">
<string>Small pipe radius</string> <string>Small pipe radius</string>
</property> </property>
</widget> </widget>
</item> </item>
<item row="4" column="0"> <item row="4" column="0">
<widget class="QLabel" name="label_4"> <widget class="QLabel" name="label_4">
<property name="text"> <property name="text">
<string>Small pipe height</string> <string>Small pipe height</string>
</property> </property>
</widget> </widget>
</item> </item>