Round pipe cutting intersecting line path generation method and device and storage medium

Through parameterized modeling and rotation transformation matrix alignment of the circular tube and cutting tool model, an efficient cutting path is generated, which solves the problem of low efficiency in the generation of circular tube cutting paths in the existing technology, and realizes automated planning and high-precision cutting.

CN120295227AActive Publication Date: 2025-07-11SHENZHEN RUIDA TECH CO LTD
View PDF 9 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In the complex situation of handling tilt angle intersection or position offset, the calculation efficiency of circular tube cutting paths is low, making it difficult to meet the real-time machining needs.

Method used

The precise circular tube and cutting tool model is generated through parameterized modeling, and the rotation transformation matrix is used to achieve model alignment with dynamic axis correction, a three-dimensional spatial coordinate point set is generated, and it is mapped to a two-dimensional plane to generate an expansion diagram, and the cutting path is automatically planned.

Benefits of technology

The efficiency and accuracy of circular tube cutting path generation is improved, manual intervention is reduced, and calculation stability and cutting efficiency are improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120295227A_ABST
    Figure CN120295227A_ABST
Patent Text Reader

Abstract

The invention discloses a circular pipe cutting intersecting line path generation method and device and a storage medium, and relates to the technical field of data processing.The circular pipe cutting intersecting line path generation method comprises the steps that a to-be-cut circular pipe model and a cutting tool model are established according to input geometric parameters and cutting parameters of a to-be-cut circular pipe; through coordinate system transformation, the cutting tool model is aligned to a coordinate system of the to-be-cut circular tube model; detecting an intersection point of the to-be-cut circular tube model and the cutting tool model, and generating a three-dimensional space coordinate point set of intersecting lines; and mapping the three-dimensional space coordinate point set to a two-dimensional plane to generate an expanded view, and generating a numerical control machining path according to coordinates of the expanded view. The technical effect of improving the path generation efficiency of circular pipe cutting is achieved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of data processing, and particularly to a method, device, and storage medium for generating the intersection path of circular pipe cutting. Background Art

[0002] Currently, when the circular pipe cutting path calculation method encounters complex situations such as inclined angle intersections or position offsets, limited by simple geometric relationships, it can only handle simple vertical intersections and cannot handle complex spatial intersections. When dealing with problems with high computational complexity, it requires a large amount of time for repeated calculations and is difficult to meet the real-time processing requirements, resulting in low path generation efficiency in numerical control machining.

[0003] The above content is only used to assist in understanding the technical solution of the present application and does not represent an admission that the above content is prior art. Summary of the Invention

[0004] The main purpose of the present application is to provide a method, device, and storage medium for generating the intersection path of circular pipe cutting, aiming to solve the technical problem of low path generation efficiency in circular pipe cutting during numerical control machining.

[0005] To achieve the above purpose, the present application proposes a method for generating the intersection path of circular pipe cutting, and the method for generating the intersection path of circular pipe cutting includes: Establish a model of the circular pipe to be cut and a model of the cutting tool according to the geometric parameters and cutting parameters of the circular pipe to be cut input; Align the cutting tool model to the coordinate system of the circular pipe to be cut through coordinate system transformation; Detect the intersection points of the circular pipe model to be cut and the cutting tool model, and generate a three-dimensional space coordinate point set of the intersection line; Map the three-dimensional space coordinate point set to a two-dimensional plane to generate a developed drawing, and generate a numerical control machining path according to the developed drawing coordinates.

[0006] In one embodiment, the cutting tool model includes a cross-section cutting model and a circular pipe cutting model; The step of establishing a model of the circular pipe to be cut and a model of the cutting tool according to the geometric parameters and cutting parameters of the circular pipe to be cut input includes: Construct a parametric equation of the circular pipe model to be cut according to the outer diameter, wall thickness, and length of the circular pipe to be cut input; Construct a plane equation and a cross-section contour of the cross-section cutting model according to the input plane normal vector, offset, and cross-section shape parameters; or, Construct a parametric equation of the circular pipe cutting model according to the input intersecting circular pipe radius, axis angle, and axial center distance.

[0007] In one embodiment, the step of aligning the cutting tool model to the coordinate system of the to-be-cut circular tube model through coordinate system transformation includes: Define an initial coordinate system with the axis of the to-be-cut circular tube model as the reference; Calculate the rotation transformation matrix and translation transformation matrix for aligning the cutting tool model to the initial coordinate system according to the axis angle and axis distance in the cutting parameters input by the user; Compound the rotation transformation matrix and the translation transformation matrix to generate an overall transformation matrix and apply it to the vertex coordinates of the cutting tool model.

[0008] In one embodiment, after the step of aligning the cutting tool model to the coordinate system of the to-be-cut circular tube model through coordinate system transformation, it includes: Calculate the cutting tool bounding box of the cutting tool model and the to-be-cut circular tube bounding box of the to-be-cut circular tube model respectively through a geometric engine, and obtain the center point coordinates and corner point coordinates of each bounding box; Align based on the alignment strategy selected by the user according to the center point coordinates and corner point coordinates of each bounding box.

[0009] In one embodiment, the step of aligning based on the alignment strategy selected by the user according to the center point coordinates and corner point coordinates of each bounding box includes: If the alignment strategy is center alignment, then make the center point of the cutting tool bounding box coincide with the center point of the to-be-cut circular tube bounding box; If the alignment strategy is corner alignment, then align the specified corner point of the cutting tool bounding box with the corresponding corner point of the to-be-cut circular tube bounding box; If the alignment strategy is axial alignment, then adjust the axis direction of the cutting tool model to be parallel or at a preset angle to the axis of the to-be-cut circular tube model.

[0010] In one embodiment, after the step of aligning the cutting tool model to the coordinate system of the to-be-cut circular tube model through coordinate system transformation, it further includes: Calculate the translation offset according to the target position of the processing width input by the user, and move the bounding box of the cutting tool model to the target position; or, Scale the cutting tool model proportionally according to the scale factor input by the user, and update the vertex coordinates of the cutting tool model; or, Calculate the total clearance space of all the cutting tool models according to the spacing parameter input by the user, equally divide the clearance according to the spacing parameter and rearrange the positions of each cutting tool model in sequence.

[0011] In one embodiment, the step of detecting the intersection points of the to-be-cut circular pipe model and the cutting tool model to generate a three-dimensional spatial coordinate point set of the intersection curve includes: Discretize the surface of the to-be-cut circular pipe model into circumferentially equally-spaced points and axially equally-spaced points to form a grid point set; Perform projection detection on each grid point in the grid point set to determine whether the geometric constraint conditions of the cutting tool model are satisfied; Use the grid points that satisfy the geometric constraint conditions as the intersection points to generate a three-dimensional spatial coordinate point set of the intersection curve.

[0012] In one embodiment, the step of mapping the three-dimensional spatial coordinate point set to a two-dimensional plane to generate a developed drawing and generating a numerical control processing path according to the coordinates of the developed drawing includes: Convert the circumferential angle of the three-dimensional spatial coordinate point set into the abscissa of the developed drawing, and convert the axial coordinate into the ordinate of the developed drawing; Perform continuity correction on the periodic boundary jump region of the developed drawing, and perform dynamic offset compensation on the path of the developed drawing according to the tool parameters; Convert the compensated path of the developed drawing into a machining instruction code recognizable by a numerical control machine tool.

[0013] In addition, to achieve the above object, the present application also provides a device for generating an intersection curve path for circular pipe cutting, the device includes: 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 method for generating an intersection curve path for circular pipe cutting as described above.

[0014] In addition, to achieve the above object, the present application also provides a storage medium, the storage medium is a computer-readable storage medium, and a computer program is stored on the storage medium, and when the computer program is executed by a processor, the steps of the method for generating an intersection curve path for circular pipe cutting as described above are implemented.

[0015] This application provides a method for generating the intersecting line path of circular pipe cutting. First, according to the geometric parameters and cutting parameters of the circular pipe to be cut input, a model of the circular pipe to be cut and a model of the cutting tool are established; through coordinate system transformation, the cutting tool model is aligned to the coordinate system of the circular pipe to be cut; the intersection points of the circular pipe model to be cut and the cutting tool model are detected to generate a set of three-dimensional space coordinate points of the intersecting line; the set of three-dimensional space coordinate points is mapped to a two-dimensional plane to generate a developed drawing, and a numerical control processing path is generated according to the coordinates of the developed drawing. This application automatically generates accurate circular pipe and cutting tool models through parametric modeling, eliminates the errors of manual modeling, ensures that the geometric parameters are strictly matched with the processing requirements, and improves the modeling accuracy and efficiency. Based on the rotation transformation matrix and dynamic axis center correction, the spatial alignment of the cutting tool model and the circular pipe model is realized, avoiding the calculation deviation of the intersecting line caused by the coordinate system offset and improving the calculation stability. Mapping the set of three-dimensional space coordinate points to a two-dimensional plane to generate a developed drawing and generating a numerical control processing path according to the coordinates of the developed drawing realizes the automatic planning of the cutting path, reduces manual intervention, and improves the cutting efficiency. This application achieves the technical effect of improving the path generation efficiency of circular pipe cutting. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] The drawings herein are incorporated into the specification and form a part of the specification, showing embodiments consistent with this application, and are used together with the specification to explain the principles of this application.

[0017] In order to more clearly illustrate the technical solutions in the embodiments of this application or the prior art, the following will briefly introduce the drawings required for use in the description of the embodiments or the prior art. Obviously, for those of ordinary skill in the art, without creative efforts, other drawings can also be obtained based on these drawings.

[0018] Figure 1 It is a schematic flow chart provided for Embodiment 1 of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 2 It is a schematic diagram of the operation selection interface related to circular pipe cutting provided for Embodiment 1 of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 3 It is a schematic diagram of the pipe diameter setting interface provided for Embodiment 1 of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 4 It is a schematic diagram of the circular pipe surface cutting drawing interface provided for Embodiment 1 of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 5 It is a schematic diagram of the intersecting line cutting drawing interface provided for Embodiment 1 of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 6It is a schematic flowchart provided for the second embodiment of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 7 It is a schematic flowchart provided for the third embodiment of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 8 It is a schematic flowchart provided for the fourth embodiment of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 9 It is a schematic flowchart provided for the fifth embodiment of the method for generating the intersecting line path of circular pipe cutting in this application; Figure 10 It is a schematic diagram of the device structure of the hardware operating environment involved in the method for generating the intersecting line path of circular pipe cutting in the embodiments of this application.

[0019] The realization of the purpose, functional characteristics and advantages of this application will be further described with reference to the embodiments and the accompanying drawings. Detailed implementation manners

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

[0021] In order to better understand the technical solutions of this application, the following will be described in detail with reference to the accompanying drawings of the specification and the specific implementation manners.

[0022] The main solution of the embodiments of this application is: At present, when the circular pipe cutting path calculation method encounters complex situations such as intersecting at an inclined angle or position offset, limited by simple geometric relationships, it can only handle simple vertical intersections and cannot handle complex spatial intersections. When dealing with problems with high computational complexity, it takes a lot of time to calculate repeatedly, making it difficult to meet the real-time processing requirements and resulting in low path generation efficiency in numerical control machining.

[0023] This application automatically generates accurate circular pipe and cutting tool models through parametric modeling, eliminates manual modeling errors, ensures strict matching of geometric parameters with processing requirements, and improves modeling accuracy and efficiency. Based on the rotation transformation matrix and dynamic axis center correction, the spatial alignment of the cutting tool model and the circular pipe model is realized, avoiding the deviation of the intersecting line calculation caused by coordinate system offset and improving the calculation stability. Mapping the three-dimensional space coordinate point set to a two-dimensional plane to generate a developed drawing, and generating a numerical control machining path according to the coordinates of the developed drawing, realizing the automatic planning of the cutting path, reducing manual intervention and improving the cutting efficiency.

[0024] It should be noted that the execution subject of this embodiment can be a circular tube cutting intersection path generation device, or a computing service device with data processing, network communication, and program running functions, such as a tablet computer, a personal computer, a mobile phone, etc., or a control device of a circular tube cutting intersection path generation device capable of implementing the above functions. This embodiment does not make specific limitations on this. The following takes the circular tube cutting intersection path generation device as the execution subject as an example to illustrate this embodiment and the following embodiments.

[0025] Embodiment 1 Based on this, the present application proposes a circular tube cutting intersection path generation method for the first embodiment. Please refer to Figure 1 , the circular tube cutting intersection path generation method includes: Step S10, establish a model of the circular tube to be cut and a model of the cutting tool according to the geometric parameters and cutting parameters of the circular tube to be cut input.

[0026] In this embodiment, the geometric parameters are a set of numerical values defining the physical size and spatial direction of the circular tube, including the outer diameter, wall thickness, length, axis vector, etc. The cutting parameters are parameters describing the type and spatial relationship of the cutting tool, including the cutting tool type, cutting angle, cutting position, etc. The model of the circular tube to be cut is a digital representation of the circular tube to be cut constructed based on the geometric parameters, and is 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, and is used to simulate the interaction between the cutting tool and the circular tube to be cut.

[0027] As an alternative implementation, according to the geometric parameters and cutting parameters of the circular tube to be cut input by the user through the graphical interface, use 3D modeling software to create a model of the circular tube to be cut according to the input geometric parameters. Create a cutting tool model in the 3D modeling software according to the cutting angle and shape in the cutting parameters.

[0028] As another alternative implementation, according to the geometric parameters and cutting parameters of the circular tube to be cut input by the user through the command line or file, use a programming language in combination with a mathematics library and a graphics library to calculate the geometric shape of the circular tube to be cut according to the geometric parameters and generate model data. Generate the model data of the cutting tool through programming according to the cutting parameters.

[0029] As another alternative implementation, according to the geometric parameters and cutting parameters of the circular tube to be cut input by the user in the parametric modeling environment, use parametric modeling tools to automatically create a model of the circular tube to be cut according to the input geometric parameters. Select or define the corresponding cutting tool model in the parametric modeling environment according to the cutting parameters.

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

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

[0032] Optionally, step S10 includes: Step S11, construct a parametric equation of the circular tube model to be cut according to the outer diameter, wall thickness and length of the circular tube to be cut input.

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

[0034] Exemplarily, based on the outer diameter and the length L, construct a cylindrical equation of the circular tube to be cut, and the equation is: “ ”.

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

[0036] It should be noted that the plane normal vector is a vector perpendicular to the cutting plane, which is used to determine the direction of the plane. The offset is the offset distance of the cutting plane relative to the axis of the circular tube model to be cut or other reference points. The cross-section shape parameter is a parameter describing the cross-section shape of the cutting tool. The plane equation is a mathematical equation used to describe the position and direction of the cutting plane. The cross-section contour is the contour shape of the cutting tool on the cutting plane.

[0037] Exemplarily, according to the plane normal vector and the offset generate a plane equation, and superimpose the cross-section contour. The plane equation is “ ”. If the cross-section shape parameter is circular, it satisfies “ ” in the local coordinate system ( is the local coordinate of the plane); if the cross-section shape parameter is rectangular, it satisfies “ ” and “ ” ( are the width and height).

[0038] Step S13: Construct the parametric equation of the circular tube cutting model based on the input radius of the intersecting circular tubes, the axis angle, and the center distance.

[0039] It should be noted that the radius of the intersecting circular tubes is the radius of the circular tube used for cutting that intersects the circular tube to be cut. The axis angle is the angle between the axes of the two circular tubes. The center distance is the distance between the axes of the two circular tubes.

[0040] Exemplarily, based on the radius of the intersecting circular tubes , the axis angle , and the center distance , construct the oblique cylinder equation of the circular tube cutting model, " ".

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

[0042] Align the coordinate system of the cutting tool model with that of the circular tube to be cut to ensure that the cutting tool model performs intersection detection and cutting simulation with the circular tube model at the correct position and orientation.

[0043] In this embodiment, coordinate system transformation is a process of converting geometric elements such as points, lines, and planes in one coordinate system to another through operations such as rotation and translation. Alignment is to make two or more models reach a specific relative position and attitude relationship in space for accurate simulation or operation.

[0044] As an alternative implementation, define the initial coordinate system based on the axis of the circular tube model, automatically calculate the rotation transformation matrix and the translation transformation matrix according to the cutting parameters input by the user in the parametric modeling environment, and apply the calculated overall transformation matrix to the cutting tool model to align it to the coordinate system of the circular tube model.

[0045] Optionally, step S20 includes: Step S21: Define the initial coordinate system based on the axis of the circular tube to be cut.

[0046] It should be noted that the axis is the center line of the circular tube to be cut, that is, the axis of symmetry of the circular tube to be cut. The initial coordinate system is a coordinate system defined based on the axis of the circular tube to be cut for subsequent coordinate transformation and alignment operations.

[0047] Exemplarily, define a three-dimensional coordinate system with the axis of the circular tube to be cut as the Z-axis and the center of the left end face of the circular tube to be cut as the origin.

[0048] As an alternative implementation, if the axis of the circular tube to be cut is not the standard Z-axis, through the axis direction vector " "Define a coordinate system, calculate the rotation matrix to align the axis direction vector to the Z-axis, and transform the vertex coordinates of the circular tube to be cut into the aligned coordinate system. is the angle between the original axis and the Z-axis, and the formula is: " ".

[0049] As another alternative implementation, according to the center points and at both ends of the circular tube to be cut, calculate the axis direction vector: " ".

[0050] Step S22, according to the axis angle and the axial center distance in the cutting parameters input by the user, calculate the rotation transformation matrix and the translation transformation matrix for aligning the cutting tool model to the initial coordinate system.

[0051] 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 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 vector along a specified direction by a certain distance.

[0052] Exemplarily, according to the axis angle, use the rotation matrix formula to calculate the rotation transformation matrix. For example, the rotation matrix for rotating around the X-axis by angle is: " ".

[0053] Optionally, it can also be rotated around any axis, and calculated by the quaternion method. is the unit vector of the rotation axis, and the rotation matrix is: " ", where I is the identity matrix representing the three-dimensional space, specifically the 3×3 identity matrix " ".

[0054] Exemplarily, according to the axial center distance, use the translation matrix formula to calculate the translation transformation matrix. For example, the translation matrix for the axial center distance offset along the X-axis direction is: " ".

[0055] Optionally, if the axial center distance needs to be in any direction in space ( ), the translation matrix is: " ".

[0056] Step S23, compound the rotation transformation matrix and the translation transformation matrix to generate an overall transformation matrix and apply it to the vertex coordinates of the cutting tool model.

[0057] The rotation transformation and translation transformation are combined into an overall transformation matrix to simplify the transformation operation and improve the calculation efficiency. The transformation is applied to the vertex coordinates of the cutting tool model to accurately align it to the initial coordinate system.

[0058] It should be noted that the overall transformation matrix is ​​a matrix formed by combining a rotation transformation matrix and a translation transformation matrix, and is used to perform rotation and translation operations simultaneously.

[0059] 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. Multiplying by the overall transformation matrix M, we get the transformed coordinates “p′=M·p”.

[0060] Step S30, detecting the intersection of the circular tube model to be cut and the cutting tool model, and generating a three-dimensional space coordinate point set of the intersection line.

[0061] Determine the geometric intersection position of the cutting tool model and the round tube model to be cut, generate accurate intersection lines, and provide data basis for subsequent development drawings and processing paths. Discretize the intersection lines into a three-dimensional coordinate point set to drive the tool motion trajectory of the CNC machine tool.

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

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

[0064] For example, according to the radius of the round tube to be cut , Radius of intersecting circular tubes , axis angle and axis distance , the equation of the circular tube to be cut is " ”, the cutting tool equation is “ ",Will" "Substitute the equation of the circular tube to be cut into the equation and eliminate the variables to obtain the intersection line equation" and ”, and we get ”, along the circumferential angle (0 to 2π) uniform sampling, generating a point set " , , ”.

[0065] As another alternative embodiment, the cutting tool model is a cross-sectional cutting model and the cross-section is a curved surface. When the cutting tool model is a circular tube cutting model and the circular tube model to be cut is obliquely intersecting with the circular tube cutting model, the surface of the circular tube model to be cut is discretized into a grid point set, and the intersection line projection of each grid point in the grid point set is detected to determine whether it is inside the cutting tool model. For a cylindrical cutting tool, calculate whether the shortest distance from the point to the axis of the cutting cylinder is less than or equal to the radius of the circular tube to be cut; for a planar cutting tool, determine whether the point is within the region defined by the plane equation to determine the three-dimensional space coordinate point set.

[0066] Optionally, the three-dimensional space coordinate point set is iteratively optimized by the Newton-Raphson method, and the residual function " " is defined, where , is the equation of the circular tube model to be cut and the cutting tool model. The iteration formula is " ", where J is the Jacobian matrix, is the parameter vector or scalar at the nth iteration, is the parameter vector or scalar at the (n + 1)th iteration.

[0067] Step S40: Map the three-dimensional space coordinate point set to a two-dimensional plane to generate a developed drawing, and generate a numerical control machining path according to the coordinates of the developed drawing.

[0068] In this embodiment, the developed drawing is to unfold the cylindrical surface of the circular tube model to be cut into a plane rectangle, and the three-dimensional intersection line is mapped into a two-dimensional curve. The circumference of the cylinder corresponds to the width of the developed drawing, and the length of the circular tube corresponds to the height of the developed drawing. The numerical control machining path is determined based on the position of the intersection line of the cutting tool model with respect to the circular tube to be cut, that is, the cutting position. The numerical control machining path can also be the path code of the numerical control machining. The path code 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.

[0069] As an alternative embodiment, the point ( , , ) in the cylindrical coordinate system of the circular tube model to be cut is mapped to the plane developed drawing, where the circumferential angle is converted to the width of the developed drawing "arc length ", the axial position z is taken as the height of the developed drawing. Calculate the circumferential angle and axial position of each point in the three-dimensional intersection line point set in sequence to generate the corresponding two-dimensional coordinates. Sort the point set according to the circumferential arc length or axial position of the developed drawing to ensure the continuity of the cutting path. Use B-spline curves to perform smooth interpolation on the discrete points, reduce the number of instructions, and control the precision error.

[0070] Optionally, convert the two-dimensional path points into machine tool instructions to generate numerical control machining path codes, including movement instructions, speed settings, and laser switch instructions.

[0071] As another alternative implementation of the three-dimensional to two-dimensional mapping, for the development of special-shaped pipes, the elliptical pipe approximates the elliptical circumference through numerical integration and converts the circumferential angle into the non-uniform width of the developed drawing. The square pipe directly unfolds each plane into an independent rectangle and marks the seam positions.

[0072] Optionally, if the intersection line is discontinuous, map each segment independently and mark the seam positions.

[0073] As an example of this embodiment, in response to the user's circular pipe cutting operation, refer to Figure 2 , render the circular pipe cutting-related operation selection interface to the user device for the user to complete operations such as pipe diameter setting, circular pipe surface cutting drawing, and intersection line cutting drawing. If the user selects the pipe diameter setting operation, refer to Figure 3 , render the pipe diameter setting interface to the user device. Through the pipe diameter setting interface, the user can set the pipe diameter of the cutting pipe and provide diverse choices of diameter or radius. The size of the subsequent processing area will change according to the set pipe diameter. If the user selects the circular pipe surface cutting drawing operation, refer to Figure 4 , render the circular pipe surface cutting drawing interface to the user device. Through the circular pipe surface cutting drawing interface, the user can set the pipe diameter of the circular pipe to be cut and the intersection angle of the cutting section. If the user selects the intersection line cutting drawing operation, refer to Figure 5 , render the intersection line cutting drawing interface to the user device. Through the intersection line cutting drawing interface, the user can set the pipe diameter of the circular pipe to be cut, the angle of the intersecting circular pipe, the pipe diameter of the intersecting circular pipe, and the axial distance between the circular pipe to be cut and the intersecting circular pipe. According to the various parameters set by the user, automatically generate the two-dimensional plane developed drawing of the cutting, render the developed drawing to the user, and then generate the numerical control machining path according to the coordinates of the developed drawing.

[0074] This embodiment provides a method for generating the intersecting line path of circular tube cutting. First, this embodiment automatically generates accurate circular tube and cutting tool models through parametric modeling, eliminates manual modeling errors, ensures strict matching between geometric parameters and processing requirements, and improves modeling accuracy and efficiency. Based on the rotation transformation matrix and dynamic axis center correction, the spatial alignment of the cutting tool model and the circular tube model is realized, avoiding the deviation of intersecting line calculation caused by coordinate system offset and improving calculation stability. Mapping the three-dimensional space coordinate point set to a two-dimensional plane to generate a developed drawing, and generating a numerical control processing path according to the coordinates of the developed drawing, realizing the automatic planning of the cutting path, reducing manual intervention, and improving cutting efficiency.

[0075] Based on the first embodiment, the second embodiment of the present application proposes a method for generating the intersecting line path of circular tube cutting. After step S20, it includes: Figure 6 After that, it includes: Step S50, respectively calculate the cutting tool bounding box of the cutting tool model and the to-be-cut circular tube bounding box of the to-be-cut circular tube model through a geometric engine, and obtain the center point coordinates and corner point coordinates of each bounding box.

[0076] Quickly judge the rough spatial position relationship between the two models through the bounding box, reduce the computational amount of subsequent precise calculations, and pre-judge whether the models may intersect based on the overlap of the bounding boxes to avoid invalid calculations. By extracting the center point and corner point coordinates of the bounding box, a reference benchmark is provided for subsequent coordinate system alignment.

[0077] It should be noted that the geometric engine is a core algorithm library for processing geometric model calculations, supporting functions such as Boolean operations, bounding box generation, and collision detection. The cutting tool bounding box is the smallest axis-aligned rectangular box that encloses the cutting tool model, used to simplify the geometric representation of the cutting tool model. The to-be-cut circular tube bounding box is the smallest axis-aligned rectangular box that encloses the to-be-cut circular tube model, used to simplify the geometric representation of the to-be-cut circular tube 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 sides aligned with the coordinate axes, with fast calculation speed but low accuracy; the oriented bounding box is a bounding box rotated according to the main direction of the model, fitting the model shape, with high accuracy but complex calculation.

[0078] Exemplarily, the geometric center point of the bounding box , and the calculation formula is: “ ”.

[0079] Exemplarily, for the calculation of corner point coordinates, the 8 vertices of the bounding box, and the vertices of the axis-aligned bounding box are to .

[0080] Step S60: Align according to the center point coordinates and corner point coordinates of each bounding box based on the alignment strategy selected by the user.

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

[0082] Optionally, step S60 includes: Step S61: If the alignment strategy is center alignment, then make the center point of the cutting tool bounding box coincide with the center point of the circular tube to be cut bounding box.

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

[0084] Exemplarily, calculate the translation vector " , , " in the translation matrix. " , , " represents the coordinate components of the circular tube model to be cut in three-dimensional space, " , , " represents the coordinate components of the cutting tool model in three-dimensional space, and " " represents the position deviation of the circular tube and the tool in three directions, that is, the coordinate difference. Apply the translation matrix T to all vertices of the cutting tool model. The translation matrix is a homogeneous matrix used to move the model, and its form is: " ", where is the translation vector.

[0085] Step S62: If the alignment strategy is corner alignment, then align the specified corner point of the cutting tool bounding box with the corresponding corner point of the circular tube to be cut bounding box.

[0086] It should be noted that corner alignment is to align the corner points of the cutting tool bounding box with the corresponding corner points of the circular tube to be cut bounding box so that the two coincide at the specified position.

[0087] Exemplarily, according to the corner point indices of the cutting tool and the circular tube to be cut specified by the user, determine the corresponding corner points. The corner points of the circular tube to be cut bounding box are " ", and the corner points of the cutting tool bounding box are " ". Calculate the translation vector " " in the translation matrix, and apply the translation matrix T to all vertices of the cutting tool model.

[0088] Step S63, if the alignment strategy is axial alignment, adjust the axis direction of the cutting tool model so that it is parallel to or forms a preset angle with the axis of the round tube model to be cut.

[0089] It should be noted that axial alignment is to make the axis vector of the cutting tool consistent with or form a specified angle with the axis direction of the round tube to be cut through a rotation transformation.

[0090] Exemplarily, the axis direction of the round tube to be cut is the default Z-axis direction vector " ". First, determine the target axis direction . If parallel alignment is required, the target direction is ; if an angle is required, the target direction is the rotated vector. Use the Rodriguez formula to calculate the rotation matrix , and transform the axis direction of the cutting tool to , that is, " ", where K is the cross product matrix of " × ", and is the included angle between the two vectors. First rotate and then translate, ensuring that the rotation center is the center of the bounding box of the cutting tool, " ", is to translate the cutting tool to the origin, is to translate back to the center of the original bounding box after rotation.

[0091] This embodiment provides a method for generating the intersecting line path of round tube cutting. First, this embodiment simplifies the complex three-dimensional model into a simple rectangular box representation by calculating the bounding boxes of the cutting tool model and the round tube model to be cut, reducing the computational complexity and improving the computational efficiency. According to the alignment strategy selected by the user, the cutting tool model is accurately aligned with the round tube model to be cut, ensuring that the cutting tool cuts the round tube model at the correct position and direction, improving the automation degree and efficiency of the cutting process.

[0092] Based on Embodiment 1, Embodiment 3 of this application proposes a method for generating the intersecting line path of round tube cutting. Referring to Figure 7 , after step S20, it further includes: Step S70, calculate the translation offset according to the target position of the processing width input by the user, and move the bounding box of the cutting tool model to the target position.

[0093] It should be noted that the processing width is the range and position of the processing area, which is determined by the workbench surface of the machine tool or the size of the processing area. The target position is the three-dimensional coordinate point within the processing width specified by the user, representing 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.

[0094] Exemplarily, based on the target position and the current reference point coordinates of the original bounding box calculate the offset, and the calculation formula is " ", where , , . Then perform a translation transformation. For each vertex in the cutting tool model, apply the translation matrix " ", and recalculate the extreme points of the bounding box of the translated cutting tool, and update the reference point coordinates of the bounding box.

[0095] Step S80, scale the cutting tool model proportionally according to the scale factor input by the user, and update the vertex coordinates of the cutting tool model.

[0096] It should be noted that the scale factor is the 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.

[0097] As an alternative implementation, for each vertex in the cutting tool model, perform scalar scaling (isotropic scaling), and uniformly scale each vertex coordinate according to the scale factor s " ".

[0098] As an alternative implementation, for each vertex in the cutting tool model, perform vector scaling (anisotropic scaling), and independently scale each coordinate axis according to the scale factor ( , , ) " ".

[0099] Step S90, calculate the total clearance space of all the cutting tool models according to the spacing parameter input by the user, evenly divide the clearance according to the spacing parameter, and rearrange the positions of the cutting tool models in sequence.

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

[0101] As an alternative implementation, calculate the total clearance space, arrange it in sequence, initialize the starting position , and place each cutting tool model in turn, updating the position " ". According to the arrangement result, apply a translation transformation to each cutting tool model to the calculated position.

[0102] As another alternative implementation of the arrangement, perform a matrix arrangement, and calculate the position of each tool according to the number of rows and columns "rows×cols" " , ", where w is the width of a single cutting tool model and h is the height of a single cutting tool model.

[0103] Optionally, calculate the total clearance space for horizontal arrangement: " ", where is the width of the bounding box of the i-th tool and n is the number of tools.

[0104] Optionally, calculate the total clearance space for vertical arrangement: " ", where is the height of the bounding box of the i-th tool and n is the number of tools.

[0105] This embodiment provides a method for generating the intersection path of circular tube cutting. In this embodiment, first, by calculating the translation offset, the bounding box of the cutting tool model is accurately moved to the target position specified by the user, improving the operation efficiency and accuracy. According to the scale factor input by the user, the cutting tool model is scaled proportionally, which can adapt to different-sized machining tasks and enhance the flexibility and applicability of the system. According to the spacing parameter, reasonably calculate and allocate the clearance between the cutting tool models, improving the feasibility and efficiency of the operation.

[0106] Based on Embodiment 1, Embodiment 4 of the present application proposes a method for generating the intersection path of circular tube cutting. Referring to Figure 8 , step S30 includes: Step S31, discretize the surface of the circular tube model to be cut into circumferential equally divided points and axial equally divided points to form a grid point set.

[0107] It should be noted that the circumferential equally divided points are angular points evenly divided along the circumferential direction of the circular tube, corresponding to the width coordinates of the developed view. The axial equally divided points are longitudinal points evenly divided along the length direction of the circular tube, corresponding to the height coordinates of the developed view. The grid point set is the set of mapping points in three-dimensional space of the two-dimensional grid formed by the intersection of the circumferential and axial equally divided points.

[0108] Exemplarily, set the circumferential density N according to the radius of the circular tube and the accuracy requirement, and calculate the circumferential equally divided points " ". Set the axial density M according to the length L of the circular tube and the cutting tool size, and calculate the axial equally divided points " ". The set of mapping points in three-dimensional space of the two-dimensional grid formed by the intersection of the circumferential and axial equally divided points " ”.

[0109] In step S32, projection detection is performed on each grid point in the grid point set to determine whether the geometric constraint conditions of the cutting tool model are satisfied.

[0110] It should be noted that projection detection projects grid points onto the surface of the cutting tool model along a specific direction to calculate the projection distance or positional relationship. Geometric constraint conditions are used to determine whether a point satisfies the mathematical definition of the cutting tool model, including plane equations, cylindrical equations, and point cloud inclusion relationships.

[0111] Exemplarily, for cross-section cutting model detection, the plane equation method is used. For grid points , substitute them into the plane equation . If ( is the tolerance, such as 0.01 mm), then it is determined as an intersection point.

[0112] Exemplarily, for circular pipe cutting model detection, the distance threshold method is adopted. Calculate the perpendicular distance d from point to the axis of the cylinder. If ( is the radius of the cut circular pipe), then it is determined as an intersection point.

[0113] In step S33, the grid points that satisfy the geometric constraint conditions are used as the intersection points to generate a three-dimensional spatial coordinate point set of the intersection curve.

[0114] It should be noted that the intersection curve is a space curve formed by the intersection of the surfaces of two geometric bodies, which is represented as a sequence of points that satisfy the constraint conditions under discrete grids.

[0115] As an alternative implementation, the grid points that meet the conditions are used as candidate points. Each candidate point is traversed to check whether its adjacent grid points are also candidate points. If there are no other candidate points around a candidate point, it is determined as a noise point and removed. The candidate points are clustered using an algorithm, the point set in the dense area is retained, and the sparse noise points are removed. The candidate points are sorted in ascending order of the circumferential angle to form a continuous path along the surface of the circular pipe. If the intersection curve has multiple branches, they are grouped and sorted according to the axial position to form a three-dimensional spatial coordinate point set of the intersection curve.

[0116] Optionally, linear interpolation is performed. For the area where the distance between adjacent candidate points exceeds the threshold, intermediate points " " are inserted, and the candidate points are fitted using a cubic B-spline curve to generate a smooth intersection curve: " ", where is the cubic B-spline basis function.

[0117] Optionally, substitute the interpolation points into the original model equation to verify whether the residual is less than the threshold, and check the curvature change of adjacent line segments to avoid mutations.

[0118] This embodiment provides a method for generating the intersecting line path of circular pipe cutting. First, this embodiment realizes efficient sampling through parametric discretization to cover all potential intersection regions on the surface of the circular pipe to be cut. Then, combined with geometric equations and numerical methods, candidate points are accurately screened to improve efficiency and accuracy. Through topological connection and interpolation optimization, the discrete candidate points are optimized into a high-precision and continuous intersecting line point set for subsequent automatic generation of high-precision machining paths.

[0119] Based on the first embodiment, the fifth embodiment of this application proposes a method for generating the intersecting line path of circular pipe cutting, referring to Figure 9 , step S40 includes: Step S41, convert the circumferential angle of the three-dimensional space coordinate point set into the abscissa of the developed view, and convert the axial coordinate into the ordinate of the developed view.

[0120] It should be noted that the circumferential angle is the angle between the points on the cross-section of the circular pipe and the reference direction. The abscissa of the developed view is the arc length corresponding to the circumferential angle, and the ordinate of the developed view is the axial length of the circular pipe, corresponding to the vertical direction of the developed view.

[0121] Exemplarily, for each three-dimensional point ( ), calculate the circumferential angle , and convert it into the abscissa , to generate a two-dimensional point ( ).

[0122] Step S42, perform continuity correction on the periodic boundary jump region of the developed view, and perform dynamic offset compensation on the path of the developed view according to the tool parameters.

[0123] It should be noted that the periodic boundary jump region is the discontinuity of the abscissa of the developed view corresponding to the circumferential angles of 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.

[0124] As an optional implementation manner of continuity correction, find the points on the developed view abscissa near the boundary, that is, the jump points. Append a point near the right boundary after the left boundary, and append a point near the left boundary after the right boundary, and use linear interpolation or spline interpolation to generate transition points to connect the head and tail.

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

[0126] As an alternative implementation of dynamic offset compensation, perform normal direction offset compensation for each point on the path , calculate the path tangent direction using adjacent point differences, and the formula is: “ ”.

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

[0128] Step S43: Convert the compensated developed drawing path into a machining instruction code recognizable by a numerical control machine tool.

[0129] It should be noted that the machining instruction code, i.e., G-code, is a standardized numerical control instruction, which includes movement instructions, speed, auxiliary functions, etc.

[0130] As an alternative implementation, decompose the developed drawing path into straight line segments or circular arc segments, use B-spline interpolation for complex curves to generate piecewise linear approximations and control errors. Sort according to the geometric proximity of the developed drawing path to reduce the tool idle travel distance, and divide the large developed drawing into multiple sub-path blocks. For straight line segments, convert the path between adjacent points into a linear interpolation instruction; for circular arc segments, detect the collinearity of three points and convert it into a clockwise or counterclockwise circular arc instruction.

[0131] Optionally, set the feed rate according to the material hardness and thickness of the pipe to be cut, and match the corresponding power according to the heat absorption characteristics of the material of the pipe to be cut.

[0132] Optionally, keep the local angle unchanged when unfolding the cylindrical surface of the pipe to be cut into a plane to avoid graphic distortion. The coordinate transformation formula for unfolding the cylindrical surface into a rectangle is “ , ”, where is the radius of the pipe,[[]]ID=35 is the circumferential angle, and z is the axial coordinate. Perform G-code compression, detect the collinear point sequence, and merge it into a single G01 instruction. If three points , , are collinear, delete the middle point. Dynamically adjust the feed rate F according to the local curvature of the developed drawing: “ ”, where the greater the curvature, the lower the speed.

[0133] ​This embodiment provides a method for generating the intersecting line path of circular tube cutting. First, in this embodiment, the three-dimensional geometry is unfolded into a two-dimensional plane through parametric mapping, and the complete topological information of the surface of the circular tube to be cut is retained. The boundary jump is eliminated by interpolation closing or multi-period unfolding, and dynamic compensation is achieved by normal offset to ensure the continuity of the unfolded drawing path. The two-dimensional unfolded drawing is accurately converted into a numerical control instruction through path segmentation optimization, improving the efficiency and accuracy of generating the intersecting line path of circular tube cutting.

[0134] 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 intersecting line path of circular tube cutting in this application. Based on this technical concept, more forms of simple transformations are within the protection scope of this application.

[0135] This application provides a device for generating the intersecting line path of circular tube cutting. The device for generating the intersecting line path of circular tube cutting includes: at least one processor; and a memory communicatively connected to the at least one processor; wherein, the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can execute the method for generating the intersecting line path of circular tube cutting in the first embodiment above.

[0136] Next, refer to Figure 10 , which shows a schematic structural diagram of a device for generating the intersecting line path of circular tube cutting suitable for implementing the embodiments of this application. The device for generating the intersecting line path of circular tube cutting in the embodiments of this application may include, but is not limited to, mobile terminals such as mobile phones, laptop computers, personal digital assistants (PDAs, Personal Digital Assistants), tablet computers (PADs, Portable Application Descriptions), etc., and fixed terminals such as desktop computers, etc. Figure 10 The device for generating the intersecting line path of circular tube cutting shown is only an example and should not bring any limitation to the functions and usage scope of the embodiments of this application.

[0137] As Figure 10As shown, the circular tube cutting intersection path generation device may include a processing device 1001 (such as a central processing unit, a graphics processing unit, etc.), which can perform various appropriate actions and processes according to the program stored in the read-only memory (ROM, Read Only Memory) 1002 or the program loaded from the storage device 1003 into the random access memory (RAM, Random Access Memory) 1004. In the random access memory 1004, various programs and data required for the operation of the circular tube cutting intersection path generation device are also stored. The processing device 1001, the read-only memory 1002, and the random access memory 1004 are connected to each other through a bus 1005. An input / output (I / O) interface 1006 is also connected to the bus. Generally, the following systems may be connected to the I / O interface 1006: an input device 1007 including, for example, a touch screen, a touchpad, a keyboard, a mouse, an image sensor, a microphone, an accelerometer, a gyroscope, etc.; an output device 1008 including, for example, a liquid crystal display (LCD, Liquid Crystal Display), a speaker, a vibrator, etc.; a 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 circular tube cutting intersection path generation device to communicate with other devices wirelessly or wiredly to exchange data. Although the figure shows a circular tube cutting intersection path generation device with various systems, it should be understood that it is not required to implement or have all the shown systems. More or fewer systems can be alternatively implemented or had.

[0138] In particular, according to the embodiments disclosed in the present application, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, the embodiments disclosed in the present application include a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program contains program codes for performing the methods shown in the flowcharts. In such an embodiment, the computer program can be downloaded and installed from the network through the 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 disclosed in the present application are executed.

[0139] The circular tube cutting intersection path generation device provided by the present application adopts the circular tube cutting intersection path generation method in the above-mentioned embodiment, and can solve the technical problem of low efficiency in generating the path of circular tube cutting in numerical control machining. Compared with the prior art, the beneficial effects of the circular tube cutting intersection path generation device provided by the present application are the same as those of the circular tube cutting intersection path generation method provided by the above-mentioned embodiment, and other technical features in the circular tube cutting intersection path generation device are the same as the features disclosed in the method of the previous embodiment, and will not be elaborated here.

[0140] It should be understood that each part disclosed in this application can be implemented by hardware, software, firmware, or a combination thereof. In the description of the above embodiments, specific features, structures, materials, or characteristics can be combined in a suitable manner in any one or more embodiments or examples.

[0141] As described above, the above is only the specific implementation manner of this application, but the protection scope of this application is not limited thereto. Any person skilled in the art can easily think of changes or substitutions within the technical scope disclosed in this application, and all should be covered by the protection scope of this application. Therefore, the protection scope of this application should be subject to the protection scope of the claims.

[0142] This application provides a computer-readable storage medium having computer-readable program instructions (i.e., computer programs) stored thereon, and the computer-readable program instructions are used to execute the circular tube cutting intersection line path generation method in the above embodiments.

[0143] The computer-readable storage medium provided by this application can be, for example, a USB flash drive, but is not limited to electrical, magnetic, optical, electromagnetic, infrared, or semiconductor systems, devices, or any combination of the above. More specific examples of computer-readable storage media can include, but are not limited to: electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM), or flash memory, optical fibers, portable compact disk read-only memory (CD-ROM), optical storage devices, magnetic storage devices, or any suitable combination of the above. In this embodiment, the computer-readable storage medium can be any tangible medium that contains or stores a program, and this program can be used by or in combination with an instruction execution system, device, or device. The program code contained on the computer-readable storage medium can be transmitted by any appropriate medium, including but not limited to: wires, optical cables, radio frequency (RF), etc., or any suitable combination of the above.

[0144] The above computer-readable storage medium can be included in the circular tube cutting intersection line path generation device; it can also exist separately without being assembled into the circular tube cutting intersection line path generation device.

[0145] The above computer-readable storage medium carries one or more programs. When the above one or more programs are executed by a round pipe cutting intersection line path generation device, the round pipe cutting intersection line path generation device can write computer program code for performing the operations of the present application in one or more programming languages or combinations thereof. The above programming languages include object-oriented programming languages - such as Java, Smalltalk, C++; and also include conventional procedural programming languages - such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, executed as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer can be connected to the user's computer through any type of network - including a local area network (LAN) or a wide area network (WAN), or it can be connected to an external computer (for example, by using an Internet service provider to connect through the Internet).

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

[0147] The modules described in the embodiments of the present application can be implemented in software or in hardware. Among them, the name of the module does not constitute a limitation to the unit itself in some cases.

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

[0149] The foregoing are only partial embodiments of this application, and thus do not limit the patent scope of this application. Any equivalent structural transformation made under the technical concept of this application by using the content of the specification and drawings of this application, or any direct / indirect application in other related technical fields, is included in the patent protection scope of this application.

Claims

1. A method for generating the path of intersecting lines of circular pipe cutting, characterized in that, The described method for generating the intersecting line path of circular pipe cutting includes: Based on the geometric parameters and cutting parameters of the circular pipe to be cut input, establish a model of the circular pipe to be cut and a model of the cutting tool; Through coordinate system transformation, align the cutting tool model to the coordinate system of the circular pipe to be cut; Detect the intersection points of the circular pipe model to be cut and the cutting tool model, and generate a set of three-dimensional space coordinate points of the intersecting line; Map the set of three-dimensional space coordinate points to a two-dimensional plane to generate a developed drawing, and generate a numerical control machining path based on the coordinates of the developed drawing.

2. The circular tube cutting and intersecting line path generation method according to claim 1, wherein The cutting tool model includes a cross-section cutting model and a circular pipe cutting model; The step of establishing a model of the circular pipe to be cut and a model of the cutting tool according to the geometric parameters and cutting parameters of the circular pipe to be cut input includes: According to the outer diameter, wall thickness and length of the circular pipe to be cut input, construct a parametric equation of the circular pipe model to be cut; According to the input plane normal vector, offset and cross-section shape parameters, construct the plane equation and cross-section contour of the cross-section cutting model; or, According to the input intersecting circular pipe radius, axis angle and axis center distance, construct a parametric equation of the circular pipe cutting model.

3. The method for generating the intersecting path of circular tube cutting according to claim 1, wherein The step of aligning the cutting tool model to the coordinate system of the circular pipe to be cut through coordinate system transformation includes: Taking the axis of the circular pipe model to be cut as a reference, define an initial coordinate system; According to the axis angle and axis center distance in the cutting parameters input by the user, calculate the rotation transformation matrix and translation transformation matrix for aligning the cutting tool model to the initial coordinate system; Compound 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.

4. The method for generating the intersecting path of circular pipe cutting according to claim 1, characterized in that, After the step of aligning the cutting tool model to the coordinate system of the circular pipe to be cut through coordinate system transformation, it includes: Calculate the cutting tool bounding box of the cutting tool model and the circular pipe bounding box of the circular pipe to be cut respectively through a geometric engine, and obtain the center point coordinates and corner point coordinates of each bounding box; Based on the center point coordinates and corner point coordinates of each bounding box, perform alignment based on the alignment strategy selected by the user.

5. The method for generating the intersecting path of circular tube cutting according to claim 4, wherein, The step of performing alignment based on the alignment strategy selected by the user according to the center point coordinates and corner point coordinates of each bounding box includes: If the alignment strategy is center alignment, then make the center point of the cutting tool bounding box coincide with the center point of the circular pipe bounding box to be cut; If the alignment strategy is corner alignment, then align the specified corner point of the cutting tool bounding box with the corresponding corner point of the circular pipe bounding box to be cut; If the alignment strategy is axial alignment, then adjust the axis direction of the cutting tool model to be parallel or at a preset angle to the axis of the circular pipe model to be cut.

6. The method for generating the intersecting path of circular tube cutting according to claim 1, wherein, After the step of aligning the cutting tool model to the coordinate system of the circular pipe to be cut through coordinate system transformation, it also includes: According to the target position of the machining width input by the user, calculate the translation offset, and move the bounding box of the cutting tool model to the target position; or, According to the scale factor input by the user, scale the cutting tool model proportionally and update the vertex coordinates of the cutting tool model; or, Calculate the total clearance space of all the cutting tool models according to the spacing parameters input by the user, equally divide the clearance according to the spacing parameters, and rearrange the positions of all the cutting tool models in sequence.

7. The method for generating the intersecting path of circular pipe cutting according to claim 1, characterized in that, The step of detecting the intersection points of the to-be-cut circular pipe model and the cutting tool model and generating a three-dimensional space coordinate point set of the intersection line includes: Discretize the surface of the to-be-cut circular pipe model into circumferentially equally divided points and axially equally divided points to form a grid point set; Perform projection detection on each grid point in the grid point set to determine whether it meets the geometric constraint conditions of the cutting tool model; Use the grid points that meet the geometric constraint conditions as the intersection points to generate a three-dimensional space coordinate point set of the intersection line.

8. The method for generating the intersecting path of circular pipe cutting according to claim 1, wherein The step of mapping the three-dimensional space coordinate point set to a two-dimensional plane to generate a developed view and generating a numerical control machining path according to the coordinates of the developed view includes: Convert the circumferential angle of the three-dimensional space coordinate point set into the abscissa of the developed view, and convert the axial coordinate into the ordinate of the developed view; Perform continuity correction on the periodic boundary jump region of the developed view, and perform dynamic offset compensation on the path of the developed view according to the tool parameters; Convert the compensated path of the developed view into a machining instruction code recognizable by a numerical control machine tool.

9. A circular pipe cutting and intersecting line path generation device, characterized in that, The device includes: 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 according to any one of claims 1 to 8.

10. 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, and when the computer program is executed by a processor, it implements the steps of the circular pipe cutting intersection line path generation method according to any one of claims 1 to 8.

Citation Information

Patent Citations

  • Construction method of large-section through circular tube steel members

    CN107378407A

  • Round tube cutting processing method and round tube cutting processing system based on six-axis industrial robot

    CN110449750A

  • Method for automatically cutting round pipe by robot

    CN115625716A

  • Circular pipe intersecting line welding seam treatment method and device and storage medium

    CN117934432A

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

    CN117972932A