A three-dimensional model detection method and device

By generating a detection rule base of three-dimensional models and applying it to detection, the problems of heavy workload and low accuracy in three-dimensional model detection in the existing technology are solved, and a more efficient and accurate detection process is achieved.

CN117371235BActive Publication Date: 2025-01-21INNER MONGOLIA ELECTRIC POWER SURVEY & DESIGN INST
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202311424825.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-30
Publication Date
2025-01-21
Estimated Expiration
2043-10-30

AI Technical Summary

Technical Problem

In the prior art, when detecting three-dimensional models, the workload is large and the accuracy is low. Especially in complex environments, the waiting time for collision inspection operations is too long, which seriously affects the consistency and efficiency of the design.

Method used

By generating a detection rule base for the 3D model, using the client to obtain historical engineering information, determining the component rules after initialization, and adding preset adding conditions to each component rule to form a detection rule library, and then based on the detection rule library, the 3D Model is tested.

Benefits of technology

It reduces the workload of 3D model detection, improves the accuracy of detection, reduces the waiting time for detection in complex environments, and improves the coherence and efficiency of the design.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117371235B_ABST
    Figure CN117371235B_ABST
Patent Text Reader

Abstract

The present invention provides a method and device for detecting a three-dimensional model, comprising: calling at least one target detection rule in a preset detection rule library, performing detection processing on each target to-be-detected element in at least one target to-be-detected element of a three-dimensional model to be detected in the determined engineering information, and obtaining a detection result; wherein the method for generating the preset detection rule library comprises: obtaining historical engineering information; initializing the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information; determining at least one element rule based on the historical data information; adding a preset addition condition to each element rule of at least one element rule to obtain at least one element detection rule; determining the detection rule library based on at least one element detection rule. The scheme provided by the present invention can improve the accuracy and efficiency of three-dimensional model detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of engineering information processing, and in particular to a detection method and device for a three-dimensional model. Background Art

[0002] At present, using PDMS (Plant Design Management System) to complete a complete set of industrial plant 3D models requires multiple professionals and personnel to gradually form them through planning, modeling, coordination, review and other links in the PDMS 3D design environment. The 3D model needs to be checked frequently during the design process, including self-checking of the 3D model, spatial avoidance and interfaces of the 3D models between professionals, equipment maintenance space, safety distance, etc. This is a huge and continuous task until the project is delivered.

[0003] The methods and problems for checking the three-dimensional models generated by PDMS are mainly as follows:

[0004] (1) Manual inspection: This requires a lot of work and is only suitable for small-scale inspections and for discovering relatively intuitive modeling errors.

[0005] (2) Using the collision check function of PDMS: When the model data volume is more complex, there will be a lot of unnecessary report information in the collision check report. In addition, in a complex environment, the waiting time for the collision check operation is too long, which seriously affects the consistency and efficiency of the design.

[0006] (3) The 3D model is exported as a macro file for parsing to generate an inspection report: The types of errors that can be checked by the model are not comprehensive enough. Due to the limitation of the original data, information not included in the original data cannot be checked. Summary of the invention

[0007] The solution of the present invention is to provide a three-dimensional model detection method and device to solve the problems of large workload and low accuracy in the prior art when detecting three-dimensional models.

[0008] In order to solve the above technical problems, the technical solution of the present invention is as follows:

[0009] A method for generating a detection rule base of a three-dimensional model, applied to a client, comprising:

[0010] Access historical engineering information;

[0011] Initializing the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information;

[0012] Determining at least one component rule based on the historical data information;

[0013] Adding a preset addition condition to each of at least one of the component rules to obtain at least one component detection rule;

[0014] A detection rule library is determined according to at least one of the component detection rules.

[0015] Optionally, initializing the historical engineering information to obtain historical data information of the three-dimensional model includes:

[0016] Determine the directory information corresponding to each historical three-dimensional model according to the project information of all three-dimensional models in the historical engineering information; the directory information includes all components constituting the current historical three-dimensional model and the hierarchical information between the components;

[0017] The attribute information and field types of all the elements in each piece of directory information are read in sequence, and the attribute information and the field type are determined as the historical data information of the current historical three-dimensional model.

[0018] Optionally, determining at least one component rule according to the historical data information includes:

[0019] Classify all components in the historical data information corresponding to each historical three-dimensional model according to the types of components in the historical data information to obtain classified historical data information;

[0020] According to the type of each target element in the at least one target element in the classified historical data information, a component rule corresponding to the type of each target element in the at least one target element is determined.

[0021] Optionally, the preset adding condition includes:

[0022] Attribute conditions;

[0023] Obstacle conditions;

[0024] Space conditions;

[0025] Adding the preset adding condition to each of at least one of the component rules to obtain at least one component detection rule includes:

[0026] According to the preset logical relationship and the type of the target component in each component rule of at least one of the component rules, at least two of the attribute conditions, the obstacle conditions and the space conditions are added to each component rule to obtain at least one component detection rule.

[0027] Optionally, according to a preset logical relationship and the type of the target component in each component rule of at least one of the component rules, at least two of the attribute condition, the obstacle condition and the space condition are added to each component rule to obtain at least one component detection rule, including:

[0028] The first preset logical relationship corresponding to the attribute condition: target component type+first correlation jump+component type after first correlation jump+target component attribute+first comparison condition+first value is added to each component rule to obtain at least one component detection rule.

[0029] Optionally, according to a preset logical relationship and the type of the target component in each component rule of at least one of the component rules, at least two of the attribute condition, the obstacle condition and the space condition are added to each component rule to obtain at least one component detection rule, including:

[0030] A second preset logical relationship corresponding to the obstacle condition: obstacle element type+second correlation jump+obstacle element type after second correlation jump+target element attribute+second comparison condition+second value, is added to each element rule to obtain at least one element detection rule.

[0031] Optionally, according to a preset logical relationship and the type of the target component in each component rule of at least one of the component rules, at least two of the attribute condition, the obstacle condition and the space condition are added to each component rule to obtain at least one component detection rule, including:

[0032] The third preset logical relationship corresponding to the spatial condition: spatial component type+third correlation jump+spatial component type after jump+target component attribute+third comparison condition+third value, is added to each component rule to obtain at least one component detection rule.

[0033] A three-dimensional model detection method, applied to a server, includes:

[0034] Determine at least one target component to be inspected of the three-dimensional model to be inspected in the engineering information;

[0035] Call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain the detection result of the three-dimensional model to be detected. The preset detection rule library is the detection rule library generated in the generation method of the detection rule library of the three-dimensional model described above.

[0036] A client, comprising:

[0037] Acquisition module, used to obtain historical project information;

[0038] A processing module is used to initialize the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information; determine at least one component rule based on the historical data information; add a preset addition condition to each component rule of at least one component rule to obtain at least one component detection rule; and determine the preset rule library based on at least one component detection rule.

[0039] A server, comprising:

[0040] A determination module, used to determine at least one target to-be-detected element of the to-be-detected three-dimensional model in the engineering information;

[0041] The detection module is used to call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain a detection result of the three-dimensional model to be detected.

[0042] The above solution of the present invention includes at least the following beneficial effects:

[0043] The above scheme of the present invention obtains historical engineering information; initializes the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information; determines at least one component rule based on the historical data information; adds a preset addition condition to each component rule of at least one component rule to obtain at least one component detection rule; determines a detection rule library based on at least one component detection rule, and performs detection processing on the three-dimensional model based on the generated detection rule library, so as to reduce the detection workload of the three-dimensional model and improve the detection accuracy of the three-dimensional model. BRIEF DESCRIPTION OF THE DRAWINGS

[0044] Figure 1 is a flow chart of a method for generating a detection rule base of a three-dimensional model provided by an embodiment of the present invention;

[0045] Figure 2 It is a schematic diagram of adding attribute conditions in an achievable application example of the present invention;

[0046] Figure 3 It is a schematic diagram of a flow chart of a method for detecting a three-dimensional model provided by an embodiment of the present invention;

[0047] Figure 4 It is a schematic diagram of a module block of a client provided by an embodiment of the present invention;

[0048] Figure 5 It is a module block diagram of a server provided by an embodiment of the present invention;

[0049] Figure 6 It is a schematic diagram showing component level information in target information provided by an optional embodiment of the present invention. DETAILED DESCRIPTION

[0050] The exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although the exemplary embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be limited by the embodiments set forth herein. On the contrary, these embodiments are provided to enable a more thorough understanding of the present disclosure and to fully convey the scope of the present disclosure to those skilled in the art.

[0051] like Figure 1 As shown, an embodiment of the present invention provides a method for generating a detection rule base of a three-dimensional model, which is applied to a client and includes:

[0052] Step 11, obtaining historical project information;

[0053] Step 12, initializing the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information;

[0054] Step 13, determining at least one component rule according to the historical data information;

[0055] Step 14, adding a preset addition condition to each of at least one of the component rules to obtain at least one component detection rule;

[0056] Step 15: Determine a detection rule library according to at least one of the component detection rules.

[0057] In this embodiment, the historical project information may be obtained from a database of a PDMS three-dimensional design management system, and the historical project information includes data information corresponding to a plurality of historical three-dimensional models; the client interacts with the PDMS three-dimensional design management system to read the historical project information in the PDMS three-dimensional design management system, and further initializes the historical project information to obtain relevant information of all components constituting all historical three-dimensional models in the historical project information, and determines the relevant information of all components as historical data information to determine component rules;

[0058] Here, the relevant information of all components, that is, the historical data information of the historical three-dimensional model, mainly includes the attribute parameters of each component constituting the three-dimensional model to be detected, such as: parameter information such as component name, type, length, width, height, weight, structure, and point position;

[0059] Here, at least one component rule corresponding to each component is created based on the historical data information, i.e., the relevant information of the components constituting the three-dimensional model. In the component rule, the corresponding component is used as the detection target or object of the three-dimensional model. The component rule may include: target type, prompt information, rule code, rule classification, rule description, and rule application scope, etc.; wherein the target type is the type information of the component saved after the historical engineering information is initialized;

[0060] Furthermore, in at least one of the component rules, the preset additional condition is added to the component rule for the type of the component in the current component rule to obtain at least one component detection rule; the preset additional condition includes a plurality of different categories of first-category additional conditions, and each category of additional conditions includes a plurality of second-category additional conditions for different detection purposes; through the combination of a plurality of different categories of first-category additional conditions and the free combination of a plurality of second-category additional conditions for different detection purposes, a plurality of component detection rules can be obtained corresponding to one component; the component detection rule here can be regarded as the detection condition of the corresponding component;

[0061] Further, a plurality of component detection rules corresponding to the plurality of components constituting the historical three-dimensional model are combined to obtain the detection rule library, and the three-dimensional model can be subsequently detected based on the detection rule library to improve the conditional dimension and diversity of the three-dimensional model component detection, thereby improving the detection accuracy;

[0062] Here, after generating the detection rule library, the client can send and save the detection rule library to the corresponding server. The client can set the time period for three-dimensional model detection. After the PDMS three-dimensional design management system generates a new three-dimensional model and exchanges information with the server, the server can retrieve the component detection rules in the detection rule library to detect the three-dimensional model, thereby obtaining corresponding detection results, and save them in the database on the server side for engineering and technical personnel to adjust the generated three-dimensional model.

[0063] In an optional embodiment of the present invention, before initializing the historical project information, it is first necessary to configure a user name and password that have been preset in the PDMS three-dimensional software management system on the client, and ensure that this user name and password have the authority of the design module and management module of the PDMS three-dimensional software management system. In addition, it is necessary to specify the path and file name of the project list file of the PDMS three-dimensional software management system. This project list file is generally stored on the server, and the original file name is evars.bat. After the client stores the user information and project list information in the database on the server side, it triggers the client to initialize the historical project information, providing a data basis for the subsequent generation of the detection rule base.

[0064] In an optional embodiment of the present invention, the above step 12 may include:

[0065] Step 121, determining directory information corresponding to each historical three-dimensional model according to the project information of all three-dimensional models in the historical engineering information; the directory information includes all components constituting the current historical three-dimensional model and the hierarchical information between the components;

[0066] Step 122, read the attribute information and field types of all components in each directory information in turn, and determine the attribute information and the field type as the historical data information of the current historical three-dimensional model.

[0067] In this embodiment, when drawing a three-dimensional model through the PDMS three-dimensional design management system, each time a three-dimensional model is drawn, the corresponding system will save the project information of the three-dimensional model, and the project information includes the name of the three-dimensional model, information of each node element, etc.; after obtaining the historical project information, the client will read and save the project information of all three-dimensional models, and form a project list, and the project list includes all project numbers, project names, etc.;

[0068] Further, according to the project information in the project list, the directory information of each project is read and saved, wherein the directory information includes all the components constituting the current historical three-dimensional model and the hierarchical information between the components; the components represent the node sub-three-dimensional models at the corresponding points in the entire three-dimensional model, such as Figure 6 As shown in the figure, SITE, ZONE, PIPE, BRANCH, TUBI, ELBO, FLAN, etc. represent the components in the catalog. The hierarchical information between the components in the target information is the attribute requirement of the PDMS three-dimensional design management system itself and cannot be changed. The hierarchical information represents the superior-subordinate relationship, parent-child relationship, etc. between different components. In the target information, the hierarchical information of each target component is unchangeable, but under the same hierarchical information, the order of the target components can be changed, such as the order between TUBI and ELBO can be changed. In the target information, each component corresponds to its own type, attribute information and field type. Changes in the attribute information and the field type can change the structure of the three-dimensional model.

[0069] Furthermore, in the directory information, the attribute information and the field type of all components in each directory information are read in turn, and the attribute information and the field type are determined as historical data information of the current historical three-dimensional model, and then preset addition conditions are added and combined based on the historical data information to form component detection rules, so as to realize the inspection and screening of components in the three-dimensional model when the three-dimensional model is detected subsequently.

[0070] In an optional embodiment of the present invention, the above step 13 may include:

[0071] Step 131, classifying all components in the historical data information corresponding to each historical three-dimensional model according to the types of components in the historical data information, to obtain classified historical data information;

[0072] Step 132: Determine a component rule corresponding to the type of each target component in the at least one target component according to the type of each target component in the classified historical data information.

[0073] In this embodiment, according to the type of the component in the historical data information, the components in the historical data information are classified, and components of similar or same type are classified into the same type, so as to classify all components in the historical data information and obtain corresponding target component type information. Here, the target component is a general term for components represented by any component type after the classification process.

[0074] Furthermore, each target element representing the same type in the historical data information after classification is taken as a target element, and a corresponding element rule is created for each target element to avoid creating duplicate component rules, thereby ensuring the accuracy of subsequently generated component detection rules and the detection rule library, and thereby ensuring the accuracy of detection of the three-dimensional model based on the generated detection rule library.

[0075] In an optional embodiment of the present invention, the preset adding condition includes:

[0076] Attribute conditions;

[0077] Obstacle conditions;

[0078] Space conditions;

[0079] The above step 14 may include:

[0080] Step 141, according to a preset logical relationship and the type of the target component in each component rule of at least one of the component rules, at least two of the attribute condition, the obstacle condition and the space condition are added to each component rule to obtain at least one component detection rule.

[0081] In this embodiment, after the component rule is created, one or more preset addition conditions need to be added to each component rule. All the addition conditions are based on the type of the target component in the component rule. The combination logic of the preset addition conditions is used to obtain at least one component detection rule corresponding to a target component. Here, the clearer the combination logic of the preset addition conditions is, the more accurate the final detection result is.

[0082] The preset adding conditions may include: attribute conditions, obstacle conditions, and space conditions; wherein the attribute conditions are used to batch detect the attributes of the target components to be detected in the three-dimensional model to be detected, and the attribute conditions may be added separately to the component rules to form a component detection rule;

[0083] Preferably, when adding multiple preset addition conditions to the created component rule, the preset addition conditions need to be combined through an AND or OR relationship to form a complete component detection rule. The combination relationship is as follows:

[0084] (1) There is no combination restriction for the attribute conditions, and multiple attribute conditions can be added. The combination relationship between the first comparison conditions in the attribute conditions can adopt an AND or OR relationship;

[0085] (2) The obstacle condition and the spatial condition can only be added after the attribute condition is added; and when multiple obstacle conditions and multiple spatial conditions are combined, their combination relationship can adopt an AND or OR relationship;

[0086] The obstacle condition represents an obstacle element within the preset parameter range of the target to-be-detected element. The obstacle condition cannot exist independently. It is necessary to first add the attribute condition to the element rule, and then add the obstacle condition after the attribute condition to form an element detection rule.

[0087] The spatial condition indicates whether the target component to be detected contains a spatial target component with specified conditions within the set spatial range; the spatial condition cannot exist independently, and it can be combined with the attribute condition or the obstacle condition. When combining the preset conditions, it is first necessary to add the attribute condition to the component rule, and then add the obstacle condition after the attribute condition, and further add the spatial condition to form a component detection rule; it should be known that the preset addition conditions are not limited to the above three types. In order to meet the needs of various types of detection, other preset addition conditions can also be set, and added and combined according to corresponding logical rules to form a variety of different component detection rules, so as to improve the diversity of component detection in the three-dimensional model, thereby ensuring the accuracy of three-dimensional model detection.

[0088] In an optional embodiment of the present invention, the above step 141 may include:

[0089] Step 141a, adding the first preset logical relationship corresponding to the attribute condition: target component type+first correlation jump+component type after first correlation jump+target component attribute+first comparison condition+first value, to each component rule to obtain at least one component detection rule.

[0090] In this embodiment, the target element type in the logic options of the first preset logical relationship expression represents the type of the target element to be detected;

[0091] The first correlation jump indicates an element that has a jump relationship with the type of the target element to be detected, such as: the parent (OWNER) of the target element to be detected, the subset (MEMBER) of the target element to be detected, the previous element (PRE) of the target element to be detected, the next element (NEXT) of the target element to be detected, the first element (FIRST) of the hierarchy of the target element to be detected, etc. Here, the first correlation jump is supported by the PDMS three-dimensional model software management system;

[0092] The component type after the first correlation jump refers to the component type and its hierarchical relationship saved after initialization after selecting the first correlation jump, and the component type after the jump is listed. When "Subset of target components to be detected (MEMBER)" is selected in the correlation jump, the target component type to be detected may not be unique. At this time, a subset list of target components to be detected is required for the user to select, so as to indicate that the subset of the target (MEMBER) of all target components to be detected is effective;

[0093] The target component attribute represents the component attribute corresponding to the target type screened after the first correlation jump is performed;

[0094] The first comparison condition is determined according to the field type of the component in the historical data information after the initialization processing, and the first comparison condition is used to further screen the components that meet the first condition; for example, when the field type of the target component to be detected is a string, the first comparison condition may include: equal to, not equal to, contain, not contain, expression match, expression not match; when the field type of the target component to be detected is a number, the first comparison condition may include: greater than, less than, greater than or equal to, less than or equal to, equal to, not equal to; when the field type of the target component to be detected is a Boolean value, the first comparison condition may include: equal to, not equal to;

[0095] The first value represents the property value of the target component to be detected after the first comparison condition is screened, and corresponds to the first comparison condition one by one; according to the field type of the target component to be detected and the corresponding first comparison condition, the first value needs to be restricted to achieve the screening of the target object to be detected; when the first comparison condition is selected as "expression match" or "expression mismatch", the corresponding first value should support regular expressions. The regular expression is a general and public logical formula for string operations, that is, using some pre-defined specific characters and combinations of these specific characters to form a "regular string", and this "regular string" is used to express a filtering logic for the string;

[0096] Preferably, the first logical relationship formula may also include: a first comparison value. When the first comparison value exists, the first value mentioned above is invalid, and is expanded to: first correlation jump + component type after the first correlation jump + target component attribute + first comparison value; at this time, the first comparison value is only valid when the field type of the target component to be detected is a string or a number, and the default is "[]", representing the value of the target component attribute; by adding the attribute condition in the component rule according to the first logical expression, the attribute detection of the target component to be detected is realized; target component type + first correlation jump + component type after the first correlation jump + target component attribute + first comparison condition + first value

[0097] In an implementable example of the present invention, the attribute condition can be added through the first logical expression in the corresponding preset application program, such as Figure 2 As shown in the figure, the target type (PIPE) corresponds to the type of the target component, the correlation jump (OWNER) corresponds to the first correlation jump, the correlation type (ZONE) corresponds to the component type after the first correlation jump, the component attribute (name) corresponds to the target component attribute, the condition (inclusion) corresponds to the first comparison condition, the value corresponds to the first value; the comparison value corresponds to the first comparison value; the figure shows that when the first comparison value exists and is selected, the corresponding "Value: Unit 1 []" at the bottom of the figure is the result after filtering.

[0098] In an optional embodiment of the present invention, the above step 141 may include:

[0099] Step 141b, adding the second preset logical relationship corresponding to the obstacle condition: obstacle element type+second correlation jump+obstacle element type after second correlation jump+target element attribute+second comparison condition+second value, to each element rule to obtain at least one element detection rule.

[0100] In this embodiment, the type of obstacle element is used as the main line, and the second preset logical expression can be added after the first preset logical expression to realize the screening of obstacle elements existing in the target element to be detected; preferably, the second preset logical expression can also be configured with some setting parameters required for collision check, and the setting parameters can include: the minimum spacing between the obstacle element and the target element to be detected, the contact spacing, the collision spacing, and the type of internal collision elements ignored, etc.;

[0101] Here, the logic options in the obstacle condition are similar to the logic options in the attribute condition, and will not be described in detail here;

[0102] The setting parameters are basic parameters of the current obstacle conditions; among them, the minimum spacing, contact spacing, collision spacing, ignoring internal collisions of the following levels, and valid collision types are all parameters provided by the PDMS three-dimensional design management system, and the setting parameters only need to be passed to the PDMS three-dimensional software management system in the DESCLASH command; by adding the obstacle condition in the component rule according to the second preset logical expression, the obstacle components of the target component to be detected can be screened and detected, further ensuring the accuracy of the detection of the target component to be detected.

[0103] In an optional embodiment of the present invention, the above step 141 may include:

[0104] Step 141c, adding the third preset logical relationship corresponding to the spatial condition: spatial component type + third correlation jump + spatial component type after jump + target component attribute + third comparison condition + third value, to each component rule to obtain at least one component detection rule.

[0105] In this embodiment, taking the type of spatial element as the main line, the third preset logical expression can be added after the first preset logical expression or the second preset logical expression to realize the screening of spatial elements where the target to-be-detected element exists; preferably, the third preset logical expression can also be configured with some spatial area parameters, and the spatial area parameters can include: the upper extension distance, the lower extension distance, the horizontal extension distance, etc. relative to the target to-be-detected element;

[0106] Here, the logical options in the spatial condition are similar to the logical options in the attribute condition, and will not be described in detail here;

[0107] The spatial area parameter setting is based on the occupied space of the target component to be detected, and the extension distances in the upward, downward and horizontal directions are pre-set to form an extended spatial occupying area, and the condition of whether the spatial element is included (included or not) is set in the spatial occupying area; by adding the spatial condition in the element rule according to the third preset logical expression, the screening and detection of the spatial elements of the target component to be detected can be realized, further ensuring the accuracy of the detection of the target component to be detected.

[0108] In an optional embodiment of the present invention, the component detection rules obtained after the combination of the above embodiments are stored in the database of the server. As the component detection rules are increased, a detection rule library is gradually formed and saved in the database of the server, so that the server can call and grasp the target detection rules to perform three-dimensional model detection.

[0109] like Figure 3 As shown, an embodiment of the present invention further provides a three-dimensional model detection method, which is applied to a server side and includes:

[0110] Step 21, determining at least one target component to be inspected in the three-dimensional model to be inspected in the engineering information;

[0111] Step 22, call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain the detection result of the three-dimensional model to be detected. The preset detection rule library is the detection rule library generated in the generation method described in the above embodiment.

[0112] In this embodiment, the server interacts with the PDMS three-dimensional design management system to exchange data information, read and obtain data information related to the three-dimensional model to be detected newly created by the PDMS three-dimensional design management system; the data information mainly includes attribute parameters of each component constituting the three-dimensional model to be detected, such as: parameter information such as component name, type, length, width, height, weight, structure, and point position; after data reading and parsing the data of the three-dimensional model to be detected, all components constituting the three-dimensional model to be detected are obtained, and the target component to be detected is determined according to the needs of actual detection;

[0113] Further, at least one target detection rule matching the target element to be detected is searched in the preset rule library according to the target element to be detected; further, the target element to be detected is detected and processed according to at least one of the target detection rules to obtain a detection result; here, the preset detection rule library is a detection rule library generated by the generation method described in the embodiment of the generation method of the detection rule library of the three-dimensional model;

[0114] When the server detects the three-dimensional model, when the target detection rule in the rule base is called for detection, the execution of the target detection rule can be implemented by a program in a "suspended" state (executing code), the server receives the detection instruction set sent by the client on the one hand, and calls the PDMS three-dimensional model software management system interface in a single-threaded or multi-threaded manner on the other hand, and starts the PDMS three-dimensional design management system on the server to detect the specified three-dimensional model according to the relevant logic in the detection rule, and obtain the detection result;

[0115] The detection results are stored on the server side, and the detection results may include: project number, project name, inspection time, target component type, target component name, obstacle component name, space component name, prompt information, rule coding, etc., so that the detection results can be fully presented in the client and the PDMS three-dimensional model software management system, thereby ensuring that engineering management personnel can grasp the number of errors in the three-dimensional models completed by professional engineering and technical personnel in all three-dimensional projects through the detection results, so as to assist engineering management personnel in focusing on checking designated professions and personnel and controlling the progress and quality of the project; preferably, in this embodiment, the storage rules of the detection results are implemented by a database, and Microsoft SQL Server, Mysql and other databases can be used.

[0116] The detection method of the three-dimensional model provided by the above-mentioned embodiment of the present invention includes: calling at least one target detection rule in a preset detection rule library, performing detection processing on each target to-be-detected element in at least one target to-be-detected element of the three-dimensional model to be detected in the determined engineering information, and obtaining a detection result; wherein the method for generating the preset detection rule library includes: obtaining historical data information of the three-dimensional model in the historical engineering information; initializing the historical engineering information to obtain data information of all historical three-dimensional models in the historical engineering information; determining at least one element rule based on the historical data information; adding a preset addition condition to each element rule of at least one element rule to obtain at least one element detection rule; determining the detection rule library based on at least one element detection rule;

[0117] The present invention adopts a rule library approach to provide each component rule with preset adding conditions such as attributes, obstacles, and spaces supported by the PDMS three-dimensional model software management system. The type of target component is used as the main line to freely combine and configure the adding conditions, and the logical relationship between the conditions is opened up. Engineering technicians can convert procedural specifications and engineering experience into component detection rules with automated processing capabilities to achieve multi-dimensional and diversified detection rules. At the same time, in the preset adding conditions, correlation jumps are adopted to realize the inspection of the hierarchical relationship of the target type, further expanding the inspection scope of the target component type to improve the accuracy and efficiency of three-dimensional model detection.

[0118] like Figure 4 As shown, an embodiment of the present invention further provides a client 40, comprising:

[0119] An acquisition module 41 is used to acquire historical project information;

[0120] The processing module 42 is used to initialize the historical engineering information to obtain the historical data information of all historical three-dimensional models in the historical engineering information; determine at least one component rule based on the historical data information; add a preset addition condition to each component rule of at least one component rule to obtain at least one component detection rule; determine the preset rule library based on at least one component detection rule.

[0121] Optionally, the processing module 42 performs initialization processing on the historical engineering information to obtain historical data information of the three-dimensional model, specifically for:

[0122] Determine the directory information corresponding to each historical three-dimensional model according to the project information of all three-dimensional models in the historical engineering information; the directory information includes all components constituting the current historical three-dimensional model and the hierarchical information between the components;

[0123] The attribute information and field types of all the elements in each piece of directory information are read in sequence, and the attribute information and the field type are determined as the historical data information of the current historical three-dimensional model.

[0124] Optionally, the processing module 42 determines at least one component rule according to the historical data information, specifically for:

[0125] Classify all components in the historical data information corresponding to each historical three-dimensional model according to the types of components in the historical data information to obtain classified historical data information;

[0126] According to the type of each target element in the at least one target element in the classified data information, a component rule corresponding to the type of each target element in the at least one target element is determined.

[0127] Optionally, the preset adding condition includes:

[0128] Attribute conditions;

[0129] Obstacle conditions;

[0130] Space conditions;

[0131] The processing module 42 adds at least two of the attribute conditions, the obstacle conditions and the space conditions to each component rule according to a preset logical relationship and the type of the target component in each component rule of at least one component rule to obtain at least one component detection rule.

[0132] Optionally, the processing module 42 adds at least two of the attribute condition, the obstacle condition and the space condition to each component rule according to a preset logical relationship and the type of the target component in each component rule of at least one component rule, to obtain at least one component detection rule, which is specifically used for:

[0133] The first preset logical relationship corresponding to the attribute condition: target component type+first correlation jump+component type after first correlation jump+target component attribute+first comparison condition+first value is added to each component rule to obtain at least one component detection rule.

[0134] Optionally, the processing module 42 adds at least two of the attribute condition, the obstacle condition and the space condition to each component rule according to a preset logical relationship and the type of the target component in each component rule of at least one component rule, to obtain at least one component detection rule, which is specifically used for:

[0135] A second preset logical relationship corresponding to the obstacle condition: obstacle element type+second correlation jump+obstacle element type after second correlation jump+target element attribute+second comparison condition+second value, is added to each element rule to obtain at least one element detection rule.

[0136] Optionally, the processing module 42 adds at least two of the attribute condition, the obstacle condition and the space condition to each component rule according to a preset logical relationship and the type of the target component in each component rule of at least one component rule, to obtain at least one component detection rule, which is specifically used for:

[0137] The third preset logical relationship corresponding to the spatial condition: spatial component type+third correlation jump+spatial component type after jump+target component attribute+third comparison condition+third value, is added to each component rule to obtain at least one component detection rule.

[0138] It should be noted that the client is a client corresponding to the method for generating the detection rule base of the above-mentioned three-dimensional model. All implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the client and can achieve the same technical effect.

[0139] like Figure 5 As shown, an embodiment of the present invention further provides a server 50, including:

[0140] A determination module 51 is used to determine at least one target component to be detected in the three-dimensional model to be detected in the engineering information;

[0141] The detection module 52 is used to call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain a detection result of the three-dimensional model to be detected.

[0142] It should be noted that the client is a server corresponding to the above-mentioned three-dimensional model detection method, and all implementation methods in the above-mentioned method embodiment are applicable to the embodiment of the server and can achieve the same technical effect.

[0143] An embodiment of the present invention further provides a computing device, comprising: a processor, and a memory storing a computer program, wherein when the computer program is executed by the processor, the method for generating a detection rule base of a three-dimensional model or the method for detecting a three-dimensional model as described in the above embodiment is executed. All implementation methods in the above-mentioned method for generating a detection rule base of a three-dimensional model or the method for detecting a three-dimensional model are applicable to this embodiment and can achieve the same technical effect.

[0144] An embodiment of the present invention further provides a computer-readable storage medium, including instructions, which, when executed on a computer, enable the computer to execute the method for generating a detection rule base for a three-dimensional model or the method for detecting a three-dimensional model as described in the above embodiment. All implementations in the above-mentioned method for generating a detection rule base for a three-dimensional model or the method for detecting a three-dimensional model are applicable to this embodiment and can achieve the same technical effect.

[0145] Those skilled in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of the present invention.

[0146] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the systems, devices and units described above can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0147] In the embodiments provided by the present invention, it should be understood that the disclosed devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.

[0148] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.

[0149] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.

[0150] If the functions are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, ROM, RAM, magnetic disks, or optical disks.

[0151] In addition, it should be noted that in the apparatus and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. Moreover, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order, and some steps can be performed in parallel or independently of each other. For those of ordinary skill in the art, it is understood that all or any steps or components of the method and apparatus of the present invention can be implemented in any computing device (including processors, storage media, etc.) or a network of computing devices in hardware, firmware, software or a combination thereof, which can be achieved by those of ordinary skill in the art using their basic programming skills after reading the description of the present invention.

[0152] Therefore, the purpose of the present invention can also be achieved by running a program or a group of programs on any computing device. The computing device can be a well-known general device. Therefore, the purpose of the present invention can also be achieved by simply providing a program product containing a program code that implements the method or device. That is to say, such a program product also constitutes the present invention, and the storage medium storing such a program product also constitutes the present invention. Obviously, the storage medium can be any well-known storage medium or any storage medium developed in the future. It should also be pointed out that in the device and method of the present invention, it is obvious that each component or each step can be decomposed and / or recombined. These decompositions and / or recombinations should be regarded as equivalent schemes of the present invention. In addition, the steps of performing the above-mentioned series of processing can naturally be performed in chronological order according to the order of description, but it is not necessary to perform them in chronological order. Some steps can be performed in parallel or independently of each other.

[0153] The above is a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.

Claims

1. A method for generating a detection rule base for a three-dimensional model, characterized in that: Applied to the client, including: Access to historical engineering information; Initializing the historical engineering information to obtain historical data information of all historical three-dimensional models in the historical engineering information; determining at least one component rule based on the historical data information; adding a preset additional condition to each of at least one component rule to obtain at least one component detection rule; Determining a detection rule library according to at least one of the component detection rules; Initializing the historical engineering information to obtain historical data information of the three-dimensional model includes: Determining directory information corresponding to each historical three-dimensional model based on project information of all three-dimensional models in the historical engineering information; the directory information includes all components constituting the current historical three-dimensional model and hierarchical information between the components; The attribute information and field types of all elements in each piece of directory information are read in sequence, and the attribute information and the field types are determined as the historical data information of the current historical three-dimensional model.

2. The method for generating a detection rule base for a three-dimensional model according to claim 1, wherein: Determining at least one component rule based on the historical data information includes: Classifying all components in the historical data information corresponding to each historical three-dimensional model according to the types of components in the historical data information to obtain classified historical data information; According to the type of each target element in the at least one target element in the classified historical data information, a component rule corresponding to the type of each target element in the at least one target element is determined.

3. The method for generating a detection rule base for a three-dimensional model according to claim 1, wherein: The preset adding conditions include: Attribute conditions; Obstacle conditions; spatial conditions; Adding the preset addition condition to each of at least one component rule to obtain at least one component detection rule includes: According to a preset logical relationship and the type of the target component in each component rule of at least one component rule, at least two of the attribute conditions, the obstacle conditions and the space conditions are added to each component rule to obtain at least one component detection rule.

4. The method for generating a detection rule base for a three-dimensional model according to claim 3, wherein: According to a preset logical relationship and the type of the target component in each component rule of at least one component rule, at least two of the attribute condition, the obstacle condition, and the spatial condition are added to each component rule to obtain at least one component detection rule, including: A first preset logical relationship corresponding to the attribute condition: target component type + first correlation jump + component type after the first correlation jump + target component attribute + first comparison condition + first value is added to each component rule to obtain at least one component detection rule.

5. The method for generating a detection rule base for a three-dimensional model according to claim 3, wherein: According to a preset logical relationship and the type of the target component in each component rule of at least one component rule, at least two of the attribute condition, the obstacle condition, and the spatial condition are added to each component rule to obtain at least one component detection rule, including: A second preset logical relationship corresponding to the obstacle condition: obstacle element type + second correlation jump + obstacle element type after the second correlation jump + target element attribute + second comparison condition + second value is added to each element rule to obtain at least one element detection rule.

6. The method for generating a detection rule base for a three-dimensional model according to claim 5, characterized in that: According to a preset logical relationship and the type of the target component in each component rule of at least one component rule, at least two of the attribute condition, the obstacle condition, and the spatial condition are added to each component rule to obtain at least one component detection rule, including: A third preset logical relationship corresponding to the spatial condition: spatial component type + third correlation jump + spatial component type after jump + target component attribute + third comparison condition + third value is added to each component rule to obtain at least one component detection rule.

7. A three-dimensional model detection method, characterized in that: Applied to the server side, including: Determining at least one target component to be inspected in the three-dimensional model to be inspected in the engineering information; Call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain the detection result of the three-dimensional model to be detected, wherein the preset detection rule library is the detection rule library generated in the generation method described in any one of claims 1 to 6.

8. A client, characterized in that: include, Acquisition module, used to obtain historical project information; a processing module configured to initialize the historical project information to obtain historical data information of all historical three-dimensional models in the historical project information; determine at least one component rule based on the historical data information; add a preset addition condition to each component rule of the at least one component rule to obtain at least one component detection rule; and determine the detection rule library based on the at least one component detection rule; Initializing the historical engineering information to obtain historical data information of the three-dimensional model, including: determining directory information corresponding to each historical three-dimensional model based on project information of all three-dimensional models in the historical engineering information; The directory information includes all the components that make up the current historical three-dimensional model and the hierarchical information between the components; the attribute information and field types of all the components in each directory information are read in turn, and the attribute information and the field types are determined as the historical data information of the current historical three-dimensional model.

9. A server, characterized in that: include: a determination module, configured to determine at least one target component to be inspected in the three-dimensional model to be inspected in the engineering information; a detection module, configured to call at least one target detection rule in a preset detection rule library, perform detection processing on each target element to be detected in at least one target element to be detected, and obtain a detection result of the three-dimensional model to be detected; The preset detection rule base is the detection rule base generated in the generation method according to any one of claims 1 to 6.

Citation Information

Patent Citations

  • Detection method for three-dimensional design quality based on PDM system

    CN105045606A