Method, apparatus, and readable storage medium for modeling pipe encasement
By obtaining the intersection relationship and encapsulation parameters between manhole elements and pipeline elements, a pipeline encapsulation model is generated, which solves the problem that existing technologies cannot accurately construct pipeline encapsulation models and realizes automated engineering quantity calculation and model construction.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GLODON CO LTD
- Filing Date
- 2022-04-27
- Publication Date
- 2026-06-30
AI Technical Summary
The lack of an accurate method for constructing pipe enclosure models in the current technology makes it impossible to effectively use 3D model quantity calculation software to automatically calculate engineering quantities, requiring manual calculation, which is inefficient.
By obtaining the intersection relationship between manhole elements and pipeline elements, the encapsulation parameters are analyzed, the encapsulation section is generated, and then the pipeline encapsulation model is constructed, including determining the encapsulation position and top and bottom elevations, and automatically generating the pipeline encapsulation model.
It enables the accurate construction of the pipeline encapsulation model, reduces the amount of manual calculation work, improves the efficiency of calculation work, and ensures the accuracy and adaptability of the model.
Smart Images

Figure CN117010117B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of computer-aided design technology, and more specifically to a modeling method, apparatus, device, and readable storage medium for pipe encapsulation. Background Technology
[0002] Inspection wells are essential engineering facilities for the convenient maintenance and installation of urban underground infrastructure such as power supply, water supply, drainage, sewage, communications, cable television, gas pipelines, and street light lines. Around inspection wells exist numerous pipelines for water supply, drainage, heating, gas supply, and long-distance transportation of oil and natural gas. Some of these pipelines inevitably pass through the walls of the inspection wells. For pipelines passing through inspection wells, they are typically completely encased in concrete to protect and secure the pipeline. However, before encasing the pipeline, it is necessary to calculate the amount of concrete to be poured and the formwork area, and to manually calculate these quantities based on the corresponding design drawings for the inspection well.
[0003] With the development of information technology, 3D model quantity calculation software has become popular due to its ability to automatically calculate engineering quantities based on models. However, to calculate the engineering quantity of pipe enclosures using 3D model quantity calculation software, it is necessary to construct a model of the pipe enclosure passing through the manhole. Currently, however, there is no accurate method for constructing pipe enclosures; therefore, how to construct a pipe enclosure model has become an urgent problem to be solved. Summary of the Invention
[0004] In view of this, embodiments of the present invention provide a method, apparatus, device, and readable storage medium for modeling pipe encapsulation, in order to solve the problem of difficulty in constructing pipe encapsulation models.
[0005] According to a first aspect, embodiments of the present invention provide a method for modeling pipe encapsulation, comprising: acquiring at least one pipe element intersecting with manhole elements and encapsulation parameters corresponding to the at least one pipe element; creating an encapsulation cross section corresponding to the at least one pipe element based on the intersection relationship between the at least one pipe element and the manhole element; parsing the encapsulation parameters to determine the encapsulation position corresponding to the encapsulation parameters; and generating a pipe encapsulation model corresponding to the encapsulation cross section at the encapsulation position.
[0006] The pipeline encapsulation modeling method provided in this invention obtains the encapsulation parameters of the pipeline element connected to the manhole element and creates the encapsulation cross section of the pipeline element. Then, based on the encapsulation parameters and the encapsulation cross section, a pipeline encapsulation model corresponding to the pipeline element is generated. This method can automatically generate a pipeline encapsulation model through the encapsulation parameters and the encapsulation cross section, realizing the accurate construction of the pipeline encapsulation model. It is convenient to calculate the required engineering quantity of the pipeline encapsulation model through model quantity calculation software, without the need for manual calculation of engineering quantity, thus improving the calculation efficiency of engineering quantity.
[0007] In conjunction with the first aspect, in a first embodiment of the first aspect, the step of creating an enclosing section corresponding to the at least one pipe element based on the intersection relationship between the at least one pipe element and the manhole element includes: obtaining the section corresponding to the manhole element; determining the section type of the manhole element, wherein the section is a section along the longitudinal axis direction of the manhole element; and generating an enclosing section corresponding to the at least one pipe element based on the section type of the manhole element, the enclosing parameters, and the intersection relationship.
[0008] The pipeline encapsulation modeling method provided in this embodiment of the invention generates corresponding encapsulation sections based on different manhole primitive cross-sectional types, so that the generated encapsulation sections can adapt to different scenario requirements, ensuring the accuracy of encapsulation section construction, and further ensuring the accuracy of subsequent pipeline encapsulation model construction.
[0009] In conjunction with the first embodiment of the first aspect, in the second embodiment of the first aspect, generating an enclosing section corresponding to the at least one pipeline element based on the cross-sectional type of the manhole element, the enclosing parameters, and the intersection relationship includes: obtaining the intersection point of the centerline of the pipeline element and the outer wall of the manhole element, the offset vector corresponding to the pipeline element, and the flow vector; offsetting the outer wall intersection point according to the direction of the offset vector based on the enclosing parameters to obtain a reference point; performing a preset angle counterclockwise and clockwise deflection on the flow vector to obtain a first offset vector and a second offset vector; offsetting the reference point according to the directions of the first offset vector and the second offset vector respectively based on the enclosing parameters to obtain a first target enclosing vertex corresponding to the pipeline element; determining a second target enclosing vertex corresponding to the pipeline element based on the first target enclosing vertex, the flow vector, and the intersection relationship; and generating the enclosing section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex.
[0010] In conjunction with the second embodiment of the first aspect, in the third embodiment of the first aspect, the encapsulation parameters include the left-side widening value and the right-side widening value of the pipe. The step of offsetting the reference point according to the directions of the first offset vector and the second offset vector based on the encapsulation parameters to obtain the first target encapsulation vertex corresponding to the pipe primitive includes: determining the left-side offset and the right-side offset corresponding to the reference point based on the left-side widening value and the right-side widening value of the pipe; offsetting the reference point according to the direction of the first offset vector based on the left-side offset to obtain the left-side first encapsulation vertex; offsetting the reference point according to the direction of the second offset vector based on the right-side offset to obtain the right-side first encapsulation vertex; and determining the left-side first encapsulation vertex and the right-side first encapsulation vertex as the first target encapsulation vertex.
[0011] In conjunction with the third embodiment of the first aspect, in the fourth embodiment of the first aspect, determining the second target enclosing vertex corresponding to the pipeline element based on the first target enclosing vertex, the water flow vector, and the intersection relationship includes: generating a left second enclosing vertex that passes through the left first enclosing vertex and intersects with the outer wall of the manhole element, and a left third enclosing vertex that intersects with the inner wall of the manhole element, according to the direction of the water flow vector; generating a right second enclosing vertex that passes through the right first enclosing vertex and intersects with the outer wall of the manhole element, and a right third enclosing vertex that intersects with the inner wall of the manhole element, according to the direction of the water flow vector; and determining the left second enclosing vertex, the left third enclosing vertex, the right second enclosing vertex, and the right third enclosing vertex as the second target enclosing vertex.
[0012] The pipeline encapsulation modeling method provided in this embodiment of the invention determines a reference point, a first target encapsulation vertex (left first encapsulation vertex and right first encapsulation vertex), and a second target encapsulation vertex (left second encapsulation vertex, left third encapsulation vertex, right second encapsulation vertex, and right third encapsulation vertex) by combining the intersection point of the centerline of the pipeline element and the outer wall of the manhole element, the offset vector corresponding to the pipeline element, and the water flow vector. The encapsulation cross section is constructed by determining the reference point, the first target encapsulation vertex, and the second target encapsulation vertex, so that the constructed encapsulation cross section fits the pipeline element to the greatest extent.
[0013] In conjunction with the fourth embodiment of the first aspect, in the fifth embodiment of the first aspect, when the cross-section type is a circular cross-section, generating the enclosing cross-section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex includes: obtaining the center point of the manhole element; generating an enclosing arc corresponding to the pipeline element based on the third enclosing vertex on the left and the third enclosing vertex on the right; and sequentially connecting the enclosing arc, the first target enclosing vertex, the reference point, and the second target enclosing vertex to generate the enclosing cross-section of the pipeline element.
[0014] The pipeline encapsulation modeling method provided in this embodiment of the invention obtains the corresponding encapsulation arc when the cross-sectional type of the manhole element is circular, so that the encapsulation arc can fit the connection between the manhole element and the pipeline element. The corresponding encapsulation cross-section is generated by connecting the encapsulation arc, the reference point, the first target encapsulation vertex, and the second target encapsulation vertex, so that the constructed encapsulation cross-section fits the pipeline element connecting the circular manhole element to the greatest extent.
[0015] In conjunction with the fourth embodiment of the first aspect, in the sixth embodiment of the first aspect, when the cross-section type is a rectangular cross-section, generating the enclosing cross-section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex includes: sequentially connecting the first target enclosing vertex, the reference point, and the second target enclosing vertex to generate the enclosing cross-section of the pipeline element.
[0016] The pipe encapsulation modeling method provided in this embodiment of the invention, when the cross-sectional type of the manhole element is rectangular, does not have a connecting arc at the connection between the manhole element and the pipe element. The corresponding encapsulation cross-section can be directly generated by connecting the reference point, the first target encapsulation vertex, and the second target encapsulation vertex. While ensuring that the constructed encapsulation cross-section matches the pipe element connecting the rectangular manhole element, the construction efficiency of the encapsulation cross-section is guaranteed.
[0017] In conjunction with the second embodiment of the first aspect, in the seventh embodiment of the first aspect, obtaining the offset vector corresponding to the pipeline element includes: detecting whether the starting point of the pipeline element is located inside the manhole element; when the starting point of the pipeline element is located inside the manhole element, determining the vector with the same direction as the pipeline element as the offset vector.
[0018] In conjunction with the seventh embodiment of the first aspect, in the eighth embodiment of the first aspect, the method further includes: when the starting point of the pipeline element is located outside the inspection well element, determining the vector opposite to the direction of the pipeline element as the offset vector.
[0019] The pipeline encapsulation modeling method provided in this embodiment of the invention determines the offset direction of the pipeline element relative to the manhole element by detecting the positional relationship between the starting point of the pipeline element and the manhole element, thereby ensuring the accuracy of the encapsulation section subsequently constructed.
[0020] In conjunction with the second embodiment of the first aspect, in the ninth embodiment of the first aspect, obtaining the water flow vector corresponding to the pipe element includes: detecting whether the pipe element is a pipe element with the largest diameter; when the pipe element is a pipe element with the largest diameter and the starting point of the pipe element is located inside the manhole element, determining the vector with the same direction as the pipe element as the water flow vector.
[0021] In conjunction with the ninth embodiment of the first aspect, in the tenth embodiment of the first aspect, the method further includes: when the pipe element is a pipe element with the largest diameter and the starting point of the pipe element is located outside the manhole element, the vector opposite to the direction of the pipe element is determined as the water flow vector.
[0022] In conjunction with the ninth embodiment of the first aspect, in the eleventh embodiment of the first aspect, the method further includes: when the pipe element is not the pipe element with the largest diameter, and the starting point of the pipe element is located inside the manhole element, determining the vector opposite to the direction of the pipe element as the water flow vector.
[0023] In conjunction with the eleventh embodiment of the first aspect, in the twelfth embodiment of the first aspect, the method further includes: when the pipe element is not the pipe element with the largest diameter, and the starting point of the pipe element is located outside the manhole element, the vector with the same direction as the pipe element is determined as the water flow vector.
[0024] The pipeline encapsulation modeling method provided in this invention combines the radius of the pipeline element and the positional relationship between the starting point of the pipeline element and the manhole element to determine the corresponding water flow vector of the pipeline element, thereby further ensuring the accuracy of the encapsulation section construction and ensuring that the pipeline encapsulation formed based on the pipeline encapsulation model can protect the pipeline, greatly improving the protective effect of the pipeline encapsulation on the pipeline.
[0025] In conjunction with the first aspect, in the thirteenth embodiment of the first aspect, the step of parsing the encapsulation parameters and determining the encapsulation position corresponding to the encapsulation parameters includes: obtaining the top elevation of the pipe corresponding to the pipe element; parsing the pipe top widening value in the encapsulation parameters, calculating the sum of the top elevation of the pipe and the pipe top widening value to obtain the encapsulation top elevation; detecting whether the manhole element has a base element; when the manhole element does not have a base element, determining the bottom elevation of the manhole element as the encapsulation bottom elevation.
[0026] In conjunction with the thirteenth embodiment of the first aspect, in the fourteenth embodiment of the first aspect, the method further includes: when the inspection well graphic element has a base graphic element, determining the bottom elevation of the base graphic element as the enclosure bottom elevation.
[0027] The pipeline encapsulation modeling method provided in this embodiment of the invention determines the bottom and top elevations of the pipeline encapsulation model by parsing the encapsulation parameters and detecting the existence of basic primitives, thus facilitating the accurate construction of the pipeline encapsulation model.
[0028] In conjunction with the thirteenth or fourteenth embodiment of the first aspect, in the fifteenth embodiment of the first aspect, generating a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location includes: constructing an initial encapsulation model based on the encapsulation cross-section, the top elevation of the encapsulation, and the bottom elevation of the encapsulation; and subtracting the pipe entity from the initial encapsulation model to obtain the pipe encapsulation model.
[0029] The pipe encapsulation modeling method provided in this invention subtracts the pipe entity model corresponding to the pipe element from the initial encapsulation model constructed based on the encapsulation cross section, the top elevation of the encapsulation, and the bottom elevation of the encapsulation, thereby obtaining the final pipe encapsulation model. This achieves automatic generation of the pipe encapsulation model, reduces manual design costs, and improves the design efficiency of the pipe encapsulation model.
[0030] In conjunction with the fifteenth embodiment of the first aspect, in the sixteenth embodiment of the first aspect, the method further includes: when the inspection well element has a basic element, subtracting the pipeline entity and the basic entity corresponding to the basic element from the initial encapsulation model to obtain the pipeline encapsulation model.
[0031] The pipeline encapsulation modeling method provided in this embodiment of the invention, since the basic elements are not part of the pipeline encapsulation model, when the manhole element has basic elements, deducts the pipeline entity and the basic entity corresponding to the basic elements from the initial encapsulation model to obtain the final pipeline encapsulation model, ensuring the accuracy of the pipeline encapsulation model construction, and avoiding miscalculation of engineering quantities.
[0032] In conjunction with the first aspect, in the seventeenth embodiment of the first aspect, the method for obtaining at least one pipe element intersecting with a manhole element includes: obtaining a pre-generated manhole element, the pipe component, and a generation method for the pipe element, wherein the manhole element is generated based on a selection instruction for a drawing set model, and the drawing set model is used to characterize the modeling parameter information corresponding to the manhole component; and generating a pipe element intersecting with the manhole element based on the pipe component and according to the generation method.
[0033] The pipe encapsulation modeling method provided in this embodiment of the invention pre-generates manhole elements using a set of model numbers, obtains the pipe components and generation methods for generating pipe elements, and generates pipe elements connected to the manhole elements. This enables rapid generation of pipe elements, improves the efficiency of obtaining pipe elements, and thus increases the generation rate of the pipe encapsulation model.
[0034] In conjunction with the seventeenth embodiment of the first aspect, in the eighteenth embodiment of the first aspect, obtaining encapsulation parameters corresponding to at least one pipeline element includes: obtaining a setting instruction for the encapsulation parameters; identifying the setting instruction; and determining the encapsulation parameters corresponding to the setting instruction.
[0035] The pipe encapsulation modeling method provided in this embodiment of the invention identifies the encapsulation parameter setting instructions obtained from the encapsulation parameters and determines the encapsulation parameters corresponding to the setting instructions. This enables the construction of a pipe encapsulation model based on the encapsulation parameters set by the user, making the pipe encapsulation model more in line with user needs and making the construction of the pipe encapsulation model more convenient.
[0036] According to a second aspect, embodiments of the present invention provide a modeling apparatus for pipe encapsulation, comprising: an acquisition module, configured to acquire at least one pipe element intersecting with manhole elements and encapsulation parameters corresponding to the at least one pipe element; a creation module, configured to create an encapsulation cross-section corresponding to the at least one pipe element based on the intersection relationship between the at least one pipe element and the manhole element; a parsing module, configured to parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters; and a generation module, configured to generate a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation position.
[0037] According to a third aspect, an embodiment of the present invention provides an electronic device, including: a memory and a processor, wherein the memory and the processor are communicatively connected to each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the pipe encapsulation modeling method described in the first aspect or any embodiment of the first aspect.
[0038] According to a fourth aspect, embodiments of the present invention provide a computer-readable storage medium storing computer instructions for causing a computer to perform the pipe encapsulation modeling method described in the first aspect or any embodiment of the first aspect.
[0039] It should be noted that the beneficial effects of the pipe encapsulation modeling device, electronic device, and computer-readable storage medium provided in the embodiments of the present invention can be found in the description of the corresponding content in the pipe encapsulation modeling method, and will not be repeated here. Attached Figure Description
[0040] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0041] Figure 1 This is a flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention;
[0042] Figure 2 This is another flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention;
[0043] Figure 3 This is another flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention;
[0044] Figure 4 This is a schematic diagram of a circular inspection well according to an embodiment of the present invention;
[0045] Figure 5 This is a schematic diagram of a rectangular inspection well according to an embodiment of the present invention;
[0046] Figure 6 This is a schematic diagram of the intersection of a circular inspection well and a pipeline element according to an embodiment of the present invention;
[0047] Figure 7 This is a schematic diagram of the intersection of a pipe element and the outer wall of a circular inspection well according to an embodiment of the present invention;
[0048] Figure 8 This is a schematic diagram of the offset vector corresponding to the circular inspection well according to an embodiment of the present invention;
[0049] Figure 9 This is a schematic diagram showing the offset of the outer wall intersection point relative to the circular inspection well according to an embodiment of the present invention;
[0050] Figure 10 This is a schematic diagram of the water flow vector corresponding to the circular inspection well according to an embodiment of the present invention;
[0051] Figure 11 This is a schematic diagram of the water flow vector offset corresponding to the circular inspection well according to an embodiment of the present invention;
[0052] Figure 12 This is a schematic diagram of the first target enclosure vertex corresponding to the circular inspection well according to an embodiment of the present invention;
[0053] Figure 13This is a schematic diagram of the left / right second encapsulation vertices corresponding to the circular inspection well according to an embodiment of the present invention;
[0054] Figure 14 This is a schematic diagram of the left / right third encapsulation vertices corresponding to the circular inspection well according to an embodiment of the present invention;
[0055] Figure 15 This is a schematic diagram illustrating the generation of the encapsulation arc according to an embodiment of the present invention;
[0056] Figure 16 This is a schematic diagram of the encapsulation section corresponding to a circular inspection well according to an embodiment of the present invention;
[0057] Figure 17 This is a schematic diagram of the intersection of a rectangular inspection well and a pipeline element according to an embodiment of the present invention;
[0058] Figure 18 This is a schematic diagram of the intersection of a pipe element and the outer wall of a rectangular inspection well according to an embodiment of the present invention;
[0059] Figure 19 This is a schematic diagram of the offset vector corresponding to the rectangular inspection well according to an embodiment of the present invention;
[0060] Figure 20 This is a schematic diagram showing the offset of the outer wall intersection point relative to the rectangular inspection well according to an embodiment of the present invention;
[0061] Figure 21 This is a schematic diagram of the water flow vector corresponding to the rectangular inspection well according to an embodiment of the present invention;
[0062] Figure 22 This is a schematic diagram of the water flow vector offset corresponding to the rectangular inspection well according to an embodiment of the present invention;
[0063] Figure 23 This is a schematic diagram of the first target enclosure vertex corresponding to the rectangular inspection well according to an embodiment of the present invention;
[0064] Figure 24 This is a schematic diagram of the second target enclosure vertex corresponding to the rectangular inspection well according to an embodiment of the present invention;
[0065] Figure 25 This is a schematic diagram of the encapsulation section corresponding to a rectangular inspection well according to an embodiment of the present invention;
[0066] Figure 26 This is a schematic diagram of a settings window according to an embodiment of the present invention;
[0067] Figure 27 This is a schematic diagram showing the encapsulation parameters according to an embodiment of the present invention;
[0068] Figure 28This is a schematic diagram illustrating the determination of the bottom elevation of the packaging according to an embodiment of the present invention;
[0069] Figure 29 This is another schematic diagram showing the determination of the bottom elevation of the package according to an embodiment of the present invention;
[0070] Figure 30 This is a schematic diagram of the initial encapsulation model according to an embodiment of the present invention;
[0071] Figure 31 This is a schematic diagram of a pipe encapsulation model according to an embodiment of the present invention;
[0072] Figure 32 This is a structural block diagram of a pipe encapsulation modeling device according to a preferred embodiment of the present invention;
[0073] Figure 33 This is a schematic diagram of the hardware structure of the electronic device provided in an embodiment of the present invention. Detailed Implementation
[0074] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0075] With the development of information technology, 3D model quantity calculation software has become popular due to its ability to automatically calculate engineering quantities based on models. However, to calculate the engineering quantity of pipe enclosures using 3D model quantity calculation software, it is necessary to construct a model of the pipe enclosure passing through the manhole. Currently, however, there is no accurate method for constructing pipe enclosures; therefore, how to construct a pipe enclosure model has become an urgent problem to be solved.
[0076] Based on this, the technical solution of the present invention obtains the encapsulation parameters to construct the encapsulation cross section, and then automatically generates the pipeline encapsulation model according to the encapsulation parameters and the encapsulation cross section. This achieves accurate construction of the pipeline encapsulation model, which facilitates the calculation of the required engineering quantity of the pipeline encapsulation model through model quantity calculation software, without the need for manual calculation of engineering quantity, thus improving the calculation efficiency of engineering quantity.
[0077] According to an embodiment of the present invention, an embodiment of a modeling method for pipe encapsulation is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0078] This embodiment provides a modeling method for pipe encapsulation, which can be used in electronic devices such as mobile phones, tablets, and computers. Figure 1 This is a flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention, such as... Figure 1 As shown, the process includes the following steps:
[0079] S11, obtain at least one pipe element that intersects with the inspection well element and the encapsulation parameters corresponding to at least one pipe element.
[0080] Inspection wells are installed to facilitate the maintenance and installation of underground infrastructure such as power supply, water supply, drainage, sewage, communications, cable TV, gas pipes, and street light lines in urban areas. Inspection well elements are the elements needed to generate the inspection well model, while pipe elements are the pipe model elements that pass through the inspection well. Electronic equipment can identify the pipe elements that intersect with the inspection well elements by recognizing whether the top view section of the inspection well (chamber) intersects with the pipe axis, thus identifying one or more pipes passing through the inspection well wall.
[0081] The encapsulation parameters corresponding to the pipe elements are the parameters set in the pipe encapsulation model, such as the pipe left-side widening value, pipe right-side widening value, pipe top widening value, and the value exceeding the manhole wall thickness, etc. Figure 27 As shown, the electronic device can display the encapsulation parameters, and the user can input or adjust the encapsulation parameters through a parameter visualization interface to ensure that the encapsulation parameters match the pipe diameter corresponding to the pipe element. The encapsulation parameters characterize the encapsulation state of the pipe element, where the encapsulation state represents the pipe encapsulation model set for the current pipe element.
[0082] S12, Based on the intersection relationship between the at least one pipeline element and the inspection well element, create an enclosing section corresponding to the at least one pipeline element.
[0083] The electronic device determines the intersection relationship between each pipe element and the manhole element based on the pipe elements it identifies that pass through the manhole element, and creates an enclosing section when the pipe element passes through the manhole element based on the intersection relationship. This enclosing section is a top view of the intersection of the pipe element and the manhole element.
[0084] S13, parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters.
[0085] The electronic device analyzes the acquired encapsulation parameters to determine the encapsulation position for generating the encapsulation model. The encapsulation position is the location between the top and bottom elevations of the encapsulation, determined based on the position of the pipe element.
[0086] Specifically, electronic equipment can map pipe elements of different diameters to encapsulation parameters one-to-one, such as... Figure 4 and Figure 5 In the illustrated diagram, D corresponds to the pipe with the largest diameter, D1 corresponds to the pipe with the second largest diameter, and so on. The electronic equipment determines the top and bottom elevations of the enclosure corresponding to each pipe element by analyzing the enclosure parameters of each pipe element.
[0087] S14 generates a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location.
[0088] The electronic device constructs an encapsulation polygon at the encapsulation location that is consistent with the encapsulation cross section. This encapsulation polygon surrounds the pipe element and fits the connection position between the manhole element and the pipe element. Based on the top and bottom elevations of the encapsulation location, the encapsulation polygon is stretched to obtain an stretched body model, which is the pipe encapsulation model.
[0089] The pipeline encapsulation modeling method provided in this embodiment obtains the encapsulation parameters of the pipeline element connected to the manhole element and creates the encapsulation cross section of the pipeline element. Then, based on the encapsulation parameters and the encapsulation cross section, a pipeline encapsulation model corresponding to the pipeline element is generated. This method can automatically generate a pipeline encapsulation model through the encapsulation parameters and the encapsulation cross section, realizing the accurate construction of the pipeline encapsulation model. It is convenient to calculate the required engineering quantity of the pipeline encapsulation model through model quantity calculation software, without the need for manual calculation of engineering quantity, thus improving the calculation efficiency of engineering quantity.
[0090] This embodiment provides a modeling method for pipe encapsulation, which can be used in electronic devices such as mobile phones, tablets, and computers. Figure 2 This is a flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention, such as... Figure 2 As shown, the process includes the following steps:
[0091] S21, obtain at least one pipe element that intersects with the inspection well element, and the encapsulation parameters corresponding to at least one pipe element. For detailed explanation, please refer to the relevant descriptions in the above embodiments; they will not be repeated here.
[0092] S22, Based on the intersection relationship between the at least one pipeline element and the inspection well element, create an enclosing section corresponding to the at least one pipeline element.
[0093] Specifically, step S22 above may include:
[0094] S221, Obtain the cross section corresponding to the inspection well element, and determine the cross section type of the inspection well element, wherein the cross section is a cross section along the longitudinal axis direction of the inspection well element.
[0095] A cross-section is a profile of a manhole element, taken along its longitudinal axis. This cross-section can be obtained by analyzing the profile of the manhole element. The cross-section type characterizes the shape of the cross-section corresponding to the manhole element. Specifically, the cross-section type can include rectangular, circular, or other shapes. The cross-section type is not limited here; those skilled in the art can determine the cross-section type of the manhole element based on the actual manhole being constructed.
[0096] S222, based on the section type, encapsulation parameters, and intersection relationship of the inspection well element, generate an encapsulation section corresponding to at least one pipe element.
[0097] The electronic equipment constructs pipe encapsulation models corresponding to all pipe elements based on the acquired cross-section type, encapsulation parameters, and the intersection relationship between the inspection manhole element and the pipe element. Different pipe encapsulation models are constructed for different cross-section types. For example, for a circular cross-section, when constructing the pipe encapsulation model, an encapsulation arc that fits the inspection manhole element can be generated at the connection between the inspection manhole element and the pipe element according to the encapsulation position.
[0098] Specifically, step S222 above may include:
[0099] (1) Obtain the intersection of the centerline of the pipeline element and the outer wall of the manhole element, the offset vector of the pipeline element, and the water flow vector.
[0100] The manhole element corresponds to a manhole with an inner wall and an outer wall. Electronic equipment determines the top-view intersection relationship between pipe elements and manhole elements by analyzing their intersection. For example, Figure 6 The intersection relationship between the circular inspection well and any pipe element shown, and Figure 17 The diagram shows the intersection relationship between the rectangular inspection well and any pipe element. Then, the electronic equipment can identify the start and end points of the pipe element, and calculate the intersection point IntPt between the pipe centerline and the outer wall of the corresponding manhole wall based on the position of the pipe start point relative to the inspection well element. For example, Figure 7 The intersection point IntPt, obtained by the intersection of the pipe element shown in the diagram and the outer wall of the circular inspection well, and as shown in the diagram... Figure 18 The intersection point IntPt is obtained by the intersection of the pipe element shown with the outer wall of the rectangular inspection well.
[0101] The offset vector is the offset direction of the pipeline element relative to the manhole element, that is, the extension direction of the pipeline element relative to the manhole element. Optionally, the steps for obtaining the offset vector include:
[0102] (11) Check whether the starting point of the pipeline element is located inside the manhole element.
[0103] The electronic device can identify the starting position of the pipeline element to determine whether the starting point of the pipeline element is located inside the manhole element. When the starting point of the pipeline element is located inside the manhole element, step (12) is executed; when the starting point of the pipeline element is located outside the manhole element, step (13) is executed.
[0104] (12) The vector with the same direction as the pipeline element is determined as the offset vector.
[0105] When the starting point of a pipeline element is located inside a manhole element, it indicates that the offset direction of the pipeline element is consistent with the extension direction of the pipeline. In this case, the electronic equipment can determine the vector with the same extension direction as the pipeline element as the offset vector OffsetVt, such as... Figure 8 and Figure 19 As shown.
[0106] (13) The vector opposite to the direction of the pipe element is determined as the offset vector.
[0107] When the starting point of the pipeline element is located outside the manhole element, it means that the offset direction of the pipeline element is opposite to the extension direction of the pipeline. At this time, the electronic equipment can determine the vector opposite to the extension direction of the pipeline element as the offset vector OffsetVt.
[0108] By detecting the positional relationship between the starting point of the pipeline element and the manhole element, the offset direction of the pipeline element relative to the manhole element can be determined, ensuring the accuracy of the encapsulation section subsequently constructed.
[0109] The flow vector is used to characterize the flow direction of the transported substance in the pipeline. The transported substance can include water, gas, oil, and natural gas, etc., without specific limitations here. The electronic equipment distinguishes between the left and right sides of the pipeline based on the flow direction; the pipe corresponding to the largest diameter is the outflow pipe, and the other pipes are inflow pipes. Optionally, the steps for obtaining the flow vector may include:
[0110] (11) Check whether the pipe element is the pipe element with the largest diameter.
[0111] Since there may be multiple elements intersecting with the manhole element, the method for determining the flow vector is different for pipe elements with the largest diameter and those without. The electronic device can obtain the pipe diameters of multiple pipe elements that intersect with the manhole element and compare each diameter to determine whether the current pipe element is the pipe element with the largest diameter. When the pipe element is the pipe element with the largest diameter, step (12) is executed; when the pipe element is not the pipe element with the largest diameter, step (14) is executed.
[0112] (12) When the pipeline element is the pipeline element with the largest diameter and the starting point of the pipeline element is located inside the manhole element, the vector with the same direction as the pipeline element is determined as the water flow vector.
[0113] When the pipe element is the pipe element with the largest diameter, further check whether the starting point of the pipe element is located inside the manhole element. If the starting point of the pipe element is located outside the manhole element, execute step (13); if the starting point of the pipe element is located inside the manhole element, it means that the water flow vector is in the same direction as the extension of the pipe element. At this time, the electronic device can directly determine the vector in the same direction as the extension of the pipe element as the water flow vector PipeVt, such as Figure 10 and Figure 21 As shown.
[0114] (13) When the pipeline element is the pipeline element with the largest diameter and the starting point of the pipeline element is located outside the manhole element, the vector opposite to the direction of the pipeline element is determined as the water flow vector.
[0115] When the pipe element is the pipe element with the largest diameter and the starting point of the pipe element is located outside the manhole element, it means that the water flow vector is opposite to the extension direction of the pipe element. In this case, the electronic device can directly determine the vector opposite to the extension direction of the pipe element as the water flow vector PipeVt.
[0116] (14) When the pipe element is not the pipe element with the largest diameter and the starting point of the pipe element is located inside the manhole element, the vector opposite to the direction of the pipe element is determined as the water flow vector.
[0117] When the pipe element is not the pipe element with the largest diameter, the electronic device still needs to detect whether the starting point of the pipe element is inside the manhole element. If the starting point of the pipe element is outside the manhole element, then step (15) is executed; if the starting point of the pipe element is inside the manhole element, then the water flow vector is opposite to the extension direction of the pipe element. At this time, the electronic device can directly determine the vector opposite to the extension direction of the pipe element as the water flow vector PipeVt.
[0118] (15) When the pipe element is not the pipe element with the largest diameter and the starting point of the pipe element is located outside the manhole element, the vector with the same direction as the pipe element is determined as the water flow vector.
[0119] When the pipe element is not the pipe element with the largest diameter, and the starting point of the pipe element is located outside the manhole element, it means that the water flow vector is in the same direction as the extension of the pipe element. In this case, the electronic device can directly determine the vector in the same direction as the extension of the pipe element as the water flow vector PipeVt.
[0120] By combining the radius of the pipeline element and the positional relationship between the starting point of the pipeline element and the manhole element, the corresponding water flow vector of the pipeline element is determined, which further ensures the accuracy of the encapsulation section construction and ensures that the pipeline encapsulation formed according to the pipeline encapsulation model can protect the pipeline, greatly improving the protective effect of the pipeline encapsulation on the pipeline.
[0121] (2) Based on the encapsulation parameters, the intersection point of the outer wall is offset according to the direction of the offset vector to obtain the reference point.
[0122] The electronic equipment analyzes the encapsulation parameters to determine the required thickness exceeding the manhole wall thickness for pipe encapsulation. Then, it offsets the outer wall intersection point IntPt according to the offset vector OffsetVt to obtain the reference point RefPt. The offset distance of the outer wall intersection point IntPt is the thickness exceeding the manhole wall thickness. Figure 9 The offset of the outer wall intersection point relative to the circular inspection well, and Figure 20 The intersection of the outer walls is shown relative to the offset of the rectangular inspection well.
[0123] (3) The water flow vector is deflected counterclockwise and clockwise by a preset angle to obtain the first offset vector and the second offset vector.
[0124] The water flow vector is deflected counterclockwise by a preset angle to obtain the first offset vector LeftOffsetVt; the water flow vector is deflected clockwise by a preset angle to obtain the second offset vector RightOffsetVt.
[0125] by Figure 11 Taking the circular inspection well as an example, the water flow vector PipeVt is rotated 90° counterclockwise to obtain the left offset vector, i.e., the first offset vector LeftOffsetVt; at the same time, the water flow vector PipeVt is rotated 90° clockwise to obtain the right offset vector, i.e., the second offset vector RightOffsetVt.
[0126] Similarly, for Figure 22 For the rectangular inspection well shown, the water flow vector PipeVt is rotated 90° counterclockwise to obtain the first offset vector LeftOffsetVt; at the same time, the water flow vector PipeVt is rotated 90° clockwise to obtain the second offset vector RightOffsetVt.
[0127] (4) Based on the encapsulation parameters, the reference point is offset according to the directions of the first offset vector and the second offset vector respectively to obtain the first target encapsulation vertex corresponding to the pipeline primitive.
[0128] The first target encapsulation vertices are multiple encapsulation vertices located outside the inspection well. The electronic equipment offsets the reference point according to the encapsulation parameters, following the directions of the first offset vector and the second offset vector, respectively, to obtain the encapsulation vertices corresponding to the first offset vector and the second offset vector.
[0129] Specifically, the encapsulation parameters include the widening value on the left side of the pipe and the widening value on the right side of the pipe, and step (4) above may include:
[0130] (41) Based on the widening value on the left side of the pipe and the widening value on the right side of the pipe, determine the left offset and right offset corresponding to the reference point.
[0131] The left offset equals the sum of the pipe diameter, pipe wall thickness, and the left-side widening value of the pipe; similarly, the right offset equals the sum of the pipe diameter, pipe wall thickness, and the right-side widening value of the pipe. The pipe diameter and pipe wall thickness can be determined by the component properties used to construct the pipe element.
[0132] (42) Based on the left offset, the reference point is offset in the direction of the first offset vector to obtain the first enclosing vertex on the left.
[0133] The electronic device offsets the reference point RefPt by a certain distance along the direction of the first offset vector LeftOffsetVt to obtain the first enclosing vertex LeftVertexPt1 on the left, where the offset distance of the reference point RefPt is equal to the left offset amount.
[0134] by Figure 12 Taking the circular inspection well as an example, the reference point RefPt is offset along the direction of the first offset vector by the left offset amount to obtain the left first enclosing vertex LeftVertexPt1.
[0135] Similarly, for Figure 23 The rectangular inspection well shown is obtained by offsetting the reference point RefPt along the direction of the first offset vector by the left offset amount, resulting in the left first enclosing vertex LeftVertexPt1.
[0136] (43) Based on the right offset, the reference point is offset in the direction of the second offset vector to obtain the first enclosing vertex on the right.
[0137] The electronic device offsets the reference point RefPt by a certain distance along the direction of the second offset vector RightOffsetVt to obtain the first enclosing vertex RightVertexPt1 on the right, where the offset distance of the reference point RefPt is equal to the right offset amount.
[0138] by Figure 12Taking the circular inspection well as an example, the reference point RefPt is offset in the direction of the second offset vector according to the right offset amount, to obtain the right first enclosing vertex RightVertexPt1.
[0139] Similarly, for Figure 23 The rectangular inspection well shown is obtained by offsetting the reference point RefPt in the direction of the second offset vector according to the right offset, resulting in the right first encapsulation vertex RightVertexPt1.
[0140] (44) The left first enclosing vertex and the right first enclosing vertex are determined as the first target enclosing vertex. After obtaining the left first enclosing vertex and the right first enclosing vertex, the electronic device can store the left first enclosing vertex and the right first enclosing vertex and use the left first enclosing vertex and the right first enclosing vertex as the first target enclosing vertex.
[0141] (5) Based on the first target enclosing vertex, the water flow vector and the intersection relationship, determine the second target enclosing vertex corresponding to the pipeline primitive.
[0142] The second target enclosing vertex is the enclosing vertex located on the outer and inner walls of the manhole wall corresponding to the manhole element. Based on the first target enclosing vertex, the electronic equipment can further determine the second target enclosing vertex corresponding to the pipe element based on the water flow vector and the intersection relationship between the pipe element and the manhole element.
[0143] Specifically, step (5) above may include:
[0144] (51) Generate a second left-side enclosing vertex that passes through the first left-side enclosing vertex and intersects with the outer wall of the inspection well element, and a third left-side enclosing vertex that intersects with the inner wall of the inspection well element, according to the direction of the water flow vector.
[0145] The electronic device can create a straight line passing through the first left-hand enclosed vertex LeftVertexPt1, with the direction of the water flow vector PipeVt. It then calculates the intersection of this line with the outer wall of the inspection well, thus obtaining the second left-hand enclosed vertex LeftVertexPt2. Figure 13 The left-hand two-enclosure vertex LeftVertexPt2, located on the outer wall of the circular inspection well, is shown below, or as shown below. Figure 24 The left-hand second-enclosed vertex, LeftVertexPt2, is shown on the outer wall of the rectangular inspection well.
[0146] After obtaining the second enclosing vertex on the left, the electronic device further creates a straight line through the second enclosing vertex LeftVertexPt2, and obtains the third enclosing vertex LeftVertexPt3 on the left, which intersects with the inner wall of the manhole.
[0147] For example Figure 14 Taking the circular inspection well as an example, the electronic device can construct a straight line passing through the left second enclosure vertex LeftVertexPt2 and the center point of the inspection well, and determine the intersection of this straight line and the inner wall of the well wall as the left third enclosure vertex LeftVertexPt3.
[0148] For example Figure 24 Taking the rectangular inspection well as an example, the electronic device further calculates the intersection point of the straight line passing through the left second enclosing vertex LeftVertexPt2 and the inner wall of the inspection well, and determines this intersection point as the left third enclosing vertex LeftVertexPt3.
[0149] (52) Generate the first right-side enclosing vertex, the second right-side enclosing vertex that intersects with the outer wall of the inspection well element, and the third right-side enclosing vertex that intersects with the inner wall of the inspection well element, according to the direction of the water flow vector.
[0150] Similarly, by using the method to determine the second and third left-side enclosure vertices, we can determine the second right-side enclosure vertex that intersects with the outer wall of the manhole element, and the third right-side enclosure vertex that intersects with the inner wall of the manhole element.
[0151] For example Figure 13 Taking the circular inspection well as an example, the electronic device can create a straight line passing through the first right-side enclosure vertex RightVertexPt1, with the direction of the water flow vector PipeVt, and determine the intersection of this line with the outer wall of the inspection well, thus obtaining the second right-side enclosure vertex RightVertexPt2; then, the electronic device can construct a straight line passing through the second right-side enclosure vertex RightVertexPt2 and the center point of the inspection well, and determine the intersection of this line with the inner wall of the well as the third right-side enclosure vertex RightVertexPt3, as shown. Figure 14 As shown.
[0152] For example Figure 14 Taking the rectangular inspection well as an example, the electronic device can create a straight line passing through the first right-hand enclosing vertex RightVertexPt1, with the direction of the water flow vector PipeVt, and determine the intersection point of this line with the outer wall of the inspection well, thus obtaining the second right-hand enclosing vertex RightVertexPt2; then, based on the straight line passing through the second right-hand enclosing vertex RightVertexPt2, the electronic device can calculate and determine the intersection point of this straight line with the inner wall of the well as the third right-hand enclosing vertex RightVertexPt3, as shown. Figure 25 As shown.
[0153] (53) The second enclosing vertex on the left, the third enclosing vertex on the left, the second enclosing vertex on the right, and the third enclosing vertex on the right are determined as the second target enclosing vertex.
[0154] The electronic device stores the left second-enclosing vertex, left third-enclosing vertex, right second-enclosing vertex, and right third-enclosing vertex it has determined, and uses the left second-enclosing vertex, left third-enclosing vertex, right second-enclosing vertex, and right third-enclosing vertex as the second target enclosing vertex.
[0155] (6) Generate the encapsulation section based on the first target encapsulation vertex, the reference point, and the second target encapsulation vertex.
[0156] The electronic device sequentially connects the first target enclosing vertex, the reference point, and the second target enclosing vertex, generating a polygon at the connection between the pipeline element and the manhole element, and defining the plane determined by the polygon as the enclosing section corresponding to the current pipeline element.
[0157] Optionally, when the cross-section type is circular, step (6) above may include:
[0158] (61) Obtain the center point of the inspection well element.
[0159] When the cross-section type is circular, it indicates that the current inspection well element is a circular inspection well. The electronic equipment identifies the outline of the circular inspection well to determine its center, which is the center point of the inspection well element. Figure 15 As shown.
[0160] (62) Based on the third enclosing vertex on the left and the third enclosing vertex on the right, generate the enclosing arc corresponding to the pipeline primitive.
[0161] The electronic device creates the encapsulation arc line corresponding to the pipe element by using the center point of the circular inspection well, the left third encapsulation vertex (LeftVertexPt3) located on the inner wall of the well, and the right third encapsulation vertex (RightVertexPt3) located on the inner wall of the well. Figure 15 As shown.
[0162] (63) Connect the enclosing arc, the first target enclosing vertex, the reference point and the second target enclosing vertex in sequence to generate the enclosing section of the pipeline element.
[0163] The electronic device sequentially connects to the left third encapsulation vertex LeftVertexPt3, the left second encapsulation vertex LeftVertexPt2, the left first encapsulation vertex LeftVertexPt1, the reference point RefPt, the right first encapsulation vertex RightVertexPt1, the right second encapsulation vertex RightVertexPt2, the right third encapsulation vertex RightVertexPt3, and the encapsulation arc line ArcLine to obtain the encapsulation cross-section corresponding to the current pipe element, such as... Figure 16 As shown.
[0164] Of course, you can also connect the left third enclosing vertex LeftVertexPt3, the left second enclosing vertex LeftVertexPt2, the left first enclosing vertex LeftVertexPt1, the reference point RefPt, the right first enclosing vertex RightVertexPt1, the right second enclosing vertex RightVertexPt2, the right third enclosing vertex RightVertexPt3, and the enclosing arc ArcLine in other orders, as long as you ensure that the points are connected in sequence.
[0165] The first enclosing vertex LeftVertexPt1 on the left and the first enclosing vertex RightVertexPt1 on the right constitute the first target enclosing vertex; the second enclosing vertex LeftVertexPt2 on the left, the third enclosing vertex LeftVertexPt3 on the left, the second enclosing vertex RightVertexPt2 on the right, and the third enclosing vertex RightVertexPt3 on the right constitute the second target enclosing vertex.
[0166] When the cross-sectional type of the manhole element is circular, the corresponding enclosing arc is obtained when constructing the enclosing section so that the enclosing arc can fit the connection between the manhole element and the pipeline element. The corresponding enclosing section is generated by connecting the enclosing arc, the reference point, the first target enclosing vertex, and the second target enclosing vertex, so that the constructed enclosing section fits the pipeline element connecting the circular manhole element to the greatest extent.
[0167] Optionally, when the cross-section type is a rectangular cross-section, step (6) above may include:
[0168] (64) Connect the first target enclosing vertex, the reference point and the second target enclosing vertex in sequence to generate the enclosing section of the pipeline element.
[0169] When the cross-section type is rectangular, it indicates that the current manhole element is a rectangular manhole. The electronic equipment can sequentially connect to the left first enclosing vertex LeftVertexPt1, the left second enclosing vertex LeftVertexPt2, the left third enclosing vertex LeftVertexPt3, the right third enclosing vertex RightVertexPt3, the right second enclosing vertex RightVertexPt2, the right first enclosing vertex RightVertexPt1, the reference point RefPt, and the left first enclosing vertex LeftVertexPt1, corresponding to the enclosing cross-section of the current pipe element, such as... Figure 25 As shown.
[0170] Of course, you can also connect the left third enclosing vertex LeftVertexPt3, the left second enclosing vertex LeftVertexPt2, the left first enclosing vertex LeftVertexPt1, the reference point RefPt, the right first enclosing vertex RightVertexPt1, the right second enclosing vertex RightVertexPt2, and the right third enclosing vertex RightVertexPt3 in other orders, as long as you ensure that the points are connected in sequence.
[0171] When the cross-sectional type of the manhole element is rectangular, there is no connecting arc at the connection between the manhole element and the pipe element. The corresponding enclosing cross-section can be directly generated by connecting the reference point, the first target enclosing vertex, and the second target enclosing vertex. This ensures the efficiency of constructing the enclosing cross-section while ensuring that the constructed enclosing cross-section matches the pipe element connecting the rectangular manhole element.
[0172] S23, parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters. For detailed explanations, please refer to the relevant descriptions in the above embodiments; they will not be repeated here.
[0173] S24: Generate a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location. For detailed explanations, please refer to the relevant descriptions in the above embodiments; they will not be repeated here.
[0174] The pipeline encapsulation modeling method provided in this embodiment generates corresponding encapsulation sections based on different manhole element cross-sectional types. This ensures that the generated encapsulation sections can adapt to different scenario requirements, guaranteeing the accuracy of the encapsulation section construction and further ensuring the accuracy of subsequent pipeline encapsulation model construction. By combining the intersection of the pipeline element's centerline and the manhole element's outer wall, the pipeline element's corresponding offset vector, and the water flow vector, a reference point, a first target encapsulation vertex (left first encapsulation vertex and right first encapsulation vertex), and a second target encapsulation vertex (left second encapsulation vertex, left third encapsulation vertex, right second encapsulation vertex, and right third encapsulation vertex) are determined. The encapsulation section is constructed using the determined reference point, first target encapsulation vertex, and second target encapsulation vertex, ensuring that the constructed encapsulation section matches the pipeline element to the greatest extent possible.
[0175] This embodiment provides a modeling method for pipe encapsulation, which can be used in electronic devices such as mobile phones, tablets, and computers. Figure 3 This is a flowchart of a pipe encapsulation modeling method according to an embodiment of the present invention, such as... Figure 3 As shown, the process includes the following steps:
[0176] S31, obtain at least one pipe element that intersects with the inspection well element and the encapsulation parameters corresponding to at least one pipe element.
[0177] Specifically, step S31 above may include:
[0178] S311, obtain the pre-generated manhole elements, pipe components, and the generation method of the pipe elements. The manhole elements are generated based on the selection instruction of the atlas model, which is used to characterize the modeling parameter information corresponding to the manhole components.
[0179] Pipeline components are the components required by the user to construct pipeline elements based on the current manhole element. These pipeline components can be selected by the user from the drawing set. Accordingly, the electronic equipment can respond to the selection command for the pipeline component and determine the pipeline component corresponding to the current manhole element from the standard drawing set.
[0180] The atlas is a standard atlas for constructing manhole elements. This atlas includes various types of atlases, such as rectangular and circular atlases. Different atlases correspond to different atlas models, each represented by a unique number. Determining an atlas model determines the corresponding manhole component and its modeling parameters, such as the component's shape and dimensions. The selection command indicates the user's choice of manhole components. Specifically, the user can input the atlas model selection command through the visual parameter interface. After inputting the command, the visual parameter interface displays the manhole elements corresponding to the current atlas model.
[0181] Accordingly, the electronic device can respond to the selection command and determine the manhole component corresponding to the current model from the standard drawing set. Then, the electronic device can generate manhole elements from the manhole component through point drawing or recognition, and display them on the visualization parameter interface so that the user can determine the manhole element corresponding to the selected drawing set model.
[0182] S312, Based on the pipe component, generate the pipe element that intersects with the manhole element according to the generation method.
[0183] The pipeline element is generated by using pipeline components. Specifically, this generation method can be point drawing, identification, or other methods, which are not specifically limited here.
[0184] After acquiring the pipeline component, the electronic device can generate a pipeline element connected to the manhole element through point drawing or recognition, and display it on the visualization parameter interface so that the user can identify the pipeline element.
[0185] S313, retrieves the setting instructions for the encapsulation parameters.
[0186] Encapsulation parameter setting instructions can be entered through the electronic device's settings form. The settings form consists of buttons, tables, and parameter graphical interfaces. Encapsulation parameters can be set through the buttons and tables provided by the settings form.
[0187] S314, identify the setting command and determine the encapsulation parameters corresponding to the setting command.
[0188] After the user inputs the setting command for the encapsulation parameters, the electronic device can determine the encapsulation parameters corresponding to the current setting command by recognizing the user's setting command for the encapsulation parameters it receives.
[0189] like Figure 26As shown, the settings window consists of two parts: the left side is the atlas list, and the right side is the atlas diagram. The atlas diagram provides the specifications for each component, allowing users to adjust the encapsulation parameters according to their needs. When setting encapsulation parameters, users can click on the specifications in the atlas diagram to trigger parameter settings and input the corresponding parameter values. The electronic equipment can then determine the encapsulation parameters for the corresponding piping element based on the user's input.
[0190] By pre-generating manhole elements using standard drawing models and acquiring the pipe components and generation methods for generating pipe elements, pipe elements connected to the manhole elements are generated. This enables rapid generation of pipe elements, improving the efficiency of pipe element acquisition and consequently increasing the generation rate of the pipe enclosure model. By identifying the set instructions for the acquired enclosure parameters, the corresponding enclosure parameters are determined. This allows for the construction of the pipe enclosure model based on the user-defined enclosure parameters, making the pipe enclosure model more aligned with user needs and simplifying its construction.
[0191] S32, based on the intersection relationship between the at least one pipe element and the manhole element, create an enclosing section corresponding to the at least one pipe element. For detailed explanation, please refer to the relevant descriptions in the above embodiments; they will not be repeated here.
[0192] S33, parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters.
[0193] Specifically, step S33 above may include:
[0194] S331, obtain the external top elevation of the pipe element.
[0195] The electronic equipment acquires the transverse profiles of the manhole and pipe elements along their transverse axes, and determines the external top elevation of the pipe elements connected to the manhole elements by identifying these profiles. Figure 28 As shown.
[0196] S332, analyze the pipe top widening value in the encapsulation parameters, calculate the sum of the pipe top elevation and the pipe top widening value, and obtain the encapsulation top elevation.
[0197] The electronic device determines the pipe top widening value in the encapsulation parameters by parsing the encapsulation parameters. Since the pipe top elevation is the outer wall height of the pipe element, the electronic device can determine the encapsulation top elevation by the sum of the pipe top elevation and the pipe top widening value.
[0198] S333, Check if the manhole map element exists in the base map element.
[0199] The basic graphic element is the graphic element composed of the basic components located at the bottom of the inspection well. The electronic equipment can determine whether the inspection well graphic element has a basic graphic element by recognizing the transverse cross-section of the inspection well graphic element and the pipeline graphic element. If the inspection well graphic element does not have a basic graphic element, step S334 is executed; otherwise, step S335 is executed.
[0200] S334, the bottom elevation of the inspection well element is determined as the bottom elevation of the enclosure.
[0201] When a manhole element does not have a foundation element, the electronic equipment can directly use the bottom elevation of the manhole wall as the encapsulation bottom elevation, such as... Figure 29 As shown.
[0202] S335, the bottom elevation of the basic graphic element is determined as the encapsulation bottom elevation.
[0203] When a manhole map element has a base element, since the base element is a component of the manhole map element, the electronic equipment can obtain the bottom elevation of the base element and use this bottom elevation as the encapsulation bottom elevation, such as... Figure 28 As shown.
[0204] S34 generates a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location.
[0205] Specifically, step S34 above may include:
[0206] S341. Based on the encapsulation cross section, the top elevation of the encapsulation, and the bottom elevation of the encapsulation, an initial encapsulation model is constructed.
[0207] The electronic equipment is constructed by extruding a solid body based on the encapsulation cross-section, top elevation, and bottom elevation to obtain an initial encapsulation model. This initial encapsulation model is a solid model containing pipe elements, such as... Figure 30 As shown.
[0208] S342, Subtract the pipe entity from the initial encapsulation model to obtain the pipe encapsulation model.
[0209] The electronic equipment determines the pipe entity based on the pipe primitives and subtracts the pipe entity from the initial encapsulation model, that is, subtracts the solid pipe from the initial encapsulation model to obtain the final pipe encapsulation model, such as... Figure 31 As shown.
[0210] As an optional implementation, the above method further includes:
[0211] S343, when the manhole element has a basic element, subtract the pipe entity and the basic entity corresponding to the basic element from the initial encapsulation model to obtain the pipe encapsulation model.
[0212] When the manhole element has a base element, the initial encapsulation model constructed by the electronic device includes the pipe entity corresponding to the pipe element and the base entity corresponding to the base element. Since the pipe encapsulation model is a model that fits the pipe element, the electronic device can subtract the pipe entity and the base entity corresponding to the base element from the initial encapsulation model to obtain the final pipe encapsulation model.
[0213] The pipe encapsulation modeling method provided in this embodiment determines the bottom and top elevations of the pipe encapsulation model by parsing encapsulation parameters and detecting the presence of basic elements, thus facilitating accurate pipe encapsulation model construction. The final pipe encapsulation model is obtained by subtracting the pipe entity model corresponding to the pipe elements from the initial encapsulation model constructed based on the encapsulation cross-section, top elevation, and bottom elevation. This achieves automatic generation of the pipe encapsulation model, reducing manual design costs and improving design efficiency. Since basic elements are not part of the pipe encapsulation model, when manhole elements have basic elements, the pipe entity and the corresponding basic entities are subtracted from the initial encapsulation model to obtain the final pipe encapsulation model, ensuring the accuracy of the pipe encapsulation model construction and avoiding miscalculations of quantities.
[0214] This embodiment also provides a pipe encapsulation modeling apparatus for implementing the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the apparatus described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0215] This embodiment provides a modeling device for pipe encapsulation, such as... Figure 32 As shown, it includes:
[0216] The acquisition module 41 is used to acquire at least one pipe element that intersects with the inspection well elements, as well as the encapsulation parameters corresponding to the at least one pipe element. For detailed explanations, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0217] Module 42 is used to create an enclosing section corresponding to the at least one pipe element based on the intersection relationship between the at least one pipe element and the manhole element. For detailed explanation, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0218] Parsing module 43 is used to parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters. For detailed explanations, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0219] The generation module 44 is used to generate a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location. For detailed explanations, please refer to the relevant descriptions in the above method embodiments; they will not be repeated here.
[0220] The pipe encapsulation modeling device provided in this embodiment obtains the encapsulation parameters of the pipe element connected to the manhole element and creates the encapsulation cross section of the pipe element. Then, it generates a pipe encapsulation model corresponding to the pipe element based on the encapsulation parameters and the encapsulation cross section. This method can automatically generate a pipe encapsulation model through the encapsulation parameters and the encapsulation cross section, realizing the accurate construction of the pipe encapsulation model. It is convenient to calculate the required engineering quantity of the pipe encapsulation model through model quantity calculation software, without the need for manual calculation of engineering quantity, thus improving the calculation efficiency of engineering quantity.
[0221] In this embodiment, the pipe encapsulation modeling device is presented in the form of a functional unit. Here, a unit refers to an ASIC circuit, a processor and memory that execute one or more software or fixed programs, and / or other devices that can provide the above functions.
[0222] Further functional descriptions of the above modules are the same as those in the corresponding embodiments described above, and will not be repeated here.
[0223] This invention also provides an electronic device having the above-described features. Figure 32 The modeling apparatus for the pipe encapsulation shown.
[0224] Please see Figure 33 , Figure 33 This is a schematic diagram of the structure of an electronic device provided in an optional embodiment of the present invention, such as... Figure 33 As shown, the electronic device may include: at least one processor 501, such as a CPU (Central Processing Unit), at least one communication interface 503, memory 504, and at least one communication bus 502. The communication bus 502 is used to enable communication between these components. The communication interface 503 may include a display screen or a keyboard; optionally, the communication interface 503 may also include a standard wired interface or a wireless interface. The memory 504 may be high-speed RAM (Random Access Memory) or non-volatile memory, such as at least one disk storage device. Optionally, the memory 504 may also be at least one storage device located remotely from the aforementioned processor 501. The processor 501 may be combined with... Figure 32 The described apparatus has an application program stored in memory 504, and a processor 501 calls the program code stored in memory 504 to perform any of the above method steps.
[0225] The communication bus 502 can be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus, etc. The communication bus 502 can be divided into an address bus, a data bus, and a control bus, etc. For ease of representation, Figure 33 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.
[0226] The memory 504 may include volatile memory, such as random-access memory (RAM); the memory may also include non-volatile memory, such as flash memory, hard disk drive (HDD) or solid-state drive (SSD); the memory 504 may also include a combination of the above types of memory.
[0227] The processor 501 can be a central processing unit (CPU), a network processor (NP), or a combination of CPU and NP.
[0228] The processor 501 may further include a hardware chip. This hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.
[0229] Optionally, memory 504 is also used to store program instructions. Processor 501 can call the program instructions to implement the functions described in this application. Figures 1 to 3 The pipe encapsulation modeling method shown in the embodiment.
[0230] This invention also provides a non-transitory computer storage medium storing computer-executable instructions that can execute the processing method of the pipe encapsulation modeling method in any of the above method embodiments. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), random access memory (RAM), flash memory, hard disk drive (HDD), or solid-state drive (SSD), etc.; the storage medium may also include combinations of the above types of memory.
[0231] Although embodiments of the invention have been described in conjunction with the accompanying drawings, those skilled in the art can make various modifications and variations without departing from the spirit and scope of the invention, and such modifications and variations all fall within the scope defined by the appended claims.
Claims
1. A method of modeling a pipe envelope, characterized by, include: Obtain at least one pipe element that intersects with the manhole element and the encapsulation parameters corresponding to the at least one pipe element; Based on the intersection relationship between the at least one pipeline element and the manhole element, an enclosing section corresponding to the at least one pipeline element is created; The encapsulation parameters are parsed to determine the encapsulation position corresponding to the encapsulation parameters; Generate a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location; The method of creating an enclosing section corresponding to the at least one pipe element based on the intersection relationship between the at least one pipe element and the manhole element includes: obtaining the section corresponding to the manhole element and determining the section type of the manhole element, wherein the section is a section along the longitudinal axis of the manhole element; obtaining the intersection point of the centerline of the pipe element and the outer wall of the manhole element, the offset vector corresponding to the pipe element, and the water flow vector; offsetting the outer wall intersection point according to the direction of the offset vector based on the enclosing parameters to obtain a reference point; performing counterclockwise and clockwise deflection on the water flow vector by a preset angle to obtain a first offset vector and a second offset vector; offsetting the reference point according to the directions of the first offset vector and the second offset vector respectively based on the enclosing parameters to obtain a first target enclosing vertex corresponding to the pipe element; determining a second target enclosing vertex corresponding to the pipe element based on the first target enclosing vertex, the water flow vector, and the intersection relationship; and generating the enclosing section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex.
2. The method according to claim 1, characterized in that, The encapsulation parameters include the widening value on the left side of the pipe and the widening value on the right side of the pipe. The step of offsetting the reference point according to the directions of the first offset vector and the second offset vector, respectively, based on the encapsulation parameters, to obtain the first target encapsulation vertex corresponding to the pipe primitive includes: Based on the widening value on the left side of the pipe and the widening value on the right side of the pipe, determine the left offset and right offset corresponding to the reference point; Based on the left offset, the reference point is offset in the direction of the first offset vector to obtain the left first enclosing vertex; Based on the right offset, the reference point is offset in the direction of the second offset vector to obtain the right first enclosing vertex; The first enclosing vertex on the left and the first enclosing vertex on the right are determined as the first target enclosing vertex.
3. The method according to claim 2, characterized in that, The step of determining the second target enclosing vertex corresponding to the pipeline primitive based on the first target enclosing vertex, the flow vector, and the intersection relationship includes: According to the direction of the water flow vector, generate a second left enclosing vertex that passes through the first left enclosing vertex and intersects with the outer wall of the inspection well element, and a third left enclosing vertex that intersects with the inner wall of the inspection well element; According to the direction of the water flow vector, generate a second right-side enclosing vertex that passes through the first right-side enclosing vertex and intersects with the outer wall of the inspection well element, and a third right-side enclosing vertex that intersects with the inner wall of the inspection well element; The second left enclosing vertex, the third left enclosing vertex, the second right enclosing vertex, and the third right enclosing vertex are determined as the second target enclosing vertex.
4. The method according to claim 3, characterized in that, When the cross-section type is a circular cross-section, generating the enclosing cross-section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex includes: Obtain the center point of the inspection well element; Based on the third enclosing vertex on the left and the third enclosing vertex on the right, an enclosing arc corresponding to the pipeline element is generated; The enclosing arc, the first target enclosing vertex, the reference point, and the second target enclosing vertex are connected sequentially to generate the enclosing section of the pipeline element.
5. The method according to claim 3, characterized in that, When the cross-section type is a rectangular cross-section, generating the enclosing cross-section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex includes: The first target enclosing vertex, the reference point, and the second target enclosing vertex are connected sequentially to generate the enclosing section of the pipeline primitive.
6. The method according to claim 1, characterized in that, Obtaining the offset vector corresponding to the pipeline primitive includes: Detect whether the starting point of the pipeline element is located inside the inspection well element; When the starting point of the pipeline element is located inside the manhole element, the vector with the same direction as the pipeline element is determined as the offset vector.
7. The method according to claim 6, characterized in that, Also includes: When the starting point of the pipeline element is located outside the inspection well element, the vector with the opposite direction to the pipeline element is determined as the offset vector.
8. The method according to claim 1, characterized in that, Obtaining the water flow vector corresponding to the pipe element includes: Detect whether the pipe element is the pipe element with the largest diameter; When the pipe element is the pipe element with the largest diameter, and the starting point of the pipe element is located inside the manhole element, the vector with the same direction as the pipe element is determined as the water flow vector.
9. The method according to claim 8, characterized in that, Also includes: When the pipe element is the pipe element with the largest diameter, and the starting point of the pipe element is located outside the manhole element, the vector with the opposite direction to the pipe element is determined as the water flow vector.
10. The method according to claim 8, characterized in that, Also includes: When the pipe element is not the pipe element with the largest diameter, and the starting point of the pipe element is located inside the manhole element, the vector with the opposite direction to the pipe element is determined as the water flow vector.
11. The method according to claim 10, characterized in that, Also includes: When the pipe element is not the pipe element with the largest diameter, and the starting point of the pipe element is located outside the manhole element, the vector with the same direction as the pipe element is determined as the water flow vector.
12. The method according to claim 1, characterized in that, The step of parsing the encapsulation parameters and determining the encapsulation position corresponding to the encapsulation parameters includes: Obtain the external top elevation of the pipe element; The pipe top widening value in the encapsulation parameters is analyzed, and the sum of the pipe top elevation and the pipe top widening value is calculated to obtain the encapsulation top elevation; Detect whether the inspection well element exists as a basic element; When the inspection well element does not have a base element, the bottom elevation of the inspection well element is determined as the enclosure bottom elevation.
13. The method according to claim 12, characterized in that, Also includes: When the inspection well graphic element has a base graphic element, the bottom elevation of the base graphic element is determined as the bottom elevation of the enclosure.
14. The method according to claim 12 or 13, characterized in that, The step of generating a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location includes: Based on the encapsulation cross-section, the top elevation of the encapsulation, and the bottom elevation of the encapsulation, an initial encapsulation model is constructed; The pipe encapsulation model is obtained by subtracting the pipe entity from the initial encapsulation model.
15. The method according to claim 14, characterized in that, Also includes: When the inspection well element has a base element, the pipeline entity and the base entity corresponding to the base element are subtracted from the initial encapsulation model to obtain the pipeline encapsulation model.
16. The method according to claim 1, characterized in that, Obtain at least one pipe element that intersects with the manhole elements, including: Obtain pre-generated manhole elements, pipe components, and the generation method of the pipe elements, wherein the manhole elements are generated based on the selection instruction of the atlas model, and the atlas model is used to characterize the modeling parameter information corresponding to the manhole components; Based on the pipeline component, pipeline elements that intersect with the inspection well elements are generated according to the generation method.
17. The method according to claim 16, characterized in that, Obtain the encapsulation parameters corresponding to at least one pipeline element, including: Obtain the setting instructions for the encapsulation parameters; Identify the setting command and determine the encapsulation parameters corresponding to the setting command.
18. A modeling device for pipe encapsulation, characterized in that, include: The acquisition module is used to acquire at least one pipe element that intersects with the manhole elements and the encapsulation parameters corresponding to the at least one pipe element; A creation module is used to create an enclosing section corresponding to the at least one pipe element and the manhole element based on their intersection relationship. The module includes: obtaining the section corresponding to the manhole element; determining the section type of the manhole element, wherein the section is a section along the longitudinal axis of the manhole element; obtaining the intersection point of the centerline of the pipe element and the outer wall of the manhole element, the offset vector corresponding to the pipe element, and the flow vector; offsetting the outer wall intersection point according to the direction of the offset vector based on the enclosing parameters to obtain a reference point; performing a preset angle counterclockwise and clockwise deflection on the flow vector to obtain a first offset vector and a second offset vector; offsetting the reference point according to the directions of the first offset vector and the second offset vector respectively based on the enclosing parameters to obtain a first target enclosing vertex corresponding to the pipe element; determining a second target enclosing vertex corresponding to the pipe element based on the first target enclosing vertex, the flow vector, and the intersection relationship; and generating the enclosing section based on the first target enclosing vertex, the reference point, and the second target enclosing vertex. The parsing module is used to parse the encapsulation parameters and determine the encapsulation position corresponding to the encapsulation parameters; A generation module is used to generate a pipe encapsulation model corresponding to the encapsulation cross-section at the encapsulation location.
19. An electronic device, characterized in that, include: A memory and a processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the pipe encapsulation modeling method according to any one of claims 1-17.
20. A computer-readable storage medium, characterized in that, The computer-readable storage medium stores computer instructions for causing a computer to perform the pipe encapsulation modeling method according to any one of claims 1-17.