Local collision detection method and device based on digital twin platform
By implementing local collision detection on the digital twin platform, users can customize the detection range and perform efficient and accurate collision detection, solving the problems of insufficient real-time and accuracy in the existing technology, reducing costs and improving detection efficiency.
Patent Information
- Application Number
- CN202411238163.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-01-24
- Estimated Expiration
- 2044-09-05
AI Technical Summary
The existing collision detection methods have problems of insufficient real-time and accuracy in industrial manufacturing, and are high in hardware costs and low in computing efficiency, which cannot meet the rapidly changing industrial environment needs.
Using a local collision detection method based on the digital twin platform, the model data of the target object is obtained, and the digital twin model simulation interface, including the three -dimensional simulation model and the collision detection control, allows users to customize the scope of local collision detection to obtain the inspection component entered by the user input And collision component parameters, and perform local collision detection.
It reduces the cost of detection and the skills of operators, improves the efficiency and accuracy of collision detection, significantly reduce the test time, generate detailed collision reports, and help users better understand and deal with the collision problem.
Smart Images

Figure CN119358200A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of collision detection technology, and in particular to a local collision detection method and device based on a digital twin platform. Background Art
[0002] With the in-depth development of digital transformation and intelligent upgrading of industries, digital twin technology is increasingly being used in manufacturing, energy, transportation, urban planning and other fields. Digital twin technology integrates multi-source data to establish a digital model corresponding to the physical entity in the virtual space, thereby realizing real-time monitoring, analysis and optimization of the physical entity. In industrial manufacturing, such as the construction and upgrading of power plants, the equipment, pipelines, structures, etc. involved are numerous and intricately distributed. Therefore, it is necessary to adjust the layout of pipelines and structures through collision detection between pipelines and between pipelines and buildings during the design stage, so as to theoretically eliminate various collisions between design schemes.
[0003] At present, traditional collision detection methods mainly include methods based on external sensors, visual recognition and geometric modeling. However, collision detection methods based on external sensors are limited by the sensing range and accuracy of the sensors and have high hardware costs. Vision-based collision detection methods require the use of high-precision cameras and image recognition models, and have high requirements on lighting conditions and image quality. Collision detection methods based on geometric modeling may result in low computational efficiency due to the high complexity of the model. Although existing collision detection methods provide solutions to a certain extent, their limitations still cannot meet the needs of real-time, high-precision collision detection in rapidly changing industrial environments. Summary of the invention
[0004] The purpose of the present invention is to solve at least one of the technical problems existing in the prior art, and to provide a local collision detection method and device based on a digital twin platform to optimize the collision detection process, reduce the detection cost and the skill requirements for operators, and improve the efficiency and accuracy of collision detection.
[0005] In a first aspect, an embodiment of the present invention provides a local collision detection method based on a digital twin platform, the method comprising: Acquire model data of a target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes a plurality of simulation design elements; In response to a user triggering operation on the collision detection control, displaying a collision detection interface, the collision detection interface including a check component input area, a collision component input area, and a start collision detection control; Acquire the inspection component parameters input by the user in the inspection component input area, wherein the inspection component parameters correspond to the inspection components that the user selects from the plurality of simulation design components in the three-dimensional simulation model and that need to perform the local collision detection; Acquiring collision element parameters input by a user in the collision element input area, wherein the collision element parameters correspond to the collision element that needs to be subjected to the local collision detection and is selected by the user from among the plurality of simulation design elements in the three-dimensional simulation model; In response to a user triggering operation on the start collision detection control, performing collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user; Generate a collision report based on the collision detection results.
[0006] According to an embodiment of the present invention, a local collision detection method based on a digital twin platform and a device thereof are provided. The method obtains model data of a target object and displays a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control. The three-dimensional simulation model includes multiple simulation design elements, which can be customized and expanded by users according to specific needs and are suitable for model data and scenes of different target objects. Then, in response to the user's triggering operation on the collision detection control, a collision detection interface is displayed, wherein the collision detection interface includes an inspection element input area, a collision element input area and a start collision detection control, which can allow users to customize the local collision detection interface. The local collision detection range is set to make the collision detection process more flexible, reduce the detection cost and the skill requirements for operators; then the inspection element parameters entered by the user in the inspection element input area are obtained, and the collision element parameters entered by the user in the collision element input area are obtained to determine the inspection element and collision element selected by the user from multiple simulation design elements of the three-dimensional simulation model that need to be subjected to local collision detection, and then in response to the user's triggering operation of starting the collision detection control, the three-dimensional simulation model is subjected to collision detection according to the inspection element and collision element selected by the user, avoiding the tedious and time-consuming comprehensive collision detection of all elements of the model, thereby significantly reducing the detection time and improving the efficiency of collision detection. In addition, after the collision detection results are obtained, the embodiment of the present invention can also generate a corresponding collision report according to the collision detection results, thereby reducing false alarms caused by the interaction between unnecessary elements, allowing users to better understand the collision situation of the three-dimensional simulation model and handle collision problems, and improving the accuracy of detection.
[0007] According to some embodiments of the present invention, performing collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user includes: Dividing the three-dimensional simulation model according to the inspection element and the collision element to obtain a local collision detection area; Creating a target collision space according to the local collision detection area, and determining a first envelope box of the inspection element and a second envelope box of the collision element contained in the target collision space; A collision detection is performed on a plurality of the first envelope boxes and a plurality of the second envelope boxes in the target collision space.
[0008] According to some embodiments of the present invention, performing collision detection on a plurality of the first envelope boxes and a plurality of the second envelope boxes in the target collision space includes: constructing an envelope box binary tree according to the plurality of first envelope boxes and the plurality of second envelope boxes; Traversing the envelope box binary tree, and detecting whether each of the first envelope boxes overlaps with the second envelope box; If there is an overlap between the first envelope box and the second envelope box, determining that there is a collision between the inspection element corresponding to the first envelope box and the collision element corresponding to the second envelope box; The inspection component with the collision is determined as a target inspection component, and the corresponding collision component is determined as a target collision component.
[0009] According to some embodiments of the present invention, the detecting whether each of the first envelope boxes overlaps with the second envelope boxes includes one of the following: Acquire a first coordinate value of the first envelope box, and acquire a second coordinate value of the second envelope box, and compare the first coordinate value with the second coordinate value to determine whether the first envelope box overlaps with the second envelope box; Alternatively, obtain the first projection axis of the first envelope box and the second projection axis of the second envelope box, determine the first projection interval of the first envelope box and the second projection interval of the second envelope box based on the first projection axis and the second projection axis, and determine whether the first envelope box overlaps with the second envelope box based on the overlapping relationship between the first projection interval and the second projection interval.
[0010] According to some embodiments of the present invention, generating a collision report according to the collision detection result includes: Displaying a collision result interface according to the collision detection result, wherein the collision result interface includes a collision record selection area and a collision report generation control; In response to a selection operation of the user in the collision record selection area, determining at least one collision record selected by the user in the collision detection result; In response to a user triggering operation on the collision report generation control, the collision report is generated according to all the collision records selected by the user.
[0011] According to some embodiments of the present invention, the present invention further includes one of the following: Displaying the target inspection element and the target collision element in the three-dimensional simulation model with a first display effect on the digital twin model simulation interface according to the collision detection result; Alternatively, in response to a user's viewing operation of the collision record, the target inspection element and the target collision element in the three-dimensional simulation model are displayed with a second display effect on the digital twin model simulation interface according to the collision record.
[0012] According to some embodiments of the present invention, the collision record includes at least one of the following: The component name of the target inspection component and its corresponding target collision component; Component parameters of the target inspection component and its corresponding target collision component; The collision type of the target inspection element and its corresponding target collision element; The target inspection element and its corresponding collision position of the target collision element.
[0013] According to some embodiments of the present invention, acquiring model data of the target object and displaying a digital twin model simulation interface according to the model data of the target object includes: Acquire the model data of the target object from an external data source and perform preprocessing; Constructing the three-dimensional simulation model according to the preprocessed model data, and creating the collision detection control; The digital twin model simulation interface is displayed, and the three-dimensional simulation model and the collision detection control are displayed in the digital twin model simulation interface.
[0014] According to some embodiments of the present invention, the collision detection interface further includes a non-checking component input area and a non-collision component input area, and the method further includes: Obtain non-check component parameters input by the user in the non-check component input area, wherein the non-check component parameters correspond to non-check components that are selected by the user from among the multiple simulation design components of the three-dimensional simulation model and do not participate in the local collision detection; obtain non-collision component parameters input by the user in the non-collision component input area, wherein the non-collision component parameters correspond to non-collision components that are selected by the user from among the multiple simulation design components of the three-dimensional simulation model and do not participate in the local collision detection; in response to the user's triggering operation of starting the collision detection control, perform collision detection on the three-dimensional simulation model according to the non-check components selected by the user and the other simulation design components other than the non-collision components.
[0015] In a second aspect, an embodiment of the present invention provides a local collision detection device based on a digital twin platform, the device comprising: a processing module, used to obtain model data of a target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface comprises a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model comprises a plurality of simulation design elements; the processing module is also used to display a collision detection interface in response to a user's triggering operation on the collision detection control, and the collision detection interface comprises an inspection element input area, a collision element input area, and a start collision detection control; the processing module is also used to obtain an inspection element input by a user in the inspection element input area Parameters, wherein the inspection element parameters correspond to the inspection element that needs to be subjected to the local collision detection and is selected by the user from the multiple simulation design elements in the three-dimensional simulation model; the processing module is also used to obtain the collision element parameters input by the user in the collision element input area, wherein the collision element parameters correspond to the collision element that needs to be subjected to the local collision detection and is selected by the user from the multiple simulation design elements in the three-dimensional simulation model; the processing module is also used to respond to the user's triggering operation of the start collision detection control, and perform collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user; the output module is used to generate a collision report according to the collision detection result.
[0016] In a third aspect, an embodiment of the present invention provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the local collision detection method based on the digital twin platform of any one of the above-mentioned embodiments is implemented.
[0017] In a fourth aspect, an embodiment of the present invention provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the local collision detection method based on a digital twin platform of any one of the above embodiments.
[0018] In a fifth aspect, an embodiment of the present invention provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that when the computer device executes, the local collision detection method based on the digital twin platform of any one of the above-mentioned embodiments is implemented.
[0019] Additional aspects and advantages of the present invention will be given in part in the following description and in part will be obvious from the following description, or will be learned through practice of the present invention. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] The accompanying drawings are used to provide a further understanding of the technical solution of the present invention and constitute a part of the specification. Together with the embodiments of the present invention, they are used to explain the technical solution of the present invention and do not constitute a limitation on the technical solution of the present invention.
[0021] Figure 1 is a schematic diagram of an implementation environment involved in an embodiment of the present invention; Figure 2 is a flow chart of a local collision detection method based on a digital twin platform provided in an embodiment of the present invention; Figure 3 It is an interface view of the digital twin platform provided by an embodiment of the present invention; Figure 4 This is an interface view of a new collision detection provided by an embodiment of the present invention; Figure 5 The embodiment of the present invention provides Figure 2 Specific method flow chart of step S500; Figure 6 is a flow chart of a specific method for performing collision detection on an envelope box provided by an embodiment of the present invention; Figure 7 The embodiment of the present invention provides Figure 2 Specific method flow chart of step S600; Figure 8 It is an interface view for displaying the collision detection result in detail provided by an embodiment of the present invention; Fig. 9 is an interface view showing a collision position provided by an embodiment of the present invention; Fig.10 The embodiment of the present invention provides Figure 2 Specific method flow chart of step S100; Fig.11 This is an interface view of a new collision detection provided by an embodiment of the present invention; Fig.12is a flow chart of a local collision detection method based on a digital twin platform provided in an embodiment of the present invention; Fig.13 It is a structural schematic diagram of a local collision detection device based on a digital twin platform provided in an embodiment of the present invention. DETAILED DESCRIPTION
[0022] This section will describe in detail the specific embodiments of the present invention. The preferred embodiments of the present invention are shown in the accompanying drawings. The purpose of the accompanying drawings is to supplement the description of the text part of the specification with graphics, so that people can intuitively and vividly understand each technical feature and the overall technical solution of the present invention, but it cannot be understood as a limitation on the scope of protection of the present invention.
[0023] In the description of the present invention, if there is a description of first and second, it is only for the purpose of distinguishing the technical features, and cannot be understood as indicating or implying the relative importance or implicitly indicating the number of the indicated technical features or implicitly indicating the order of the indicated technical features.
[0024] In the description of the present invention, unless otherwise clearly defined, terms such as setting, installing, connecting, etc. should be understood in a broad sense, and technicians in the relevant technical field can reasonably determine the specific meanings of the above terms in the present invention based on the specific content of the technical solution.
[0025] The following is an introduction and explanation of several terms involved in the present invention: (1) Digital Twins is a technology that makes full use of data such as physical models, sensor updates, and operation history to complete mapping in virtual space, thereby reflecting the entire life cycle of the corresponding physical equipment.
[0026] (2) Collision detection is a technology used in fields such as computer graphics and computer games to detect whether two or more objects collide.
[0027] (3) An envelope box is a geometric body used to simplify the collision model. It is usually a rectangular block that can completely contain the object.
[0028] In order to make the objectives, technical solutions and advantages of the present invention more clear, the embodiments of the present invention will be further described in detail below with reference to the accompanying drawings.
[0029] Figure 1 The following is a schematic diagram showing an implementation environment of a local collision detection method based on a digital twin platform. Figure 1As shown, the implementation environment can be a digital twin three-dimensional system, which includes a terminal device 100 and a server 200. Among them, the server 200 provides the operating environment of the digital twin platform, and transmits the image interface that interacts with the user to the terminal device 100 through a network connection; the terminal device 100 is used to visualize the digital twin platform, provide an image interface for displaying the digital twin platform and is configured with an input device (such as a mouse, keyboard, touch screen, etc.), and then returns the user's interactive operations related to the graphical interface through the input device to the server 200 through a network connection. Specifically, the terminal device 100 can be an electronic device such as a desktop computer, a laptop computer, a tablet computer, a smart phone, etc., which is not limited here. Among them, the image interface display form of the digital twin platform on the terminal device 100 can be an application form or a web page form.
[0030] Furthermore, the server 200 can be an independent physical server, or a server cluster or distributed system composed of multiple physical servers, or a cloud server that provides basic cloud computing services such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, CDN, and big data and artificial intelligence platforms. For example, in this implementation environment, the server 200 can be used to store data, and can also be used to run the digital twin platform, and to transmit information and interact with the terminal device 100, and provide cloud computing services related to collision detection for the terminal device 100, which is particularly suitable for collision detection based on the digital twin platform. The server 200 establishes a direct or indirect network connection with the terminal device 100 in advance by wired or wireless means, and realizes data transmission between the terminal device 100 and the terminal device 100 through the network connection. For example, the transmitted data includes but is not limited to: graphic instruction data, scene information, three-dimensional model data, etc.
[0031] See also Figure 2 , which is a flow chart of a local collision detection method based on a digital twin platform provided by an embodiment of the present invention. In this embodiment, the above-mentioned terminal device 100 is used as an example for explanation. Figure 2 As shown, the local collision detection method provided by the embodiment of the present invention includes but is not limited to steps S100 to S600: Step S100, obtain model data of the target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes multiple simulation design elements.
[0032] In this step, after the model data of the target object is obtained, a corresponding digital twin model simulation interface is generated on the terminal device 100, so that the three-dimensional simulation model of the target object can be intuitively displayed, and the collision detection control is used to provide interactive functions to the user. Figure 3 As shown, for example, after the user clicks the collision detection control, the digital twin platform starts to execute the logic operation of the collision detection of the three-dimensional simulation model, where the model data can include the geometry and size, material properties, fixed position and posture of the target object, etc. On the digital twin model simulation interface, users can customize the collision detection settings for simulation design elements according to specific business needs and application scenarios, thereby ensuring that the model data and scenarios can accurately adapt to different target objects.
[0033] In one embodiment, if Figure 3 As shown, the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control displayed on the same screen, wherein the left area may be provided with a collision detection control, and the three-dimensional simulation model is displayed in the right area, or the display areas of the three-dimensional simulation model and the collision detection control may be swapped, so that the user can conveniently call the collision detection control while observing the three-dimensional simulation model, thereby improving the user's operating experience and operating fluency. The embodiment of the present invention does not limit the area where the three-dimensional simulation model and the collision detection control are displayed in the digital twin model simulation interface.
[0034] Step S200, in response to the user's triggering operation on the collision detection control, displaying a collision detection interface, the collision detection interface includes a check component input area, a collision component input area and a start collision detection control.
[0035] In one embodiment of this step, the user triggers the collision detection control, and in response to the user's triggering operation, the collision detection interface is displayed. Figure 4As shown, the user can trigger the above-mentioned collision detection control, and display the collision detection interface and the three-dimensional simulation model on the same screen on the digital twin model simulation interface, wherein the collision detection interface can be displayed in the left area of the original digital twin model simulation interface, and the three-dimensional simulation model can be displayed in the right area. The embodiment of the present invention does not limit the display area of the collision detection interface. Among them, the collision detection interface includes an inspection component input area, a collision component input area, and a start collision detection control. The inspection component input area and the collision component input area are areas where the user interacts with the collision detection interface. The user can perform input operations in the inspection component input area or the collision component input area. For example, the input operation can be to add, delete, or delete all operations on the inspection component input area or the collision component input area, which can allow the user to customize the local collision detection range, and conveniently input the inspection component and the collision component while observing the three-dimensional simulation model, thereby improving the user's operating experience and operation fluency, making the collision detection process more flexible, and reducing the detection technology requirements.
[0036] In one embodiment, the user can click to select a simulation design element in the three-dimensional simulation model, and then click the add operation in the inspection element input area to add the selected simulation design element to the inspection element input area. In another embodiment, the user can click to select an inspection element in the inspection element input area, and then click the delete operation to move the inspection element out of the inspection element input area. In another embodiment, the user can also click the delete all operation to simultaneously move multiple inspection elements in the inspection element input area out of the inspection element input area. It is understandable that the specific implementation method of the user adding, deleting or deleting all operations on the collision element input area is similar to the inspection element input area, which is not repeated here. Further, the collision detection interface is also provided with a close control, which can respond to the user's triggering operation of the close control to close the collision detection interface. It should be noted that the interface for the digital twin platform to display a graphical interface includes a digital twin model simulation interface, a collision detection interface, etc., which can be in the form of a program window or a web page, which is not limited here.
[0037] Step S300, obtaining inspection component parameters input by the user in the inspection component input area, wherein the inspection component parameters correspond to the inspection component that needs to be subjected to local collision detection and is selected by the user from a plurality of simulation design components in the three-dimensional simulation model.
[0038] In this step, by adding inspection elements in the inspection element input area, the user can determine the inspection elements that need to be locally collided from multiple simulation design elements of the three-dimensional simulation model, and then obtain the inspection element parameters corresponding to each inspection element to perform subsequent local collision detection. In one embodiment, the inspection element parameters are parameters corresponding to the inspection elements, and may include the type, name, and label of each inspection element, such as Figure 4 As shown, after the user adds the simulation design component A to the inspection component input area, the corresponding inspection component parameters can be displayed in the inspection component input area to obtain the inspection component A. The inspection component parameters of the inspection component A are "EQUI #2 main transformer", so that the user can view the added inspection components in the inspection component input area. In another embodiment, a selection box is set before each inspection component parameter, and the user can click to check the added inspection component, and then delete the selected inspection component when there are multiple inspection components.
[0039] Step S400, obtaining collision component parameters input by the user in the collision component input area, wherein the collision component parameters correspond to the collision component that needs to be subjected to local collision detection and is selected by the user from a plurality of simulation design components of the three-dimensional simulation model.
[0040] In this step, by adding collision elements in the collision element input area, the collision elements that need to be detected locally can be selected from multiple simulation design elements of the three-dimensional simulation model, and then collision element parameters corresponding to each collision element can be obtained to perform subsequent local collision detection. In one embodiment, the collision element parameters are parameters corresponding to the collision elements, and may include the type, name, and label of each collision element, such as Figure 4 As shown, after the user adds the simulation design element to the collision element input area, when it is determined as a collision element, the corresponding collision element parameters can be displayed in the collision element input area. Taking the simulation design elements B and C in the figure as examples, the collision element parameters of the simulation design element B are "TUBI4" and the collision element parameters of the simulation design element C are "TUBI 5". The user adds the simulation design elements B and C to the collision element input area to obtain the collision elements B and C, thereby displaying the simulation design element selected by the user as a collision element, which is convenient for the user to view the added collision elements in the collision element input area. In another embodiment, a selection box is set at the display position corresponding to each collision element parameter, and the user can check the added collision element by clicking, and then delete the selected collision element when there are multiple collision elements.
[0041] In one embodiment, the user can make a preliminary judgment on the possible collision between the simulated design elements by observing the three-dimensional simulation model, screen out multiple simulated design elements that may have collisions, and then add one of the simulated design elements to the inspection element input area, and determine that the simulated design element is the inspection element that needs to be locally collided. Furthermore, with the inspection element as the center, the simulated design elements adjacent to the inspection element can be added to the collision element input area, thereby determining them as collision elements that need to be locally collided, and then the area surrounding the inspection element and the collision element can be determined as the local collision detection area of the three-dimensional simulation model.
[0042] Step S500 , in response to a user triggering operation to start a collision detection control, a collision detection is performed on the three-dimensional simulation model according to the inspection element and the collision element selected by the user.
[0043] In one embodiment of this step, the user may trigger the collision detection control, and then in response to the user's triggering operation, the three-dimensional simulation model is subjected to collision detection according to the inspection element and collision element selected by the user. Figure 4 As shown, at this time, the user selects the simulation design elements in the three-dimensional simulation model waiting for local collision detection, including the inspection element A, the collision element B, and the collision element C. Specifically, in response to the user's triggering operation of starting the collision detection control, the three-dimensional simulation model can be subjected to collision detection according to the inspection element A, the collision element B, and the collision element C, for example, detecting whether there is a collision between the inspection element A and the collision element B, and detecting whether there is a collision between the inspection element A and the collision element C, so there is no need to perform collision detection on all simulation design elements, thereby saving calculation time and improving the efficiency of collision detection.
[0044] Step S600: generating a collision report according to the collision detection result.
[0045] In this step, a collision report is generated based on the collision detection results obtained through the collision detection.
[0046] The local collision detection method based on the digital twin platform provided by the embodiment of the present invention obtains the model data of the target object and displays the digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes a plurality of simulation design elements, which can be customized and expanded by the user according to specific needs, and is suitable for the model data and scenes of different target objects; then, in response to the user's triggering operation on the collision detection control, the collision detection interface is displayed, wherein the collision detection interface includes an inspection element input area, a collision element input area and a start collision detection control, which can allow the user to customize the local collision detection range The collision detection process is more flexible, and the detection cost and the skill requirements for operators are reduced; then the inspection element parameters entered by the user in the inspection element input area are obtained, and the collision element parameters entered by the user in the collision element input area are obtained to determine the inspection element and collision element that the user selects from multiple simulation design elements of the three-dimensional simulation model that need to be subjected to local collision detection, and then in response to the user's triggering operation to start the collision detection control, the three-dimensional simulation model is subjected to collision detection according to the inspection element and collision element selected by the user, thereby avoiding tedious and time-consuming comprehensive collision detection of all elements of the model, thereby significantly reducing the detection time and improving the efficiency of collision detection. In addition, after the collision detection results are obtained, the embodiment of the present invention can also generate a corresponding collision report according to the collision detection results, thereby reducing false alarms caused by the interaction between unnecessary elements, allowing users to better understand the collision situation of the three-dimensional simulation model and handle collision problems, and improving the accuracy of detection.
[0047] See also Figure 5 As shown, in the local collision detection method based on the digital twin platform provided in some embodiments of the present invention, Figure 2 The step S500 in the embodiment of the present invention performs collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user, including but not limited to the following steps S510 to S530: Step S510, dividing the three-dimensional simulation model according to the inspection elements and the collision elements to obtain a local collision detection area.
[0048] In this step, the inspection element and the collision element are marked in the three-dimensional simulation model according to the inspection element parameters and the collision element parameters, and then according to the position and range of the inspection element, the simulation design elements adjacent to the inspection element on all sides are determined as collision elements that require local collision detection, with the inspection element as the center. Then, the three-dimensional simulation model is divided into regions around the inspection element and the collision element, and the collision detection area that needs to be performed in the three-dimensional simulation model can be determined, and the local collision detection area can be obtained. Therefore, collision detection is only performed on the divided local collision detection area, which can reduce unnecessary calculations.
[0049] Step S520: creating a target collision space according to the local collision detection area, and determining a first envelope box of the inspection element and a second envelope box of the collision element contained in the target collision space.
[0050] In this step, one or more target collision spaces are created according to the local collision detection areas where the inspection element and the collision element are located, and the first envelope box of the corresponding inspection element and the second envelope box of the corresponding collision element are determined according to the size and shape of the inspection element and the collision element contained in the target collision space. In one embodiment, the size and shape of the target collision space can be adjusted as needed to ensure that all inspection elements and collision elements can be included. In another embodiment, the shape of the envelope box can be a hexahedron, a sphere, a cuboid, etc., corresponding to different envelope boxes, including an axis-aligned envelope box, a spherical envelope box, and a directional envelope box. For example, an axis-aligned envelope box can be selected to wrap inspection elements or collision elements of complex shapes to ensure that the inspection elements or collision elements can be tightly wrapped, thereby improving calculation efficiency.
[0051] Step S530: performing collision detection on the plurality of first envelope boxes and the plurality of second envelope boxes in the target collision space.
[0052] It can be understood that after determining the first envelope box of each inspection element and the second envelope box of each collision element contained in the target collision space, collision detection can be performed on multiple first envelope boxes and multiple second envelope boxes in the target collision space, and there is no need to perform collision detection on the inspection elements and collision elements outside the target collision space, thereby reducing the amount of data calculation and improving collision detection efficiency.
[0053] See also Figure 6 As shown, in the local collision detection method based on the digital twin platform provided in some embodiments of the present invention, Figure 5 Step S530 in the embodiment of the present invention performs collision detection on the plurality of first envelope boxes and the plurality of second envelope boxes in the target collision space, including but not limited to the following steps S531 to S534: Step S531: construct an envelope box binary tree according to the plurality of first envelope boxes and the plurality of second envelope boxes.
[0054] Step S532, traverse the envelope box binary tree to detect whether each first envelope box overlaps with the second envelope box.
[0055] Step S533: if the first envelope box overlaps the second envelope box, it is determined that there is a collision between the inspection element corresponding to the first envelope box and the collision element corresponding to the second envelope box.
[0056] Step S534 , determining the inspection component with collision as the target inspection component, and determining the corresponding collision component as the target collision component.
[0057] It should be noted that an envelope box binary tree can be constructed based on multiple first envelope boxes and multiple second envelope boxes. For example, an envelope box binary tree can be constructed based on multiple first envelope boxes and multiple second envelope boxes obtained by using multiple inspection elements and multiple collision elements of axis-aligned envelope boxes, wherein the envelope box binary tree is then traversed to detect whether each first envelope box overlaps with the second envelope box. Specifically, it can be first detected whether the first envelope box overlaps with the second envelope box of the root node of the binary tree. If not, the detection is stopped; otherwise, the first envelope box is continuously traversed to detect whether the second envelope box of each child node overlaps. If it is detected that the first envelope box overlaps with the second envelope box, it can be determined that there is a collision between the inspection element corresponding to the first envelope box and the collision element corresponding to the second envelope box. Further, the inspection element with the collision can be determined as the target inspection element, and the collision element corresponding to the inspection element can be determined as the target collision element.
[0058] It should be noted that, in the embodiments of the present invention, Figure 6 In step S532, detecting whether each first envelope box overlaps with the second envelope box includes at least one of the following steps: Step S5321, obtaining a first coordinate value of the first envelope box, and obtaining a second coordinate value of the second envelope box, and comparing the first coordinate value with the second coordinate value to determine whether the first envelope box overlaps with the second envelope box.
[0059] In this step, for the first envelope box and the second envelope box, the first coordinate value and the second coordinate value can be obtained respectively. The first coordinate value can include the maximum coordinate value or the minimum coordinate value of the first envelope box on any one of the X, Y, and Z coordinate axes, and the second coordinate value can include the maximum coordinate value or the minimum coordinate value of the second envelope box on any one of the X, Y, and Z coordinate axes. In one embodiment, the maximum coordinate value a1 of the first envelope box on the X axis can be obtained, and the minimum coordinate value b1 of the second envelope box on the X axis can be obtained, and then by comparing the maximum coordinate value a1 and the minimum coordinate value b1, if the maximum coordinate value a1 is less than the minimum coordinate value b1, it is determined that the first envelope box overlaps with the second envelope box on the X axis. In another embodiment, the minimum coordinate value a2 of the first envelope box on the X axis can be obtained, and the maximum coordinate value b2 of the second envelope box on the X axis can be obtained, and then the minimum coordinate value a2 is compared with the maximum coordinate value b2, and if the minimum coordinate value a2 is greater than the maximum coordinate value b2, it is determined that the first envelope box overlaps with the second envelope box on the X axis. It should be understood that if the first envelope box overlaps with the second envelope box on the X, Y, and Z coordinate axes, it can be determined that the first envelope box and the second envelope box completely overlap. The method for determining the overlap between the first envelope box and the second envelope box on the Y and Z axes is similar to the method mentioned in the above embodiment and will not be repeated here.
[0060] Step S5322, obtain the first projection axis of the first envelope box, and obtain the second projection axis of the second envelope box, determine the first projection interval of the first envelope box and the second projection interval of the second envelope box based on the first projection axis and the second projection axis, and determine whether the first envelope box overlaps with the second envelope box based on the overlapping relationship between the first projection interval and the second projection interval.
[0061] In this step, the first projection axis of the first envelope box and the second projection axis of the second envelope box can be obtained. The first projection axis can be the projection axis of the first envelope box on any one of the X, Y, and Z coordinate axes, and the second projection axis can be the projection axis of the second envelope box on any one of the X, Y, and Z coordinate axes. Then, based on the first projection axis and the second projection axis, the first projection interval of the first envelope box on the coordinate axis, i.e., the maximum projection value and the minimum projection value of the first envelope box on the coordinate axis, and the second projection interval of the second envelope box on the coordinate axis, i.e., the maximum projection value and the minimum projection value of the second envelope box on the coordinate axis, can be calculated respectively. Furthermore, the first projection interval is compared with the second projection interval. If the first projection interval completely overlaps with the second projection interval, it is determined that the first envelope box overlaps with the second envelope box.
[0062] See also Figure 7 As shown, in the local collision detection method based on the digital twin platform provided in some embodiments of the present invention, Figure 2In step S600, a collision report is generated according to the collision detection result, including but not limited to the following steps S610 to S630: Step S610: displaying a collision result interface according to the collision detection result, wherein the collision result interface includes a collision record selection area and a collision report generation control.
[0063] In this step, after the collision detection is performed and the collision detection result is obtained, the collision result interface will be displayed on the terminal device 100, such as Figure 8 As shown, the collision result interface includes a collision record selection area and a collision report generation control. The user can view the collision records and the number of collision records obtained by the collision detection in the collision result interface, and then display the specific situation of the inspection element with collision and its corresponding collision element, and request to generate a collision report by clicking the collision report generation space. In one embodiment, the user can view the specific collision record in the collision record selection area. The collision record in the collision record selection area can store the name of the inspection element with collision, the name of the collision element, the inspection element parameter, the collision element parameter, the collision type and the collision position of the inspection element and the collision element. Taking the inspection element A and the collision element B in the above embodiment for collision detection as an example, if the collision detection result is that the inspection element A and the collision element B are in collision, the collision record of the inspection element A and the collision element B obtained by the collision detection is displayed in the collision result interface, which specifically displays the name of the inspection element A "EQUI #2 main transformer", the name of the collision element B "TUBI 4", the collision type of the inspection element A and the collision element B is "hard collision", and other information.
[0064] Step S620 , in response to a selection operation of the user in the collision record selection area, determining at least one collision record selected by the user in the collision detection result.
[0065] In this step, the user can perform a selection operation in the collision record selection area, and then in response to the user's selection operation, at least one collision record selected by the user is determined in the collision detection result. Specifically, a selection box or other selection method is set at the display position corresponding to each collision record, and the user can select the collision record of interest by clicking.
[0066] In another embodiment, a collision record search area and a collision record search control are provided in the collision result interface, wherein the collision record search control is used for the user to input a search term to search for collision records, and the user can perform input operations in the collision record search area, for example, the input operation can be to search for collision records in the collision record search area, or to edit, export or clear the search results. Specifically, Figure 8As shown, the collision record search control may include multiple text input controls, and the collision record search operation may be performed by the user triggering the text input control, inputting text information in the text input control, and then obtaining the text information input by the user according to the user's triggering operation. For example, the text input control is used to input text information such as the inspection component name, the collision component name, and the collision type, and then searching the collision record list for collision records that match the text information. In another embodiment, after obtaining the search results of the collision record, the user can edit the collision record of interest, or export or clear the collision record for one or more selected collision records of interest.
[0067] Step S630: in response to the user triggering operation on the collision report generation control, a collision report is generated according to all collision records selected by the user.
[0068] In this step, after the user confirms that the selected collision record is correct, the collision report generation control can be triggered, and then the collision report can be generated according to all the collision records selected by the user in response to the trigger operation, such as a collection or document of collision records, for presenting relevant information and data of the collision detection results, so that the user can better understand the collision situation of the three-dimensional simulation model and deal with the collision problem, and provide strong support for subsequent investigation and analysis. In one embodiment, the generated collision report can be output to the user, for example, the collision report can be output to the user in the form of displaying the collision report on the user interface, sending the collision report to the user's email address, or saving the collision report to a local file.
[0069] In one embodiment, another local collision detection method provided by the present invention further includes at least one of the following steps: Step S710: displaying the target inspection element and the target collision element in the three-dimensional simulation model with a first display effect on the digital twin model simulation interface according to the collision detection result.
[0070] In this step, after the user clicks to start the collision detection control, the target inspection element and the target collision element in the three-dimensional simulation model can be displayed in the first display effect on the digital twin model simulation interface according to the collision detection result, see Figure 8As shown, in one embodiment, the target inspection element A1 and the target collision element B1 are displayed in a first display effect on the digital twin model simulation interface. The first display effect may be displayed using different visual elements, wherein the different visual elements include at least one of the following: color, mark, transparency, brightness, etc., and the mark may be an arrow, text, symbol, etc. For example, the display color of the target inspection element A1 and the target collision element B1 is set to a dark color, and other simulation design elements are set to a light color, so that the target inspection element A1 and the target collision element B1 that collide in the three-dimensional simulation model can be highlighted, and distinguished from the simulation design elements that have not been subjected to collision detection or do not have a collision, so that the user can quickly identify the collision situation of the three-dimensional simulation model.
[0071] In another embodiment, if Figure 8 As shown, the collision result interface and the three-dimensional simulation model can be displayed on the same screen on the digital twin model simulation interface, wherein the collision result interface can be displayed in the left area of the original digital twin model simulation interface, and the target inspection element and the target collision element in the three-dimensional simulation model can be displayed in the right area with the first display effect, which can facilitate the user to observe the target inspection element A1 and the target collision element B1 in the three-dimensional simulation model while conveniently checking the collision detection results, thereby improving the user's operating experience and operating fluency. The embodiment of the present invention does not limit the display area of the collision result interface and the three-dimensional simulation model.
[0072] Step S720, in response to the user's viewing operation on the collision record, the target inspection element and the target collision element in the three-dimensional simulation model are displayed in a second display effect on the digital twin model simulation interface according to the collision record.
[0073] In this step, when the user views the collision record of interest in the collision record area, the user's viewing operation of the collision position in the collision record of interest can be obtained, and then the target inspection component and the target collision component in the three-dimensional simulation model can be displayed in the second display effect on the digital twin model simulation interface according to the collision record. Fig. 9 As shown, in one embodiment, the target inspection element A2 and the target collision element B2 are displayed in a second display effect on the digital twin model simulation interface. The second display effect can be displayed using different visual elements, wherein the different visual elements include at least one of the following: color, mark, transparency, brightness, etc. The mark can be an arrow, text, symbol, etc. For example, the transparency of the target inspection element A2 and the target collision element B2 is reduced, the transparency of other simulation design elements is kept unchanged, the target inspection element A2 and the target collision element B2 that collide in the three-dimensional simulation model are highlighted, and the collision position is highlighted using a rectangular frame or other appropriate mark.
[0074] It should be noted that the collision record described in the above embodiment includes at least one of the following: the component name of the target inspection component and its corresponding target collision component, the component parameters of the target inspection component and its corresponding target collision component, the collision type of the target inspection component and its corresponding target collision component, and the collision position of the target inspection component and its corresponding target collision element.
[0075] See also Fig.10 As shown, in the local collision detection method based on the digital twin platform provided in some embodiments of the present invention, Figure 2 The step S100 in the above step obtains the model data of the target object, and displays the digital twin model simulation interface according to the model data of the target object, including but not limited to the following steps S110 to S130: Step S110, obtaining model data of the target object from an external data source and performing preprocessing.
[0076] In this step, the model data of the target object is obtained through an external data source, and the model data is preprocessed. For example, the geometric shape and size, material properties, fixed position and posture of the target object can be denoised and simplified to improve the efficiency and accuracy of subsequent calculations. In one embodiment, the model data of the target object obtained through an external data source can be obtained by scanning the target object with a device such as a three-dimensional laser scanner or a mobile mapping system to obtain three-dimensional point cloud data. In another embodiment, the model data of the target object can also be obtained by obtaining a model file of the target object output by a three-dimensional modeling software.
[0077] Step S120, constructing a three-dimensional simulation model according to the preprocessed model data, and creating a collision detection control.
[0078] In one embodiment, a three-dimensional simulation model of the target object is constructed based on the preprocessed model data, and a collision detection control is created.
[0079] Step S130, displaying the digital twin model simulation interface, and displaying the three-dimensional simulation model and collision detection controls in the digital twin model simulation interface.
[0080] It can be understood that after obtaining the three-dimensional simulation model and creating the collision detection control, the digital twin model simulation interface can be displayed, and the three-dimensional simulation model and collision detection control can be displayed in the digital twin model simulation interface to facilitate the user to perform interactive operations related to the three-dimensional simulation model. For example, the user can perform interactive operations through input devices (such as a mouse, keyboard, touch screen, etc.). The specific implementation method of this step can be found in the above-mentioned step S100 embodiment, which will not be repeated here.
[0081] It should be noted that the collision detection interface described in the embodiment of the present invention also includes a non-check component input area and a non-collision component input area, and the non-check component input area and the non-collision component input area are also areas where the user interacts with the collision detection interface. Fig.11 As shown, Fig.11 A collision detection interface having an inspection component input area, a collision component input area, a non-inspection component input area, and a non-collision component input area is shown. The user can also perform input operations in the non-inspection component input area or the non-collision component input area. For example, the input operation can be to add, delete, or delete all operations on the non-inspection component input area or the non-collision component input area, which can allow the user to customize the local collision detection range, select non-inspection components and non-collision components while observing the three-dimensional simulation model, improve the user's operating experience and operation fluency, make the collision detection process more flexible, and reduce the detection technology requirements. It can be understood that the specific implementation method of the user adding, deleting, or deleting all operations on the non-inspection component input area or the non-collision component input area can refer to the above-mentioned step S200 embodiment, which will not be repeated here.
[0082] like Fig.12 As shown, it is a flow chart of another local collision detection method based on a digital twin platform provided by the present invention, which specifically includes the following steps S810 to S830: Step S810, obtaining non-check component parameters input by the user in the non-check component input area, wherein the non-check component parameters correspond to non-check components that do not participate in local collision detection and are selected by the user from multiple simulation design components in the three-dimensional simulation model.
[0083] In this step, by adding non-check components to the non-check component input area by the user, it is possible to determine the non-check components that are not subject to local collision detection from multiple simulation design components of the three-dimensional simulation model, and then obtain the non-check component parameters corresponding to each non-check component and display them in the non-check component input area. In one embodiment, the non-check component parameters are parameters corresponding to the non-check components, and may include the type, name, and label of each non-check component. The user selects the simulation design components that do not participate in the collision detection on the three-dimensional simulation model and adds them to the non-check component input area, and the corresponding non-check component parameters can be displayed in the non-check component input area. In another embodiment, a selection box is set before each non-check component parameter, and the user can click to check the added non-check component, and then delete the selected non-check component when there are multiple non-check components.
[0084] Step S820, obtaining non-collision component parameters input by the user in the non-collision component input area, wherein the non-collision component parameters correspond to the non-participating non-collision component selected by the user from a plurality of simulation design components of the three-dimensional simulation model.
[0085] In this step, by adding non-collision elements in the non-collision element input area, the user can determine the non-collision elements that do not participate in the local collision detection from the multiple simulation design elements of the three-dimensional simulation model, and then obtain the non-collision element parameters corresponding to each non-collision element and display them in the non-collision element input area. In one embodiment, the non-collision element parameters are parameters corresponding to the non-collision elements, and may include the type, name, and label of each non-collision element. The user selects the simulation design elements that do not participate in the collision detection on the three-dimensional simulation model and adds them to the non-collision element input area, and the corresponding non-collision element parameters can be displayed in the non-collision element input area. In another embodiment, a selection box is set before each non-collision element parameter, and the user can click to check the added non-collision element, and then the selected non-collision element can be deleted when there are multiple non-collision elements.
[0086] Step S830, in response to the user's triggering operation of starting the collision detection control, collision detection is performed on the three-dimensional simulation model according to other simulation design elements other than the non-check elements and non-collision elements selected by the user.
[0087] In one embodiment of this step, the user can trigger the start of the collision detection control, and then in response to the user's trigger operation, the three-dimensional simulation model is subjected to collision detection based on other simulation design elements other than the non-inspection elements and non-collision elements selected by the user. Therefore, there is no need to perform collision detection on all simulation design elements, thereby saving calculation time and improving the efficiency of collision detection.
[0088] In a second aspect, an embodiment of the present invention provides a local collision detection device based on a digital twin platform. Fig.13As shown, the device 900 includes: a processing module 910, which is used to obtain model data of the target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes multiple simulation design elements; the processing module 910 is also used to respond to the user's triggering operation of the collision detection control, and display the collision detection interface, the collision detection interface includes an inspection element input area, a collision element input area and a start collision detection control; the processing module 910 is also used to obtain the inspection element parameters input by the user in the inspection element input area, wherein the inspection element parameters are input to the inspection element input area. The check component parameters correspond to the inspection component that the user selects from multiple simulation design components of the three-dimensional simulation model and needs to perform local collision detection; the processing module 910 is also used to obtain the collision component parameters input by the user in the collision component input area, wherein the collision component parameters correspond to the collision component that the user selects from multiple simulation design components of the three-dimensional simulation model and needs to perform local collision detection; the processing module 910 is also used to respond to the user's trigger operation to start the collision detection control, and perform collision detection on the three-dimensional simulation model according to the inspection component and collision element selected by the user; the output module 920 is used to generate a collision report according to the collision detection result.
[0089] It can be understood that the above-mentioned device is used to execute the method in the above-mentioned embodiment. The implementation principle and technical effect of the corresponding program module in the device are similar to those described in the above-mentioned method. The working process of the device can refer to the corresponding process in the above-mentioned method, which will not be repeated here.
[0090] In the third aspect, an embodiment of the present invention further provides an electronic device, comprising a processor, a memory, and a computer program stored in the memory and configured to be executed by the processor, wherein when the processor executes the computer program, the local collision detection method based on the digital twin platform of any one of the above-mentioned embodiments is implemented.
[0091] The processor may be a central processing unit (CPU), other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. A general-purpose processor may be a microprocessor or any conventional processor, etc. The processor is the control center of the terminal device, and uses various interfaces and lines to connect various parts of the entire terminal device.
[0092] The memory can be used to store computer programs. The processor realizes various functions of the terminal device by running or executing the computer programs stored in the memory and calling the data stored in the memory. The memory can mainly include a program storage area and a data storage area, wherein the program storage area can store an operating system, at least one application required for a function, etc.; the data storage area can store data created according to the use of the mobile phone, etc. In addition, the memory can include a high-speed random access memory, and can also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a smart memory card (SmartMedia Card, SMC), a secure digital (Secure Digital, SD) card, a flash card (Flash Card), at least one disk storage device, a flash memory device or other volatile solid-state storage device.
[0093] In a fourth aspect, an embodiment of the present invention further provides a computer storage medium, which stores a computer program. When the computer program is executed by a processor, it implements the local collision detection method based on the digital twin platform of any one of the above-mentioned embodiments.
[0094] In the fifth aspect, an embodiment of the present invention further provides a computer program product, which includes computer instructions, which are stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that when the computer device executes, the local collision detection method based on the digital twin platform of any one of the above-mentioned embodiments is implemented.
[0095] It will be appreciated by those skilled in the art that all or some of the steps and systems in the disclosed methods above may be implemented as software, firmware, hardware and appropriate combinations thereof. Some physical components or all physical components may be implemented as software executed by a processor, such as a central processing unit, a digital signal processor or a microprocessor, or implemented as hardware, or implemented as an integrated circuit, such as an application specific integrated circuit. Such software may be distributed on a computer-readable medium, which may include a computer storage medium or a non-transitory medium and a communication medium or a temporary medium. As known to those skilled in the art, the term computer storage medium includes volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules or other data. Computer storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other memory technologies, CD-ROM, digital versatile disk DVD or other optical disk storage, magnetic cassettes, magnetic tapes, disk storage or other magnetic storage devices, or any other medium that may be used to store desired information and may be accessed by a computer. Furthermore, it is well known to those skilled in the art that communication media typically embodies computer readable instructions, data structures, program modules, or other data in a modulated data signal such as a carrier wave or other transport mechanism, and may include any information delivery media.
[0096] The embodiments of the present invention are described in detail above with reference to the accompanying drawings, but the present invention is not limited to the above embodiments, and various changes can be made within the knowledge scope of ordinary technicians in the technical field without departing from the purpose of the present invention.
Claims
1. A local collision detection method based on a digital twin platform, characterized in that: The method comprises: Acquire model data of a target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes a plurality of simulation design elements; In response to a user triggering operation on the collision detection control, displaying a collision detection interface, wherein the collision detection interface includes a check component input area, a collision component input area, and a start collision detection control; Acquire the inspection component parameters input by the user in the inspection component input area, wherein the inspection component parameters correspond to the inspection components that the user selects from the plurality of simulation design components in the three-dimensional simulation model and that need to perform the local collision detection; Acquiring collision element parameters input by a user in the collision element input area, wherein the collision element parameters correspond to the collision element that needs to be subjected to the local collision detection and is selected by the user from among the plurality of simulation design elements in the three-dimensional simulation model; In response to a user triggering operation on the start collision detection control, performing collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user; Generate a collision report based on the collision detection results.
2. The method according to claim 1, characterized in that The performing collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user comprises: Dividing the three-dimensional simulation model according to the inspection element and the collision element to obtain a local collision detection area; Creating a target collision space according to the local collision detection area, and determining a first envelope box of the inspection element and a second envelope box of the collision element contained in the target collision space; A collision detection is performed on a plurality of the first envelope boxes and a plurality of the second envelope boxes in the target collision space.
3. The method according to claim 2, characterized in that The performing collision detection on the plurality of first envelope boxes and the plurality of second envelope boxes in the target collision space comprises: constructing an envelope box binary tree according to the plurality of first envelope boxes and the plurality of second envelope boxes; Traversing the envelope box binary tree to detect whether each of the first envelope boxes overlaps with the second envelope box; If the first envelope box overlaps with the second envelope box, determining that there is a collision between the inspection element corresponding to the first envelope box and the collision element corresponding to the second envelope box; The inspection component with the collision is determined as a target inspection component, and the corresponding collision component is determined as a target collision component.
4. The method according to claim 3, characterized in that The detecting whether each of the first envelope boxes overlaps with the second envelope boxes includes one of the following: Acquire a first coordinate value of the first envelope box, and acquire a second coordinate value of the second envelope box, and compare the first coordinate value with the second coordinate value to determine whether the first envelope box overlaps with the second envelope box; Alternatively, obtain the first projection axis of the first envelope box and the second projection axis of the second envelope box, determine the first projection interval of the first envelope box and the second projection interval of the second envelope box based on the first projection axis and the second projection axis, and determine whether the first envelope box overlaps with the second envelope box based on the overlapping relationship between the first projection interval and the second projection interval.
5. The method according to claim 1, characterized in that The generating of the collision report according to the collision detection result includes: Displaying a collision result interface according to the collision detection result, wherein the collision result interface includes a collision record selection area and a collision report generation control; In response to a selection operation of the user in the collision record selection area, determining at least one collision record selected by the user in the collision detection result; In response to a user triggering operation on the collision report generation control, the collision report is generated according to all the collision records selected by the user.
6. The method according to claim 1 or 5, characterized in that: Also include one of the following: Displaying the target inspection element and the target collision element in the three-dimensional simulation model with a first display effect on the digital twin model simulation interface according to the collision detection result; Alternatively, in response to a user's viewing operation of the collision record, the target inspection element and the target collision element in the three-dimensional simulation model are displayed with a second display effect on the digital twin model simulation interface according to the collision record.
7. The method according to any one of claims 5 to 6, characterized in that The collision record includes at least one of the following: The component name of the target inspection component and its corresponding target collision component; Component parameters of the target inspection component and its corresponding target collision component; The collision type of the target inspection element and its corresponding target collision element; The target inspection element and its corresponding collision position of the target collision element.
8. The method according to claim 1, characterized in that The step of acquiring model data of the target object and displaying a digital twin model simulation interface according to the model data of the target object includes: Acquire the model data of the target object from an external data source and perform preprocessing; Constructing the three-dimensional simulation model according to the preprocessed model data, and creating the collision detection control; The digital twin model simulation interface is displayed, and the three-dimensional simulation model and the collision detection control are displayed in the digital twin model simulation interface.
9. The method according to claim 1, characterized in that: The collision detection interface also includes a non-inspection component input area and a non-collision component input area, and the method also includes: Acquire a non-check component parameter input by a user in the non-check component input area, wherein the non-check component parameter corresponds to a non-check component selected by a user from among the plurality of simulation design components in the three-dimensional simulation model that does not participate in the local collision detection; Acquire non-collision component parameters input by the user in the non-collision component input area, wherein the non-collision component parameters correspond to non-collision components selected by the user from among the plurality of simulation design components in the three-dimensional simulation model that do not participate in the local area; In response to the user's triggering operation on the start collision detection control, collision detection is performed on the three-dimensional simulation model according to the non-checking element selected by the user and other simulation design elements other than the non-collision element.
10. A local collision detection device based on a digital twin platform, characterized in that: The device comprises: A processing module, used to obtain model data of a target object, and display a digital twin model simulation interface according to the model data of the target object, wherein the digital twin model simulation interface includes a three-dimensional simulation model and a collision detection control, and the three-dimensional simulation model includes a plurality of simulation design elements; The processing module is further used to display a collision detection interface in response to a user triggering operation on the collision detection control, wherein the collision detection interface includes a check component input area, a collision component input area, and a start collision detection control; The processing module is further used to obtain the inspection element parameters input by the user in the inspection element input area, wherein the inspection element parameters correspond to the inspection element that needs to perform the local collision detection selected by the user from the multiple simulation design elements in the three-dimensional simulation model; The processing module is further used to obtain collision element parameters input by the user in the collision element input area, wherein the collision element parameters correspond to the collision element that needs to perform the local collision detection among the multiple simulation design elements selected by the user in the three-dimensional simulation model; The processing module is further configured to perform collision detection on the three-dimensional simulation model according to the inspection element and the collision element selected by the user in response to a trigger operation of the user on the start collision detection control; The output module is used to generate a collision report based on the collision detection results.
Citation Information
Patent Citations
Bulk-cargo-oriented multi-engineering-machinery digital twinning online monitoring system and method
CN114545877A
Three-dimensional collision detection early warning system and method based on digital twinning
CN116680858A
Collision detection method and device in digital twin mode
CN117518880A
Machine-learning based collision detection for objects in virtual environments
US20220319096A1
Space collision detection method and apparatus, and electronic device
WO2023159882A1
Cited By
Fast distributed face-to-face matching method based on double-space lookup tree
CN119961479A
A Fast Distributed Plane-to-Plane Matching Method Based on Dual Space Search Trees
CN119961479B