Geometrical Language Description: SPRUT Technology Inc
Geometrical Language Description: SPRUT Technology Inc
Geometrical Language Description: SPRUT Technology Inc
Description
P11=X(0),Y(0)
L11=P11,A(0)
L12=P11,A(90)
P12=L11,X(-90)
P13=X(55.08),L11
P14=Y(-51.48),L12
P15=Y(50),L12
K11=P12,L11,P13
K12=P14,L12,P15
P16=X(-83),Y(-0)
P17=X(-73.04),Y(23.94)
P18=X(-73.04),Y(-24.04)
C12=P17,P16,P18
P19=X(22.62),Y(-41.8)
L14=P19,-C12
2-3
2 Geometrical language description
2-4
contents 2
1.8.8 Contour defined by transfer of the initial contour to the defined direction
up to the collision with another one ........................................................................ 2-58
1.8.9 Change of a direction of rounding ................................................................... 2-59
1.8.10 Joining of contours ............................................................................................. 2-59
1.8.11 Contour defined by scaling of the initial contour ......................................... 2-59
1.8.12 Selection of a contour, as a sub-multitude of the initial contour ................ 2-60
1.8.13 Rounding in the nodal point of the initial contour ........................................ 2-60
1.9 GEOMETRICA2L FUNCTIONS .................................................. 2-61
1.9.1 Functions of transformation of geometr ical elements parameters into
the real data types ...................................................................................................... 2-61
1.9.2 Functions of transformation of geometr ical elements` mutual location
parameters into the real data types ........................................................................ 2-61
1.9.3 Functions of calculation of the ortogonal distance between two points
by axes X and Y .................................................................................................... 2-62
2-5
2 Geometrical language description
2-6
Introduction 2
INRODUCTION
Measurement units
2-7
2 Geometrical language description
2-8
Definition operators of geometrical elements 2
1 DEFINITION OPERATORS OF
GEOMETRICAL ELEMENTS
1.1 COMMON REGULATIONS
or
2-9
2 Geometrical language description
The initial coordinate system accepts as default and is primary. All assigned
coordinate systems are relative and lie in the initial. Parameters of all
geometrical elements, being defined in the relative system, automatically
recalculates in the primary coordinate system
Format:
Oi = Xx, Yy, Aa
2 - 10
Definition operators of geometrical elements 2
n Assignment of a new coordinate system by indicating an identifier of the earlier
defined point, in which the center is located, and by the rotation angle relatively
the primal system.
Format:
Oi = Pj, Aa
2 - 11
2 Geometrical language description
2 - 12
Definition operators of geometrical elements 2
1.2 POINT ASSIGNMENT
Format:
Pi = Xx, Yy
Format:
Pi = Xx, Yy, Oi
2 - 13
2 Geometrical language description
Format:
Pi = Mm, Aa
Mm length of a vector, which connects the defined point with the beginning
of coordinates
Aa an angle between a vector and the positive direction of the X axis
Format:
Pi = Mm, Aa, Pj
Mm length of a vector connecting the defined point and the earlier defined
point
Aa an angle between a vector and the positive direction of the X axis
Pj the earlier defined point
2 - 14
Definition operators of geometrical elements 2
n In the relative coordinate system
Format:
Pj = Mm, Aa, Oi
Mm length of a vector connecting the defined point and the earlier defined
point
Aa an angle between a vector and the positive direction of the X axis
Oi the earlier defined coordinate system
Format:
Pi = Pj, Xx, Yy
2 - 15
2 Geometrical language description
Format:
Pi = Li, Lk
1.2.5 Point, defined by polar coordinates relatively the earlier defined point
Format:
Pi=Pj,Pk,Aa
Format:
Pi = Cj
2 - 16
Definition operators of geometrical elements 2
1.2.7 Point assignment by intersection of a line and a circle
A line and a circle usually intersect in two points. In order to determine the
number of a point of intersection, it is necessary to look along a line at
that direction, at which the line enters into the point assignment operator.
Thus, one of point can be selected by indicating a corresponding sign of a
line in the point assignment operator. Positive direction of a line accepts
in the operator as default. To indicate a negative direction it is necessary
to put the - symbol before the identifier of a line.
Format:
Pi = Lj, Ck
2 - 17
2 Geometrical language description
Format:
Pi = Cj, Ck
Format:
Pi = Pj, Lk <parameters>
2 - 18
Definition operators of geometrical elements 2
n A point symmetrical to the present point relatively one of coordinte axes
Formats:
Pi = Pj, LX
Pi = Pj, LY
n A being assigned point is located in a new coordinate system likewise the initial
point in the primal
Format:
Pi = Oi, Pk
2 - 19
2 Geometrical language description
n A being assigned point is located in a new coordinate system likewise the initial
point in the indicated defined system
Format:
Pi = Oj, Pk, On
1.2.11 Point assignment, lying on a circle under the defined central angle
Format:
Pi = Ci, Aa
2 - 20
Definition operators of geometrical elements 2
1.2.12 Point, defined by one of coordinates and lying on a line
Format:
Pi = Xx, Li
Xx - a X coordinate
Li the earlier defined line
Format:
Pi = Yy, Lia
2 - 21
2 Geometrical language description
1.2.13 Assignment of a point, lying on a line at distance from the earlier defined
point
Format:
Pi = Lj, Mm, Pk
Format:
Pi = Kj, Nn
To select one point from the points of intersection, One should indicate
the number of a sought point in direction of a line. When counting points of
intersection, it is necessary to consider the following rules:
· If one of sections of a contour belongs to a line, then points of
intersection are the first and the final points of the section
· If a line passes through the point of intersection of two adjoining
elements of a contour, then only one point is counted
· If a line passes through a point of intersection of two not adjoining
elements of a contour, then both points are counted
2 - 22
Definition operators of geometrical elements 2
Format:
Pi = Kj, Lt, Nn
Format:
Pi = Kj, Ct, Nn
2 - 23
2 Geometrical language description
Format:
Pi = Kj, Kt, Nn
2 - 24
Definition operators of geometrical elements 2
1.2.19 Touch point of two contours in transition of one of them towards the
indicated direction until collision with the second
Format:
Pi = Kj,Kk,Aa
1.2.20 Point, laying on a contour at the indicated distance along a contour from
the earlier defined point
Format:
P(i) = K(k),P(j),Mm
Format:
Pi=Pj,Pk,Mm
2 - 25
2 Geometrical language description
Format:
Pi=Pj,Ck
2 - 26
Definition operators of geometrical elements 2
1.3 LINE ASSIGNMENT
Format:
Li = Pi, Pk
If an identifier of the A angle enters an operator with the - symbol, then
the angle counts out clockwise.
n A line passing through a point under the defined angle to the X axis
Format:
Li = Pi, Aa
2 - 27
2 Geometrical language description
n A line passing through a point, defined by coordinates under the defined angle
to the X axis, in the relative coordinate system
Format:
Li = Xx, Yy, Aa, Ok
Usually only two lines pass through a point and are tangent to a circle. In
order to select one of them, it is necessary to define with which sign the
identifier of the circle should enter an operator. Sign + is not compulsory.
A circle has the sign + if in the point of touching with a line, the positive
direction of a circle coincides with direction of the line. At that, the direction
of the line is from the first element to the second.
A circle has - sign, if in the point of touching with the defined line directions
are diverse.
2 - 28
Definition operators of geometrical elements 2
Formats:
Li = Pj, Ck
Li = Ck, Pj
Two lines tangent to a circle under the defined angle are possible. To
select one of them it is necessary to define the sign of the circle, analogically
to the previous paragraph.
Format:
Li = Cj, Aa
Usually, exist only four lines tangent to two circles. Selection of one of
them can be done by specification of signs of circles and the order of their
inclusion into an operator. To define the order of specification of circles in
the operator, it is necessary to look along the positive direction of a line.
The order of touch points corresponds to the order of specification of circles
in the operator.
2 - 29
2 Geometrical language description
Format:
Li = Cj, Ck
The M parameter is the distance between lines. M is positive, if a being
defined line is on the left from the initial line, in coincidence of a view and
the direction of a line. M is negative, if a being defined line is on the right
from the initial line, in coincidence of a view and the direction of a line.
n A line, parallel to one of coordinate axes, passing to the defined distance from
the axis.
Li = Lx, Mm
Li = Ly, Mm
2 - 30
Definition operators of geometrical elements 2
n A line, parallel to an arbitrary defined plane, passing to the defined distance
Format:
Li = Lj, Mm
Two lines, tangent to a contour under the defined angle are possible. To
select one of them it is necessary to define the sign of a contour in the
operator.
The sign is positive, if a being defined line is on the left from a contour, in
coincidence of a view and a positively directed being defined line
The sign is negative, if a being defined line is on the right from a contour,
in coincidence of a view and a positively directed being defined line.
Format:
Li = Kj, Aa
2 - 31
2 Geometrical language description
Two lines passing through a point and tangent to a contour are possible.
To select one of them it is necessary to define a sign of a contour in the
operator.
The sign is positive, if a being defined line is on the left from a contour,
when looking from a point to he contour.
The sign is negative, if a being defined line is on the right from a contour,
when looking from a point to the contour.
Format:
Li = Pk,Kj
Format:
Li = Kj, Nn
2 - 32
Definition operators of geometrical elements 2
1.3.10 Line defined by coefficients of a normal equation of a line
Format:
Li = a, b, c
Format:
Li=Lj,Xx,Yy
Eample: l2=l1[-0.7,0.5,10],X50,Y20
Format:
Li=Lj,Pk,Aa
Example: l1=l3[ly,m0],p1[0,0],a20
l2=l4[lx,m0],p1,a4
Format:
Li=Lj,Pk,Mm
2 - 33
2 Geometrical language description
Example: l1=l3[lx,m50],p1[0,0],m2
l2=l4[ly,m50],p1,m0.5
2 - 34
Definition operators of geometrical elements 2
1.4 CIRCLE ASSIGNMENT
Format:
Ci = Xx, Yy, Rr
Format:
Ci = Pj, Rr
2 - 35
2 Geometrical language description
Format:
Ci = Cj, Lk
Format:
Ci = Cj, Mm, Aa
2 - 36
Definition operators of geometrical elements 2
1.4.4 Circle with the defined center, tangent to a line
Formats:
Ci = Pj, Lk
Ci = Xx, Yy, Lk
Usually, exist only two of such circles. In the present variant, a being
defined circle has external touch with an earlier assigned, in another
internal. To select the external touch it is necessary to define the - sign
for the initial circle in the operator.
Format:
Ñi = Pj, Ck
2 - 37
2 Geometrical language description
The order of recording of lines is not important. Signs of lines in the circle-
defining operator are the indications of coincidence or not coincidence of
direction of a line and a being defined circle in the touch point. If in the
touch point directions do not coincide, then the line has the - sign.
Format:
Ñi = Lj, Lk, Rr
2 - 38
Definition operators of geometrical elements 2
Format:
Ñi = Cj, Ck, Rr
1.4.8 Circle of the defined radius, tangent to the earlier defined line and circle
Formats:
Ci = Lj, Ck, Rr
Ci = Ck, Lj, Rr
2 - 39
2 Geometrical language description
1.4.9 Circle of the defined radius, passing through a point and tangent to a line
Formats:
Ñi = Pj, Lk, Rr
Ci = Lk, Pj, Rr
1.4.10 Circle of the defined radius, passing through a point and tangent to a
circle
2 - 40
Definition operators of geometrical elements 2
Formats:
Ci = Pj, Ck, Rr
Ci = Ck, Pj, Rr
Format:
Ci = Pj, Pk, Rr
2 - 41
2 Geometrical language description
Format:
Ci = Cj, Mm
1.4.13 Circle with a center in the defined point and tangent to a contour
If an identifier of a contour enters the operator with the sign +, then the
touch is internal, otherwise external.
Format:
Ci = Pj, Kk
2 - 42
Definition operators of geometrical elements 2
1.4.14 Circle, as an element of the earlier defined contour
Format:
Ñi = Kj, Nn
Format:
Ci=Cj,Pk,Aa
Example: c1=c3[0,40,30],p1[0,0],a20
c2=c4[60,0,50],p1,a40
Format:
Ci=Cj,Pk,Mm
Example: c1=c3[50,0,30],p1[0,0],m0.5
c2=c4[0,50,20],p1,m2
2 - 43
2 Geometrical language description
2 - 44
Definition operators of geometrical elements 2
1.5 CIRCLE, DEFINED FROM THE CONDITION OF THREE
CONTACTS
To select one of possible circles it is necessary to define correctly signs
of parameters (if they are not points) and their sequence.
Definition of a sign of a line (ref. in the paragraph Circle of the defined
radius, tangent to two lines) and sign of a circle (ref. in the paragraph
Circle of the defined radius, tangent to two circles).
To select the correct sequence of parameters in the operator it is necessary
to enumerate them, starting from anyone, in the order of their contact with
a being defined circle in rounding counter-clockwise.
1.5.1 Circle, passing through two points and tangent to the present circle
Formats:
Ci = Pj, Pk, Cn
Ci = Pj, Cn, Pk
Ci = Cn, Pj, Pk
2 - 45
2 Geometrical language description
1.5.2 Circle, passing through two points and tangent to the present line
Formats:
Ci = Pj, Pk, Ln
Ci = Pj, Ln, Pk
Ci = Ln, Pj, Pk
1.5.3 Circle, passing through one point and tangent to two lines
Formats:
Ci = Pj, Lk, Ln
Ci = Lk, Pj, Ln
Ci = Lk, Ln, Pj
2 - 46
Definition operators of geometrical elements 2
1.5.4 Circle, passing through one point and tangent to two circles
Formats:
Ci = Pj, Ck, Cn
Ci = Ck, Pj, Cn
Ci = Ck, Cn, Pj
1.5.5 Circle, passing through one point and tangent to a line and a circle
Formats:
Ci = Pj, Ck, Ln
Ci = Ck, Pj, Ln
Ci = Ck, Ln, Pj
Ci = Pj, Ln, Ck
Ci = Ln, Pj, Ck
2 - 47
2 Geometrical language description
Formats:
Ci = Cj, Ck, Ln
Ci = Cj, Ln, Ck
Ci = Ln, Cj, Ck
Formats:
Ci = Cj, Lk, Ln
Ci = Lk, Cj, Ln
Ci = Lk, Ln, Cj
2 - 48
Definition operators of geometrical elements 2
1.5.8 Circle, passing through three points
Format:
Ci = Pj, Pk, Pn
Format:
Ci = Lj, Lk, Ln
2 - 49
2 Geometrical language description
Formats:
Ci = Cj, Ck, Cn
Ci = Cj, Ck, Cn, N2
2 - 50
Definition operators of geometrical elements 2
1.6 CONTOUR
n Operator creation
2 - 51
2 Geometrical language description
2 - 52
Definition operators of geometrical elements 2
1.7 CONTOUR, DEFINED BY MULTITUDE OF POINTS
Formar:
Ki = Pj, Pk,..., Pn
1.7.2 Spline
The first parameter in an operator is the M identifier, which indicates the
magnitude of deviation at approximation by spline sections broken line.
After that follows the initial condition (line or circle), then enumeration of
points at that sequence, at which they should be connected at spline
interpolation broken line. The operator finishes by definition of condition
on the end of spline - broken line (line or circle).
The first point must lie on the element, defining initial condition
The last point must lie on the element, defining final condition
Format:
Ki = Mm, Lt, Pj, Pk,..., Pn, Lq
Ki = Mm, Ct, Pj, Pk,..., Pn, Lq
Ki = Mm, Ct, Pj, Pk,..., Pn, Cq
Ki = Mm, Lt, Pj, Pk,..., Pn, Cq
2 - 53
2 Geometrical language description
Formats:
Ki = Lt, Pj, Pk,..., Pn
Ki = Ct, Pj, Pk,..., Pn
Format:
Ki = Mm, Pi, Pj, Pk
2 - 54
Definition operators of geometrical elements 2
1.8 MODIFICATION OF A CONTOUR
Geometrical processor allows to assign contours, as modification of earlier
defined contours. This feature includes the following means:
· Parallel transfer
· Transfer rotation
· Transfer in relative coordinate system
· Assignment of a contour of an axial symmetry
· Creation of an equidistant contour
· Multiple rotation with joining
· Multiple transfer with joining
· Contour defined by transfer of the initial contour to defined
direction untill collision with another contour
· Change of direction of rounding
· Joining of contours
· Selection of a contour, as a sub-multitude of earlier defined
contour
n Assignment of parallel transfer by transferences along the X and Y axes of
the initial contour
Format:
Ki = Kj, Xx, Yy
2 - 55
2 Geometrical language description
Format:
Ki = Kj, Aa, Mm
Format:
Ki = Kj, Pk, Pn, Aa
2 - 56
Definition operators of geometrical elements 2
1.8.4 Transfer of a contour to the relative coordinate system
n Assigning of a contour by transfer of the initial contour from the primal system to
the relative
Format:
Êi = Oj, Kk
Format:
Ki = Oj, Kk, On
2 - 57
2 Geometrical language description
Format:
Ki = Kj, Lx
Ki = Kj, Ly
Format:
Ki = Kj, Lk
2 - 58
Definition operators of geometrical elements 2
1.8.5 Creation of an equidistant contour
Format:
Ki = Kj, Ìì {, ANG a}
Mm a value of equidistant
a an angle of rounding
If an angle between neighbouring elements is less than a, then adds an
arc of rounding
2 - 59
2 Geometrical language description
· The initial and final points of the initial contour must be equally
distanced from the point of rotation center
Format:
Ki = Kj, Pk, Nn
Format:
Ki = Kj, Nn
Nn number of tansfers
1.8.8 Contour defined by transfer of the initial contour to the defined direction
up to the collision with another one
Format:
Ki = Kj, Kk, Aa
2 - 60
Definition operators of geometrical elements 2
1.8.9 Change of a direction of rounding
This method allows to assign a contour, coinsiding with the initial and
possessing of opposite direction of rounding
Format:
Ki = - Kj
If sign - is not defined, then a being defined contour will be identical to
the initial.
Format:
Ki = Kj, Kk,..., Kn
Format:
Ki=Kj,Pk,Mm
2 - 61
2 Geometrical language description
Format:
Ki = Kj, Nn, Nm
Format:
Ki = Kj, Pk, Pl
Format:
Ki=Kj,Nn,Rr
Example: k1=p[0,0],p[40,0],p[40,-50],p[-40,-50],p[-40,-70]
k2=k1,n(2),r(10)
2 - 62
Definition operators of geometrical elements 2
1.9 GEOMETRICA2L FUNCTIONS
Geometrical functions are meant for transformation of geometrical data
types into real data types. In the language of a dialogue monitor with a
fully loaded geometrical process, it is allowed to use geometrical functions
equally to the standard matheatical ones. (reference: description of the
language of a dialogue monitor of the SPRUT package).
2 - 63
2 Geometrical language description
Distance has a sign corresponding to the direction fron the first point to
the second
Format:
X[Pi,Pj], Y[Pi,Pj],
X[Pi,Cj], Y[Pi,Cj],
X[Ci,Cj], Y[Ci,Cj]
Example: p1=100,100
p2=-100,-100
c1=x50,y0,r50
c2=x-50,y0,r30
xPP=X[p1,p2]
yPP=Y[p1,p2]
xPC=X[c1,p1]
yPC=Y[p1,c1]
xCC=X[c1,c2]
yCC=Y[c1,c2]
2 - 64
Definition operators of geometrical elements 2
2 - 65