Water pipe based on interactive selection and water pipe assembly model construction method

By constructing water pipes and their assembly model based on interactively selectable water pipes and their assembly model, the problems of low efficiency and high error frequency are solved, and the rapid positioning and accurate construction of water pipe models and joint models are realized, improving the efficiency and quality of mold development .

CN118940426APending Publication Date: 2024-11-12NANJING INST OF TECH
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410936019.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-12
Publication Date
2024-11-12

AI Technical Summary

Technical Problem

During the construction of die-casting molds, the construction efficiency of the water pipe model is low, resulting in a long mold development cycle and prone to diameter and height drawing errors, which increases manufacturing costs.

Method used

Using the construction method based on interactively selectable water pipe and its assembly model, the water pipe model, the water pipe joint model and the cutting body model are designed, the coordinate system is defined and parameterized, and the database is established, and the water pipe height and positioning coordinate system are calculated based on user selection information. , realize the rapid positioning of the water pipe model and joint model, and reduce manual translation operations.

Benefits of technology

It improves the creation efficiency of water pipe models and joint models, reduces errors, shortens mold development cycle, and reduces manufacturing costs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118940426A_ABST
    Figure CN118940426A_ABST
Patent Text Reader

Abstract

The invention discloses a water pipe and assembly model construction method based on interactive selection, and the method comprises the steps: designing a water pipe model, a water pipe joint model and a cutting body model, and completing the definition of a positioning coordinate system of each model and the parameterization of a part of models; constructing a database, wherein the database stores three-dimensional models corresponding to the designed models, a positioning coordinate system and model parameters of part of the models; acquiring a water pipe model type, a water pipe joint model type and a water pipe diameter selected by the user; according to the constructed database and user selection information, the water pipe height is calculated, the water pipe model, the water pipe connector model and the cutting body model are driven to be positioned, and construction of the water pipe model, the water pipe connector model and the cutting body model is completed. The water pipe model and the water pipe connector model can be assembled without manual translation operation, and the construction efficiency of the water pipe model and the water pipe connector model is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0002] The present application relates to the technical field of rapid model construction, and in particular to a method for constructing models of water pipes and their assemblies based on interactive selection. Background Art

[0003] A die-casting mold is a mold that works under high temperature and high pressure. The mold needs to be cooled. During the die-casting process of metal products, ice water is used to quickly and evenly cool the high-temperature metal liquid to avoid bubbles in the middle of the metal product or wrinkles on the surface. The distribution of cooling water and the size of the water flow directly determine the quality of the product. The cooling pipe is a pipe used to transport cooling water to the mold for cooling. Its function is to achieve stable mold temperature and rapid cooling, thereby ensuring product quality and production efficiency. After completing the mold construction, the mold builder needs to draw the water pipe model type, water pipe interface and water pipe size, and then hand it over to the supplier for production.

[0004] In the traditional construction process, the construction personnel draw the water pipe model in sequence according to the cooling water distribution map that has been constructed. First, according to the cooling water flow requirements, select a single-outlet water pipe or a double-outlet water pipe, and determine the water pipe diameter parameters; then copy the water pipe model from the model library to the mold construction, and copy the model to the specified position of the mold by selecting translation and other operations; then measure the mold hole depth, modify the water pipe model height, ensure that there is a certain gap between the bottom of the water pipe and the bottom of the hole, and draw the relevant size parameters on the water pipe model; finally, select the required water pipe interface from the model library, and again select translation and other operations to match the interface model with the water pipe model. It takes a long time for a skilled construction worker to complete a water pipe model.

[0005] In summary, mold builders have a heavy workload when building water pipes. When faced with changes in cooling water distribution, they need to redraw, which leads to a long mold development cycle. When drawing the diameter and height of the water pipe, it is very easy to make mistakes, and the mistakes are not discovered until the final mold manufacturing or mold trial process, which increases the cost of mold manufacturing. How to free mold builders from the work of water pipe modeling and ensure the accuracy of the model has important application value for mold companies. Summary of the invention

[0006] In order to achieve the coordination of the water pipe model and the water pipe interface model without manual translation operation and improve the construction efficiency of the water pipe and its assembly model, the present application provides a method for constructing the water pipe and its assembly model based on interactive selection.

[0007] In a first aspect, the present application provides a method for constructing a model of a water pipe and its assembly based on interactive selection, including: designing a water pipe model, a water pipe joint model and a cutting body model, completing the definition of a water pipe model positioning coordinate system, a water pipe joint model positioning coordinate system, an association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, and a cutting body model positioning coordinate system, and parameterizing the constructed water pipe model and cutting body model and completing parameter definition; Construct a database; the database stores: a three-dimensional water pipe model, a water pipe model positioning coordinate system, and water pipe model parameters corresponding to the water pipe model; a three-dimensional water pipe joint model, a water pipe joint model positioning coordinate system corresponding to the water pipe joint model; a cutting body three-dimensional model, cutting body model parameters corresponding to the cutting body model; and an association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system; wherein each type of water pipe model storage content is associated with the corresponding cutting body model storage content; Obtain the water pipe model type, water pipe joint model type, and water pipe diameter selected by the user; the water pipe diameter is a parameter value in the water pipe model parameters; obtain the positioning surface, positioning point, and water pipe orientation normal surface selected by the user; the positioning surface and positioning point are the surface and position point where the water pipe model is positioned in the mold object; The positioning coordinate system of the water pipe model is determined according to the selected positioning surface, positioning point and normal surface of the water pipe orientation, and the water pipe height is calculated taking into account the reserved spacing value with the core in the die-casting mold object and the gap value with the mold frame in the die-casting mold object, and the selected water pipe model positioning is driven based on the water pipe model positioning coordinate system, water pipe diameter parameters and water pipe height; the water pipe joint model positioning coordinate system is determined according to the water pipe model positioning coordinate system, and the water pipe joint positioning parameters are obtained by combining the water pipe height and the water pipe joint model positioning coordinate system, and the selected water pipe joint model positioning is driven based on the water pipe joint positioning parameters; the cutting body model positioning coordinate system is determined according to the water pipe model positioning coordinate system, and the cutting body size parameters are determined using the water pipe diameter and the water pipe height, and the cutting body model associated with the selected water pipe model is positioned according to the cutting body model positioning coordinate system and the cutting body size parameters, and a Boolean difference operation is performed between the cutting body model and the die-casting mold object.

[0008] By adopting the above scheme, the model is constructed and the coordinate system definition is established to complete the model preparation, and the data required for the creation and assembly of various water pipe models and water pipe joint models is stored to complete the database creation. According to the model library and the user's on-demand selection information, the water pipe model positioning coordinate system and water pipe height information are calculated in sequence to drive the water pipe model positioning, and then drive the water pipe joint model positioning again, realize the assembly of water pipe models and joint models based on interactive selection, and improve the creation efficiency of water pipe models and joint models.

[0009] Preferably, the design of the water pipe model, the water pipe joint model and the cutting body model, completing the definition of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the cutting body model positioning coordinate system, parameterizing the constructed water pipe model and the cutting body model and completing the parameter definition includes: Design a water pipe model, which includes: Pipe 水管 ={Model 水管 , CSys 水管 , CPoint 水管 , M.P. 水管 , CP 水管} In the formula, Model 水管 Represents the three-dimensional model of water pipes, CSys 水管 Represents the positioning coordinate system of the water pipe model, CPoint 水管 Represents the positioning coordinate point of the water pipe model, MP 水管 represents the dimension-driven parameter of the water pipe model, CP 水管 Represents the parameter variables between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system; Complete the definition of the water pipe model positioning coordinate system and parameterize the model for the constructed water pipe model and complete the parameter definition including: CPoint 水管 ={xpoint 水管 , ypoint 水管 , zpoint 水管} MP 水管 ={D 1水管 , DL 1水管 , D 2水管 , DL 2水管 , Text 水管 , num 水管} In the formula, x x水管 、x y水管 、x z水管 Indicates the X-axis direction of the water pipe model positioning coordinate system, y x水管 ,y y水管 ,y z水管 Indicates the Y-axis direction of the water pipe model positioning coordinate system, z x水管 、z y水管 、z z水管 Indicates the Z-axis direction of the water pipe model positioning coordinate system, xpoint 水管, ypoint 水管 , zpoint 水管 Indicates the origin of the coordinate system of the water pipe model positioning coordinate system; D 1水管 Indicates the major diameter of the water pipe, DL 1水管 Indicates the major diameter length of the water pipe, D 2水管 Indicates the minor diameter of the water pipe, DL 2水管 Indicates the minor diameter length of the water pipe, Text 水管 The water pipe string parameter representing the water pipe, num 水管 Indicates the number of water pipe joints; {p x1 ,p z1} represents the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system when the number of water pipe joints is 1; {p x1 ,p z1 ,p x2 ,p z2} indicates that when the number of water pipe joints is 2, the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system.

[0010] By adopting the above scheme, the parameter variables between the water pipe model positioning coordinate system and the joint positioning coordinate system are determined by considering the fixed-size driving parameters of the small-diameter pipe and the large-diameter pipe and the offset based on the water pipe joint, and the parameterization of the water pipe model is completed, which provides a basis for the subsequent model library establishment, model selection and parameter selection.

[0011] Preferably, the design of the water pipe model, the water pipe joint model and the cutting body model, completing the definition of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the cutting body model positioning coordinate system, parameterizing the constructed water pipe model and the cutting body model and completing the parameter definition includes: Design a water pipe joint model, which includes: Shile 接头 ={Model 接头 , CSys 接头 , CPoint 接头} Among them, Model 接头 Represents the 3D model of the water pipe joint, CSys 接头 Represents the positioning coordinate system of the water pipe joint model, CPoint 接头 Indicates the positioning coordinate point of the water pipe joint model; Complete the definition of the water pipe joint model positioning coordinate system, and obtain the positioning coordinate points according to the association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, including: CPoint 接头 ={xpoint 接头 , ypoint 接头 , zpoint 接头} In the formula, x x接头 、x y接头 、x z接头 Indicates the X-axis direction of the water pipe joint model positioning coordinate system, y x接头 ,y y接头 ,y z接头 Indicates the Y-axis direction of the water pipe joint model positioning coordinate system, z x接头 、z y接头 、z z接头 Indicates the Z-axis direction of the water pipe joint model positioning coordinate system, xpoint 接头 , ypoint 接头 , zpoint 接头 Represents the origin of the coordinate system of the water pipe joint model positioning coordinate system; Considering that the XYZ directions of the water pipe joint model positioning coordinate system are consistent with the water pipe model positioning coordinate system, the formula is as follows: CSys 接头 =CSys 水管 Right now: According to the relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, the origin of the joint positioning coordinate system is determined to be offset along the X and Z directions of the positioning coordinate system based on the origin of the water pipe model positioning coordinate system. 水管 =1, the corresponding offsets are p x1 , p z1 , the formula is as follows: CPoint 接头 =CPoint 水管 +p x1 *{x x水管 , x y水管 , x z水管}+p z1 *{z x水管 , z y水管 , xz z水管} Right now xpoint 接头 =xpoint 水管 +p x1 *x x水管 +p z1 *z x水管 ypoint 接头 =ypoint水管 +p x1 *x y水管 +p z1 *z y水管 zpoint 接头 = zpoint 水管 +p x1 *x z水管 +p z1 *xz z水管 If num 水管 =2, just change p x2 、p z2 Replace p x1 、p z1 , the positioning coordinate point of another joint can be calculated.

[0012] By adopting the above scheme, taking into account that the XYZ directions of the water pipe joint model positioning coordinate system are consistent with the water pipe model positioning coordinate system and the origin of the joint positioning coordinate system is offset along the X and Z directions of the positioning coordinate system based on the origin of the water pipe model positioning coordinate system, the parameterization of the water pipe joint model is completed, providing a basis for the subsequent model library establishment, model selection and parameter selection.

[0013] Preferably, the design of the water pipe model, the water pipe joint model and the cutting body model, completing the definition of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the cutting body model positioning coordinate system, parameterizing the constructed water pipe model and the cutting body model and completing the parameter definition includes: Design the cutting body model, which includes: Cutting 切削体 ={Model 切削体 , CSys 切削体 , CPoint 切削体 , M.P. 切削体} In the formula, Model 切削体 Represents the three-dimensional cutting body model, CSys 切削体 Represents the positioning coordinate system of the cutting body model, CPoint 切削体 Indicates the cutting body positioning coordinate point, MP 切削体 represents the shaping dimension driving parameters of the cutting body model; Complete the definition of the positioning coordinate system of the cutting body model and perform model parameterization and parameter definition for the constructed cutting body model, including: Considering that the purpose of the cutting body model is to cut the die casting mold to form a space for installing the water pipe model, the positioning coordinate system of the cutting body model is consistent with the XYZ direction of the positioning coordinate system of the water pipe model, and the positioning coordinate point of the cutting body model is consistent with the positioning coordinate point of the water pipe, such as: CSys 切削体 =CSys 水管 CPoint 切削体 =CPoint 水管 Among them, considering that the water pipe size includes the size of the water pipe material itself and the installation gap is reserved during the corresponding cutting, the cutting body drive size parameters meet the following requirements: MP 切削体 ={D 1水管 ′ +D0,DL 1水管 , D 2水管 ′ +D0,DL 2水管} Where D 1水管 ′ Indicates the large diameter, middle and outer diameter values ​​of the water pipe, D 2水管 ′ It indicates the outer diameter value of the minor diameter of the water pipe; D0 indicates the installation clearance.

[0014] By adopting the above scheme, considering that the positioning coordinate system of the cutting body model is consistent with the XYZ direction of the positioning coordinate system of the water pipe model, and there is a certain material size gap and installation gap between the size of the cutting body and the corresponding water pipe, the parameterization of the cutting body model is completed, which provides a basis for the subsequent model library establishment, model selection and parameter selection.

[0015] Preferably, the calculation of the water pipe height by taking into account the reserved spacing value with the mold core in the die-casting mold object and the clearance value with the mold frame in the die-casting mold object comprises: Generate a circle based on the selected positioning point, stretch it along the direction of the die frame in the die-casting mold object to generate a cylinder, obtain several intersection curves between the cylinder and the die frame, randomly select a point from each intersection curve as the intersection point, calculate the distance between each intersection point and the positioning point, obtain the maximum distance value, add the preset gap value on the basis of the maximum distance value solved, and obtain the final distance value as the height of the large-diameter pipe of the water pipe; Generate a circle based on the selected positioning point, stretch it along the core direction of the die-casting mold object to generate a cylinder, obtain several intersection curves between the cylinder and the mold frame, randomly select a point from each intersection curve as the intersection point, calculate the distance between each intersection point and the positioning point, obtain the maximum distance value, subtract the reserved spacing value from the maximum distance value, and obtain the final distance value as the height of the small-diameter pipe of the water pipe; The water pipe height is obtained by calculation, and the water pipe height includes an outer pipe height and an inner pipe height. The outer pipe height is the height of the large-diameter water pipe, and the inner pipe height is the sum of the height of the large-diameter water pipe and the height of the small-diameter water pipe.

[0016] By adopting the above scheme, considering that the water pipe model includes an outer pipe and an inner pipe, the heights of the outer pipe and the inner pipe are related to the large-diameter pipe and the small-diameter pipe of the outer pipe of the water pipe, and the distance value is determined by generating a cylinder and completing the intersection. Compared with a single ray method to determine the distance value from the positioning point to the mold frame or the mold core, considering the irregular mold frame and the mold core, the maximum distance value can be obtained more accurately to obtain a more accurate water pipe height.

[0017] Preferably, the association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system includes: the offset direction between each type of water pipe model positioning coordinate system and a plurality of different types of set water pipe joint model positioning coordinate systems and the offset amount corresponding to the offset direction.

[0018] By adopting the above solution, considering that in some application scenarios in actual production, some types of water pipe models can only achieve good actual operating results by adapting to some types of water pipe joint models, these water pipe models are matched and associated with the water pipe joint models during the association process to avoid the inability to complete the corresponding model positioning drive when the subsequent user selects an incompatible water pipe model.

[0019] Preferably, it also includes: The positioning surface and positioning point selected by the user each time are retained. When the user reselects the positioning point and positioning surface, if the condition of the selected positioning surface is the same, the distance between the retained positioning point and the currently selected positioning point is calculated respectively, and the calculated distance value is compared with the preset distance value. If the calculated distance value is greater than the preset distance value, the currently selected positioning point is deemed inappropriate, and a selection prompt is generated to suggest changing the positioning point.

[0020] By adopting the above solution, considering that users may select positioning points that are too close to each other during interactive selection, resulting in congestion of multiple water pipe joints after positioning, affecting actual production applications, the method of calculating the distance between positioning points and generating selection prompts is chosen to avoid the above situation.

[0021] Preferably, it also includes: In the process of obtaining the large diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the large diameter parameter of the water pipe; In the process of obtaining the small diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the small diameter parameter of the water pipe.

[0022] By adopting the above scheme, considering that a cylinder is generated based on the actually selected water pipe size and intersects with the mold core or mold frame, when the mold core or model is not completely regular, the intersection point can be obtained more accurately, further improving the accuracy of water pipe height calculation.

[0023] In a second aspect, the present application provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method as described above.

[0024] In a third aspect, the present application provides a computer device, comprising a memory, a processor, and a program stored and executable on the memory, wherein the program implements the steps of the above method when executed by the processor.

[0025] In summary, this application has the following beneficial effects: By designing the water pipe model and the water pipe interface model, and completing the coordinate system definition and model parameterization, the corresponding models, coordinate systems, parameters, etc. are associated and stored to generate a database, which is convenient for users to select the required water pipe model and water pipe joint model according to the database, and provides a basis for interactive selection of water pipes and water pipe joint model creation; the positioning of the water pipe coordinate system is determined according to the user selection information, the water pipe height is calculated, and the positioning of the water pipe joint model positioning coordinate system is completed based on the association of the coordinate system, and the selected water pipe model and water pipe joint model are quickly positioned without manual movement operations, thereby improving the efficiency of model creation. BRIEF DESCRIPTION OF THE DRAWINGS

[0026] Figure 1 It is a schematic diagram of a method for constructing a model of a water pipe and its assembly based on interactive selection described in a specific embodiment; Figure 2 It is a flowchart of a method for constructing a water pipe and its assembly model based on interactive selection described in a specific embodiment; Figure 3 It is a diagram of a water pipe three-dimensional model, a water pipe joint three-dimensional model and a cutting body three-dimensional model in the method for constructing a water pipe and its assembly model based on interactive selection described in a specific embodiment; Figure 3 (a) is a diagram of a three-dimensional model of a water pipe and a three-dimensional model of a water pipe joint; Figure 3 (b) is an illustration of the three-dimensional model of the cutting body; Figure 4 It is a diagram of a manual interactive selection interface of a method for constructing a water pipe and its assembly model based on interactive selection described in a specific embodiment; Figure 5 This is a diagram of the creation of a water pipe and a water pipe joint model using the water pipe and assembly model building method based on interactive selection in a specific embodiment; Figure 5(a) is a diagram of a specific embodiment in which the interactively selectable water pipe model is used to drive the creation; Figure 5 (b) is a diagram of a specific embodiment in which the interactively selectable water pipe model and water pipe joint model are used to drive the creation; Figure 5 (c) is a cross-sectional view created by driving the interactively selectable water pipe model and water pipe joint model in a specific embodiment. DETAILED DESCRIPTION

[0027] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.

[0028] like Figure 1 As shown, the embodiment of the present application discloses a method for constructing a water pipe and its assembly model based on interactive selection, which mainly includes four stages, namely: a model preprocessing stage, a database construction stage, a manual interaction stage, and a water pipe model and water pipe joint creation stage; Among them, the model preprocessing stage is mainly the model preparation stage, which mainly completes the water pipe model determination, including the determination of different types of water pipe three-dimensional models, completes the corresponding water pipe model parameterization, establishes the positioning coordinate system of the water pipe model, and the relationship between the water pipe model positioning coordinate system and the water pipe interface positioning coordinate system; the water pipe joint model is determined, including the determination of different types of water pipe joint three-dimensional models, and the establishment of the coordinate system of the water pipe joint model; the cutting body model is determined, including the determination of different types of water pipe models corresponding to the cutting body three-dimensional model, completes the corresponding cutting body model parameterization, and establishes the positioning coordinate system of the cutting body model.

[0029] The database construction stage is mainly the stage for storing the content required for model creation. This stage is based on the content generated in the model preprocessing stage, and completes the storage of the corresponding drawn water pipe model, water pipe joint model and cutting body model, as well as the water pipe model parameters, cutting body model parameters and each model coordinate parameter storage. You can choose to use a table to store each data separately and establish an association relationship, such as: the association between each model and its corresponding model parameters, model coordinates, and the association between each model.

[0030] The manual interaction stage mainly involves user selection information and the stage of obtaining user selection information. In this stage, the user selects the water pipe model type and water pipe diameter in the model library, selects the water pipe joint model type, and obtains the positioning surface, positioning point and water pipe orientation normal surface selected by the user in the preset mold.

[0031] The water pipe model and water pipe joint creation stage is mainly to complete the positioning and adaptation of the water pipe model and the water pipe joint model relative to the mold. Specifically, it includes calculating the water pipe model positioning coordinate system and water pipe height information in turn based on the model library and selection information, driving the water pipe model positioning, and then driving the water pipe joint model positioning again to realize the creation of the water pipe model and the water pipe joint model.

[0032] like Figure 2 As shown, the above stages are specifically described below to implement the steps of the method for building a water pipe and its assembly model based on interactive selection, including: S1. Design the water pipe model, water pipe joint model and cutting body model, complete the definition of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, and the cutting body model positioning coordinate system, parameterize the constructed water pipe model and cutting body model and complete the parameter definition.

[0033] Specifically, the water pipe model is designed. The water pipe model is determined according to the water pipe three-dimensional model, the water pipe model positioning coordinate system, the water pipe model positioning coordinate system points, the water pipe size parameters and the coordinate system parameters, which specifically include: Pipe 水管 ={Model 水管 , CSys 水管 , CPoint 水管 , M.P. 水管 , CP 水管} In the formula, Model 水管 Represents a three-dimensional model of a water pipe, such as Figure 3 As shown in (a), the main model structure is drawn, such as a double pipe setting including an outer pipe and an inner pipe. Different types of water pipes correspond to different 3D models generated by drawing. 水管 Represents the positioning coordinate system of the water pipe model, CPoint 水管 Represents the positioning coordinate point of the water pipe model, MP 水管 represents the dimension-driven parameter of the water pipe model, CP 水管 Representing the parameter variables between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system; completing the definition of the water pipe model positioning coordinate system and parameterizing the model for the constructed water pipe model and completing the parameter definition, including: CPoint 水管 ={xpoint 水管 , ypoint 水管 , zpoint 水管} MP 水管 ={D 1水管 , DL1水管 , D 2水管 , DL 2水管 , Text 水管 , num 水管} In the formula, x x水管 、x y水管 、x z水管 Indicates the X-axis direction of the water pipe model positioning coordinate system, y x水管 ,y y水管 ,y z水管 Indicates the Y-axis direction of the water pipe model positioning coordinate system, z x水管 、z y水管 、z z水管 Indicates the Z-axis direction of the water pipe model positioning coordinate system, xpoint 水管 , ypoint 水管 , zpoint 水管 Indicates the origin of the coordinate system of the water pipe model positioning coordinate system; D 1水管 Indicates the major diameter of the water pipe, DL 1水管 Indicates the major diameter length of the water pipe, D 2水管 Indicates the minor diameter of the water pipe, DL 2水管 Indicates the minor diameter length of the water pipe, Text 水管 The water pipe string parameter representing the water pipe, num 水管 Indicates the number of water pipe joints; {p x1 ,p z1} represents the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system when the number of water pipe joints is 1; {p x1 ,p z1 ,p x2 ,p z2} indicates that when the number of water pipe joints is 2, the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system.

[0034] Designing a water pipe joint model, wherein the water pipe joint model is determined according to the water pipe joint three-dimensional model, the water pipe joint model positioning coordinate system and the water pipe joint positioning coordinate points, specifically includes: Shile 接头 ={Model 接头 , CSys 接头 , CPoint 接头} Among them, Model 接头 Represents the 3D model of the water pipe joint, such as Figure 3 As shown in (a), different types of water pipe joints correspond to different 3D models generated by drawing; CSys接头 Represents the positioning coordinate system of the water pipe joint model, CPoint 接头 Indicates the positioning coordinate point of the water pipe joint model; Complete the definition of the water pipe joint model positioning coordinate system, and obtain the positioning coordinate points according to the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system. In order to achieve better adaptation, multiple different types of water pipe joint models are set for each type of water pipe model positioning coordinate system. Therefore, The association relationship includes: the relative offset direction between each type of water pipe model positioning coordinate system and the set multiple different types of water pipe joint model positioning coordinate systems and the offset amount of the corresponding offset direction, and the offset amount is determined according to the size of the water pipe joint, specifically including: CPoint 接头 ={xpoint 接头 , ypoint 接头 , zpoint 接头} In the formula, x x接头 、x y接头 、x z接头 Indicates the X-axis direction of the water pipe joint model positioning coordinate system, y x接头 ,y y接头 ,y z接头 Indicates the Y-axis direction of the water pipe joint model positioning coordinate system, z x接头 、z y接头 、z z接头 Indicates the Z-axis direction of the water pipe joint model positioning coordinate system, xpoint 接头 , ypoint 接头 , zpoint 接头 Represents the origin of the coordinate system of the water pipe joint model positioning coordinate system; Considering that the XYZ directions of the water pipe joint model positioning coordinate system are consistent with the water pipe model positioning coordinate system, the formula is as follows: CSys 接头 =CSys 水管 Right now: According to the relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, the origin of the joint positioning coordinate system is determined to be offset along the X and Z directions of the positioning coordinate system based on the origin of the water pipe model positioning coordinate system. 水管 =1, the corresponding offsets are p x1 , p z1 , the formula is as follows: CPoint 接头 =CPoint 水管 +px1 *{x x水管 , x y水管 , x z水管}+p z1 *{z x水管 , z y水管 , xz z水管} Right now xpoint 接头 =xpoint 水管 +p x1 *x x水管 +p z1 *z x水管 ypoint 接头 =ypoint 水管 +p x1 *x y水管 +p z1 *z y水管 zpoint 接头 = zpoint 水管 +p x1 *x z水管 +p z1 *xz z水管 If num 水管 =2, just change p x2 、p z2 Replace p x1 、p z1 , the positioning coordinate point of another joint can be calculated.

[0035] Design a cutting body model, which is a shape model formed by mold cutting according to the water pipe model. Different types of water pipe models are designed with corresponding cutting body models, including: Cutting 切削体 ={Model 切削体 , CSys 切削体 , CPoint 切削体 , M.P. 切削体} In the formula, Model 切削体 Represents the three-dimensional cutting body model, such as Figure 3 As shown in (b), different types of cutting bodies correspond to different 3D models generated by drawing; CSys 切削体 Represents the positioning coordinate system of the cutting body model, CPoint 切削体 Indicates the cutting body positioning coordinate point, MP 切削体 represents the shaping dimension driving parameters of the cutting body model; Complete the definition of the positioning coordinate system of the cutting body model and perform model parameterization and parameter definition for the constructed cutting body model, including: Considering that the purpose of the cutting body model is to cut the die casting mold to form a space for installing the water pipe model, the positioning coordinate system of the cutting body model is consistent with the XYZ direction of the positioning coordinate system of the water pipe model, and the positioning coordinate point of the cutting body model is consistent with the positioning coordinate point of the water pipe, such as: CSys 切削体 =CSys 水管 CPoint 切削体 =CPoint 水管 Among them, considering that the water pipe size includes the size of the water pipe material itself and the installation gap is reserved during the corresponding cutting, the cutting body drive size parameters meet the following requirements: MP 切削体 ={D 1水管 ′ +D0,DL 1水管 , D 2水管 ′ +D0,DL 2水管} Where D 1水管 ′ Indicates the large diameter, middle and outer diameter values ​​of the water pipe, D 2水管 ′ It indicates the outer diameter value of the minor diameter of the water pipe; D0 indicates the installation clearance.

[0036] S2. Build a database; the database stores: a three-dimensional water pipe model, a water pipe model positioning coordinate system, and water pipe model parameters corresponding to the water pipe model; a three-dimensional water pipe joint model, a water pipe joint model positioning coordinate system corresponding to the water pipe joint model; a cutting body three-dimensional model, cutting body model parameters corresponding to the cutting body model; and an association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system.

[0037] Specifically, in order to realize the construction of a model that allows interactive selection of water pipes and water pipe joints, it is necessary to store the content required for creating the water pipe model, the water pipe joint model and the cutting body model to generate a database that can be selected by users.

[0038] The stored water pipe model includes: a water pipe three-dimensional model, a water pipe model positioning coordinate system, and water pipe model parameters; The water pipe model parameters include not only driving parameters, such as the major diameter of the water pipe, the major diameter length of the water pipe, the minor diameter of the water pipe, the minor diameter length of the water pipe, the number of joints, etc., but also parameters such as the water pipe category and the water pipe name, as shown in Table 1 below; the water pipe model positioning coordinate system is stored in the form of parameters, and the parameter data can be stored in the database in the form of a data table, and the storage contents of water pipe models of the same type are related to each other.

[0039] Table 1 The stored water pipe joint model includes: a water pipe joint three-dimensional model and a water pipe joint model positioning coordinate system; wherein the water pipe joint model positioning coordinate system is stored in the form of a parameter table, and the storage contents of water pipe joint models of the same type are interrelated.

[0040] The stored cutting body model includes: a three-dimensional model of the cutting body and cutting body model parameters; wherein the model positioning coordinate system of the cutting body is stored in the form of parameters, and the parameter data can be stored in the database in the form of a data table; the cutting body model parameters include not only driving parameters, such as: the major diameter of the cutting body (the major diameter outer diameter of the water pipe), the major diameter length of the cutting body, the minor diameter of the cutting body (the minor diameter outer diameter of the water pipe), the minor diameter length of the cutting body, but also parameters such as the cutting body category and the cutting body name; the storage contents of the cutting body models of the same type are associated with each other; and each type of cutting body has a corresponding water pipe model, and when storing, the storage contents of each type of water pipe model are associated with the corresponding cutting body model storage contents; The stored association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system is used to associate the stored corresponding type of water pipe model positioning coordinate system with the water pipe joint model positioning coordinate system according to the association relationship.

[0041] S3. Obtain the water pipe model type, water pipe joint model type, water pipe diameter, positioning surface, positioning point, and water pipe orientation normal surface selected by the user.

[0042] Specifically, Figure 4 As shown, according to the constructed database, the user can select the water pipe model type and the water pipe joint model type by browsing the database. Different water pipe model types correspond to one type of water pipe model. Then select the water pipe diameter, including the major diameter of the water pipe and the minor diameter of the water pipe. Different water pipe joint types correspond to one water pipe joint model, and the parameters of each water pipe joint are fixed.

[0043] The user can select the positioning surface, positioning point, and water pipe orientation normal surface according to the die-casting mold object. In this embodiment, the mold core is used as the positioning surface and a specific positioning point is selected. In order to ensure that the water pipes and water pipe joints are not created too densely to affect the actual production operation, the method described in this embodiment also includes: The positioning surface and positioning point selected by the user each time are retained. When the user reselects the positioning point and positioning surface, if the condition of the selected positioning surface is the same, the distance between the retained positioning point and the currently selected positioning point is calculated respectively, and the calculated distance value is compared with the preset distance value. If the calculated distance value is greater than the preset distance value, the currently selected positioning point is deemed inappropriate, and a selection prompt is generated to suggest changing the positioning point.

[0044] S4. Complete the construction of the water pipe model, the water pipe joint model and the cutting body according to the constructed database and the user selection information.

[0045] Specifically, Figure 5 (a) with Figure 5 As shown in (c), the water pipe model positioning is first completed based on the constructed database and the information selected by the user, including: Determine the positioning coordinate system of the water pipe according to the selected positioning surface, positioning point and normal surface of the water pipe orientation; The height of the water pipe is calculated by considering the reserved spacing value between the core and the die casting mold object and the gap value between the mold frame and the die casting mold object, including: A circle is generated based on the selected positioning point, and a cylinder is generated by stretching along the direction of the mold frame in the die-casting mold object. Several intersection curves between the cylinder and the mold frame are obtained, and a point is randomly selected from each intersection curve as the intersection point. The distance between each intersection point and the positioning point is calculated to obtain the maximum distance value, which is recorded as the first distance value. A preset gap value is added on the basis of the maximum distance value (first distance value) obtained. This gap value is mainly to prevent the top of the water pipe from squeezing with the surface of the mold frame. The final distance value can be obtained by artificial setting as the height of the large-diameter pipe of the water pipe, such as Figure 3 As shown; wherein, in the process of obtaining the large diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the large diameter parameter of the water pipe; Generate a circle based on the selected positioning point, stretch it along the core direction of the die casting mold object to generate a cylinder, obtain several intersection curves between the cylinder and the mold frame, randomly select a point from each intersection curve as the intersection point, calculate the distance between each intersection point and the positioning point, obtain the maximum distance value, record it as the second distance value, subtract the reserved spacing value from the maximum distance value (second distance value) solved, the reserved spacing value plays a role as a cooling water buffer, and obtain the final distance value as the height of the small diameter pipe of the water pipe, such as Figure 3 As shown; wherein, in the process of obtaining the small diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the small diameter parameter of the water pipe; The water pipe height is obtained by calculation, and the water pipe height includes an outer pipe height and an inner pipe height. The outer pipe height is the height of the large-diameter water pipe, and the inner pipe height is the sum of the height of the large-diameter water pipe and the height of the small-diameter water pipe.

[0046] According to the determined positioning coordinate system, the water pipe model corresponding to the selected water pipe type is driven, and the corresponding water pipe model positioning is completed according to the selected water pipe diameter parameter and the calculated water pipe height. The construction of the water pipe model can be realized without manual translation operation, such as Figure 5 shown.

[0047] like Figure 5 (b) with Figure 5 As shown in (c), the water pipe joint model positioning is completed according to the constructed database, the information selected by the user and the water pipe model definition, including: Determine the water pipe joint model positioning coordinate system according to the water pipe model positioning coordinate system; specifically, considering the association relationship between the stored water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, find the association relationship of the corresponding type based on the selected water pipe type and the water pipe joint type, and then obtain the water pipe joint model positioning coordinate system according to the water pipe model positioning coordinate system, and calculate the coordinate origin of the corresponding water pipe joint model positioning coordinate system; Determine the z-axis value of the water pipe joint positioning parameter in combination with the water pipe height, determine the x-axis and z-axis values ​​of the water pipe joint positioning parameter according to the coordinate origin in the water pipe joint model positioning coordinate system, and finally obtain the water pipe joint positioning parameter; The water pipe joint model corresponding to the water pipe joint type selected based on the water pipe joint positioning parameter driving is positioned, and the construction and matching of the water pipe joint model can be achieved without manual translation operation.

[0048] Then, the positioning of the water pipe model corresponding to the cutting body model is completed according to the constructed database and the water pipe model definition, including: Since the positioning coordinate system of the cutting body model is consistent with the positioning coordinate system of the water pipe model, the coordinate origins of the positioning coordinate system of the cutting body model and the positioning coordinate system of the cutting body model are determined according to the determined positioning coordinate system of the water pipe model; Considering the correlation between the stored water pipe model of the corresponding type and the cutting body model content, the corresponding cutting body model parameters can be queried, the cutting body diameter is determined by the water pipe diameter, and the cutting body diameter height is determined by the water pipe height (without considering the gap), thereby obtaining the cutting body size parameters; The cutting body model is positioned according to the cutting body model positioning coordinate system and the cutting body size parameters, and the water pipe model corresponding to the selected water pipe type is driven. Then the cutting body model and the die-casting mold object are subjected to Boolean difference operation, and the mold cutting is completed without manual operation, such as Figure 5 shown.

[0049] By adopting the method described in the present application, different types of water pipes and water pipe joints can be selected based on user interaction without manual operation, and the model can be quickly built, thereby improving the efficiency of model building.

[0050] The embodiment of the present application also discloses a computer-readable storage medium.

[0051] Specifically, the computer-readable storage medium stores a computer program that can be loaded by a processor and executed as described above, based on the interactively selectable water pipe and assembly model building method. The computer-readable storage medium includes, for example: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and other media that can store program codes.

[0052] The embodiment of the present application also discloses a computer device.

[0053] Specifically, the computer device includes a memory and a processor, and the memory stores a computer program that can be loaded by the processor and executes the above-mentioned method for constructing models of water pipes and their assemblies based on interactive selection.

[0054] The above are all preferred embodiments of the present application, and are not intended to limit the protection scope of the present application. Any feature disclosed in this specification (including the abstract and drawings), unless otherwise stated, can be replaced by other equivalent or alternative features with similar purposes. That is, unless otherwise stated, each feature is only an example of a series of equivalent or similar features.

Claims

1. A method for constructing a water pipe and its assembly model based on interactive selection, characterized in that: include: Design the water pipe model, water pipe joint model and cutting body model, complete the definition of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, and the cutting body model positioning coordinate system, parameterize the constructed water pipe model and cutting body model and complete the parameter definition; Construct a database; the database stores: a three-dimensional water pipe model, a water pipe model positioning coordinate system, and water pipe model parameters corresponding to the water pipe model; a three-dimensional water pipe joint model, a water pipe joint model positioning coordinate system corresponding to the water pipe joint model; a cutting body three-dimensional model, cutting body model parameters corresponding to the cutting body model; and an association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system; wherein each type of water pipe model storage content is associated with the corresponding cutting body model storage content; Obtain the water pipe model type, water pipe joint model type, and water pipe diameter selected by the user; the water pipe diameter is a parameter value in the water pipe model parameters; obtain the positioning surface, positioning point, and water pipe orientation normal surface selected by the user; the positioning surface and positioning point are the surface and position point where the water pipe model is positioned in the mold object; The positioning coordinate system of the water pipe model is determined according to the selected positioning surface, positioning point and normal surface of the water pipe orientation, and the water pipe height is calculated taking into account the reserved spacing value with the core in the die-casting mold object and the gap value with the mold frame in the die-casting mold object, and the selected water pipe model positioning is driven based on the water pipe model positioning coordinate system, water pipe diameter parameters and water pipe height; the water pipe joint model positioning coordinate system is determined according to the water pipe model positioning coordinate system, and the water pipe joint positioning parameters are obtained by combining the water pipe height and the water pipe joint model positioning coordinate system, and the selected water pipe joint model positioning is driven based on the water pipe joint positioning parameters; the cutting body model positioning coordinate system is determined according to the water pipe model positioning coordinate system, and the cutting body size parameters are determined using the water pipe diameter and the water pipe height, and the cutting body model associated with the selected water pipe model is positioned according to the cutting body model positioning coordinate system and the cutting body size parameters, and a Boolean difference operation is performed between the cutting body model and the die-casting mold object.

2. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 1, characterized in that: The design of the water pipe model, the water pipe joint model and the cutting body model, the completion of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the definition of the cutting body model positioning coordinate system, the model parameterization of the constructed water pipe model and the cutting body model and the completion of the parameter definition include: Design a water pipe model, which includes: Pipe 水管 ={Model 水管 ,CSys 水管 ,CPoint 水管 ,MP 水管 ,CP 水管 } In the formula, Model 水管 Represents the three-dimensional model of water pipes, CSys 水管 Represents the positioning coordinate system of the water pipe model, CPoint 水管 Represents the positioning coordinate point of the water pipe model, MP 水管 represents the dimension-driven parameter of the water pipe model, CP 水管 Represents the parameter variables between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system; Complete the definition of the water pipe model positioning coordinate system and parameterize the model for the constructed water pipe model and complete the parameter definition including: CPoint 水管 ={xpoint 水管 ,ypoint 水管 ,zpoint 水管 } MP 水管 ={D 1水管 ,DL 1水管 ,D 2水管 ,DL 2水管 ,Text 水管 ,num 水管 } In the formula, x x水管 、x y水管 、x z水管 Indicates the X-axis direction of the water pipe model positioning coordinate system, y x水管 ,y y水管 ,y z水管 Indicates the Y-axis direction of the water pipe model positioning coordinate system, z x水管 、z y水管 、z z水管 Indicates the Z-axis direction of the water pipe model positioning coordinate system, xpoint 水管 , ypoint 水管 , zpoint 水管 Indicates the origin of the coordinate system of the water pipe model positioning coordinate system; D 1水管 Indicates the major diameter of the water pipe, DL 1水管 Indicates the major diameter length of the water pipe, D 2水管 Indicates the minor diameter of the water pipe, DL 2水管 Indicates the minor diameter length of the water pipe, Text 水管 The water pipe string parameter representing the water pipe, num 水管 Indicates the number of water pipe joints; {p x1 ,p z1 } represents the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system when the number of water pipe joints is 1; {p x1 ,p z1 ,p x2 ,p z2 } indicates that when the number of water pipe joints is 2, the offset of the water pipe joint model positioning coordinate system relative to the water pipe model positioning coordinate system along the X and Z directions of the positioning coordinate system.

3. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 1, characterized in that: The design of the water pipe model, the water pipe joint model and the cutting body model, the completion of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the definition of the cutting body model positioning coordinate system, the model parameterization of the constructed water pipe model and the cutting body model and the completion of the parameter definition include: Design a water pipe joint model, which includes: Shile 接头 ={Model 接头 ,CSys 接头 ,CPoint 接头 } Among them, Model 接头 Represents the 3D model of the water pipe joint, CSys 接头 Represents the positioning coordinate system of the water pipe joint model, CPoint 接头 Indicates the positioning coordinate point of the water pipe joint model; Complete the definition of the water pipe joint model positioning coordinate system, and obtain the positioning coordinate points according to the association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, including: CPoint 接头 ={xpoint 接头 ,ypoint 接头 ,zpoint 接头 } In the formula, x x接头 、x y接头 、x z接头 Indicates the X-axis direction of the water pipe joint model positioning coordinate system, y x接头 ,y y接头 ,y z接头 Indicates the Y-axis direction of the water pipe joint model positioning coordinate system, z x接头 、z y接头 、z z接头 Indicates the Z-axis direction of the water pipe joint model positioning coordinate system, xpoint 接头 , ypoint 接头 , zpoint 接头 Represents the origin of the coordinate system of the water pipe joint model positioning coordinate system; Considering that the XYZ directions of the water pipe joint model positioning coordinate system are consistent with the water pipe model positioning coordinate system, the formula is as follows: CSys 接头 =CSys 水管 Right now: According to the relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system, the origin of the joint positioning coordinate system is determined to be offset along the X and Z directions of the positioning coordinate system based on the origin of the water pipe model positioning coordinate system. 水管 =1, the corresponding offsets are p x1 , p z1 , the formula is as follows: CPoint 接头 =CPoint 水管 +p x1 *{x x水管 ,x y水管 ,x z水管 }+p z1 *{z x水管 ,z y水管 ,xz z水管 } Right now xpoint 接头 =xpoint 水管 +p x1 *x x水管 +p z1 *z x水管 ypoint 接头 =ypoint 水管 +p x1 *x y水管 +p z1 *z y水管 zpoint 接头 =zpoint 水管 +p x1 *x z水管 +p z1 *xz z水管 If num 水管 =2, just change p x2 、p z2 Replace p x1 、p z1 , the positioning coordinate point of another joint can be calculated.

4. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 1, characterized in that: The design of the water pipe model, the water pipe joint model and the cutting body model, the completion of the water pipe model positioning coordinate system, the water pipe joint model positioning coordinate system, the association between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system and the definition of the cutting body model positioning coordinate system, the model parameterization of the constructed water pipe model and the cutting body model and the completion of the parameter definition include: Design the cutting body model, which includes: Cutting 切削体 ={Model 切削体 ,CSys 切削体 ,CPoint 切削体 ,MP 切削体 } In the formula, Model 切削体 Represents the three-dimensional cutting body model, CSys 切削体 Represents the positioning coordinate system of the cutting body model, CPoint 切削体 Indicates the cutting body positioning coordinate point, MP 切削体 represents the shaping dimension driving parameters of the cutting body model; Complete the definition of the positioning coordinate system of the cutting body model and perform model parameterization and parameter definition for the constructed cutting body model, including: Considering that the purpose of the cutting body model is to cut the die casting mold to form a space for installing the water pipe model, the positioning coordinate system of the cutting body model is consistent with the XYZ direction of the positioning coordinate system of the water pipe model, and the positioning coordinate point of the cutting body model is consistent with the positioning coordinate point of the water pipe, such as: CSys 切削体 =CSys 水管 CPoint 切削体 =CPoint 水管 Among them, considering that the water pipe size includes the size of the water pipe material itself and the installation gap is reserved during the corresponding cutting, the cutting body drive size parameters meet the following requirements: MP 切削体 ={D 1水管 ′ +D0,DL 1水管 ,D 2水管 ′ +D0,DL 2水管 } Where D 1水管 ′ Indicates the large diameter, middle and outer diameter values ​​of the water pipe, D 2水管 ′ It indicates the outer diameter value of the minor diameter of the water pipe; D0 indicates the installation clearance.

5. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 2, characterized in that: The calculation of the water pipe height by considering the reserved spacing value with the mold core in the die-casting mold object and the clearance value with the mold frame in the die-casting mold object comprises: Generate a circle based on the selected positioning point, stretch it along the direction of the die frame in the die-casting mold object to generate a cylinder, obtain several intersection curves between the cylinder and the die frame, randomly select a point from each intersection curve as the intersection point, calculate the distance between each intersection point and the positioning point, obtain the maximum distance value, add the preset gap value on the basis of the maximum distance value solved, and obtain the final distance value as the height of the large-diameter pipe of the water pipe; Generate a circle based on the selected positioning point, stretch it along the core direction of the die-casting mold object to generate a cylinder, obtain several intersection curves between the cylinder and the mold frame, randomly select a point from each intersection curve as the intersection point, calculate the distance between each intersection point and the positioning point, obtain the maximum distance value, subtract the reserved spacing value from the maximum distance value, and obtain the final distance value as the height of the small-diameter pipe of the water pipe; The water pipe height is obtained by calculation, and the water pipe height includes an outer pipe height and an inner pipe height. The outer pipe height is the height of the large-diameter water pipe, and the inner pipe height is the sum of the height of the large-diameter water pipe and the height of the small-diameter water pipe.

6. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 1, characterized in that: The association relationship between the water pipe model positioning coordinate system and the water pipe joint model positioning coordinate system includes: the relative offset direction between each type of water pipe model positioning coordinate system and multiple different types of set water pipe joint model positioning coordinate systems and the offset amount of the corresponding offset direction.

7. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 1, characterized in that: Also includes: The positioning surface and positioning point selected by the user each time are retained. When the user reselects the positioning point and positioning surface, if the condition of the selected positioning surface is the same, the distance between the retained positioning point and the currently selected positioning point is calculated respectively, and the calculated distance value is compared with the preset distance value. If the calculated distance value is greater than the preset distance value, the currently selected positioning point is deemed inappropriate, and a selection prompt is generated to suggest changing the positioning point.

8. The method for constructing a water pipe and its assembly model based on interactive selection according to claim 5, characterized in that: Also includes: In the process of obtaining the large diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the large diameter parameter of the water pipe; In the process of obtaining the small diameter pipeline of the water pipe, the size of the circle generated based on the selected positioning point is used as the reference diameter according to the small diameter parameter of the water pipe.

9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored computer program, wherein when the computer program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.

10. A computer device, characterized in that: The computer device comprises a memory, a processor and a program stored and executable on the memory, and the program implements the steps of the method according to any one of claims 1 to 7 when executed by the processor.