Search

CN-117253251-B - Primitive searching method

CN117253251BCN 117253251 BCN117253251 BCN 117253251BCN-117253251-B

Abstract

The embodiment of the specification provides a primitive searching method, which comprises the steps of obtaining an original drawing imported by a user, carrying out first classification on primitives of the original drawing based on layer classification of the original drawing, determining a first set, wherein the first set comprises at least one of Liang Tuyuan sets, post primitive sets and wall primitive sets, carrying out second classification on the first set based on vector features of the primitives, determining a second set, wherein the second set comprises at least one of a beam structure primitive subset, a post structure primitive subset and a wall primitive structure subset, determining a first structure system based on a preset criterion, searching a closed area in the original drawing, and determining a second structure system based on the position relation between the closed area and the first structure system, wherein the second structure system comprises the connection relation between beams, posts, walls and plate structures.

Inventors

  • Du Dehan
  • Mou yongfeng

Assignees

  • 浙江挚典科技有限公司

Dates

Publication Date
20260508
Application Date
20230918

Claims (10)

  1. 1. A primitive searching method, the method comprising: acquiring an original drawing imported by a user; Based on the layer classification of the original drawing, carrying out first classification on the primitives of the original drawing, and determining a first set, wherein the first set comprises at least one of Liang Tuyuan sets, a column primitive set and a wall primitive set; based on the vector characteristics of the primitives, carrying out second classification on the first set, and determining a second set, wherein the second set comprises at least one of a beam structure diagram element subset, a column structure diagram element subset and a wall primitive structure subset; Determining a first structural system based on a preset criterion for the second set, wherein the first structural system comprises a connection relation among beam, column and wall structures, the preset criterion is a preset criterion for determining the first structural system, and the preset criterion comprises engineering actual experience and design principle; and searching a closed area in the original drawing, and determining a second structural system based on the position relation between the closed area and the first structural system, wherein the second structural system comprises a connection relation among beams, columns, walls and plate structures.
  2. 2. The method of claim 1, wherein the first classifying the primitives of the original drawing based on the layer classification of the original drawing, determining the first set further comprises: Performing accuracy verification on the initial result of the first classification to determine the accuracy of the first classification; The initial result is corrected based on the first classification accuracy, and the first set is determined.
  3. 3. The method of claim 2, wherein the verifying the initial result of the first classification for accuracy, determining the first classification accuracy further comprises: Determining missing graphic elements based on the original drawing and the initial result; determining unreasonable primitives based on positional relationships between internal primitives in the first set; And determining the first classification accuracy based on the missing graphic elements and the unreasonable graphic elements.
  4. 4. The method of claim 1, wherein the second classifying the first set based on the vector features of the primitives, determining a second set further comprises: Performing feature analysis on the Liang Tuyuan sets based on a first preset algorithm, and determining the beam structure diagram element subset, wherein the first preset algorithm is a primitive pairing algorithm; performing feature analysis on the column primitive set based on a second preset algorithm, and determining the column primitive subset, wherein the second preset algorithm is a boundary search algorithm; and carrying out feature analysis on the wall primitive set based on a third preset algorithm, and determining the wall primitive subset, wherein the third preset algorithm comprises the primitive pairing algorithm and the boundary searching algorithm.
  5. 5. A primitive search system, comprising: The acquisition module is used for acquiring an original drawing imported by a user; The first determining module is used for carrying out first classification on the primitives of the original drawing based on the layer classification of the original drawing, and determining a first set, wherein the first set comprises at least one of Liang Tuyuan sets, a column primitive set and a wall primitive set; the second determining module is used for carrying out second classification on the first set based on the vector characteristics of the primitives, and determining a second set, wherein the second set comprises at least one of a beam structure diagram element subset, a column structure diagram element subset and a wall primitive structure subset; The third determining module is used for determining a first structural system based on a preset criterion for the second set, wherein the first structural system comprises a connection relation among beam, column and wall structures, the preset criterion is a preset criterion for determining the first structural system, and the preset criterion comprises engineering actual experience and design principle; and the fourth determining module is used for searching the closed surface area in the original drawing and determining a second structural system based on the position relationship between the closed surface area and the first structural system, wherein the second structural system comprises a beam, a column, a wall and a plate structure.
  6. 6. The system of claim 5, wherein the first determination module is further to: Performing accuracy verification on the initial result of the first classification to determine the accuracy of the first classification; The initial result is corrected based on the first classification accuracy, and the first set is determined.
  7. 7. The system of claim 6, wherein the first determination module is further to: Determining missing graphic elements based on the original drawing and the initial result; determining unreasonable primitives based on positional relationships between internal primitives in the first set; And determining the first classification accuracy based on the missing graphic elements and the unreasonable graphic elements.
  8. 8. The system of claim 5, wherein the second determination module is further to: Performing feature analysis on the Liang Tuyuan sets based on a first preset algorithm, and determining the beam structure diagram element subset, wherein the first preset algorithm is a primitive pairing algorithm; performing feature analysis on the column primitive set based on a second preset algorithm, and determining the column primitive subset, wherein the second preset algorithm is a boundary search algorithm; and carrying out feature analysis on the wall primitive set based on a third preset algorithm, and determining the wall primitive subset, wherein the third preset algorithm comprises the primitive pairing algorithm and the boundary searching algorithm.
  9. 9. A primitive searching device, the device comprising at least one processor and at least one memory; the at least one memory is configured to store computer instructions; the at least one processor is configured to execute at least some of the computer instructions to implement the primitive searching method according to any one of claims 1-4.
  10. 10. A computer readable storage medium storing computer instructions which, when executed by a processor, implement the primitive searching method of any one of claims 1 to 4.

Description

Primitive searching method Technical Field The specification relates to the technical field of engineering drawing identification, in particular to a primitive searching method. Background Primitives are basic graphic elements in computer graphics, and in the process of identifying engineering drawings, primitives often need to be searched and extracted from graphic data input by CAD. Because the searching of the graphic primitive is mainly based on the attribute relation between the graphic primitive and surrounding graphic primitives and the analysis and matching of the graphic primitive with the graphic primitive of the standard library, the efficiency of engineering drawing identification is lower. In order to improve the efficiency of graphic primitive searching and engineering drawing recognition, CN110909650B provides a CAD drawing recognition method and device based on domain knowledge and target detection, according to the method, drawing information in the CAD drawing to be identified is obtained and converted into a plurality of pixel drawings to be identified, and the aggregation type component identification is carried out, so that more efficient engineering drawing identification and graphic primitive searching processes can be realized. However, the method does not relate to how the graphic data without contact is processed into graphic elements with contact with each other, which may affect the accuracy of the graphic element search result. Therefore, it is desirable to provide a primitive searching method, which can improve the efficiency of primitive searching and engineering drawing identification and ensure the accuracy of primitive searching results. Disclosure of Invention One of the embodiments of the present disclosure provides a primitive searching method, which includes obtaining an original drawing imported by a user, performing a first classification on primitives of the original drawing based on a layer classification of the original drawing, determining a first set, wherein the first set includes at least one of Liang Tuyuan sets, column primitive sets and wall primitive sets, performing a second classification on the first set based on vector features of the primitives, determining a second set, wherein the second set includes at least one of a beam structure primitive subset, a column structure primitive subset and a wall primitive structure subset, determining a first structure system based on a preset criterion for the second set, wherein the first structure system includes a connection relationship between beam structures, column structures and wall structures, searching a closed surface area in the original drawing, and determining a second structure system based on a position relationship between the closed surface area and the first structure system, wherein the second structure system includes a connection relationship between beam structures, column structures, wall structures and plate structures. One of the embodiments of the present disclosure provides a primitive searching system, which comprises an acquisition module, a first determination module, a second determination module, a third determination module and a fourth determination module, wherein the acquisition module is used for acquiring an original drawing imported by a user, the first determination module is used for carrying out first classification on primitives of the original drawing based on layer classification of the original drawing, determining a first set, the first set comprises at least one of a Liang Tuyuan set, a column primitive set and a wall primitive set, the second determination module is used for carrying out second classification on the first set based on vector characteristics of the primitives, determining a second set, the second set comprises at least one of a beam structure primitive subset, a column structure primitive subset and a wall primitive structure subset, the third determination module is used for determining a first structure system based on preset criteria for the second set, the first structure system comprises a connection relation between a beam, a column and a wall structure, and the fourth determination module is used for searching a closed surface area in the original drawing, and determining a connection relation between the first structure and the first structure system based on the first structure and the first structure system comprises a connection relation between the beam structure and the second structure. One of the embodiments of the present disclosure provides a primitive searching device, including a memory and a processor, where the memory is configured to store computer instructions, and the processor reads the computer instructions and executes the primitive searching method. One of the embodiments of the present specification provides a readable storage medium storing computer instructions that, when read by a computer, perform the aforementioned