Salome HOME
[bos #29336] problem in inertia calculus
[modules/geom.git] / doc / salome / gui / GEOM / input / creating_lcs.doc
1 /*!
2
3 \page create_lcs_page Local Coordinate System
4
5 To create a <b>Local Coordinate System</b> in the <b>Main Menu</b> select <b>New Entity - > Basic - > Local Coordinate System</b>
6 \n There are three algorithms to choose from.
7
8 \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.
9 \n <b>TUI command:</b> <em>geompy.MakeMarker(OX, OY, OZ, XDX, XDY, XDZ,
10 YDX, YDY, YDZ)</em>, where OX, OY, OZ are coordinates of the origin of
11 LCS, XDX, XDY, XDZ is a vector of OX direction of the LCS and YDX,
12 YDY, YDZ is a vector of OY direction of the LCS.
13 \n <b>Arguments:</b> Name + Coordinates of origin, X axis direction, Y axis direction.
14
15 \image html neo-localcs1.png
16
17 \n Secondly, you can simply select any object in the object browser or
18 3D viewer, in this case the coordinates of origin and axes direction
19 of the LCS are calculated automatically basing on the selected object.
20 \n <b>TUI command:</b> <em>geompy.MakeMarkerFromShape(theShape)</em>.
21 \n <b>Arguments:</b> Name + reference object.
22
23 \image html neo-localcs2.png
24
25 \n The last algorithm of LCS construction allows to define the
26 coordinates of origin by a point and axes directions by a line or a
27 vector.
28 \n <b>TUI command:</b> <em>geompy.MakeMarkerPntTwoVec(Center, VectorX, 
29 VectorY)</em> where Center is the origin of the coordinate system,
30 VectorX is the direction of OX axis and VectorY is the direction of OY axis.
31 \n <b>Arguments:</b> Name + 1 point of origin + X axis direction, Y axis direction.
32
33 \image html neo-localcs3.png
34
35 Press \c OK or \c Apply button to create an LCS at the location with the
36 specified coordinates. The new object is shown in the Object Browser
37 and in 3D viewer.
38
39 <b>Example:</b>
40
41 \image html image145.png "Local Coordinate System"
42
43 <b>TUI Script</b> provides you with a useful example of
44 \ref tui_creation_lcs "Local Coordinate System" creation.
45 */