Three-dimensional machining method

Abstract: A three-dimensional machining method in which paths of the center of a machine tool are calculated from at least one defined curve to machine a surface which is smooth and includes the defined curve. For continuous machining of a first surface and a second surface, the intersection of a tool center path to machine the first surface and the offset surface of the second surface is calculated, and the intersection of a tool center path to machine the second surface and the offset surface of the first surface is calculated. Then, a tool center path to create a connecting surface between the intersections is generated.

Description: The present invention relates to a three-dimensional machining method for continuous machining of a first surface and a second surface. Recently, computerized three-dimensional machining has been developed for practical use. In the machining, a computer calculates a path of the center of a machine tool, and the tool moves in accordance with the calculated path to machine a surface. A surface to be machined is defined by control factors, and a path of the tool center is calculated from the control factors. Then, the tool follows the calculated path. In a conventional method, three-dimensional data are used for accurate machining. More specifically, every check point on the surface to be machined is defined by x, y and z coordinates, and the three-dimensional data on all the points are stored in the computer. Then, a path of the tool center is calculated from the data, and the tool or a workpiece is moved to follow the path. The tool center path calculation is based on intersection calculation. Calculation of the intersection of a line and a curved surface is herewith described. Generally, a curved surface cannot be entirely expressed by a single equation. Fig. 30 shows a conventional method of intersection calculation. A curved surface #s is divided into small planes (polygons) 1, 2, 3 --- n, and every polygon is checked whether to intersect a line 1. In the example of Fig. 30, the intersection of the line 1 and the surface #s is located in polygon 21. In this way, where a curved surface intersects a line is figured out. In order to improve the accuracy of machining which uses the intersection calculation, a curved surface must be divided into as small polygons as possible. However, this results in charging the computer with such an enormous volume of processing that a 16-bit computer cannot handle or that even a large computer takes a long time to complete. The volume of processing handled by the computer must be in accordance with the accuracy of the machine tool. If the machine tool has a low accuracy, minute calculation through an enormous volume of processing will be in vain. On the other hand, if the machine tool has a high accuracy, the computer must be large enough to make minute calculation, though the large computer cannot increase the machining speed. Another issue in the machining is transference of machining from a surface to another. Referring to Fig. 31, it is a big issue at what timing the machine tool transfers from a path along a surface #i (indicated with arrow a) to a path along a surface #j. Conventionally, the z values of the surface #i and the surface #j are compared at every check point, and the machining is progressed along the surface which has a larger or a smaller z value. Whether selecting a larger z value or a smaller z value depends on the program preset by the operator. Additionally, tool interference must be checked at every check point. Thus, since the processing must be performed at every check point, the calculation speed is low. Moreover, the transference of machining cannot be performed at the accurate timing. Referring to Fig. 31, when the center of the machine tool comes to a check point P₁, the machine tool will interfere with the surface #j, that is, the machine tool will make a recession on the surface #j. When the center of the machine tool comes to a check point P₂, the machine tool will interfere with the surface #i. Therefore the transference of machining from the surface #i to the surface #j starts at a check point P₃ immediately before the point P₂ and finishes at a point P₄ where the interference of the machine tool with the surface #i will not occur. In this way, however, the shadowed area in Fig. 31 is left unmachined. EP-A-0075031 discloses a method of forming curved surfaces in which external shaped curves of the 3-dimensional curved body are created successively at a predetermined pitch and a plurality of these external shaped curves are collected together to create a curved surface of the curved body. An object of the present invention is to provide a three-dimensional machining method wherein a machine tool can perform accurate machining controlled by a computer which performs a small volume of processing with fewer data. Another object of the present invention is to provide a three-dimensional machining method wherein a transferring point of machining from a surface to another can be judged through a small volume of processing. These objects are achieved by the three-dimensional machining method for continuous machining of a first surface and a second surface according to claim 1. According to the method, when machining is to progress from a first surface to a second surface continuously, the intersection of a tool center path along the first surface and an offset surface of the second surface and the intersection of a tool center path along the second surface and an offset surface of the first surface are calculated in advance. Machining of the first surface is continued with no checks until the machine tool comes to the intersection of the tool center path along the first surface and the offset surface of the second surface. The machine tool starts creating a connecting surface at the intersection of the tool center path along the first surface and the offset surface of the second surface and finishes creating the connecting surface at the intersection of the tool center path along the second surface and the offset surface of the first surface. Thereafter, the machine tool follows the tool center path along the second surface. These and other objects and features of the present invention will be apparent from the following description with reference to the accompanying drawings, in which: Figs. 1 through 29 show an exemplary three-dimensional machining method according to the present invention; Fig. 1 is a schematic view of a machining apparatus; Fig. 2 is an explanatory view of the Cauchy's method used for intersection calculation; Fig. 3 is a view showing a way of defining a curve; Fig. 4 is a view showing a way of defining a plane curve; Fig. 5 is a view showing a way of recognizing a plane curve; Fig. 6 is a view showing another way of recognizing a plane curve; Fig. 7 is an explanatory view of a section curve; Fig. 8 is a view showing a way of defining a surface; Fig. 9 is a view of a created surface; Fig. 10 is an explanatory view of the created surface; Fig. 11 is a view explaining interpolation; Fig. 12 is a view of a plane which is a defined surface; Fig. 13 is a view of a surface of revolution which is a defined surface; Fig. 14 is a view of a conical surface which is a defined surface; Fig. 15 is a view of an R-surface which is a connecting surface; Fig. 16 is a view showing a direction of arcs of the R-surface; Fig. 17 is a view showing a way of creating an R-surface among more than two surfaces; Fig. 18 is an explanatory view of a machining path; Fig. 19 is an explanatory view of a tool center path; Fig. 20 is an explanatory view of a machining path; Fig. 21 is an explanatory view of an offset point; Fig. 22 is a view showing a way of generating a machining path; Fig. 23 is a view showing transference of machining from a surface to another; Fig. 24 is a view showing the transference of machining; Fig. 25 is a view showing a case wherein the transference of machining is impossible; Figs. 26a and 26b are views showing the transference of machining from a surface to a vertical plane; Fig. 27 is a view showing continuous machining of some surfaces; Fig. 28 is a view showing a way of bounding a surface; Fig. 29 is a view showing a way of determining the sequence in which surfaces are machined; Fig. 30 is a view showing a conventional intersection calculation method; and Fig. 31 is a view showing how machining transfers from a surface to another in a conventional machining method. [Best Mode for Carrying out the Invention] An exemplary three-dimensional machining method according to the present invention is hereinafter described. Machining Apparatus Fig. 1 is a schematic view of a machining apparatus. An apparatus body 1 has a work holder 3 on a base 2. A machine head 5 with a cutting tool 6 is disposed on a column 4. The work holder 3 is driven by an x-axis DC motor 10 and a y-axis DC motor 11 to move in the x and y directions. The machine head 5 is driven by a z-axis DC motor 12 to move in the z direction. The speed is controlled in accordance with signals which are sent from control units 15, 16 and 17 to the motors 10, 11 and 12. An input/control system comprises a 16-bit computer 20 and a control board 22. The control board 22 has an operation panel 23 and incorporates a CPU 24. The CPU 24 receives data from the computer 20 through an input port a and sends signals to the control units 15, 16 and 17 through output ports b, c and d. Intersection Calculation Intersection calculation made by the computer 20 is described. According to the present invention, in dividing a surface to be machined into polygons, a conventional analytical method such as the Cauchy's method is used. Data required for defining a surface to be machined is processed from data about at least one defined curve which is provided as a control factor, and the Cauchy's method is used for the data processing. In other words, the location of the intersection of the curve and the surface is figured out by the Cauchy's method. Referring to Fig. 2, a curved surface #s is divided into four polygons by line segments A and B, and which polygon intersects a line 1 is figured out. If the intersection is judged to be in a polygon #s₁ (shadowed from upper-right to lower-left), the polygon #s₁ is divided into four polygons in the same manner so that the location of the intersection will be figured out in more detail. If the intersection is judged to be in a polygon #s₁₁ (shadowed from upper-left to lower-right), the polygon #s₁₁ is further divided into four polygons so that the location of the intersection will be figured out more accurately. With repetition of the processing, the accuracy of the intersection calculation is improved. Every time the processing is performed, the intersection calculation becomes four times as accurate as before the processing. When the processing is repeated n times, the intersection calculation becomes 4 n times as accurate as before the repetitions of processing. Thus, compared with a conventional intersection calculation method, accuracy can be achieved with a small volume of processing in this method. Definition of a Curve The following describes how to define a curve which is to be used as a control factor. A curve is projected onto xy, xz and yz planes, and thereby the curve can be illustrated as plane curves on the respective planes. An and curve is formed by at least two of the three plane curves, and in this way, the curve is defined three-dimensionally by the and curve. Fig. 3 shows how to define a curve C. The curve C is projected onto the xy, xz and yz planes, and thus obtained curves are denoted by Cxy, Cxz and Cyz respectively. In this example, the curve C is defined by an and curve formed by the curves Cxy and Cxz. From x = α , y = β can be obtained with reference to the curve Cxy, and z = γ can be obtained with reference to the curve Cxz. Thus, a point (α, β, γ) on the curve C can be obtained. A curve can be defined three-dimensionally in this way. Next, calculation of the intersection of the defined curve and a plane is described. First, the curve is judged whether to be a plane curve or not. In a conventional three-dimensional machining method, any curve is handled as a space curve, that is, handled three-dimensionally and analytically, while in this method, a plane curve is handled two-dimensionally and algebraically. Fig. 4 shows a curve C, which is a circle on a plane α . In the conventional method, the curve C is handled analytically. In this method, however, the curve C is handled two-dimensinally and algebraically because it is a plane curve (circle). Then, in calculating the intersection of the curve C and a plane β , the curve C is handled as a circle on the plane α . Needless to say, algebraic processing is easier and more accurate than analytical processing. The recognition of a plane curve is made from: (1) three views of the curve on the xy, xz and yz planes, or (2) location of all the points of the curve. First, the recognition of a plane curve is tried to be made from the point (1). When a curve is projected onto the xy, xz and yz planes, if a straight line is obtained on one of the planes, it can be judged that the curve exists on a plane perpendicular to the line. For example, a curve C shown in Fig. 5 can be illustrated as a straight line Cxy on the xy plane, and therefore it can be judged that the curve C is a plane curve which exists on a plane α perpendicular to the line Cxy. Most plane curves which are used as control factors can be recognized in this way. If the recognition of a plane curve cannot be made from the point (1), the point (2) is taken in consideration. Three points of the curve C are picked up to determine a plane α , and it is judged whether all the other points of the curve C are located on the plane α . If all the points of the curve C are located on the plane α , the curve C can be judged to be a plane curve. As shown in Fig. 6, three points a, b, c of the curve C determines a plane α , and it is judged whether all the other points of the curve C exists on the plane α . If the curve C is judged to be a plane curve on the plane α , a u-axis and a v-axis are set on the plane α so that the curve C can be handled as a plane curve on the uv coordinate system plane. Further, a w-axis is set so that intersection calculation with respect to the curve C can be performed in the o′-uvw coordinate system. A section is a view obtained by cutting a final shape of a workpiece by a plane, and an outline of the section is referred to as section curve. Accordingly, the section curve is a plane curve. The section curve is used as a control factor. Referring to Fig. 7, a final shape of a workpiece is cut by a plane α such that the plane α intersects a curve b, and a curve s appears on the plane α as an outline of the section, i.e., a section curve. A u-axis and a v-axis are set on the plane α so that the curve s can be handled as a plane curve on the uv coordinate system plane, and further a w-axis is set so that intersection calculation can be performed in the o′-uvw coordinate system. Then, data according to the o′-uvw coordinate system are converted into those according to the o-xyz coordinate system. Definition of a Surface The following describes how to define a surface. A surface to be machined must be defined so as to include all curves which are control factors. Definition of a Surface Referring to Fig. 8, how to define a surface is described. A surface #s is defined by variations λ and µ which are non-parametric with respect to a coordinate system. The regions of λ and µ are as follows: 0 ≦ λ ≦ 1 0 ≦ µ ≦ 1 The surface #s is formed by curves in directions of λ and µ. When values of λ and µ are determined, a point P on the surface #s is determined. This is expressed by P = P(λ, µ) . When λ = λ₀ , points P(λ₀, µ) (0 ≦ µ ≦ 1) form a curve on the surface #s extending in the direction of µ. This curve is expressed by c(λ₀, µ). When µ = µ₀ , points P(λ, µ₀) (0 ≦ λ ≦ 1) form a curve on the surface #s extending in the direction of λ. This curve is expressed by c(λ, µ₀). Curves c(λ, 0) and c(λ, 1) are referred to as b₁-curve and b₂-curve respectively. Curves c(0, µ) and c(1, µ) are referred to as s₁-curve and s₂-curve respectively. A curve extending in the direction of λ is referred to as b-curve, and a curve extending in the direction of µ is referred to as s-curve. The b-curve and the s-curve can be expressed as follows: b = b(λ) s = s(µ) Classification of Surfaces Surfaces are classified into three kinds: (1) created surface, (2) defined surface and (3) connecting surface. In a conventional method, such classification of surfaces has not been done, and any surface has been handled as a set of points. According to the present invention, a surface is made based on at least one control factor (defined curve) and the intersection calculation using the Cauchy's method. The following describes the created surface, the defined surface and the connecting surface. (1) Created Surface A created surface is a surface which is formed by interpolating curves among some defined curves (control factors). Fig. 9 shows a created surface. Curves b₁, b₂, s₁ and s₂ are control factors. By interpolating s-curves between the curves s₁ and s₂ along the curves b₁ and b₂, a created surface is formed as a set of s-curves. Specifically, if a condition of a point P(λ, µ) with respect to the directions of λ and µ is determined, the surface is determined. In other words, as shown in Fig. 10. if an s-curve of λ = λ, i.e., c(λ, µ) is determined, the surface is determined. The b₁-curve is defined in an o′-x′y′z′ coordinate system (0′ = b₁(0)). An s-curve is defined in a Ps-uvw coordinate system ( Ps = s(0) ). The Ps-uvw coordinate system is set for every s-curve. An s-curve is determined from the s₁-curve or the s₂-curve and the location of Ps on the b₁-curve, i.e., Ps = b₁(λ) . This processing is called interpolation. The interpolation is carried out such that a smooth curved surface is created and that the created surface includes the control factors. Specifically, the created surface must meet the following conditions: if Ps = b₁(0), s = s₁; and if Ps = b₁(1), s = s₂. A point on the s₁-curve ( P₁ = s₁(µ) ) and a point on the s₂-curve ( P₂ = s₂(µ) ) are determined from the control factors. Then, points on s-curves ( P = s(µ) ) can be interpolated between the points P₁ and P₂. Now, interpolation is described in more detail. Interpolation is to determine a state on the way from a state of 0 to a state of 1 of a point or a curve. Accordingly, an equation expressing the variation of the state should be figured out for the interpolation. Supposing that a point or a curve in the state of 0 (s = 0) is ξ₀, that a point or a curve in the state of 1 (s = 1) is ξ₁ and that a point or a curve in an in-between state is ξ, the interpolation can be expressed by the following equation: ξ = ξ₀(0-1) ϑ (s)[ξ₁(1-0)ξ₀] (0-1): variation from 0 to 1 (1-0): variation from 1 to 0 ϑ (s): interpolation function The interpolation function ϑ (s) must meet conditions that it has continuity from the state of 0 (s = 0) to the state of 1 (s = 1), that ϑ (0) = 0 and that ϑ (1) = 1. In other words, ϑ (0) = 0 and ϑ (1) = 1 must be met, while curves therebetween can be interpolated in any manner. ϑ (s) = s (proportional interpolation) is the most ordinary interpolation function (see Fig. 11). Some interpolation programs which have different interpolation functions are stored in the computer, and the operator selects one of them. (2) Defined Surface A defined surface is a surface which is formed by only defined curves. For example, a circular cylinder is a defined surface. Control factors of a created surface are only some defined b-curves and s-curves, while control factors of a defined surface are all the b-curves and s-curves. (a) Plane Planes are a kind of defined surfaces. Planes are classified into bounded planes and ordinary planes. An ordinary plane is a space plane which is not bounded, and its direction cosine is a control factor of the plane. A bounded plane is a region enclosed by a plane closed curve. In Fig. 12, a region enclosed by a closed curve (b₁-curve) is a bounded plane, and it is defined in a uv coordinate system. (b) Surface of Revolution Surfaces of revolution are a kind of defined surfaces. A surface of revolution is a surface which is formed by revolving a plane curve on an axis. In a case of a surface of revolution, all the b-curves are circles or arcs, and that becomes a control factor. As shown in Fig. 13, an s₁-curve is defined on a uw plane, and a v-axis is set to form a uvw coordinate system. All the b-curves are circles on planes parallel with the uv plane. A point on the s₁-curve is expressed by: s₁(µ) = (u, w) In the expression, u is equal to the radius r of a circle which is a b-curve. (c) Conical Surface Conical surfaces are also a kind of defined surfaces. As shown in Fig. 14, a conical surface is a surface formed by two b-curves, b₁ and b₂ which have similar form and s-curves which are straight lines drawn between corresponding points of the similar curves b₁ and b₂. Especially when the curves b₁ and b₂ are congruent, the surface becomes a cylindrical surface. Each s-curve is a line between a point on the b₁ curve ( Ps = b₁(λ) ) and a point on the b₂ curve ( Pc = b₂(λ) ). Accordingly, a point P on the s-curve can be expressed as follows: P = Ps + ε (Pc-Ps) 0 ≦ ε ≦ 1 In other words, the s-curve is a set of points P. All the b-curves and s-curves of a conical surface are control factors. The b₁-curve is defined on a uv plane, and further a w-axis is set to form a uvw coordinate system. As described above, the be-curve of a defined surface is defined in the o′-uvw coordinate system, and intersection calculation is performed in the o′-uvw coordinate system. Then, the data based on the o′-uvw coordinate system are converted into those in the o-xyz coordinate system. Such classification of surfaces has not been used in any conventional three-dimensional machining method, and therefore any surface has been defined in the o-xyz coordinate system. In such a conventional method, the accuracy of the intersection calculation is lower than that of the present invention. For example, although every b-curve of a surface of revolution is a circle, the b-curve has been handled as a polygon almost a circle in a conventional method. Therefore, the speed and the accuracy of the intersection calculation are low. On the other hand, in the method of the present invention, the intersection calculation is performed in the o'-uvw coordinate system, and every b-curve of a surface of revolution can be handled as a circle. Therefore, the speed and the accuracy of the intersection calculation are high. (3) Connecting Surface A connecting surface is a surface which is created at the intersection of two surfaces to connect the two surfaces smoothly. The most ordinary connecting surface is an R-surface. The R-surface is a curved surface which is formed by arcs extended in a certain direction. The R-surface must be in contact with two surfaces which are to be connected, and the direction of the arcs and the radius of curvature are control factors of the R-surface. Fig. 15 shows an R-surface which connects two surfaces #i and #j. The intersection of the two surfaces #i and #j is expressed by c = c(s) . (a) Contact of the R-surface with the Two Surfaces Here, that the R-surface is in contact with the surface #i means that the R-surface and the surface #i have a common tangent plane at the contact point P. A plane which extends in the direction of arcs and includes the contact point P is a tangent plane of the R-surface and the surface #i at the point P, which means that the R-surface is in contact with the surface #i. The R-surface is in contact with the surface #j in the same manner. (b) Direction of Arcs The direction of an arc is defined as a plane #π on which the arc exists. If no commands on the direction of arcs are given, the direction of arcs is automatically set to be the normal plane of the intersection of the two surfaces #i and #j. Referring to Fig. 16, the direction of an arc at an R-surface starting point (s = 0) is defined as a plane #π₀, and the direction of an arc at an R-surface finishing point (s = 1) is defined as a plane #π₁. Then, the direction of an arc at an in-between point is defined as a plane #π which includes the intersection of the planes #π₀ and #π₁ and a point existing on the intersection c of the surfaces #i and #j. (c) Radius of Curvature Supposing that the radiuses of curvatures in a state of s = 0 and in a state of s = 1 are V₀ and V₁ respectively, the radius of curvature V at a point P (s = s) is expressed as follows: V = V₀ + ϑ (s)(V₁-V₀) ϑ (s): interpolation function On the plane #π extending in the direction of an arc, a u-axis and a v-axis are set, and an o′-uvw coordinate system is formed. Thereby, the intersection of the plane #π and the surface #i will be a curve on the uv plane. Similarly, the intersection of the plane #π and the surface #j will be a curve on the uv plane. Accordingly, an arc of the R-surface must be created on the uv plane. In this way, definition of the R-surface can be handled two-dimensionally. At that time, the plane extending in the direction of an arc and the radius of curvature are control factors. Next, how to create an R-surface among more than two surfaces is described. There may be a case in which creating an R-surface between neighboring first and second surfaces is impossible but creating an R-surface between the first surface and a third surface which is next to the second surface is possible. In this case, if it is possible to designate surfaces to be connected with each other by an R-surface, the first and the third surfaces can be connected by an R-surface. Referring to Fig. 17, it is impossible to create an R-surface between a surface #i and a surface #j, but it is possible to create an R-surface between the surface #i and a surface #k. In this case, the surface #j is not machined. Machining A tool center path is generated by connecting offset points from a surface to be machined. Conventionally, offset points are calculated from all check points on the surface to be machined, and the tool center path is generated by connecting the offset points. According to the present invention, some offset points are calculated from some defined points on the surface, and the tool center path is generated by interpolating points among the calculated offset points. Machining of the surface must be achieved so as to meet control factors of the surface. Specifically, offset points corresponding to the control factors must be accurately calculated, not be interpolated. Occasionally, the machining tool is moved in different directions to machine a surface, and the machining tool passes the same point a plural number of times. The interpolation must be carried out such that the same surface can be made by every machining. Classification of Machining A path of the working end of a machine tool on a surface is referred to as machining path, and a path of the center of the machine tool is referred to as tool center path. Machining is carried out such that the machining path or the tool center path will meet predetermined conditions. The machining is classified into three kinds according to the conditions. (a) Machining Wherein a Machining Path Exists on a Plane As shown in Fig. 18, if a machining path is a plane curve which exists on a plane #i, the machining path is the intersection of the plane #i and a surface #s to be machined. Offset points from some points of the machining path are calculated, and the corresponding tool center path can be obtained by interpolating points among the calculated offset points. If the plane #i is perpendicular to the xy plane, the machining is called horizontal machining. If the plane #i is parallel with the xy plane, the machining is called vertical machining. (b) Machining Wherein a Tool Center Path Exists on a Plane As shown in Fig. 19, if a tool center path exists on either one of the xy, xz and yz planes, the tool center path is the intersection of a plane #i on which the tool center path exists and an offset surface from a surface #s. The corresponding machining path can be obtained by offsetting the tool center path by -r. Since the tool center path exists on one of the xy, xz and yz planes, x, y or z data are fixed. Therefore the tool center path can be defined as a plane (two-dimensional) curve. In converting the data into NC control data, G code (G02, G03) which is a command to draw an arc is used. Thus, it is possible to generate a tool center path with use of fewer data. (c) Machining Wherein a Machining Path Is a Curve in the Directions of λ or µ A surface #s shown in Fig. 20 is formed by curves in the directions of λ and µ. If a curve in the direction of λ, i.e., b-curve or a curve in the direction of µ, i.e., s-curve is a machining path, a curve formed by offset points from the b-curve or the s-curve becomes the corresponding tool center path. In any case of (a), (b) and (c), only limited offset points are calculated to generate a tool center path. What is required to calculate the limited offset points is data only about limited points of a surface to be machined. Offset Point Referring to Fig. 21, how to calculate an offset point is described. An offset point P r from a point P on a surface #s to be machined is defined as a point which is off the point P with a distance r in the direction of the normal of the point P. The point P can be expressed by: P = P(λ, µ) The point P can be expressed by a function of two variations λ and µ , and the function has a partial differential coefficient on the premise that the surface #s is smooth. The normal vector N is expressed as follows: N′ = (ηR/ηλ) × (ηR/ηµ) N = (N′/|N′|) × ε ε : offset direction Accordingly, the point P r can be expressed by: P r = P + r·N Determination of a Curve A tool center path is determined by connecting offset points calculated by the Cauchy's method. The tool center path must be determined so as to meet the following two conditions: (a) including the control factors, and (b) machining out the same surface even after repeated machining in different directions. Since the computer stores data about the control factors, the condition (a) can be surely met. Connecting offset points is not enough to determine the tool center path which meets the condition (b). A curve which becomes a tool center path is determined from a sequence of points and kind of machining. Tool center paths determined in this way must achieve the same surface regardless of the selection of the points and the kind of machining. Since a point P on the surface is defined by λ and µ, a curve should be determined so as to be limited by P(λ, µ ). This does not mean that a ROM of the computer stores data about P(λ, µ). A machining path is a curve on the surface and can be calculated by the Cauchy's method. Offset points are calculated from the curve (machining path), and an offset point P r can be obtained from a point P on the surface. Accordingly, the point P r can be expressed by λ and µ. As shown in Fig. 22, generation of a machining path requires interpolation between points P₁ and P₂ which are on the surface to be machined, and generation of a tool center path requires interpolation between offset points P₁ r and P₂ r . Supposing P₁ = P(λ₁, µ₁) and P₂ = P(λ₂, µ₂) , a curve between the points P₁ and P₂ can be expressed as follows: c = c(s) P₁ = c(0) P₂ = c(1) | λ₁ × µ₂ | ≧ | µ₁ × µ₂ | Thus, the curve between the points P₁ and P₂ can be expressed with generality. In this case, λ can be expressed as follows: λ = λ₁ + s(λ₂-λ₁) By defining the intersections of s-curves and the surface to be machined as P = c(s) , the interpolation between the points P₁ and P₂ is made. Accordingly, the interpolation between the offset points P₁ r and P₂ r is made. Transference of Machining between Surfaces In machining two surfaces continuously, a transference point must be figured out. In a Conventional method, calculation of the transference point is made on every check point based on three-dimensional data about x, y and z values (see Fig. 31). Fig. 23 shows the manner of transference according to the present invention. In the figure, machining is to transfer from a surface #i to a surface #j. According to the present invention, the intersection P₁ of an offset surface #j r of the surface #j and a tool center path along the surface #i is calculated in advance, and the machining of the surface #i is performed with no checks until the machine tool comes to the intersection P₁. Thereby, the machining speed is increased. The intersection P₂ of an offset surface #i r of the surface #i and a tool center path along the surface #j is calculated, and machining is progressed to make a connecting surface between the point P₁ and the point P₂. In this way, transference points P₁ and P₂ can be accurately calculated, and the unmachined area can be remarkably decreased. In addition, the tool interference calculation is practically made when the intersection P₁ is calculated. The intersection P₁ is also a limit point where the tool interference with the surface #i can be prevented. The calculation of the point P₁ is made by the Cauchy's method, and therefore the calculation speed is much higher than that of the conventional method. If no intersection exists between a tool center path and an offset surface of a surface to which the machining is to transfer, the tool center path and the offset surface are extended to calculate a transference point. Fig. 24 shows such a case. In the case of Fig. 24, the machining is to transfer from a surface #i to a surface #j. Pc is the intersection of continuous machining paths on the surfaces #i and #j. The tool center path corresponding to the machining path on the surface #i is extended, and an offset plane of a tangent plane of the surface #j at the intersection Pc is extended. Then, the intersection of the extended tool center path and the extended offset plane is calculated as the transference starting point. Similarly, the tool center path corresponding to the machining path on the surface #j and an offset plane of a tangent plane of the surface #i at the intersection Pc are extended, and the intersection of the extended tool center path and the extended offset plane is calculated as the transference finishing point. As shown in Fig. 25, if no intersection exists between surfaces #i and #j, continuous machining is not performed. After machining the surface #i, the surface #j is machined. As described above, the method according to the present invention is based on total handling of curves and surfaces, not individual handling of machining points. This is because in the method of the present invention, accurate intersection calculation among curves and surfaces is made possible by adopting an analytical method such as the Cauchy's method. In a conventional method, the operator must designate a way of transference of machining. Specifically, z values are compared at every check point, and selection of a higher or a lower value to determine a machining path is according to the way of transference of machining designated by the operator (see Fig. 31). In the conventional method, there are some cases in which designation of the way of transference is impossible. For example, if a surface to which the machining is to transfer is a vertical plane, the z value comparison is impossible, and another way must be taken to determine the machining path. Moreover, comparing z values at every check point increases the volume of processing and accordingly decreases the processing speed. According to the present invention, on the other hand, the operator does not have to designate a way of transference of machining. Determination of a machining path is made not by comparing z values but by calculating intersections among curves and surfaces, and therefore the processing speed is greatly increased. The transference of machining is made as follows according to the present invention. (1) Transference to a Surface Which is Not a Vertical Plane As shown in Fig. 23, a machining path on each surface is calculated, and transference is performed between the intersections P₁ and P₂. (2) Transference to a Vertical Plane Figs. 26a and 26b show transference of machining from a surface #i to a vertical plane #j. Whether the machining is to transfer from the surface #i upward or downward along the vertical plane #j is judged by detecting the intersection of a machining path on the surface #i and the vertical plane #j and the intersection of the machining path and an offset surface #j r of the vertical plane #j. Referring to Fig. 26a, the machining path intersects the vertical plane #j before the offset surface #j r , and in this case, it is judged that the machining is to proceed downward along the vertical plane #j. Referring to Fig. 26b, the machining path intersects the offset surface #j r before the vertical plane #j, and in this case, it is judged that the machining is to proceed upward along the vertical plane #j. Continuous Machining of Some Surfaces Fig. 27 shows continuous machining of surfaces #1, #2 and #3. The sequence in which the surfaces are machined is determined, and the above-described transference from a surface to another is repeated. In the case of Fig. 27, the machining is continued so that the surfaces #1, #2, #3 are machined from #1, #2, #3 and then back to #1. Now, a way of eliminating the necessity for the operator to designate the sequence of surfaces is discussed. In some cases, it is impossible to designate the sequence in which surfaces are machined. Unless the surfaces are bounded, connection of the surfaces cannot be determined. Only if the surfaces are bounded, machining paths on the respective surfaces can be connected with each other at the ends so as to form a curve. In other words, a big issue is how to bound a surface. A way of bounding a surface is to bound the surface by a curve thereon. For example, as shown in Fig. 28, a closed curve C on a surface #s bounds the surface #s. A curve on the surface #s which is a possible machining path is divided by the closed curve C. If the part of the curve which is inside of the closed curve C is determined as the machining path, the surface #s can be bounded. By using the intersection between surfaces as the closed curve C, any surface can be bounded, and the sequence in which a machining path on one surface follows another can be automatically determined. Specifically, as shown in Fig. 29, an end of a curve Ci becomes an end of another curve Cj, and thus, the curves Ci and Cj are connected. By repeating this process, all the curves can be connected automatically, and it is no longer necessary to designate the sequence in which surfaces are machined. Although the present invention has been described in connection with the preferred embodiment above, it is to be noted that various changes and modifications are possible to a person skilled in the art. Such changes and modifications are to be understood as being within the scope of the present invention.

Claims: A three-dimensional machining method for continuous machining of a first surface (#i) and a second surface (#j), comprising the steps of: a) defining said first (#i) and said second (#j) surfaces by defining two variations λ and µ, which are non-parametric with respect to a coordinate system, wherein λ and µ fulfil the following condition: 0 ≦ λ ≦ 1 0 ≦ µ ≦ 1, defining a first plurality of curves (b) extending in direction of λ, whereby each curve (c) of this plurality is defined by c(λ,µ₀), wherein µ₀ is a constant value of µ, defining a second plurality of curves (s) extending in the direction of µ, whereby each curve (c) of this plurality is defined by c(λ₀,µ), wherein λ₀ is a constant value of λ, and forming each of said surfaces (#i,#j) by said first plurality of curves (b) and said second plurality of curves (s); b) defining a plurality of offset points (P r ) with P r = P + r * N, each by defining a point P(λ,µ) on one of said surfaces (#i,#j) to be machined, defining a distance (r) from said point P(λ,µ) in direction of the normal of said point P(λ,µ), said distance (r) being the distance between a working end of a machine tool and a center of said machine tool, and defining a normal vector N; c) defining a first and a second offset surface (#i r ,#j r ) by - defining a parallel surface to said first or second surface (#i,#j), respectively, whereby each parallel surface contains one of said offset points (P r ); d) defining a tool center path by - connecting respective offset points (P r ); e) calculating an intersection (P1) of said tool center path for said first surface (#i) with said second offset surface (#j r ); f) calculating an intersection (P2) of said tool center path for said second surface (#j) with said first offset surface (#i r ); and g) creating said tool center path between said intersections (P1,P2) for creating a connecting surface therebetween to be machined.

Inventors: HONDA KENICHI, HONDA, KENICHI
Applicants: F A LABO KK, KABUSHIKI KAISHA F A LABO
Application year: 1992
Main classification: G05B19
IPC codes: G05B19, B23Q15