Version: 6.5.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Groups Pages
Point

To create a Point in the Main Menu select New Entity - > Basic - > Point


There are five algorithms to create a Point in the 3D space.
Each time the Result of the operation will be a GEOM_Object (vertex).


Firstly, we can define a point by setting its X, Y and Z Coordinates.
TUI Command: geompy.MakeVertex(X, Y, Z)
Arguments: Name (Vertex_n by default) + X, Y and Z coordinates of the point.

point1.png


Secondly, we can define a point by a Reference to another point and the shift of the coordinates of the new point regarding the coordinates of the old one.
TUI Command: geompy.MakeVertexWithRef(Reference, X,Y,Z).
Arguments: Name + 1 reference point + 3 coordinates defining the position of this point regarding the reference one.

point2.png


Thirdly, we can define a point by an Edge and a Parameter 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.
TUI Command: geompy.MakeVertexOnCurve(Edge,Parameter).
Arguments: Name + 1 edge + 1 Parameter defining the position of the point on the given edge.

point3.png

Alternatively, it is possible to define a point by an Edge and a Length. The Length defines the position of the point on the given edge. It can exceed the length of the edge or be negative. In this case the edge is extrapolated along its curve (except for bezier and b-spline curves). The Start Point defines the direction for the length calculation (if not defined, the first vertex of Edge is used, else the vertex of Edge closest to StartPoint is used).
TUI Command: geompy.MakeVertexOnCurveByLength(Edge,Length,StartPoint=None).
Arguments: Name + 1 edge + 1 Length + 1 Point.

point3_3.png

It is also possible to define 3D coordinates of the point projected on the given edge to produce the resulting point.
TUI Command: geompy.MakeVertexOnCurveByCoord(Edge,X,Y,Z).
Arguments: Name + 1 edge + 3 coordinate values of the projected point.

point3_2.png


Fourthly, we can define a point(s) by intersection of two Lines or 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)
TUI Command: geompy.MakePointOnLinesIntersection(myLine1,myWire1).
Arguments: Name + 2 1D objects

point4.png


Finally, we can define a point by a Face and Two Parameters: U and V 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.
TUI Command: geompy.MakeVertexOnSurface(myFace,myUParameter,myVParameter).
Arguments: Name + 1 face + 2 Parameters defining the position of the point on the given face.

point5.png

Alternatively, it is possible to define 3D coordinates of the point projected on the given face.
TUI Command: geompy.MakeVertexOnSurface(myFace,X,Y,Z).
Arguments: Name + 1 face + 3 coordinate values to project point on the given face.

point5_2.png

Example:

points.png
Points by edge and parameter and by coordinates

Our TUI Scripts provide you with useful examples of creation of Basic Geometric Objects.

Copyright © 2007-2012 CEA/DEN, EDF R&D, OPEN CASCADE
Copyright © 2003-2007 OPEN CASCADE, EADS/CCR, LIP6, CEA/DEN, CEDRAT, EDF R&D, LEG, PRINCIPIA R&D, BUREAU VERITAS