Circular pipe cutting intersecting line path generation method, device and storage medium

By aligning the circular tube and cutting tool models using parametric modeling and rotation transformation matrices, a precise cutting path is generated, solving the problem of low efficiency in existing technologies and achieving efficient CNC machining path generation.

CN120295227BActive Publication Date: 2026-02-27SHENZHEN RUIDA TECH CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510427410.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-04-07
Publication Date
2026-02-27
Estimated Expiration
2045-04-07

AI Technical Summary

Technical Problem

Existing technologies have low efficiency in generating circular tube cutting paths when dealing with complex situations involving intersecting tilt angles or positional offsets, and cannot meet the needs of real-time processing.

Method used

Precise models of circular tubes and cutting tools are generated through parametric modeling. Model alignment is achieved using rotation transformation matrices and dynamic axis correction. A set of three-dimensional spatial coordinate points is generated and mapped onto a two-dimensional plane to generate an unfolded diagram, thus generating a CNC machining path.

Benefits of technology

It improves modeling accuracy and efficiency, reduces manual intervention, realizes automated planning of cutting paths, and enhances cutting efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295227B_ABST
    Figure CN120295227B_ABST
Patent Text Reader

Abstract

The application discloses a pipe cutting intersecting line path generation method and device and a storage medium, relates to the technical field of data processing, and comprises the following steps: establishing a to-be-cut pipe model and a cutting tool model according to input geometric parameters and cutting parameters of the to-be-cut pipe; aligning the cutting tool model to a coordinate system of the to-be-cut pipe model through coordinate system transformation; detecting the intersection of the to-be-cut pipe model and the cutting tool model, and generating a three-dimensional space coordinate point set of the intersecting line; mapping the three-dimensional space coordinate point set to a two-dimensional plane to generate an unfolding diagram, and generating a numerical control machining path according to the unfolding diagram coordinates. The application achieves the technical effect of improving the path generation efficiency of pipe cutting.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of data processing technology, and in particular to a method, device and storage medium for generating the intersection path of circular tube cutting. Background Technology

[0002] Currently, when encountering complex situations such as intersections at inclined angles or positional offsets, the method for calculating the cutting path of circular tubes is limited by simple geometric relationships and can only handle simple perpendicular intersections. It cannot handle complex spatial intersections. When dealing with problems with high computational complexity, it requires a lot of time to calculate repeatedly, which makes it difficult to meet the needs of real-time machining, resulting in low path generation efficiency in CNC machining.

[0003] The above content is only used to help understand the technical solution of this application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main objective of this application is to provide a method, device, and storage medium for generating intersection paths in circular tube cutting, aiming to solve the technical problem of low path generation efficiency in CNC machining of circular tube cutting.

[0005] To achieve the above objectives, this application proposes a method for generating the intersection path of a circular pipe cutting process, the method comprising:

[0006] Based on the input geometric parameters and cutting parameters of the circular tube to be cut, establish the model of the circular tube to be cut and the model of the cutting tool;

[0007] By transforming the coordinate system, the cutting tool model is aligned to the coordinate system of the circular tube model to be cut;

[0008] The intersection point of the circular tube model to be cut and the cutting tool model is detected, and a set of three-dimensional spatial coordinate points of the intersection line is generated;

[0009] The three-dimensional spatial coordinate point set is mapped to a two-dimensional plane to generate an unfolded diagram, and the CNC machining path is generated based on the coordinates of the unfolded diagram.

[0010] In one embodiment, the cutting tool model includes a cross-section cutting model and a circular tube cutting model;

[0011] The steps of establishing the model of the circular tube to be cut and the model of the cutting tool based on the input geometric parameters and cutting parameters of the circular tube to be cut include:

[0012] Based on the input outer diameter, wall thickness, and length of the circular tube to be cut, construct the parametric equations of the circular tube model to be cut;

[0013] Based on the input plane normal vector, offset, and cross-sectional shape parameters, construct the plane equation and cross-sectional profile of the cross-section cutting model; or,

[0014] According to the inputted intersecting pipe radius, axis angle and axis distance, a parameterized equation of the pipe cutting model is constructed.

[0015] In an embodiment, the step of aligning the cutting tool model to the coordinate system of the pipe to be cut by coordinate system transformation comprises:

[0016] defining an initial coordinate system with the axis of the pipe to be cut as the reference;

[0017] calculating a rotation transformation matrix and a translation transformation matrix for aligning the cutting tool model to the initial coordinate system according to the axis angle and the axis distance in the cutting parameters inputted by the user;

[0018] compositing the rotation transformation matrix and the translation transformation matrix to generate an overall transformation matrix and applying the overall transformation matrix to the vertex coordinates of the cutting tool model.

[0019] In an embodiment, after the step of aligning the cutting tool model to the coordinate system of the pipe to be cut by coordinate system transformation, the method further comprises:

[0020] calculating a cutting tool bounding box of the cutting tool model and a pipe to be cut bounding box of the pipe to be cut model respectively by a geometry engine to obtain the center point coordinates and the edge corner point coordinates of each bounding box;

[0021] aligning based on the user-selected alignment strategy according to the center point coordinates and the edge corner point coordinates of each bounding box.

[0022] In an embodiment, the step of aligning based on the user-selected alignment strategy according to the center point coordinates and the edge corner point coordinates of each bounding box comprises:

[0023] if the alignment strategy is center alignment, the center point of the cutting tool bounding box coincides with the center point of the pipe to be cut bounding box;

[0024] if the alignment strategy is edge corner alignment, the specified edge corner point of the cutting tool bounding box is aligned with the corresponding edge corner point of the pipe to be cut bounding box;

[0025] if the alignment strategy is axial alignment, the axis direction of the cutting tool model is adjusted to be parallel to or at a preset angle with the axis of the pipe to be cut model.

[0026] In an embodiment, after the step of aligning the cutting tool model to the coordinate system of the pipe to be cut by coordinate system transformation, the method further comprises:

[0027] According to the target position of the machining width input by the user, a translation offset is calculated, and a bounding box of the cutting tool model is moved to the target position; or

[0028] According to the scale factor input by the user, the cutting tool model is scaled proportionally, and the vertex coordinates of the cutting tool model are updated; or

[0029] According to the spacing parameter input by the user, the total gap space of all the cutting tool models is calculated, the gap is divided according to the spacing parameter, and the positions of the cutting tool models are rearranged in sequence.

[0030] In an embodiment, the step of detecting the intersection of the to-be-cut circular pipe model and the cutting tool model to generate a three-dimensional coordinate point set of the intersection line includes:

[0031] The surface of the to-be-cut circular pipe model is discretized into circumferentially equidistant points and axially equidistant points to form a grid point set;

[0032] Each grid point in the grid point set is projected and detected to determine whether the geometric constraint condition of the cutting tool model is met;

[0033] The grid points that meet the geometric constraint condition are taken as the intersection, and a three-dimensional coordinate point set of the intersection line is generated.

[0034] In an embodiment, the step of mapping the three-dimensional coordinate point set to a two-dimensional plane to generate an unfolding diagram and generating a numerical control machining path according to the unfolding diagram coordinates includes:

[0035] The circumferential angle of the three-dimensional coordinate point set is converted into the horizontal coordinate of the unfolding diagram, and the axial coordinate is converted into the vertical coordinate of the unfolding diagram;

[0036] The periodic boundary jump region of the unfolding diagram is continuously corrected, and the unfolding diagram path is dynamically offset compensated according to the tool parameters;

[0037] The compensated unfolding diagram path is converted into a machining instruction code recognizable by a numerical control machine tool.

[0038] In addition, to achieve the above-mentioned purpose, the present application also provides a circular pipe cutting intersection line path generation device, which comprises a memory, a processor, and a computer program stored on the memory and executable on the processor, and the computer program is configured to implement the steps of the circular pipe cutting intersection line path generation method as described above.

[0039] In addition, to achieve the above object, the application further provides a storage medium, which is a computer readable storage medium, and a computer program is stored on the storage medium, and the computer program is executed by a processor to implement the steps of the circular pipe cutting intersection line path generation method.

[0040] The application provides a circular pipe cutting intersection line path generation method. First, a to-be-cut circular pipe model and a cutting tool model are established according to input geometric parameters and cutting parameters of the to-be-cut circular pipe. The cutting tool model is aligned to the coordinate system of the to-be-cut circular pipe model through coordinate system transformation. The intersection points of the to-be-cut circular pipe model and the cutting tool model are detected to generate a three-dimensional space coordinate point set of the intersection line. The three-dimensional space coordinate point set is mapped to a two-dimensional plane to generate a development drawing, and a numerical control machining path is generated according to the development drawing coordinates. The application automatically generates accurate circular pipe and cutting tool models through parameterized modeling, eliminates manual modeling errors, ensures strict matching of geometric parameters and machining requirements, and improves modeling accuracy and efficiency. Based on the rotation transformation matrix and dynamic axis correction, the spatial alignment of the cutting tool model and the circular pipe model is realized, the intersection line calculation deviation caused by the coordinate system offset is avoided, and the calculation stability is improved. The three-dimensional space coordinate point set is mapped to a two-dimensional plane to generate a development drawing, and a numerical control machining path is generated according to the development drawing coordinates, realizing the automatic planning of the cutting path, reducing manual intervention, and improving the cutting efficiency. The application achieves the technical effect of improving the path generation efficiency of the circular pipe cutting. BRIEF DESCRIPTION OF DRAWINGS

[0041] The accompanying drawings, which are incorporated into and form a part of the specification, illustrate an embodiment consistent with the present application and, together with the description, serve to explain the principles of the application.

[0042] In order to more clearly illustrate the technical solutions in the embodiments of the application or the prior art, the accompanying drawings needed to be used in the embodiments or prior art description will be briefly introduced. Obviously, for those skilled in the art, other drawings can also be obtained based on these drawings without creative labor.

[0043] Figure 1 A flowchart is provided for the circular pipe cutting intersection line path generation method embodiment one of the application;

[0044] Figure 2 A circular pipe cutting related operation selection interface diagram is provided for the circular pipe cutting intersection line path generation method embodiment one of the application;

[0045] Figure 3 A pipe diameter setting interface diagram is provided for the circular pipe cutting intersection line path generation method embodiment one of the application;

[0046] Figure 4 A pipe surface cutting drawing interface schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment one of the present application.

[0047] Figure 5 A pipe surface cutting drawing interface schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment one of the present application.

[0048] Figure 6 A flowchart schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment two of the present application.

[0049] Figure 7 A flowchart schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment three of the present application.

[0050] Figure 8 A flowchart schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment four of the present application.

[0051] Figure 9 A flowchart schematic diagram is provided for the pipe cutting intersecting line path generation method embodiment five of the present application.

[0052] Figure 10 A device structure schematic diagram of the hardware running environment involved in the pipe cutting intersecting line path generation method in the embodiments of the present application.

[0053] The object implementation, functional features and advantages of the present application will be further described with reference to the embodiments and the accompanying drawings. DETAILED DESCRIPTION

[0054] It should be understood that the specific embodiments described herein are only used to explain the technical solutions of the present application, and are not used to limit the present application.

[0055] In order to better understand the technical solutions of the present application, the specific embodiments will be described in detail below with reference to the drawings and the specific embodiments.

[0056] The main solution of the embodiments of the present application is:

[0057] At present, the pipe cutting path calculation method is limited by simple geometric relations when encountering complex situations of intersecting inclined angles or position offset, and can only handle simple vertical intersection, and cannot handle complex space intersection. When dealing with problems with high calculation complexity, a large amount of time is consumed for repeated calculation, which is difficult to meet the real-time processing demand, resulting in low path generation efficiency in numerical control machining.

[0058] This application automatically generates accurate models of the circular tube and cutting tool through parametric modeling, eliminating errors from manual modeling and ensuring a strict match between geometric parameters and machining requirements, thereby improving modeling accuracy and efficiency. Based on rotational transformation matrices and dynamic axis correction, spatial alignment between the cutting tool model and the circular tube model is achieved, avoiding calculation deviations in the intersection line caused by coordinate system offsets and improving computational stability. The three-dimensional spatial coordinate point set is mapped to a two-dimensional plane to generate a unfolded diagram, and a CNC machining path is generated based on the coordinates of the unfolded diagram, realizing automated planning of the cutting path, reducing manual intervention, and improving cutting efficiency.

[0059] It should be noted that the executing entity in this embodiment can be a circular pipe cutting intersection path generation device, or a computing service device with data processing, network communication, and program execution functions, such as a tablet computer, personal computer, or mobile phone, or a control device capable of realizing the above functions of a circular pipe cutting intersection path generation device, etc. This embodiment does not specifically limit it in this way. The following uses a circular pipe cutting intersection path generation device as the executing entity as an example to describe this embodiment and the following embodiments.

[0060] Example 1

[0061] Based on this, this application proposes a method for generating the intersection path of circular tube cutting according to the first embodiment. Please refer to [link / reference]. Figure 1 The method for generating the intersection path of the circular tube cutting includes:

[0062] Step S10: Based on the input geometric parameters and cutting parameters of the circular tube to be cut, establish the model of the circular tube to be cut and the model of the cutting tool.

[0063] In this embodiment, geometric parameters are a set of values ​​defining the physical dimensions and spatial orientation of the circular tube, including outer diameter, wall thickness, length, and axis vector. Cutting parameters describe the type of cutting tool and spatial relationships, including cutting tool type, cutting angle, and cutting position. The circular tube model to be cut is a digital representation of the circular tube constructed based on the geometric parameters, used to simulate and analyze the cutting process. The cutting tool model is a digital representation of the cutting tool constructed based on the cutting parameters, used to simulate the interaction between the cutting tool and the circular tube to be cut.

[0064] As an alternative implementation, based on the geometric and cutting parameters of the circular tube to be cut input by the user through a graphical interface, a 3D modeling software is used to create a model of the circular tube to be cut according to the input geometric parameters. Then, based on the cutting angle and shape in the cutting parameters, a cutting tool model is created in the 3D modeling software.

[0065] As another optional implementation, according to the geometric parameters and cutting parameters of the to-be-cut circular pipe input by the user through a command line or a file, a programming language is used in combination with a mathematical library and a graphics library to calculate the geometric shape of the to-be-cut circular pipe according to the geometric parameters and generate model data. According to the cutting parameters, model data of the cutting tool is generated through programming.

[0066] As another optional implementation, according to the geometric parameters and cutting parameters of the to-be-cut circular pipe input by the user in a parametric modeling environment, a parametric modeling tool is used to automatically create a to-be-cut circular pipe model according to the input geometric parameters. According to the cutting parameters, a corresponding cutting tool model is selected or defined in the parametric modeling environment.

[0067] Optionally, if the to-be-cut circular pipe is a real model, point cloud data of the to-be-cut circular pipe can also be obtained through a 3D scanning device, and the obtained point cloud data is processed by using point cloud processing software to generate a three-dimensional model of the to-be-cut circular pipe. Through fitting and reconstruction of the point cloud data, the accurate shape of the to-be-cut circular pipe is obtained.

[0068] Optionally, the cutting tool model includes a cross-section cutting model and a circular pipe cutting model.

[0069] Optionally, step S10 includes:

[0070] Step S11, according to the outer diameter, wall thickness and length of the to-be-cut circular pipe input, a parametric equation of the to-be-cut circular pipe model is constructed.

[0071] It should be noted that the outer diameter is the outer diameter of the to-be-cut circular pipe, that is, the diameter of the outermost side of the to-be-cut circular pipe. The wall thickness is the thickness of the wall of the to-be-cut circular pipe, that is, half of the difference between the outer diameter and the inner diameter. The length is the axial length of the to-be-cut circular pipe. The parametric equation is a mathematical equation expressed by parameters, and the geometric model of the to-be-cut circular pipe is generated according to the input parameters.

[0072] For example, based on the outer diameter D, the wall thickness t and the length L, a cylindrical equation of the to-be-cut circular pipe is constructed, and the equation is:

[0073]

[0074] Step S12, according to the plane normal vector, offset and cross-section shape parameters input, a plane equation and a cross-section contour of the cross-section cutting model are constructed.

[0075] ​​​It should be noted that the plane normal vector is a vector perpendicular to the cutting plane and is used to determine the plane's direction. The offset is the distance the cutting plane deviates from the axis of the circular tube model to be cut or another reference point. The cross-sectional shape parameters are parameters describing the cross-sectional shape of the cutting tool. The plane equation is a mathematical equation used to describe the position and orientation of the cutting plane. The cross-sectional profile is the contour shape of the cutting tool on the cutting plane.

[0076] For example, based on the plane normal vector and offset Generate the plane equation, superimpose the cross-sectional profile, and the plane equation is " If the cross-sectional shape parameter is circular, and the following conditions are met in the local coordinate system: ( (For local plane coordinates); if the cross-sectional shape parameter is rectangular, it satisfies " "and" ( (For width and height).

[0077] Step S13: Based on the input intersecting circular tube radius, axial angle, and center distance, construct the parametric equation of the circular tube cutting model.

[0078] It should be noted that the intersecting pipe radius is the radius of the pipe used for cutting that intersects with the pipe to be cut. The axial angle is the angle between the axes of the two pipes. The center distance is the distance between the axes of the two pipes.

[0079] For example, based on the radius of the intersecting circular tube , Angle between axes and axis distance Construct the equation of the oblique cylinder for the circular tube cutting model. ".

[0080] Step S20: Align the cutting tool model to the coordinate system of the circular tube model to be cut by coordinate system transformation.

[0081] Align the coordinate system of the cutting tool model with that of the circular tube model to be cut, ensuring that the cutting tool model is in the correct position and direction for intersection detection and cutting simulation.

[0082] In this embodiment, coordinate system transformation is the process of converting geometric elements such as points, lines, and surfaces in one coordinate system to another through operations such as rotation and translation. Alignment is the process of aligning two or more models in space to achieve a specific relative position and orientation relationship in order to perform accurate simulation or manipulation.

[0083] As an optional embodiment, an initial coordinate system is defined based on the axis of the round pipe model, and a rotation transformation matrix and a translation transformation matrix are automatically calculated according to the cutting parameters input by the user in the parametric modeling environment. The calculated overall transformation matrix is applied to the cutting tool model to align it to the coordinate system of the round pipe model.

[0084] Optionally, step S20 comprises:

[0085] Step S21, defining an initial coordinate system based on the axis of the round pipe model to be cut.

[0086] It should be noted that the axis is the center line of the round pipe model to be cut, that is, the symmetry axis of the round pipe to be cut. The initial coordinate system is a coordinate system defined based on the axis of the round pipe model to be cut, which is used for subsequent coordinate transformation and alignment operations.

[0087] For example, a three-dimensional coordinate system is defined with the axis of the round pipe to be cut as the Z axis and the center of the left end face of the round pipe to be cut as the origin.

[0088] As an optional embodiment, if the axis of the round pipe to be cut is not a standard Z axis, a coordinate system is defined by the axis direction vector "a", a rotation matrix is calculated to align the axis direction vector to the Z axis, and the vertex coordinates of the round pipe to be cut are transformed to the aligned coordinate system. is the angle between the original axis and the Z axis, and the formula is:

[0089] .

[0090] As another optional embodiment, according to the input center points of the two ends of the round pipe to be cut, and , the axis direction vector is calculated as:

[0091] .

[0092] Step S22, according to the axis angle and the axis distance in the cutting parameters input by the user, a rotation transformation matrix and a translation transformation matrix are calculated to align the cutting tool model to the initial coordinate system.

[0093] It should be noted that the rotation transformation matrix is a mathematical matrix used to describe the rotation operation, which can rotate a point or a vector around a specified axis by a certain angle. The translation transformation matrix is a mathematical matrix used to describe the translation operation, which can move a point or a vector in a specified direction by a certain distance.

[0094] For example, according to the axis angle, the rotation transformation matrix is calculated using the rotation matrix formula. For example, the rotation matrix for rotating angle around the X axis is:

[0095] .​​​ ".

[0096] Alternatively, it can be rotated about any axis and calculated using the quaternion method. Let the rotation axis be the unit vector, and the rotation matrix be:

[0097] “ ", where I represents the identity matrix in three-dimensional space, specifically a 3×3 identity matrix." ".

[0098] For example, the translation transformation matrix is ​​calculated using the translation matrix formula based on the axis distance. For instance, the axis distance... The translation matrix for offset along the X-axis is:

[0099] “ ".

[0100] Alternatively, if the axis distance needs to be in any direction in space ( The translation matrix is:

[0101] “ ".

[0102] Step S23: Combine the rotation transformation matrix with the translation transformation matrix to generate an overall transformation matrix and apply it to the vertex coordinates of the cutting tool model.

[0103] The rotation and translation transformations are combined into a single transformation matrix, simplifying the transformation operations and improving computational efficiency. This transformation is then applied to the vertex coordinates of the cutting tool model, ensuring precise alignment with the initial coordinate system.

[0104] It should be noted that the overall transformation matrix is ​​a matrix composed of the rotation transformation matrix and the translation transformation matrix, used to perform rotation and translation operations simultaneously.

[0105] For example, the overall transformation matrix "M = T·R" is obtained by multiplying the rotation transformation matrix R and the translation transformation matrix T in sequence. This transforms the coordinates of all vertices of the cutting tool model. Multiplying this by the overall transformation matrix M yields the transformed coordinates “p′=M·p”.

[0106] Step S30: Detect the intersection point of the circular tube model to be cut and the cutting tool model, and generate a set of three-dimensional spatial coordinate points of the intersection line.

[0107] The geometric intersection point between the cutting tool model and the circular tube model to be cut is determined, generating a precise intersection line to provide a data foundation for subsequent unfolding and machining paths. The intersection line is discretized into a set of three-dimensional coordinate points to drive the tool movement trajectory of the CNC machine tool.

[0108] In this embodiment, the intersection point is the point where two geometric models intersect in three-dimensional space. The intersection line is the spatial curve formed by the intersection, such as a hyperbola or elliptical arc when two cylinders intersect obliquely. The three-dimensional spatial coordinate point set is the three-dimensional point sequence obtained after discretizing the intersection line, containing the coordinates and normal vector information of each point.

[0109] As an optional implementation, the cutting tool model is a cross-section cutting model with a plane, or the cutting tool model is a circular tube cutting model. When the circular tube model to be cut is orthogonal to the circular tube cutting model, the equations of the circular tube to be cut corresponding to the circular tube model and the cutting tool equations corresponding to the cutting tool model are solved simultaneously to obtain the intersection line equation. The points are uniformly sampled along the circumferential angle to generate an orthogonal intersection line point set.

[0110] For example, based on the radius of the circular tube to be cut Intersecting circular tube radius , Angle between axes and axis distance The equation of the circular tube to be cut is " The equation for the cutting tool is " ",Will" Substituting the equation of the circular tube to be cut into the equation of the intersection line, we obtain the equation of the intersection line. and ”, to solve “ ", along the circumferential angle Uniform sampling from 0 to 2π generates a point set " , , ".

[0111] As an alternative implementation, the cutting tool model is a cross-sectional cutting model with a curved cross-section, and the cutting tool model is a circular tube cutting model. When the circular tube model to be cut intersects the circular tube cutting model at an oblique angle, the surface of the circular tube model to be cut is discretized into a set of grid points. The intersection line projection of each grid point in the grid point set is checked to determine whether it is inside the cutting tool model. For a cylindrical cutting tool, the shortest distance from the point to the axis of the cutting cylinder is calculated to see if it is less than or equal to the radius of the circular tube to be cut. For a planar cutting tool, it is determined whether the point is within the region defined by the plane equation to determine the three-dimensional spatial coordinate point set.

[0112] Optionally, the set of three-dimensional spatial coordinate points is iteratively optimized using the Newton-Raphson method, and the residual function "" is defined. ",in, , The equations are for the model of the circular tube to be cut and the model of the cutting tool. The iterative formula is " ", where J is the Jacobian matrix, It is the parameter vector or scalar at the nth iteration. It is the parameter vector or scalar at the (n+1)th iteration.

[0113] Step S40: Map the three-dimensional spatial coordinate point set to a two-dimensional plane to generate an unfolded diagram, and generate a CNC machining path based on the coordinates of the unfolded diagram.

[0114] In this embodiment, the unfolded diagram is formed by unfolding the cylindrical surface of the circular tube model to be cut along the generatrix into a planar rectangle, and the three-dimensional intersection line is mapped to a two-dimensional curve. The circumference of the cylinder corresponds to the width of the unfolded diagram, and the length of the circular tube corresponds to the height of the unfolded diagram. The CNC machining path is the cutting path determined based on the position of the intersection line of the cutting tool model with respect to the circular tube to be cut, i.e., the cutting position. The CNC machining path can also be a CNC machining path code, which is a set of instructions for controlling the movement of the machine tool, including parameters such as the movement trajectory, cutting speed, and laser power.

[0115] As an optional implementation, the points in the cylindrical coordinate system of the circular tube model to be cut ( , , Mapped to a planar unfolded diagram, where the circumferential angles... Convert to unfolded diagram width "arc length" The axial position z is used as the height of the unfolded diagram. The circumferential angle and axial position of each point in the 3D intersection point set are calculated sequentially to generate the corresponding 2D coordinates. The point set is sorted according to the circumferential arc length or axial position of the unfolded diagram to ensure the continuity of the cutting path. B-spline curves are used to smoothly interpolate discrete points, reducing the number of instructions and controlling accuracy errors.

[0116] Optionally, the two-dimensional path points are converted into machine tool instructions to generate CNC machining path codes, including movement instructions, speed settings, and laser switch instructions.

[0117] As an alternative implementation of the 3D-to-2D mapping, for the unfolding of irregularly shaped tubes, elliptical tubes approximate the ellipse circumference through numerical integration, converting the circumferential angles into the non-uniform width of the unfolded diagram. Square tubes directly unfold each plane into an independent rectangle, marking the seam positions.

[0118] Optionally, if the intersection line is discontinuous, each segment can be mapped independently and the joint position can be marked.

[0119] As an example of this embodiment, in response to a user's circular tube cutting operation, refer to... Figure 2 The interface for circular pipe cutting operations is rendered onto the user's device, allowing the user to perform operations such as setting the pipe diameter, drawing circular pipe surface cuts, and drawing intersection line cuts. If the user selects the pipe diameter setting operation, refer to... Figure 3render a pipe diameter setting interface to the user device, through which the user can set the pipe diameter of the cut pipe, and provide a variety of choices of diameter or radius, and the size of the subsequent processing plane will change according to the set pipe diameter. If the user selects a circular pipe surface cutting drawing operation, refer to Figure 4 render a circular pipe surface cutting drawing interface to the user device, through which the user can set the pipe diameter of the cut pipe, and the intersection angle of the cutting section. If the user selects a intersecting line cutting drawing operation, refer to Figure 5 render a intersecting line cutting drawing interface to the user device, through which the user can set the pipe diameter of the cut pipe, the angle of the intersecting pipe, the pipe diameter of the intersecting pipe, and the axial distance between the cut pipe and the intersecting pipe. According to the parameters set by the user, a two-dimensional plane development drawing of the cutting is automatically generated, and the development drawing is rendered to the user, and a numerical control machining path is generated according to the development drawing coordinates.

[0120] The embodiment provides a method for generating a cutting intersecting line path of a circular pipe. The embodiment first automatically generates an accurate circular pipe and cutting tool model through parametric modeling, eliminates manual modeling errors, ensures that geometric parameters strictly match processing requirements, and improves modeling accuracy and efficiency. Based on the rotation transformation matrix and dynamic axis correction, the spatial alignment of the cutting tool model and the circular pipe model is realized, the calculation deviation of the intersecting line caused by the offset of the coordinate system is avoided, and the calculation stability is improved. The three-dimensional space coordinate point set is mapped to a two-dimensional plane to generate a development drawing, and a numerical control machining path is generated according to the development drawing coordinates, realizing the automatic planning of the cutting path, reducing manual intervention, and improving the cutting efficiency.

[0121] Based on embodiment one, the second embodiment of the application provides a method for generating a cutting intersecting line path of a circular pipe, refer to Figure 6 , after step S20, comprising:

[0122] In step S50, the cutting tool bounding box of the cutting tool model and the cut pipe bounding box of the cut pipe model are calculated respectively through the geometry engine, and the center point coordinates and the edge point coordinates of each bounding box are obtained.

[0123] The rough spatial position relationship of the two models is quickly judged through the bounding box, the operation amount of the subsequent accurate calculation is reduced, and whether the models can intersect is pre-judged based on the overlapping of the bounding box, so as to avoid invalid calculation. The center point and edge point coordinates of the bounding box are extracted to provide a reference datum for the subsequent coordinate system alignment.

[0124] It should be noted that the geometry engine is a core algorithm library for processing geometry model calculation, supporting Boolean operation, bounding box generation, collision detection and the like. The cutting tool bounding box is the minimum axis-aligned rectangular box enclosing the cutting tool model, used to simplify the geometric representation of the cutting tool model. The to-be-cut circular pipe bounding box is the minimum axis-aligned rectangular box enclosing the to-be-cut circular pipe model, used to simplify the geometric representation of the to-be-cut circular pipe model. The types of bounding boxes include axis-aligned bounding box (AABB, Axis-Aligned Bounding Box) and oriented bounding box (OBB, Oriented Bounding Box), the axis-aligned bounding box is a bounding box with edges aligned with coordinate axes, which has high calculation speed but low precision; the oriented bounding box is a bounding box rotated according to the main direction of the model, which fits the model shape and has high precision but complex calculation.

[0125] An exemplary center point of the bounding box is , and the calculation formula is:

[0126] ". ".

[0127] An exemplary edge corner point coordinate calculation, the 8 vertices of the bounding box are to .

[0128] Step S60, according to the center point coordinates and edge corner point coordinates of each bounding box, alignment is performed based on the alignment strategy selected by the user.

[0129] It should be noted that the alignment strategy is the alignment method selected by the user, which defines the adjustment rules of the spatial relationship between the two models, including center alignment, edge corner alignment, axial alignment, etc.

[0130] Optionally, step S60 comprises:

[0131] Step S61, if the alignment strategy is center alignment, the center point of the cutting tool bounding box is coincided with the center point of the to-be-cut circular pipe bounding box.

[0132] It should be noted that the center alignment is to coincide the center points of the two bounding boxes.

[0133] An exemplary translation vector in the translation matrix is calculated , , , and , , indicate the coordinate components of the to-be-cut circular pipe model in the three-dimensional space, and , , indicate the coordinate components of the cutting tool model in the three-dimensional space, ” represents the position deviation of the pipe and the tool in three directions, i.e. coordinate difference, a translation matrix T is applied to all vertices of the cutting tool model, the translation matrix is a homogeneous matrix for moving the model, in the form of:

[0134] “ ”, wherein is a translation vector.

[0135] In step S62, if the alignment strategy is edge corner alignment, the specified edge corner point of the cutting tool bounding box is aligned with the corresponding edge corner point of the pipe bounding box to be cut.

[0136] It should be noted that edge corner alignment is to align the edge corner point of the cutting tool bounding box with the corresponding edge corner point of the pipe bounding box to be cut, so that they coincide at a specified position.

[0137] For example, according to the user-specified edge corner point index of the cutting tool and the pipe to be cut, the corresponding edge corner point is determined, the edge corner point of the pipe bounding box to be cut is “ ”, and the edge corner point of the cutting tool bounding box is “ ”. The translation vector “ ” in the translation matrix is calculated, and the translation matrix T is applied to all vertices of the cutting tool model.

[0138] In step S63, if the alignment strategy is axial alignment, the axial direction of the cutting tool model is adjusted to be parallel or at a preset angle with the axial direction of the pipe model to be cut.

[0139] It should be noted that axial alignment is to make the axial vector of the cutting tool consistent with or at a specified angle with the axial direction of the pipe to be cut through rotation transformation.

[0140] For example, the axial direction of the pipe to be cut is by default, which is the Z-axis direction vector “ ”. First, the target axial direction “ ” is determined, if parallel alignment is needed, the target direction is “ ”; if an angle “ ” is needed, the target direction is the rotated vector. The rotation matrix “ ” is calculated using the Rodrigues formula, the axial direction of the cutting tool “ ” is transformed to “ ”, i.e. “ ”, wherein K is the cross product matrix of “ × ”, and “ ” is the angle between the two vectors. First, rotation is performed, and then translation is performed, to ensure that the rotation center is the center of the cutting tool bounding box “ ”, and is the translation of the cutting tool to the origin, is rotated and then translated back to the original bounding box center.

[0141] The embodiment provides a circular pipe cutting intersection line path generation method. The embodiment first calculates the bounding box of a cutting tool model and a to-be-cut circular pipe model, simplifies the complex three-dimensional model into a simple rectangular box representation, reduces the calculation complexity, and improves the calculation efficiency. According to a user-selected alignment strategy, the cutting tool model is accurately aligned with the to-be-cut circular pipe model, so that the cutting tool is cut with the circular pipe model in the correct position and direction, and the automation degree and efficiency of the cutting process are improved.

[0142] Based on embodiment one, embodiment three of the application provides a circular pipe cutting intersection line path generation method, which refers to Figure 7 , and after step S20, further comprising:

[0143] Step S70: According to the target position of the machining area input by the user, a translation offset is calculated, and the bounding box of the cutting tool model is moved to the target position.

[0144] It should be noted that the machining area is the range and position of the machining area, which is determined by the size of the workbench or the machining area of the machine tool. The target position is a three-dimensional coordinate point in the machining area specified by the user, which represents the desired placement position of the cutting tool. The translation offset is the displacement vector from the current bounding box position to the target position.

[0145] For example, according to the target position and the current original bounding box reference point coordinates , the offset is calculated, and the calculation formula is , wherein , , . Then, translation transformation is performed. For each vertex in the cutting tool model, a translation matrix is applied, and the extreme points of the translated cutting tool bounding box are recalculated, and the bounding box reference point coordinates are updated.

[0146] Step S80: According to the scale factor input by the user, the cutting tool model is scaled proportionally, and the vertex coordinates of the cutting tool model are updated.

[0147] It should be noted that the scale factor is a scaling coefficient input by the user, which can be a scalar or a vector, and is used to control the scaling ratio of the model along each coordinate axis.

[0148] As an optional implementation, for each vertex in the cutting tool model, scalar scaling (isotropic scaling) is performed, and each vertex coordinate is uniformly scaled according to the scale factor s.

[0149] As an optional implementation, for each vertex in the cutting tool model vector scaling (anisotropic scaling), independently scaling each coordinate axis according to a scale factor (s , , ) "s ".

[0150] Step S90, according to the user input spacing parameter, calculate the total gap space of all the cutting tool models, according to the spacing parameter, divide the gap and rearrange the position of each cutting tool model in order.

[0151] It should be noted that the spacing parameter is the minimum interval value d or (d , , ) specified by the user between adjacent cutting tool models. The total gap space is the sum of the gap space available between all cutting tool models.

[0152] As an optional implementation, calculate the total gap space, arrange in order, initialize the starting position , place each cutting tool model in turn, update the position "p ". According to the arrangement result, apply a translation transformation to each cutting tool model to the calculated position.

[0153] As another optional implementation of the arrangement, perform matrix arrangement, calculate the position of each tool "p , ", w is the width of a single cutting tool model, and h is the height of a single cutting tool model.

[0154] Optionally, calculate the total gap space of horizontal arrangement:

[0155] "p ", where is the width of the ith tool bounding box, and n is the number of tools.

[0156] Optionally, calculate the total gap space of vertical arrangement:

[0157] "p ", where is the height of the ith tool bounding box, and n is the number of tools.

[0158] The embodiment provides a circular pipe cutting intersection line path generation method. The bounding box of the cutting tool model is accurately moved to a target position specified by a user by calculating a translation offset, so that operation efficiency and accuracy are improved. According to a scale factor input by the user, the cutting tool model is scaled in proportion, so that the system flexibility and applicability are enhanced.

[0159] Based on embodiment one, the fourth embodiment of the application provides a circular pipe cutting intersection line path generation method, which refers to Figure 8 , and step S30 comprises:

[0160] Step S31 comprises: discretizing the surface of the circular pipe to be cut into circumferential equidistant points and axial equidistant points to form a grid point set.

[0161] It should be noted that the circumferential equidistant points are angle points evenly divided along the circumferential direction of the circular pipe, corresponding to the width coordinates of the development drawing. The axial equidistant points are longitudinal points evenly divided along the length direction of the circular pipe, corresponding to the height coordinates of the development drawing. The grid point set is a mapping point set of a two-dimensional grid formed by the intersection of the circumferential and axial equidistant points in three-dimensional space.

[0162] For example, according to the radius R of the circular pipe and the accuracy requirement, the circumferential density N is set, and the circumferential equidistant point is calculated. According to the length L of the circular pipe and the size of the cutting tool, the axial density M is set, and the axial equidistant point is calculated. The two-dimensional grid formed by the intersection of the circumferential and axial equidistant points in three-dimensional space is a mapping point set.

[0163] Step S32 comprises: performing projection detection on each grid point in the grid point set to determine whether the geometric constraint condition of the cutting tool model is met.

[0164] It should be noted that the projection detection is to project the grid point along a specific direction to the surface of the cutting tool model, and to calculate the projection distance or position relationship. The geometric constraint condition is to determine whether the point meets the mathematical definition of the cutting tool model, including the plane equation, the cylindrical equation and the point cloud inclusion relationship.

[0165] For example, for the cross-section cutting model detection, the plane equation method is used, the grid point is substituted into the plane equation, if the distance is less than the tolerance (such as 0.01mm), the intersection point is determined.

[0166] ​​​​​​For example, for the intersection line path generation of a circular tube cutting model, a distance threshold method is used to calculate the vertical distance d of a point to the axis of the cylinder. If d < r, where r is the radius of the cutting circular tube, the point is determined as an intersection point.

[0167] In step S33, the grid points satisfying the geometric constraint conditions are generated as the intersection points to generate the three-dimensional coordinate point set of the intersection line.

[0168] It should be noted that the intersection line is a spatial curve formed by the intersection of the surfaces of two geometric bodies, and under the discrete grid, it is represented as a point sequence satisfying the constraint conditions.

[0169] As an optional implementation, the grid points satisfying the conditions are used as candidate points, each candidate point is traversed, and it is checked whether the adjacent grid points of the candidate point are also candidate points. If there is no other candidate point around the candidate point, the candidate point is determined as a noise point and is removed. An algorithm is used to cluster the candidate points, a point set in a dense area is retained, and sparse noise points are removed. The candidate points are arranged from small to large according to the circumferential angle to form a continuous path along the surface of the circular tube. If the intersection line has multiple branches, the branches are grouped and sorted according to the axial position to form the three-dimensional coordinate point set of the intersection line.

[0170] Optionally, linear interpolation is performed, intermediate points “ ” are inserted in the area where the distance between adjacent candidate points exceeds a threshold, a cubic B-spline curve is used to fit the candidate points, and a smooth intersection line is generated:

[0171] “ ”, where is a cubic B-spline basis function.

[0172] Optionally, the interpolation points are substituted into the original model equation to verify whether the residual error is less than a threshold, and the change in curvature of adjacent line segments is checked to avoid abrupt changes.

[0173] The embodiment provides an intersection line path generation method for circular tube cutting. The embodiment first realizes efficient sampling through parameterization and discretization, covers all potential intersection point areas on the surface of a circular tube to be cut, and then combines geometric equations and numerical methods to accurately select candidate points and improve efficiency and accuracy. Through topological connection and interpolation optimization, the discrete candidate points are optimized into a high-precision and continuous intersection line point set, so that a high-precision machining path can be automatically generated subsequently.

[0174] Based on embodiment one, embodiment five of the application provides an intersection line path generation method for circular tube cutting. Referring to Figure 9 , step S40 includes:

[0175] ​​​Step S41, converting the circumferential angle of the three-dimensional coordinate point set to the horizontal coordinate of the developed graph, and converting the axial coordinate to the vertical coordinate of the developed graph.

[0176] It should be noted that the circumferential angle is the angle between the point on the cross section of the circular tube and the reference direction. The horizontal coordinate of the developed graph is the arc length corresponding to the circumferential angle, and the axial length of the circular tube corresponding to the vertical direction of the developed graph.

[0177] For example, for each three-dimensional point , the circumferential angle is calculated and converted to the horizontal coordinate , generating a two-dimensional point .

[0178] Step S42, performing continuity correction on the periodic boundary jump area of the developed graph, and dynamically offsetting the developed graph path according to the tool parameters.

[0179] It should be noted that the periodic boundary jump area is the discontinuity of the developed graph horizontal coordinate corresponding to the circumferential angle at 0° and 360°. Dynamic offset compensation is to offset the path inward or outward according to the tool radius or laser beam width, to ensure that the actual cutting profile is consistent with the design.

[0180] As an optional implementation of continuity correction, find the point of the developed graph horizontal coordinate near the boundary, i.e. the jump point. After the left boundary, append a point near the right boundary, and after the right boundary, append a point near the left boundary. Use linear interpolation or spline interpolation to generate transition points and connect the beginning and end.

[0181] As another optional implementation of continuity correction, copy the developed graph horizontally twice to form three continuous periods, and select the middle period as the corrected developed graph to avoid directly processing the original boundary.

[0182] As an optional implementation of dynamic offset compensation, perform normal direction offset compensation on each point on the path, calculate the path tangent direction using the difference between adjacent points, and the formula is:

[0183] “ ”.

[0184] Further calculate its normal direction , offset the tool radius r inward or outward to determine the offset point coordinate . Perform self-intersection processing, and use the rolling ball algorithm to detect and remove self-intersection loops in the offset path.

[0185] Step S43, converting the compensated developed graph path into machining instruction code recognizable by the numerical control machine tool.

[0186] It should be noted that machining instruction codes, or G-codes, are standardized CNC instructions that include movement instructions, speed, auxiliary functions, etc.

[0187] As an optional implementation, the unfolded path is decomposed into straight line segments or circular arc segments. For complex curves, B-spline interpolation is used to generate piecewise linear approximations and control errors. The unfolded paths are sorted according to geometric proximity to reduce tool idle distance, and large unfolded maps are divided into multiple sub-path blocks. For straight line segments, the path between adjacent points is converted into a straight line interpolation command; for circular arc segments, the concircularity of three points is detected, and the path is converted into a clockwise or counterclockwise circular arc command.

[0188] Optionally, the feed rate is set according to the material hardness and thickness of the tube to be cut, and the corresponding power is matched according to the heat absorption characteristics of the tube material.

[0189] Optionally, when unfolding the cylindrical surface of the tube to be cut into a plane, the local angles are kept constant to avoid graphic distortion. The coordinate transformation formula for unfolding the cylindrical surface into a rectangle is " , ",in, Where is the radius of the circular tube. Let z be the circumferential angle and z be the axial coordinate. Perform G-code compression, detect collinear point sequences, and merge them into a single G01 instruction. If three points... , , Collinear, delete intermediate points. Based on the local curvature of the unfolded diagram. Dynamically adjust the feed rate F:

[0190] “ "The greater the curvature, the lower the speed."

[0191] This embodiment provides a method for generating the intersection path of a circular tube cutting. First, the three-dimensional geometry is unfolded into a two-dimensional plane through parametric mapping, preserving the complete topological information of the surface of the circular tube to be cut. Boundary jumps are eliminated through interpolation closure or multi-period unfolding, and dynamic compensation is achieved using normal offset to ensure the continuity of the unfolded path. Path segmentation optimization accurately converts the two-dimensional unfolded diagram into CNC instructions, improving the efficiency and accuracy of generating the intersection path for circular tube cutting.

[0192] It should be noted that the above examples are only for understanding this application and do not constitute a limitation on the method for generating the intersection path of circular tube cutting in this application. Any simple transformations based on this technical concept are within the protection scope of this application.

[0193] The application provides a pipe cutting intersection line path generation device, which comprises at least one processor and a memory connected with the at least one processor in communication; the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the pipe cutting intersection line path generation method in the embodiment I.

[0194] Reference will be made to the following Figure 10 which shows a structural schematic diagram of the pipe cutting intersection line path generation device suitable for being used to implement the embodiments of the application. The pipe cutting intersection line path generation device in the embodiments of the application can include, but is not limited to, mobile terminals such as mobile phones, notebook computers, personal digital assistants (PDA), tablet computers (PAD), and the like, and fixed terminals such as desktop computers and the like. Figure 10 The pipe cutting intersection line path generation device shown is only an example, and should not bring any limitation to the functions and use range of the embodiments of the application.

[0195] As Figure 10As shown, the pipe cutting intersection line path generation device can include a processing device 1001 (e.g., a central processing unit, a graphics processing unit, etc.) that can perform various appropriate actions and processes according to programs stored in a read-only memory (ROM) 1002 or programs loaded from a storage device 1003 into a random access memory (RAM) 1004. Various programs and data required for the pipe cutting intersection line path generation device to operate are also stored in the random access memory 1004. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other by a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems can be connected to the I / O interface 1006: input devices 1007 including, for example, a touch screen, a touch pad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; output devices 1008 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; the storage device 1003 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 1009. The communication device 1009 can allow the pipe cutting intersection line path generation device to communicate with other devices wirelessly or by wire to exchange data. Although the pipe cutting intersection line path generation device with various systems is shown in the figure, it should be understood that all the shown systems are not required to be implemented or possessed. More or fewer systems can be alternatively implemented or possessed.

[0196] In particular, according to embodiments of the present disclosure, the processes described above with reference to the flowcharts can be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program carried on a computer readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network by a communication device, or installed from the storage device 1003, or installed from the read-only memory 1002. When the computer program is executed by the processing device 1001, the above-mentioned functions defined in the methods of the embodiments of the present disclosure are performed.

[0197] The pipe cutting intersection line path generation device provided by the present disclosure adopts the pipe cutting intersection line path generation method in the above-mentioned embodiments, and can solve the technical problem of low efficiency of path generation for pipe cutting in numerical control machining. Compared with the prior art, the pipe cutting intersection line path generation device provided by the present disclosure has the same beneficial effects as the pipe cutting intersection line path generation method provided by the above-mentioned embodiments, and other technical features in the pipe cutting intersection line path generation device are the same as the features disclosed in the previous embodiment method, which will not be described here.

[0198] It should be understood that various aspects disclosed herein can be implemented in hardware, software, firmware, or combinations thereof, to achieve the various aspects disclosed herein. In the description above, specific features, structures, materials or characteristics can be combined in any suitable manner without necessarily being limited to only those combinations explicitly described.

[0199] The above description is provided as an enabling teaching of the application and is not intended to limit the scope of the application. Any modification of the application in keeping with the spirit of the application and the following claims is intended to be within the scope of the application.

[0200] The application provides a computer readable storage medium having stored thereon computer readable program instructions (i.e., a computer program) for performing the method of generating a circular pipe cutting intersection line path in the above embodiment.

[0201] The computer readable storage medium provided by the application may, for example, be a U disk, but is not limited to an electric, magnetic, optical, electromagnetic, infrared, or semiconductor system, system, or device, or any combination thereof. More specific examples of the computer readable storage medium can include, but are not limited to, an electric connection having one or more conductive wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present embodiment, the computer readable storage medium can be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, system, or device. The program code contained on the computer readable storage medium can be transmitted by any suitable medium, including but not limited to an electric wire, an optical cable, a radio frequency (RF), and the like, or any suitable combination thereof.

[0202] The above computer readable storage medium can be contained in the circular pipe cutting intersection line path generation device; or can exist separately without being assembled into the circular pipe cutting intersection line path generation device.

[0203] The computer-readable storage medium described above can bear one or more programs, when the one or more programs are executed by the pipe cutting path generation device, the pipe cutting path generation device can be caused to compile computer program codes for executing the operations of the present application in one or more programming languages or combinations thereof, the programming languages include object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" language or similar programming languages. The program codes can be executed completely on a user computer, partially on a user computer, as an independent software package, partially on a user computer and partially on a remote computer, or completely on a remote computer or server. In the case involving a remote computer, the remote computer can be connected to the user computer through any kind of network including a local area network (LAN) or a wide area network (WAN), or can be connected to an external computer (for example, through the Internet by using an Internet service provider).

[0204] The flowcharts and block diagrams in the drawings illustrate the possible implementation architectures, functions and operations of the systems, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowcharts or block diagrams can represent a module, a program segment or a part of code containing one or more executable instructions for implementing the specified logical functions. It should also be noted that in some alternative implementations, the functions noted in the blocks can occur in different orders than those noted in the drawings. For example, two blocks represented in succession can actually be executed substantially in parallel, and sometimes they can be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and the combination of blocks in the block diagrams and / or flowcharts, can be implemented by a dedicated hardware-based system executing the specified functions or operations, or can be implemented by a combination of dedicated hardware and computer instructions.

[0205] The modules involved in the embodiments described in the present application can be implemented in software or in hardware. In some cases, the name of the module does not constitute a limitation on the module itself.

[0206] The readable storage medium provided by the application is a computer readable storage medium, which stores computer readable program instructions (i.e. computer programs) for executing the above-mentioned round pipe cutting intersection line path generation method, and can solve the technical problem of low path generation efficiency of round pipe cutting in numerical control machining. Compared with the prior art, the beneficial effects of the computer readable storage medium provided by the application are the same as those of the round pipe cutting intersection line path generation method provided by the above-mentioned embodiments, and will not be repeated here.

[0207] The above-mentioned is only part of the embodiments of the application, and does not limit the patent scope of the application. Any equivalent structural transformation, direct / indirect application in other related technical fields based on the technical concept of the application and the content of the specification and drawings are included in the patent protection scope of the application.

Claims

1. A method for generating the intersection path of a circular pipe cutting process, characterized in that, The method for generating the intersection path of circular tube cutting includes: Based on the input geometric parameters and cutting parameters of the circular tube to be cut, establish the model of the circular tube to be cut and the model of the cutting tool; The cutting tool model is aligned to the coordinate system of the circular tube model to be cut through coordinate system transformation. An initial coordinate system is defined with the axis of the circular tube model as the reference. Based on the axis angle and center distance in the user-input cutting parameters, a rotation and translation transformation matrix is ​​calculated to align the cutting tool model to the initial coordinate system. The rotation and translation transformation matrices are then combined to generate a global transformation matrix, which is applied to the vertex coordinates of the cutting tool model. The intersection point of the circular tube model to be cut and the cutting tool model is detected to generate a three-dimensional spatial coordinate point set of the intersection line. Specifically, the surface of the circular tube model to be cut is discretized into circumferential and axial equally divided points to form a grid point set. Projection detection is performed on each grid point in the grid point set to determine whether it satisfies the geometric constraints of the cutting tool model. The grid points that satisfy the geometric constraints are used as the intersection points to generate the three-dimensional spatial coordinate point set of the intersection line. A three-dimensional spatial coordinate point set is mapped to a two-dimensional plane to generate a unfolded diagram, and a CNC machining path is generated based on the coordinates of the unfolded diagram. Specifically, the circumferential angles of the three-dimensional spatial coordinate point set are converted into the horizontal coordinates of the unfolded diagram, and the axial coordinates are converted into the vertical coordinates of the unfolded diagram. Periodic boundary transition regions of the unfolded diagram are continuously corrected, and the unfolded diagram path is dynamically offset compensated based on tool parameters. The compensated unfolded diagram path is then converted into machining instruction codes recognizable by the CNC machine tool. The cutting tool model includes a cross-section cutting model or a circular tube cutting model. When the cutting tool model is a cross-section cutting model, the grid points are substituted into the plane equation and the result is judged to be less than the tolerance detection intersection point. When the cutting tool model is a circular tube cutting model, the vertical distance from the grid points to the cylinder axis is calculated and the result is judged to be less than or equal to the cutting circular tube radius detection intersection point. The step of aligning the cutting tool model to the coordinate system of the circular tube model to be cut through coordinate system transformation includes: The geometric engine calculates the bounding box of the cutting tool model and the bounding box of the circular tube model to be cut, respectively, and obtains the center point coordinates and corner point coordinates of each bounding box. Alignment is performed based on the center point coordinates and corner point coordinates of each bounding box, according to the alignment strategy selected by the user.

2. The method for generating the intersection path of circular tube cutting as described in claim 1, characterized in that, The cutting tool model includes a cross-section cutting model and a circular tube cutting model; The steps of establishing the model of the circular tube to be cut and the model of the cutting tool based on the input geometric parameters and cutting parameters of the circular tube to be cut include: Based on the input outer diameter, wall thickness, and length of the circular tube to be cut, construct the parametric equations of the circular tube model to be cut; Based on the input plane normal vector, offset, and cross-sectional shape parameters, construct the plane equation and cross-sectional profile of the cross-section cutting model; or, Based on the input intersecting circular tube radius, axial angle, and center distance, the parametric equations of the circular tube cutting model are constructed.

3. The method for generating the intersection path of circular tube cutting as described in claim 1, characterized in that, The step of aligning based on the center point coordinates and corner point coordinates of each bounding box, according to the alignment strategy selected by the user, includes: If the alignment strategy is center alignment, then the center point of the cutting tool bounding box coincides with the center point of the bounding box of the circular tube to be cut; If the alignment strategy is corner alignment, then the specified corner points of the cutting tool bounding box are aligned with the corresponding corner points of the bounding box of the circular tube to be cut. If the alignment strategy is axial alignment, then adjust the axis direction of the cutting tool model so that it is parallel to or at a preset angle to the axis of the circular tube model to be cut.

4. The method for generating the intersection path of circular tube cutting as described in claim 1, characterized in that, After the step of aligning the cutting tool model to the coordinate system of the circular tube model to be cut through coordinate system transformation, the method further includes: Based on the target position of the processing area input by the user, calculate the translation offset and move the bounding box of the cutting tool model to the target position; or, Based on the scaling factor input by the user, scale the cutting tool model proportionally and update the vertex coordinates of the cutting tool model; or, Based on the spacing parameters input by the user, the total gap space of all the cutting tool models is calculated, the gap is evenly divided according to the spacing parameters, and the positions of each cutting tool model are rearranged in order.

5. A device for generating the intersection path of a circular tube cutting process, characterized in that, The device includes: a memory, a processor, and a computer program stored in the memory and executable on the processor, the computer program being configured to implement the steps of the method for generating the intersection path of a circular tube cut as described in any one of claims 1 to 4.

6. A storage medium, characterized in that, The storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium. When the computer program is executed by a processor, it implements the steps of the method for generating the intersection path of a circular tube cut as described in any one of claims 1 to 4.

Citation Information

Patent Citations

  • Method for automatically cutting round pipe by robot

    CN115625716A

  • Graphics-based space attitude automatic planning method for aviation pipe fitting model

    CN117972932A

  • Pipe cutting part cutting method and system

    CN118768752A