Knife contact point construction method based on spherical projection

Through the method based on spherical projection method, the calculation process of tool contact paths is simplified, the complex problem of tool contact path planning in the prior art is solved, and efficient tool contact path planning and step control are realized.

CN115328029BActive Publication Date: 2024-11-05SHANGHAI LYNAC NUMERICAL CONTROL TECH CO LTD
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202210923449.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-08-02
Publication Date
2024-11-05
Estimated Expiration
2042-08-02

AI Technical Summary

Technical Problem

The existing tool contact path planning method is not conducive to building tool contact paths based on actual project requirements, resulting in complex calculations and inefficient efficiency.

Method used

Using the method based on spherical projection method, by reading the model of the workpiece to be processed, adjusting its position, constructing a hemispherical spiral line and a target rectangular area, obtaining a spatial spiral line that characterizes the knife contact path, and simplifying the calculation process of the knife contact path .

Benefits of technology

It realizes efficient calculation of tool contact paths and controllable step distances, simplifies tool contact path planning for workpieces for multi-axis machine tools, and improves machining efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115328029B_ABST
    Figure CN115328029B_ABST
Patent Text Reader

Abstract

The present invention discloses a tool contact point construction method based on a spherical projection method. The tool contact point construction method comprises reading a workpiece model to be processed, adjusting the orientation of the model, constructing a hemispherical spiral line surrounding the model, generating a first point set group on the hemispherical spiral line, and generating a spatial spiral line representing the tool contact point path based on the first point set group and each model triangular facet. The tool contact point construction method according to the present invention simplifies the calculation process of the tool contact point path, has high efficiency, and the step distance of the tool contact path is controllable.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The invention relates to the technical field of numerical control machining, and in particular to a tool contact point construction method based on a spherical projection method. Background Art

[0002] Machining parts using CNC machine tools is a very important part of industrial production. The geometric shapes of the parts to be processed are usually known, and they usually exist in the form of STP or STL files. The tool contact path is a spatial curve, which is the movement path of the tool relative to the part surface during the machining process. However, the existing tool contact path planning is implemented by commercial software, which is not conducive to building the tool contact path according to actual project requirements.

[0003] Therefore, it is urgent to design a new method for constructing knife contacts. Summary of the invention

[0004] The technical problem to be solved by the present invention is to simplify the existing knife contact point construction method and propose a new knife contact point construction method based on spherical projection method.

[0005] The present invention solves the above technical problems by adopting the following technical solutions:

[0006] The present invention provides a knife contact point construction method based on spherical projection method, and the knife contact point construction method comprises the following steps:

[0007] S1: reading a model of a workpiece to be processed, wherein the outer surface of the workpiece to be processed includes at least one plane area, and the model includes information of model triangular facets constituting the outer surface of the workpiece to be processed;

[0008] S2: adjusting the orientation of the model so that any planar area of ​​the workpiece to be processed is located on a plane of the Cartesian coordinate system, and the remaining outer surfaces of the workpiece to be processed are located above the plane of the Cartesian coordinate system;

[0009] S3: constructing a hemispherical helix, wherein the hemispherical helix can surround the model of the workpiece to be processed;

[0010] S4: acquiring a first point set group on the hemispherical spiral line, the first point set group consisting of first point sets corresponding to the model triangular facets one by one, the first point set being defined by a target rectangular area that can just surround the projection of the model triangular facets on the hemispherical spiral line, wherein the projection direction of the model triangular facets is defined by the origin of the Cartesian coordinate system and the lines connecting the vertices of the model triangular facets;

[0011] S5: Obtain a spatial spiral line representing the knife contact path, wherein the first intersection points of the straight line defined by the discrete points in each of the first point sets and the origin and the corresponding triangular facet of the model are collected, and the discrete points in the first point set group are traversed to obtain all the first intersection points, so that all the first intersection points define the spatial spiral line.

[0012] According to some embodiments of the present invention, in step S3, the hemispherical helix satisfies:

[0013]

[0014]

[0015]

[0016] in, and 0≤θ≤0.5π, and R is set to be a model that can surround the workpiece to be processed, V num , U num They represent the number of layers of the hemispherical spiral and the number of points on each layer respectively.

[0017] According to some embodiments of the present invention, the R is set to a model that can just surround the workpiece to be processed.

[0018] According to some embodiments of the present invention, step S4 comprises:

[0019] S41: constructing a hemispherical surface having a radius equal to the spherical radius of the helical line of the hemispherical surface;

[0020] S42: connecting and extending the origin and each vertex of the model triangular facet to obtain three second intersection points on the hemispherical surface, so as to obtain a spherical triangular facet defined by the three second intersection points, wherein the overlapping portion of the spherical triangular facet and the hemispherical spiral line is the projection;

[0021] S43: obtaining the target rectangular area by stepping through the coordinate values ​​of the predetermined rectangular area, wherein the vertices of the predetermined rectangular area are points on the hemispherical spiral line, and the length and width directions of the predetermined rectangular area correspond to the two axial directions of the Cartesian coordinate system.

[0022] According to some embodiments of the present invention, in step 43, when the predetermined rectangular area of ​​the previous step and the predetermined rectangular area of ​​the next step do not surround the model triangular facet and have an overlapping area with the model triangular facet, the predetermined rectangular area of ​​the current step is selected as the target rectangular area.

[0023] According to some embodiments of the present invention, in step 43, the predetermined rectangular area is set by the following steps:

[0024] S431: Collect the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum horizontal coordinate value of all vertices of the spherical triangle patch, and combine the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum horizontal coordinate value in pairs to obtain four preset vertices;

[0025] S432: traverse the points of the hemispherical spiral line to obtain four target vertices closest to the four preset vertices, wherein the four target vertices are selected to define a rectangle.

[0026] On the basis of being in accordance with the common sense in the art, the above-mentioned preferred conditions can be arbitrarily combined to obtain the preferred embodiments of the present invention.

[0027] The positive and progressive effects of the present invention are:

[0028] According to the knife contact point construction method based on the spherical projection method of the present invention, the calculation process of the knife contact point path is simplified, the efficiency is high, and the step distance of the knife contact point path is controllable. BRIEF DESCRIPTION OF THE DRAWINGS

[0029] Figure 1 It is a schematic structural diagram of a workpiece suitable for the knife contact point construction method based on spherical projection method according to a preferred embodiment of the present invention.

[0030] Figure 2 The figure is a flow chart of a knife contact point construction method based on spherical projection method according to a preferred embodiment of the present invention.

[0031] Figure 3 It is a stereoscopic schematic diagram of a hemispherical spiral line in a knife contact point construction method based on spherical projection according to a preferred embodiment of the present invention.

[0032] Figure 4 It is a schematic diagram of model triangle patches and spherical triangle patches of a knife contact point construction method based on spherical projection according to a preferred embodiment of the present invention.

[0033] Figure 5 A schematic diagram of a knife contact point path constructed according to a knife contact point construction method based on spherical projection method according to a preferred embodiment of the present invention. DETAILED DESCRIPTION

[0034] The preferred embodiments of the present invention are further described in detail below in conjunction with the accompanying drawings of the specification. The following description is exemplary and not limiting of the present invention. Any other similar situations shall also fall within the protection scope of the present invention.

[0035] In the following detailed description, directional terms, such as "left", "right", "up", "down", "front", "back", etc., are used with reference to the directions described in the drawings. The components in the various embodiments of the present invention can be placed in a variety of different directions, and the directional terms are used for illustrative purposes rather than limiting.

[0036] See also Figure 1 , which shows a model of a workpiece suitable for the knife contact point construction method based on the spherical projection method of the present invention, which is generally in the shape of a soap with a flat bottom. It should be noted that it is only an exemplary model. In fact, the knife contact point construction method based on the spherical projection method of the present invention is suitable for the knife contact point path planning of a workpiece whose outer surface contains a plane and has no concave outer surface. For example, the outer surface of the workpiece can be presented as a plane without a concave surface as a whole or composed of a convex curved surface and a plane.

[0037] The following combination Figure 2 The steps of the knife contact point construction method based on spherical projection method according to the present invention are shown. Figure 2 As shown, the knife contact construction method includes the following steps:

[0038] S1: Read the model of the workpiece to be processed, wherein the outer surface of the workpiece to be processed includes at least one plane area, and the model includes information of the model triangular facets constituting the outer surface of the workpiece to be processed. Figure 1 In the example of the present invention, the lower surface of the workpiece to be processed is in a flat form (not shown).

[0039] S2: Adjust the orientation of the model so that any plane area of ​​the workpiece to be processed is located on a plane of the Cartesian coordinate system, and the remaining outer surface of the workpiece to be processed is located above the plane of the Cartesian coordinate system (see Figure 1 ). Preferably, the center of the plane of the model and the origin of the Cartesian coordinate system are adjusted to be adjacent to or coincide with each other.

[0040] S3: See Figure 3 , construct a hemispherical helix, wherein the hemispherical helix can surround the model of the workpiece to be processed. Preferably, the constructed hemispherical helix just surrounds the outer surface of the model of the workpiece to be processed.

[0041] S4: See Figure 4, obtain the first point set group on the hemispherical spiral line, wherein the first point set group is composed of each first point set corresponding to each model triangle face Ti, and the first point set is defined by a target rectangular area that can just surround the projection of the model triangle face Ti on the hemispherical spiral line. The projection direction of the model triangle face Ti is defined by the origin of the Cartesian coordinate system and the lines connecting the vertices of the model triangle face Ti. That is, three second intersection points are obtained on the hemispherical surface where the hemispherical spiral line is located by connecting the origin and the straight line defined by the vertices of the model triangle face Ti.

[0042] S5: Obtain the spatial spiral line representing the knife contact path (see Figure 5 Specifically, firstly, the first intersection points of the straight line defined by the discrete points in each first point set and the origin and the corresponding model triangle facet are collected (calculated), and the discrete points in the first point set group are traversed to obtain all the first intersection points, so that all the first intersection points define a spatial spiral line.

[0043] For the hemispherical helix in step S3 above, optionally, it is set to satisfy:

[0044]

[0045]

[0046]

[0047] in, and 0≤θ≤0.5π, and R is set to the radius of the model that can surround the workpiece to be processed, V num , U num They represent the number of layers of hemispherical spirals and the number of points on each layer. It can be understood that

[0048] V num , U num The larger the values ​​of these two data are, the higher the accuracy is, and the greater the amount of calculation of the system is. num It is preferably set to not less than 720, V num It can be set according to the specific conditions such as the size of the product.

[0049] Through the above steps, the tool contact point construction method can quickly obtain the tool contact point path of the multi-axis machine tool processing workpiece. It can be understood that since the number of layers and the number of each layer in the above steps can be arbitrarily set according to needs, the step control of the tool contact point path is realized.

[0050] For step S4 in the above method, preferably, it can be selected to include the following steps:

[0051] S41: Construct a hemispherical surface with a radius equal to the spherical radius of the helical line of the hemispherical surface.

[0052] S42: Connecting the origin and each vertex of the model triangular facet respectively and extending them to obtain three second intersection points on the hemispherical surface, so as to obtain a spherical triangular facet defined by the three second intersection points.

[0053] S43: obtaining a target rectangular area by stepping through the coordinate values ​​of the predetermined rectangular area, wherein the vertices of the predetermined rectangular area are points on the hemispherical spiral, and the length and width directions of the predetermined rectangular area correspond to the two axial directions of the Cartesian coordinate system.

[0054] For the above step 43, the selection of the target rectangular area can be determined according to the following conditions: specifically, when it is determined that the predetermined rectangular area of ​​the previous step and the predetermined rectangular area of ​​the next step do not surround the model triangular facets and have overlapping areas with the model triangular facets, the predetermined rectangular area of ​​the current step is selected as the target rectangular area.

[0055] The predetermined ones in step 43 include:

[0056] S431: Collect the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum horizontal coordinate value of all vertices of the spherical triangle patch, and combine the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum horizontal coordinate value in pairs to obtain 4 preset vertices.

[0057] S432: traverse the points of the helical line of the hemisphere to obtain four target vertices closest to four preset vertices, wherein the four target vertices are selected to define a rectangle.

[0058] It should be noted that in the above description, each horizontal coordinate value and vertical coordinate value do not only represent the coordinate values ​​on two coordinate axes of the X axis, Y axis, and Z axis in the Cartesian coordinate system, but in fact, they can also represent the U and V values ​​of the curved coordinate system. That is, the horizontal coordinate value and the vertical coordinate value also represent the longitude value and the latitude value respectively.

[0059] The step adjustment method in step 43 can be an iterative operation in the manner of sequentially increasing the horizontal coordinate value and the vertical coordinate value (or the vertical coordinate value and the horizontal coordinate value) of the first vertex of the predetermined rectangular area by one unit---increasing the horizontal coordinate value and the vertical coordinate value (or the vertical coordinate value and the horizontal coordinate value) of the second vertex on the diagonal of the above-mentioned first vertex by one unit. For example, firstly, the horizontal coordinate value of the first vertex is increased by 1 unit and then the above-mentioned predetermined rectangular area is adjusted, and then it is determined whether the new predetermined rectangular area can surround the corresponding spherical triangular facet Ti. After judging that the corresponding spherical triangular facet Ti is not surrounded, the vertical coordinate value of the first vertex is increased by 1 unit, and the predetermined rectangular area in the previous step is adjusted, and it is further determined whether the corresponding spherical triangular facet Ti is surrounded. If it is judged that the corresponding spherical triangular facet is still not surrounded, the second vertex on the diagonal of the first vertex is taken, and the predetermined rectangular area is adjusted after increasing its horizontal coordinate by one unit, and then the adjustment is continued with reference to the adjustment process of the above-mentioned first vertex. In the subsequent step adjustment process, the coordinate values ​​of the vertices of the target rectangular area can be obtained by sequentially adjusting the coordinate values ​​of the first vertex and the second vertex several times.

[0060] It should be understood that, in a preferred embodiment, the four target vertices of the preliminary predetermined rectangular area are points on the hemispherical spiral line closest to the four preset vertices obtained by combining the minimum horizontal coordinate value, the maximum horizontal coordinate value, the minimum vertical coordinate value, and the maximum horizontal coordinate value. At this time, the preliminary selected predetermined rectangular area is in fact very close to the target rectangular area, or is already the target rectangular area. Therefore, at this time, only 0 or very few step adjustment processes are required to obtain the target rectangular area. With reference to this process, the number of calculations for traversing all model triangles to obtain the corresponding knife contact points will be significantly reduced, thereby making the generation efficiency of the knife contact point path according to the present invention high.

[0061] The following is Figure 1 The workpiece shown is used as an example to illustrate the construction process of the tool contact path. The construction process is as follows:

[0062] 1. Read the model data in STL format into the computer memory. In the STL model, the surface (curved surface) of the model is composed of a finite number of triangles (model triangles). The number N of model triangles can be extracted from the header information byte segment of the STL file. For ease of description, define the i-th model triangle as T i (i=1,2,…,N).

[0063] 2. Rotate or translate the STL model so that the plane Σ of the STL model is in the XOY plane, the origin of the coordinate system is in the middle of the plane Σ as much as possible, and the surface in other areas is above the XOY plane, as shown in the attached figure. Figure 1 shown.

[0064] 3. Construct a hemispherical space spiral in the Cartesian coordinate system according to the following formula:

[0065]

[0066]

[0067]

[0068] Where R is the radius of the hemispherical helix, and its value depends on the size of the STL model, so that the hemispherical helix can just wrap around the STL model. The value range of is from 0.5π to 0, and At the same time, θ starts from 0 to End, and Among them, V num , U num Respectively represent the number of layers of the hemispherical spiral and the number of points on each layer. At this time, the center of the hemispherical spiral constructed in this way is located at the origin of the coordinate system, and the plane of the hemispherical spiral is located in the XOY plane, as shown in the attached figure. Figure 1 As shown. At this time, the spatial point set representing the hemispherical space spiral can be defined as S. For this point set S, in the zigzag coordinate system, the distribution of its elements (spatial points) in the U and V directions is uniform, which means that each point in S can be located by a two-dimensional index (u, v). For example, i = v × U num +u means that the i-th element in S is located in the v-th layer and u-th column of the spatial spiral. Figure 3 shown.

[0069] 4. T i The three vertices in are connected to the origin of the coordinate system and extended to the hemisphere of radius R, thus forming a new triangular patch L i (i.e., spherical triangular patch), it is easy to know that L i The three vertices of are all located on the sphere with radius R. It should be noted that each point in the point set S is also located on the same sphere, so we can find 4 index numbers v0, v1, u0, u1 (v0, v1, u0, u1 can be combined into 4 points, these 4 points are (vertices of the target rectangular area) to form a rectangular area on the sphere (i.e., the target rectangular area), so that the spherical triangle patch L i It is just inside the target rectangular area, as shown in the attached Figure 4 As shown. Define the set of points in the point set S within the target rectangular area as P i Understandably, P i is a subset of the point set S.

[0070] For each triangle T i , find its corresponding point set P i After that, let the space point A be the point set P i Any element in , connect the coordinate origin and A to form a line segment Γ, and then calculate the line segment Γ and the triangle patch T i The intersection between them is defined as B. Therefore, each point B can be combined to form a new point set Q i It should be noted that B can be empty, which means that the line segment Γ and the triangle patch T i There is no intersection between them. This does not affect the complete projection of the point set S onto the STL model, because P i With P i+1 The intersection of is generally not an empty set, which means that P i Points that are not successfully projected can be i+1 The projection is completed.

[0071] 5. Take the point set Q i (i=1,2,…,N), and the spatial spiral line wrapped around the imported STL surface is obtained, which is the knife contact path, as shown in the attached figure. Figure 5 shown.

[0072] Although the specific embodiments of the present invention are described above, it should be understood by those skilled in the art that these are only examples, and the protection scope of the present invention is defined by the appended claims. Those skilled in the art may make various changes or modifications to these embodiments without departing from the principles and essence of the present invention, and these changes and modifications all fall within the protection scope of the present invention.

Claims

1. A knife contact point construction method based on spherical projection method, characterized in that: The knife contact construction method comprises the following steps: S1: reading a model of a workpiece to be processed, wherein the outer surface of the workpiece to be processed includes at least one plane area, and the model includes information of model triangular facets constituting the outer surface of the workpiece to be processed; S2: adjusting the orientation of the model so that any planar area of ​​the workpiece to be processed is located on a plane of the Cartesian coordinate system, and the remaining outer surfaces of the workpiece to be processed are located above the plane of the Cartesian coordinate system; S3: constructing a hemispherical helix, wherein the hemispherical helix can surround the model of the workpiece to be processed; S4: acquiring a first point set group on the hemispherical spiral line, the first point set group consisting of first point sets corresponding to the model triangular facets one by one, the first point set being defined by a target rectangular area that can just surround the projection of the model triangular facets on the hemispherical spiral line, wherein the projection direction of the model triangular facets is defined by the origin of the Cartesian coordinate system and the lines connecting the vertices of the model triangular facets; S5: Acquire a spatial spiral line representing the knife contact path, wherein the first intersection points of the straight line defined by the discrete points in each of the first point sets and the origin and the corresponding triangular facet of the model are collected, and the discrete points in the first point set group are traversed to acquire all the first intersection points, so that all the first intersection points define the spatial spiral line; Wherein, in step S3, the hemispherical helix satisfies: in, and and R is set to be a model that can surround the workpiece to be processed, V num , U num They represent the number of layers of the hemispherical spiral and the number of points on each layer respectively.

2. The knife contact point construction method based on spherical projection method according to claim 1, characterized in that: The R is set to a model that can just surround the workpiece to be processed.

3. The knife contact point construction method based on spherical projection method according to claim 1, characterized in that: The step S4 comprises: S41: constructing a hemispherical surface having a radius equal to the spherical radius of the helical line of the hemispherical surface; S42: connecting and extending the origin and each vertex of the model triangular facet to obtain three second intersection points on the hemispherical surface, so as to obtain a spherical triangular facet defined by the three second intersection points, wherein the overlapping portion of the spherical triangular facet and the hemispherical spiral line is the projection; S43: obtaining the target rectangular area by stepping through the coordinate values ​​of the predetermined rectangular area, wherein the vertices of the predetermined rectangular area are points on the hemispherical spiral line, and the length and width directions of the predetermined rectangular area correspond to the two axial directions of the Cartesian coordinate system.

4. The knife contact point construction method based on spherical projection method according to claim 3, characterized in that: In step 43, when the predetermined rectangular area of ​​the previous step and the predetermined rectangular area of ​​the next step do not surround the model triangular facet and have overlapping areas with the model triangular facet, the predetermined rectangular area of ​​the current step is selected as the target rectangular area.

5. The knife contact point construction method based on spherical projection method according to claim 3, characterized in that: In step 43, the predetermined rectangular area is set by the following steps: S431: Collect the minimum abscissa value, the maximum abscissa value, the minimum ordinate value, and the maximum ordinate value of all vertices of the spherical triangle patch, and combine the minimum abscissa value, the maximum abscissa value, the minimum ordinate value, and the maximum ordinate value in pairs to obtain four preset vertices; S432: traverse the points of the hemispherical spiral line to obtain four target vertices closest to the four preset vertices, wherein the four target vertices are selected to define a rectangle.

Citation Information

Patent Citations

  • Method for reducing deformation of arbitrary Gauss projection based on lowest standard of comprehensive projection deformation

    CN105931199A

  • Semi-analysis modeling method of contact area between ball-end milling cutter and guide vane

    CN106502202A

  • Method for generating arc cutter body blade curves of vertical milling cutters based on non-orthogonal spiral surface

    CN106844987A

  • Path generation method for treating aspheric surface in gasbag polishing way

    CN109590812A

  • Extending cutting tool for machining internal spherical surfaces and sections within differential gear housing, employs axial stop capable of defined displacement

    DE102005054717B3