X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=doc%2Fsalome%2Fgui%2FGEOM%2Finput%2Fcreating_sketcher.doc;h=159361772d2516a72ac5fb73c115142fa8c863ba;hb=ac61a2cdfc5f166fb3bc17f82e89a460555548cb;hp=7f04b53e2c0b6fba8f15684d27aaa44e17c88528;hpb=e4a31d66fd10c1c59295a3f7756889818d7ba218;p=modules%2Fgeom.git
diff --git a/doc/salome/gui/GEOM/input/creating_sketcher.doc b/doc/salome/gui/GEOM/input/creating_sketcher.doc
index 7f04b53e2..159361772 100644
--- a/doc/salome/gui/GEOM/input/creating_sketcher.doc
+++ b/doc/salome/gui/GEOM/input/creating_sketcher.doc
@@ -2,168 +2,109 @@
\page create_sketcher_page 2D Sketcher
-The 2D Sketcher allows you to draw 2D shapes on a working plane. You
-can create sketches of two types:
+The 2D Sketcher allows drawing arbitrary 2D shapes.
-
-- \b Profile made of connected curves of 2 types: line segments and \b arcs.
+To create a 2D Sketch select in the main menu New Entity -> Basic -> 2D Sketch.
-\b or
-
-
- \b Rectangle
-
-
-The \b Result is a \b Wire
-
-\n Example:
-
-\image html sketch_example.png
-
-To create a 2D Sketch:
+\image html sketcher_dlg.png
-
-- In the main menu select New Entity -> Basic -> 2D Sketch or click on \image html sketch.png
+At first it is necessary to define the reference coordinate system, where the sketch will be created:
+- The XOY plane of the Global coordinate system is suggested by default (if no plane or planar face is selected when 2D Sketcher is activated).
+- If any Local Coordinate Systems have been created in the study earlier, they can be selected as a reference coordinate system in the corresponding list box.
+- The \b Arrow button allows selecting a \b plane or a planar face in the viewer or in the object browser as the reference coordinate system for the sketch. The start point will be set in the \b geometric \b center of the face.
+- Restore button orientates the viewer correspondingly to the chosen working plane and fits the scene to show all objects.
-- Select the \b plane or the planar face on which to create the sketch.
-\note By default the sketch is created on the XOY plane of the global coordinate system.
-If Local Coordinate Systems have been created in the study they appear
-in the combo-box and can be selected as a reference coordinate system.
+It is possible to create sketches of two types:
+- \b Profiles made of line segments and \b arcs, or
+- \b Rectangles.
-- Choose a \b segment or an \b arc element to start a \b profile or choose \b rectangle to draw a rectangle.
+
Creation of a Profile by straight segments
-\n If you draw a \b profile:
+- Choose \b segment radio button to start a \b profile.
- - Select a start point. By default the start point of the curve is located at the point of
-origin of the reference coordinate system.
+- Define the start point. By default the start point of the curve is located at the origin of the reference coordinate system. A point in 2D Sketcher can be defined in one of three ways:
-- Create curve portions and click on \b Apply after each step.
+ - By \b Absolute coordinates. Select \b Absolute radio button in \b Points group, input \b X and \b Y values and click \b Apply button:
+ \image html 2dsketch1.png
+
+ - By \b Relative coordinates. Select \b Relative radio button in \b Points group, input \b DX and \b DY values and click \b Apply button.
+ \image html 2dsketch2.png
-- Select either \b Close or Sketch Closure if you want to close the profile before closing the window.
-
+ - By \b Selection of an existing point. Select \b Selection radio button in \b Points group, select a point in the viewer or in the object browser and click \b Apply button.
+ \image html 2dsketch3.png
-\n To create a \b Segment:
+- Define the next point. Together these two points form the first segment of the sketch.
-
-- In the Element Type part of the dialog box select:
+Alternatively to the definition by \b Points it is possible to define segments by \b Direction and \b Distance.
+
+- The \b Direction can be:
-\image html line_icon.png
+ - Defined by an \b Angle to the previous segment.
+ \image html 2dsketch4.png
+
+ - \b Perpendicular to the previous segment (i.e. the Angle is 90 degrees).
+ \image html 2dsketch5.png
+
+ - \b Tangent (collinear) to the previous segment (i.e. the Angle is 0 degrees).
+ \image html 2dsketch6.png
+
+ - Defined by VX-VY vector coordinates.
+ \image html 2dsketch7.png
+
+- The \b Distance can be defined:
-- You can define the segment by either its end point or \b direction and \b length. The direction is defined relatively to the tangent at the last point of the sketch. It can be:
-
- - Tangent (collinear to the tangent at the last point)
- - Perpendicular
- - Defined by an angle
- - Defined by a vector (Vx, Vy)
-
+ - By the absolute segment \b Length
+ - By \b DX - the length of segment projection on X-axis.
+ - By \b DY - the length of segment projection on Y-axis.
+
+- Proceed with creation of the sketch segments and click \b Apply after each step. The drawn segments will be displayed in the viewer.
+- Use \b Undo and \b Redo buttons to cancel an erroneously applied segment or to restore it.
+- To finalize, click "Close" button to apply the created wire "as is".
+- Alternatively, click "Sketch Closure" to close the Sketch by a straight line
+from the last created segment to the start point and apply it.
-
+Creation of a Profile by ark segments
-
-
-\n To create an \b Arc:
+If an \b ark radio button is chosen, \b Point or \b Direction define the location of the next point of the sketch, but this point and the previous one are connected by an ark segment.
-
-- In the Element Type part of the dialog box select \image html arc_icon.png
+\image html 2dsketch10.png "Ark segments"
+
+- By default, None (Tangential) radio button is selected as Additional Parameter, and the arc is \b tangential to the end of the sketch, which means that it is created on two points as a half-circle with radius equal to a half of the distance between these points.
-- You can define the segment by either its end point or \b direction \b radius and \b angle.
+\image html 2dsketch12.png
-
- - In case of an end point the arc can be built in three different ways:
-
- - From the end point only. The arc is \b tangential to the end of the sketch.
- - From the end point and a \b radius. (The radius must be greater than half of the distance between the last point and the end point of the arc).
- - From the \b center of the circle and the end point. The constraint on the center is first taken into account.
- The destination point is only used to define the angle of the arc and won't lie on the arc in the general case.
-
-
- - The direction is defined relatively to the tangent at the last point of the sketch. It can be:
-
-
- - Tangent (colinear to the tangent at the last point)
<
- - Perpendicular
- - Defined by an angle
- - Defined by a vector (Vx, Vy)
-
-
-
-
+- \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
-\note For the first segment or arc of the sketch the reference direction is the X direction of the reference coordinate system.
+- Finally, \b Center radio-button allows explicitly defining the center of the circle. If an arc segment cannot be built on the defined points, a warning is shown.
+
+\image html 2dsketch9.png
+
+Creation of a Rectangle profile
-\n Dialog Box:
+\n To draw a \b rectangle, select a \b rectangle radio button.
-\image html sketcher_dlg.png
+\image html sketcher_dlg2.png
-\n Arguments:
-
-- Coordinate system (Existing Local CS or Global CS can be selected)
-- A plane or a planar face to define a new Local Coordinate System
-
- Element type (segment, arc or rectangle).
-- Destination type (point or direction).
-- Destination point by means of:
-
-- absolute coordinates X,Y;
-- relative coordinates DX, DY (with respect to the current point);
-- selection of an existing point.
-
-- Destination direction by means of:
-
-- angle between the new segment and the previous one;
-- perpendicular to the previous segment (same as previous, but the angle
-is predefined and is equal to 90 degrees);
-- tangent to the previous segment;
-- vector components DX, DY.
-
-- Parameters of an element (for segment : length or target X or Y coordinate value, for arc : radius, angle or center coordinates).
-
-
-\b Buttons:
-
-"Restore" button orientates the viewer correspondingly to the chosen working plane and fits the scene to show all its objects.
-\n "Close" button applies the wire, only the red part will be built.
-\n "Sketch Closure" will close the Sketch by a straight line
-from the last red part and apply it.
-
-\n To draw a \b rectangle:
-
-
-- In the Element Type part of the dialog box select \image html rectangle_icon.png
-
-- Draw a rectangle with the mouse directly in the view or fill in the coordinates of two opposite vertices of the rectangle.
-- Apply and Close
-
-
-\n Dialog Box:
+Draw a rectangle with the mouse directly in the view or input the coordinates of its two opposite vertices in the dialog.
-\image html sketcher_dlg2.png
+TUI Commands
-\n Arguments:
-
-- Coordinate system (Existing Local CS or Global CS can be selected)
-- A plane or a planar face to define a new Local Coordinate System
-
- Element type (segment, arc or rectangle).
-- The X,Y coordinates of two opposite vertices of the rectangle
-
+geompy.MakeSketcherOnPlane(Command, WorkingPlane)
+This algorithm creates a sketcher (wire or face), following the textual description, passed through the Command argument. The edges of the resulting wire or face will be arcs of circles and/or linear segments.
-\n TUI Command: geompy.MakeSketcherOnPlane(Command, WorkingPlane)
-\n This algorithm creates a sketcher (wire or face), following the
-textual description, passed through the Command argument. The edges of
-the resulting wire or face will be arcs of circles and/or linear
-segments.
-\n \em Command is a string, defining the sketcher by the coordinates of
-points in the current LCS.
-\n WorkingPlane can be a Local CS, a plane, or a planar face.
+- \em Command is a string, defining the sketcher by the coordinates of points in the current LCS.
+- WorkingPlane can be a Local CS, a plane, or a planar face.
-\n Another way to create the 2D Sketcher in TUI is using Sketcher2D
-interface.
+Another way to create the 2D Sketcher in TUI is using Sketcher2D interface.
-TUI Command: sk = geompy.Sketcher2D()
+sk = geompy.Sketcher2D() - returns an instance of Sketcher2D interface sk.
-Returns an instance of Sketcher2D interface sk.
+\image html sketch_example.png
-Use the below examples and see the \ref gsketcher.Sketcher2D "Sketcher2D"
-interface documentation for more information.
+See the \ref gsketcher.Sketcher2D "Sketcher2D" interface documentation for more information.
Our TUI Scripts provide you with useful examples of the use of
\ref tui_sketcher_page "2D Sketcher".