2008-03-07 12:45:34 +05:00
|
|
|
/*!
|
|
|
|
|
|
|
|
\page create_point_page Point
|
|
|
|
|
|
|
|
To create a \b Point in the <b>Main Menu</b> select <b>New Entity - >
|
|
|
|
Basic - > Point</b>
|
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
\n There are five algorithms to create a \b Point in the 3D space.
|
2008-03-07 12:45:34 +05:00
|
|
|
\n Each time the \b Result of the operation will be a GEOM_Object
|
|
|
|
(vertex).
|
|
|
|
|
|
|
|
\n Firstly, we can define a point by setting its X, Y and Z \b Coordinates.
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertex(X, Y, Z)</em>
|
|
|
|
\n \b Arguments: Name (Vertex_n by default) + X, Y and Z coordinates of
|
|
|
|
the point.
|
|
|
|
|
|
|
|
\image html point1.png
|
|
|
|
|
|
|
|
\n Secondly, we can define a point by a \b Reference to another point
|
|
|
|
and the shift of the coordinates of the new point regarding the
|
|
|
|
coordinates of the old one.
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertexWithRef(Reference, X,Y,Z).</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 reference point + 3 coordinates defining
|
|
|
|
the position of this point regarding the reference one.
|
|
|
|
|
|
|
|
\image html point2.png
|
|
|
|
|
2009-12-08 17:05:55 +05:00
|
|
|
\n Thirdly, we can define a point by an \b Edge and a \b Parameter
|
2008-03-07 12:45:34 +05:00
|
|
|
indicating its position on the Edge, ranging from 0.0 to 1.0. For example, 0.5 means that the
|
|
|
|
point is located in the middle of the edge.
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertexOnCurve(Edge,Parameter).</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 edge + 1 Parameter defining the
|
|
|
|
position of the point on the given edge.
|
|
|
|
\image html point3.png
|
2009-12-08 17:05:55 +05:00
|
|
|
|
|
|
|
Alternatively, it is possible to define 3D coordinates of the point
|
|
|
|
projected on the given edge to produce the resulting point.
|
2009-08-27 18:47:34 +06:00
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertexOnCurveByCoord(Edge,X,Y,Z).</em>
|
2009-12-08 17:05:55 +05:00
|
|
|
\n <b>Arguments:</b> Name + 1 edge + 3 coordinate values of the
|
|
|
|
projected point.
|
2009-08-27 18:47:34 +06:00
|
|
|
\image html point3_2.png
|
2008-03-07 12:45:34 +05:00
|
|
|
|
2010-02-11 15:29:04 +05:00
|
|
|
\n Fourthly, we can define a point(s) by intersection of two \b Lines or \b Wires (or a Wire and a Line).
|
|
|
|
If they intersect only once, a point will be created. If there are several intersections, a compound of
|
|
|
|
points will be created. The type of the selected object (Line or Wire) can be changed in the popup menu,
|
|
|
|
after clicking the corresponding selection button. (see the picture below)
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakePointOnLinesIntersection(myLine1,myWire1).</em>
|
|
|
|
\n <b>Arguments:</b> Name + 2 1D objects
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
\image html point4.png
|
|
|
|
|
2009-08-27 18:47:34 +06:00
|
|
|
\n Finally, we can define a point by a \b Face and
|
2009-12-08 17:05:55 +05:00
|
|
|
Two <b> Parameters: U </b> and \b V
|
2009-02-13 17:16:39 +05:00
|
|
|
indicating its position on the Face, ranging from 0.0 to 1.0. For example, (0.5; 0.5) means that the
|
|
|
|
point is located in the middle of the face.
|
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertexOnSurface(myFace,myUParameter,myVParameter).</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 face + 2 Parameters defining the
|
|
|
|
position of the point on the given face.
|
2009-12-08 17:05:55 +05:00
|
|
|
|
2009-02-13 17:16:39 +05:00
|
|
|
\image html point5.png
|
2009-12-08 17:05:55 +05:00
|
|
|
|
|
|
|
Alternatively, it is possible to define 3D coordinates of the point projected on the given face.
|
2009-08-27 18:47:34 +06:00
|
|
|
\n <b>TUI Command:</b> <em>geompy.MakeVertexOnSurface(myFace,X,Y,Z).</em>
|
|
|
|
\n <b>Arguments:</b> Name + 1 face + 3 coordinate values
|
|
|
|
to project point on the given face.
|
2009-12-08 17:05:55 +05:00
|
|
|
|
2009-08-27 18:47:34 +06:00
|
|
|
\image html point5_2.png
|
2009-02-13 17:16:39 +05:00
|
|
|
|
|
|
|
<b>Example:</b>
|
|
|
|
|
|
|
|
\image html points.png "Points by edge and parameter and by coordinates"
|
2008-03-07 12:45:34 +05:00
|
|
|
|
|
|
|
Our <b>TUI Scripts</b> provide you with useful examples of creation of
|
|
|
|
\ref tui_creation_point "Basic Geometric Objects".
|
|
|
|
|
|
|
|
*/
|