CN115168957B - Wall size marking method and related device - Google Patents

Wall size marking method and related device Download PDF

Info

Publication number
CN115168957B
CN115168957B CN202210834248.2A CN202210834248A CN115168957B CN 115168957 B CN115168957 B CN 115168957B CN 202210834248 A CN202210834248 A CN 202210834248A CN 115168957 B CN115168957 B CN 115168957B
Authority
CN
China
Prior art keywords
target
marking
wall
frame
dimension
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202210834248.2A
Other languages
Chinese (zh)
Other versions
CN115168957A (en
Inventor
康永君
饶明航
周盟
王逸凡
赵广坡
谢伟
王波
刘济凡
黄扬
叶波
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Southwest Architectural Design and Research Institute Co Ltd
Original Assignee
China Southwest Architectural Design and Research Institute Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by China Southwest Architectural Design and Research Institute Co Ltd filed Critical China Southwest Architectural Design and Research Institute Co Ltd
Priority to CN202210834248.2A priority Critical patent/CN115168957B/en
Publication of CN115168957A publication Critical patent/CN115168957A/en
Application granted granted Critical
Publication of CN115168957B publication Critical patent/CN115168957B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • G06F30/13Architectural design, e.g. computer-aided architectural design [CAAD] related to design of buildings, bridges, landscapes, production plants or roads
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T7/00Image analysis
    • G06T7/70Determining position or orientation of objects or cameras
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2207/00Indexing scheme for image analysis or image enhancement
    • G06T2207/30Subject of image; Context of image processing
    • G06T2207/30204Marker

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Geometry (AREA)
  • Theoretical Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Structural Engineering (AREA)
  • Civil Engineering (AREA)
  • Computer Vision & Pattern Recognition (AREA)
  • Architecture (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

In the wall size marking method and the related device, the drawing auxiliary equipment constructs two marking frames based on the size marking line of the target wall side, and then the marking frame which has the least collision wall and is closest to the target wall is used as the target marking frame; and finally, marking the size information of the target wall body into a target marking frame. Because the number of collisions between the constructed target labeling frame and other wall bodies is the least and the target labeling frame is closest to the target wall body, the phenomenon that labeling information is overlapped with each other can be reduced to a certain extent, and the association between the labeling information and the target wall body is enhanced by shortening the distance between the target labeling frame and the target wall body.

Description

Wall size marking method and related device
Technical Field
The application relates to the field of building design, in particular to a wall size marking method and a related device.
Background
In engineering design, in order to improve the efficiency of designers, dimension marking information can be automatically generated for design drawings by adopting a program, and the clarity and accuracy of the drawings are kept.
However, when the conventional construction drawing design auxiliary software generates the size labels, the avoidance function of the labels is not perfect, and the generated label information has excessive overlapping phenomena, so that designers often need to perform a large amount of manual adjustment.
Disclosure of Invention
In order to overcome a plurality of deficiencies in the prior art, the application provides a wall dimension marking method and a related device, which are used for automatically generating dimension marking information with reasonable position for a design drawing, and specifically comprise the following steps:
in a first aspect, the present application provides a wall dimension marking method applied to a drawing auxiliary device, where the method includes:
determining a first size marking line and a second size marking line which are positioned on two sides of a target wall from a drawing;
constructing a first labeling frame along the direction far away from the target wall according to the first dimension labeling line;
constructing a second labeling frame along the direction far away from the target wall according to the second dimension labeling line;
determining a target marking frame of the target wall from the first marking frame and the second marking frame, wherein the number of collision walls colliding with the target marking frame in the drawing is the least, and the target marking frame is closest to the target wall;
and marking the dimension information related to the target wall in the target marking frame.
In a second aspect, the present application provides a wall dimension marking device, which is applied to a drawing auxiliary device, the device includes:
the marking line module is used for determining a first size marking line and a second size marking line which are positioned on two sides of the target wall from a drawing;
the marking frame module is used for constructing a first marking frame along the direction far away from the target wall body according to the first dimension marking line;
the marking frame module is further used for constructing a second marking frame along the direction far away from the target wall body according to the second dimension marking line;
the marking information module is used for determining a target marking frame of the target wall body from the first marking frame and the second marking frame, wherein the number of collision walls which collide with the target marking frame in the drawing is the least, and the target marking frame is closest to the target wall body;
the marking information module is also used for marking the size information related to the target wall in the target marking frame.
In a third aspect, the present application provides a computer-readable storage medium, in which a computer program is stored, and the computer program, when executed by a processor, implements the wall dimension labeling method.
In a fourth aspect, the present application provides a drawing assistance device, which includes a processor and a memory, where the memory stores a computer program, and the computer program, when executed by the processor, implements the wall dimension marking method.
Compared with the prior art, the method has the following beneficial effects:
in the wall size labeling method and the related device provided by this embodiment, the drawing auxiliary equipment constructs two labeling frames based on the size labeling lines on both sides of the target wall, and then, takes the labeling frame which has the least collision with the wall and is closest to the target wall as the target labeling frame; and finally, marking the size information of the target wall body into a target marking frame. Because the number of collisions between the constructed target labeling frame and other wall bodies is the least and the target labeling frame is closest to the target wall body, the phenomenon that labeling information is overlapped with each other can be reduced to a certain extent, and the association between the labeling information and the target wall body is enhanced by shortening the distance between the target labeling frame and the target wall body.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present application, the drawings that are required to be used in the embodiments will be briefly described below, it should be understood that the following drawings only illustrate some embodiments of the present application and therefore should not be considered as limiting the scope, and for those skilled in the art, other related drawings can be obtained from the drawings without inventive effort.
Fig. 1 is a schematic diagram illustrating an effect of labeling existing size information according to an embodiment of the present application;
fig. 2 is a schematic structural diagram of a drawing assistance device according to an embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a wall dimension marking method according to an embodiment of the present application;
FIG. 4 is a drawing effect diagram provided in an embodiment of the present application;
FIG. 5 is a schematic diagram illustrating effects of a first marking line and a second marking line provided in an embodiment of the present application;
FIG. 6 is a schematic diagram illustrating an effect of a label box according to an embodiment of the present application;
FIG. 7 is a schematic diagram illustrating an effect of a target marking line according to an embodiment of the present application;
FIG. 8 is a second schematic diagram illustrating the effect of the target marking line provided in the embodiment of the present application;
fig. 9 is a schematic diagram of a sub-wall effect provided in the embodiment of the present application;
fig. 10 is a schematic diagram illustrating a labeling effect of the size labeling information provided in the embodiment of the present application;
fig. 11 is a schematic structural diagram of a wall dimension marking device according to an embodiment of the present application.
Icon: 101-a first wall; 102-a second wall; 120-a memory; 130-a processor; 140-a communication unit; 201-marking line module; 202-label box module; 203-marking information module.
Detailed Description
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some embodiments of the present application, but not all embodiments. The components of the embodiments of the present application, generally described and illustrated in the figures herein, can be arranged and designed in a wide variety of different configurations.
Thus, the following detailed description of the embodiments of the present application, presented in the accompanying drawings, is not intended to limit the scope of the claimed application, but is merely representative of selected embodiments of the application. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
It should be noted that: like reference numbers and letters refer to like items in the following figures, and thus, once an item is defined in one figure, it need not be further defined and explained in subsequent figures.
In the description of the present application, it should be noted that the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. indicate orientations or positional relationships based on orientations or positional relationships shown in the drawings or orientations or positional relationships that the present invention is conventionally placed in use, and are only for convenience of description and simplicity of description, but do not indicate or imply that the device or element referred to must have a particular orientation, be constructed and operated in a particular orientation, and thus, should not be construed as limiting the present application. Furthermore, the terms "first," "second," "third," and the like are used solely to distinguish one from another and are not to be construed as indicating or implying relative importance. And the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrases "comprising one of 8230; \8230;" 8230; "does not exclude the presence of additional like elements in a process, method, article, or apparatus that comprises the element.
Research shows that when the conventional construction drawing design auxiliary software generates size labels, the avoidance function of the labels is not perfect, and the generated label information has excessive overlapping phenomenon.
Illustratively, a drawing sheet as shown in fig. 1 includes a first wall 101 and a second wall 102 intersecting with each other; and the size marking information of the first wall 101 and the size marking information of the second wall 102 are overlapped in a partial area, so that the overall impression of the drawing and the legibility of the drawing are influenced.
It should be noted that, based on the above technical problems, the inventor has made creative efforts to propose the following technical solutions to solve or improve the above problems. It should be noted that the above prior art solutions have disadvantages which are the result of practical and careful study by the inventor, and therefore, the discovery process of the above problems and the solutions proposed by the embodiments of the present application in the following should be the contribution of the inventor to the present application in the creation process of the invention, and should not be understood as technical contents known to those skilled in the art.
In view of the above technical problems, the present embodiment provides a wall dimension marking method applied to a drawing assisting device. According to the method, drawing auxiliary equipment constructs two marking frames based on size marking lines on two sides of a target wall body, and then the marking frame which has the least collision with the wall body and is closest to the target wall body is used as the target marking frame; and finally, marking the size information of the target wall body into a target marking frame. Because the number of collisions between the constructed target labeling frame and other wall bodies is the least and the target labeling frame is closest to the target wall body, the phenomenon that labeling information is overlapped with each other can be reduced to a certain extent, and the association between the labeling information and the target wall body is enhanced by shortening the distance between the target labeling frame and the target wall body.
In some embodiments, the drawing assistance device may be a server. The server may be a single server or a server group. The set of servers can be centralized or distributed (e.g., the servers can be a distributed system). In some embodiments, the server may be local or remote with respect to the user terminal. In some embodiments, the server may be implemented on a cloud platform; by way of example only, the Cloud platform may include a private Cloud, a public Cloud, a hybrid Cloud, a Community Cloud, a distributed Cloud, a cross-Cloud (Inter-Cloud), a Multi-Cloud (Multi-Cloud), and the like, or any combination thereof. In some embodiments, the server may be implemented on an electronic device having one or more components.
Of course, the drawing assistance device may also be a user terminal in some embodiments. By way of example only, the user terminal may comprise a mobile terminal, a tablet computer, a laptop computer, a personal computer, the like, or any combination thereof. In some embodiments, the mobile terminal may include a wearable device, a smart mobile device, a virtual reality device, an augmented reality device, or the like, or any combination thereof. In some embodiments, the wearable device may include a smart helmet, smart glasses, or the like, or any combination thereof. In some embodiments, the smart mobile device may include a smartphone, a Personal Digital Assistant (PDA), a gaming device, or the like, or any combination thereof.
In order to make the objects, technical solutions and advantages of the embodiments of the present application clearer, the present embodiment further provides a schematic structural diagram of the drawing assisting apparatus. As shown in fig. 2, the drawing assistance device may include a memory 120, a processor 130, and a communication unit 140. The memory 120, processor 130, and communication unit 140 are electrically connected to each other directly or indirectly to enable data transmission or interaction. For example, the components may be electrically connected to each other via one or more communication buses or signal lines.
The memory 120 may be an information recording device based on any electronic, magnetic, optical or other physical principle for recording execution instructions, data, and the like. In some embodiments, the memory 120 may be, but is not limited to, volatile memory, non-volatile memory, a storage drive, and the like.
Wherein the volatile Memory may be, by way of example only, a Random Access Memory (RAM). The nonvolatile Memory may be a Read Only Memory (ROM), a Programmable Read Only Memory (PROM), an Erasable Programmable Read Only Memory (EPROM), an Electrically Erasable Programmable Read Only Memory (EEPROM), a flash Memory, or the like; the storage drive may be a magnetic disk drive, a solid state drive, any type of storage disk (e.g., optical disk, DVD, etc.), or similar storage medium, or combinations thereof, etc.
The communication unit 140 is used for transceiving data through a network. In some embodiments, the Network may include a wired Network, a Wireless Network, a fiber optic Network, a telecommunications Network, an intranet, the internet, a Local Area Network (LAN), a Wide Area Network (WAN), a Wireless Local Area Network (WLAN), a WLAN, a Metropolitan Area Network (MAN), a Wide Area Network (WAN), a Public Switched Telephone Network (PSTN), a bluetooth Network, a ZigBee Network, or a Near Field Communication (NFC) Network, or the like, or any combination thereof. In some embodiments, the network may include one or more network access points. For example, the network may include wired or wireless network access points, such as base stations and/or network switching nodes, through which one or more components of the service request processing system may connect to the network to exchange data and/or information.
The processor 130 may be an integrated circuit chip having signal processing capabilities, and may include one or more processing cores (e.g., a single-core processor or a multi-core processor). Merely by way of example, the Processor may include a Central Processing Unit (CPU), an Application Specific Integrated Circuit (ASIC), an Application Specific Instruction Set Processor (ASIP), a Graphics Processing Unit (GPU), a Physical Processing Unit (PPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), a Programmable Logic Device (PLD), a controller, a microcontroller Unit, a Reduced Instruction Set computer (Reduced Instruction Set computer), a microprocessor, or the like, or any combination thereof.
Based on the related descriptions in the foregoing embodiments, the following describes in detail each step of the wall dimension labeling method provided in this embodiment with reference to the method flowchart shown in fig. 3. It should be understood that the operations of the flow diagrams may be performed out of order, and that steps without a logical context may be reversed in order or performed concurrently. One skilled in the art, under the guidance of this application, may add one or more other operations to, or remove one or more operations from, the flowchart. As shown in fig. 3, the method includes:
s101, determining a first size marking line and a second size marking line which are positioned on two sides of a target wall from a drawing.
S102, constructing a first labeling frame along the direction far away from the target wall body according to the first dimension labeling line.
In an alternative embodiment, step S102 may include the following implementation of constructing the first annotation box:
s102-1, acquiring the position of a first dimension marking line in a drawing;
s102-2, according to the position of the first dimension marking line in the drawing, translating the position of the first dimension marking line in the direction far away from the target wall body by a preset distance to construct a first constraint line corresponding to the first dimension marking line;
and S102-3, respectively taking the first dimension marking line and the first constraint line as two sides of the rectangular frame to construct a first marking frame.
Therefore, the first dimension marking line constructs a rectangular frame with a preset distance width as a first marking frame for marking dimension information of the target wall.
S103, according to the second dimension marking line, a second marking frame is constructed in the direction far away from the target wall body.
And S104, determining a target marking frame of the target wall body from the first marking frame and the second marking frame.
The number of collision walls colliding with the target marking frame in the drawing is the least, and the target marking frame is closest to the target wall.
Optionally, step S104 may include the following implementation of determining the target annotation box:
s104-1, performing collision analysis on the first marking frame and the second marking frame and other wall bodies in the drawing respectively to obtain a first number of collision wall bodies colliding with the first marking frame and a second number of collision wall bodies colliding with the second marking frame.
The collision analysis of the first labeling frame and the second labeling frame with other walls in the drawing is prior art in the field, and therefore, the description is omitted in this embodiment.
And S104-2, if the first number is smaller than the second number, taking the first labeling frame as a target labeling frame.
And S104-3, if the second quantity is greater than the second quantity, taking the second labeling frame as a target labeling frame.
And S104-4, if the first quantity is equal to the second quantity, selecting the target marking frame closest to the target wall from the first marking frame and the second marking frame.
That is, when the target labeling frames of the target wall are determined, the number of collisions between each labeling frame and other walls is preferentially determined, and the smallest number of labeling frames is selected as the target labeling frame. And if the number of collisions between the labeling frames on the two sides of the target wall and other walls is the same, selecting the labeling frame closest to the target wall as the target labeling frame.
And S105, marking the size information related to the target wall in the target marking frame.
Illustratively, the walls depicted in the drawing of FIG. 4 are each labeled Q 1 ,Q 2 ,Q 3 ,Q 4 (ii) a For convenience of description, Q will be described below 1 As a target wall. As shown in FIG. 5, Q in FIG. 4 1 One side edge line is used as a first dimension marking line (thickened line) with the symbol QL 1 Is marked with Q 1 The edge line on the other side is used as a second dimension marking line (thickened line) and QL is used 2 And (6) marking. Then, as shown in FIG. 6, based on QL 1 On the side away from Q 1 Direction of (2) construct the first label box QK 1 (ii) a Based on QL 2 Is located atOn one side, along a direction away from Q 2 Direction of (2) to construct a second label box QK 2 (ii) a As shown in fig. 6, the wall Q in the drawing 2 For the first marking box QK 1 The collision wall body of (2); the drawing does not have a second label frame QK 2 The colliding collision wall body, therefore, the second marking frame QK 2 As a target labeling frame; marking a target wall Q therein 1 The size information of (a).
As introduced in the above embodiment, if the number of collisions between the labeling frames on both sides of the target wall and other walls is the same, selecting the labeling frame closest to the target wall as the target labeling frame; and the position of the marking frame depends on the position of the dimension marking line in the drawing. Therefore, for step S101 in fig. 3, the following method of determining the first size annotation line and the second size annotation line may be included:
s101-1, constructing an initial dimension marking line along the edge of the target wall body for each side of the target wall body.
S101-2, if the drawing has an intersecting wall intersecting the initial dimension marking line, judging whether a conflicting wall which conflicts with the target wall exists in the drawing.
The conflict wall body is intersected with the intersected wall body, and is located on the same side of the intersected wall body as the target wall body, and meanwhile, the conflict wall body and the initial dimension marking line are located on the same side of the target wall body.
And S101-3, if the conflict wall exists, taking the initial marking line as a target size marking line.
And S101-4, if no conflict wall exists, constructing a target dimension marking line parallel to the initial dimension marking line at the other end far away from the intersection point.
And the intersection point expresses the intersection position of the target wall and the intersected wall.
S101-5, respectively taking the target dimension marking lines on the two sides of the target wall body as a first dimension marking line and a second dimension marking line.
Illustratively, continuing with Q in the drawing sheet shown in FIG. 4 1 For example. As shown in fig. 7For Q 1 One side of initial dimension marking line L 1 Due to the initial dimension marking line L 1 And wall body Q 2 Intersect, thus, wall Q 2 I.e. the initial dimension marking line L 1 The intersecting wall of (a); wall Q in fig. 7 3 ,Q 4 All intersect wall body Q 2 Intersect with the target wall Q 1 Are equally positioned on the crossed wall Q 2 The same side of (a); therefore, Q at this time 3 ,Q 4 Is a target wall Q 1 The conflict wall of (2).
Due to this, the target wall Q 1 There is a collision wall, and therefore, the drawing assistance apparatus marks the initial size with the line L 1 As Q 1 Target on one side marks the line. And for Q 1 Initial dimension marking line L on the other side 2 Since the drawing does not have the initial dimension mark line L 2 Intersecting walls, thus, marking the initial dimension with line L 2 As a target marking line on the other side of the target wall. Finally, the drawing auxiliary equipment enables the two sides Q of the target wall body to be connected 1 As the first-size marking lines QL in fig. 5 to 6, respectively 1 And a second dimension marking line QL 1
To make the objects, technical solutions and advantages of the embodiments of the present application clearer, the wall Q in fig. 4 is used below 2 The target wall is explained. As shown in FIG. 8, the drawing aid follows the line Q 2 One side edge building initial dimension marking line L 3 Due to the initial dimension marking line L 3 And wall Q 1 ,Q 3 ,Q 4 Are all crossed; namely the wall Q at this moment 1 ,Q 3 ,Q 4 Are all initial size marking line L 3 The intersecting wall of (a); the drawing does not have a target wall Q 2 Conflicting walls, thus selecting and intersecting walls Q 1 At the intersection point between, along the intersecting wall Q 1 Constructing a target dimension marking line L parallel to the initial dimension marking line at the other end far from the intersection point 3 ′。
And for Q 2 Initial dimension marking line L on the other side 4 Due to thatThe drawing does not have a mark line L with the initial size 4 Intersecting walls, whereby the drawing aid marks the initial dimension with a line L 4 As a target marking line on the other side of the target wall. Finally, the drawing assistance device draws the target wall Q 2 Target marking lines on two sides, which are respectively used as target wall Q 2 First size marking line QL 3 And a second dimension marking line QL 4
Thus, the number of collisions between the determined size marking line and other walls is reduced as much as possible through the above embodiment.
It should also be understood that for a section of the target wall, it may be divided into sub-walls for structural strength. For example, assuming FIG. 9 is a drawing of a shear wall, if the edge members of the shear wall are all fitted with constraining edge members, the edge members in the drawing include YB 1 ,YB 2 ,YB 3 ,YB 4
Therefore, for step S105 in fig. 2, the following embodiments may be included to label the dimension information related to the target wall in the target labeling box:
and S105-1, determining a plurality of sub-walls located in the target wall.
And S105-2, respectively obtaining the projection point of the end point of each sub-wall in the target labeling frame.
And S105-3, generating the size marking information of each sub-wall according to the projection point of each sub-wall.
In some embodiments, the drawing sheet includes a positioning axis for reference positioning of the wall, so that, for each sub-wall, the drawing assisting apparatus determines an intersection point of the positioning axis intersecting with the sub-wall in the target labeling box; and generating the size marking information of the sub-wall body according to the projection point of the sub-wall body and the intersection point of the positioning axis in the target marking frame.
For example, for the drawing of the shear wall shown in fig. 9, the final marking effect of the wall dimension marking method provided by the above embodiment is shown in fig. 10, wherein in fig. 10, the final marking effect is shown in fig. 10S of 1 -s 20 Indicating the indicated size value. It can be seen from the labeling effect shown in fig. 10 that there is no overlapping appearance between the labeling information.
Based on the same inventive concept as the wall dimension marking method provided by the embodiment, the embodiment also provides a wall dimension marking device. The wall dimension marking device includes a plurality of software functional modules which can be stored in the memory 120 in a software form or solidified in an Operating System (OS) of the drawing auxiliary device. The processor 130 in the drawing assistance device is configured to execute executable modules stored in the memory 120, that is, software functional modules and computer programs included in the wall dimension marking apparatus. Referring to fig. 11, functionally, the wall dimension marking device may include:
and the marking line module 201 is used for determining a first size marking line and a second size marking line which are positioned at two sides of the target wall from the drawing.
In this embodiment, the marking line module 201 is configured to implement step S101 in fig. 3, and for the detailed description of the marking line module 201, reference may be made to the detailed description of step S101.
And the marking frame module 202 is configured to construct a first marking frame according to the first dimension marking line and in a direction away from the target wall.
The labeling frame module 202 is further configured to construct a second labeling frame along a direction away from the target wall according to the second dimension labeling line.
In this embodiment, the label box module 202 is configured to implement steps S102 to S103 in fig. 3, and for a detailed description of the label box module 202, reference may be made to a detailed description of steps S102 to S103.
And the marking information module 203 is configured to determine a target marking frame of the target wall from the first marking frame and the second marking frame, where the number of collision walls colliding with the target marking frame in the drawing is the least, and the target marking frame is closest to the target wall.
In this embodiment, the annotation information module 203 is configured to implement step S104 in fig. 3, and for a detailed description of the annotation information module 203, reference may be made to a detailed description of step S104.
The labeling information module 203 is further configured to label the size information related to the target wall in the target labeling box.
In this embodiment, the annotation information module 203 is configured to implement step S105 in fig. 3, and for a detailed description of the annotation information module 203, reference may be made to a detailed description of step S105.
In addition, functional modules in the embodiments of the present application may be integrated together to form an independent part, or each module may exist separately, or two or more modules may be integrated to form an independent part.
It should also be understood that the above embodiments, if implemented in the form of software functional modules and sold or used as a stand-alone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present application or portions thereof that substantially contribute to the prior art may be embodied in the form of a software product stored in a storage medium and including instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the steps of the method according to the embodiments of the present application.
Therefore, the present embodiment further provides a computer-readable storage medium, where a computer program is stored, and when the computer program is executed by a processor, the method for labeling the wall dimension provided in the present embodiment is implemented. The computer-readable storage medium may be a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, which can store program codes.
The present embodiment provides a drawing assistance device, which may include a processor 130 and a memory 120. The processor 130 and the memory 120 may communicate via a system bus. The memory 120 stores a computer program, and the processor reads and executes the computer program corresponding to the above embodiment in the memory 120 to implement the wall dimension marking method provided in the present embodiment.
It should be understood that the devices and methods disclosed in the above embodiments may be implemented in other ways. The apparatus embodiments described above are merely illustrative, and for example, the flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of apparatus, methods and computer program products according to various embodiments of the present application. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams and/or flowchart illustration, and combinations of blocks in the block diagrams and/or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
The above description is only for various embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of changes or substitutions within the technical scope of the present application, and all such changes or substitutions are included in the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (6)

1. A wall dimension marking method is applied to drawing auxiliary equipment and comprises the following steps:
confirm first size mark line and second size mark line that are located target wall body both sides from the drawing, include:
constructing an initial dimension marking line along the edge of the target wall for each side of the target wall;
if an intersecting wall body intersecting the initial dimension marking line exists in the drawing, judging whether a conflict wall body conflicting with the target wall body exists in the drawing, wherein the conflict wall body not only intersects with the intersecting wall body, but also is positioned on the same side of the intersecting wall body as the target wall body, and meanwhile, the conflict wall body and the initial dimension marking line are positioned on the same side of the target wall body;
if the conflict wall exists, taking the initial marking line as a target size marking line;
if the conflict wall does not exist, constructing a target dimension marking line parallel to the initial dimension marking line at the other end far away from an intersection point, wherein the intersection point is located at the position where the target wall and the intersection wall intersect;
respectively taking target dimension marking lines on two sides of the target wall body as the first dimension marking line and the second dimension marking line;
according to the first dimension marking line, a first marking frame is constructed along the direction far away from the target wall body, and the method comprises the following steps:
acquiring the position of the first dimension marking line in the drawing;
constructing a first constraint line corresponding to the first dimension marking line according to the position of the first dimension marking line in the drawing and the position translated by a preset distance along the direction far away from the target wall;
respectively taking the first dimension marking line and the first constraint line as two sides of a rectangular frame to construct the first marking frame;
constructing a second labeling frame along the direction far away from the target wall according to the second dimension labeling line;
determining a target labeling frame of the target wall body from the first labeling frame and the second labeling frame, including:
performing collision analysis on the first marking frame and the second marking frame and other wall bodies in the drawing respectively to obtain a first number of collision wall bodies colliding with the first marking frame and a second number of collision wall bodies colliding with the second marking frame;
if the first quantity is smaller than the second quantity, taking the first labeling frame as the target labeling frame;
if the second quantity is larger than the second quantity, taking the second labeling frame as the target labeling frame;
if the first quantity is equal to the second quantity, selecting the marking frame closest to the target wall from the first marking frame and the second marking frame as the target marking frame;
and marking the size information related to the target wall in the target marking frame.
2. The wall dimension labeling method of claim 1, wherein labeling dimension information related to the target wall in the target labeling box comprises:
determining a plurality of sub-walls located in the target wall;
respectively acquiring projection points of the end points of each sub-wall in the target marking frame;
and generating the size marking information of each sub-wall body according to the projection point of each sub-wall body.
3. The method for labeling the size of the wall body according to claim 2, wherein the step of generating the size labeling information of each sub wall body according to the projection point of each sub wall body comprises the following steps:
for each sub-wall, determining the intersection point of a positioning axis intersected with the sub-wall in the target marking frame;
and generating size marking information of the sub-wall body according to the projection point of the sub-wall body and the intersection point of the positioning axis in the target marking frame.
4. A wall dimension marking device is characterized by being applied to drawing auxiliary equipment, and comprising:
the marking line module is used for determining a first size marking line and a second size marking line which are positioned on two sides of the target wall from a drawing;
the marking frame module is used for constructing a first marking frame mode along the direction far away from the target wall body according to the first size marking line, and comprises the following steps:
constructing an initial dimension marking line along an edge of the target wall for each side of the target wall;
if an intersecting wall body intersecting the initial dimension marking line exists in the drawing, judging whether a conflicting wall body conflicting with the target wall body exists in the drawing, wherein the conflicting wall body not only intersects with the intersecting wall body, but also is positioned on the same side of the intersecting wall body as the target wall body, and meanwhile, the conflicting wall body and the initial dimension marking line are positioned on the same side of the target wall body;
if the conflict wall exists, taking the initial marking line as a target size marking line;
if the conflict wall does not exist, constructing a target dimension marking line parallel to the initial dimension marking line at the other end far away from an intersection point, wherein the intersection point is located at the position where the target wall and the intersection wall intersect;
respectively taking target dimension marking lines on two sides of the target wall body as the first dimension marking line and the second dimension marking line;
the marking frame module is further configured to construct a second marking frame along a direction away from the target wall according to the second dimension marking line, and includes:
acquiring the position of the first dimension marking line in the drawing;
constructing a first constraint line corresponding to the first dimension marking line according to the position of the first dimension marking line in the drawing and the position translated by a preset distance along the direction far away from the target wall;
respectively taking the first dimension marking line and the first constraint line as two sides of a rectangular frame to construct the first marking frame;
the labeling information module is used for determining the mode of the target labeling frame of the target wall body from the first labeling frame and the second labeling frame, and comprises the following steps:
performing collision analysis on the first labeling frame and the second labeling frame and other wall bodies in the drawing respectively to obtain a first number of collision wall bodies colliding with the first labeling frame and a second number of collision wall bodies colliding with the second labeling frame;
if the first quantity is smaller than the second quantity, taking the first labeling frame as the target labeling frame;
if the second quantity is larger than the second quantity, taking the second labeling frame as the target labeling frame;
and if the first quantity is equal to the second quantity, selecting the target marking frame which is closest to the target wall from the first marking frame and the second marking frame.
5. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program which, when executed by a processor, implements the wall dimensioning method according to any one of claims 1-3.
6. A drawing assistance device comprising a processor and a memory, the memory storing a computer program that, when executed by the processor, implements the wall dimensioning method of any one of claims 1-3.
CN202210834248.2A 2022-07-14 2022-07-14 Wall size marking method and related device Active CN115168957B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202210834248.2A CN115168957B (en) 2022-07-14 2022-07-14 Wall size marking method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202210834248.2A CN115168957B (en) 2022-07-14 2022-07-14 Wall size marking method and related device

Publications (2)

Publication Number Publication Date
CN115168957A CN115168957A (en) 2022-10-11
CN115168957B true CN115168957B (en) 2023-04-07

Family

ID=83495895

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202210834248.2A Active CN115168957B (en) 2022-07-14 2022-07-14 Wall size marking method and related device

Country Status (1)

Country Link
CN (1) CN115168957B (en)

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102003772B (en) * 2010-11-30 2012-11-21 中国建筑西南设计研究院有限公司 Energy-saving optimized control method of water source heat pump
CN106648317A (en) * 2016-12-15 2017-05-10 广东威创视讯科技股份有限公司 Marking method, system and device of spliced wall display interface
JP6880722B2 (en) * 2016-12-27 2021-06-02 コクヨ株式会社 Layout planning system
US20180300433A1 (en) * 2017-04-13 2018-10-18 Emagispace, Inc. Computer aided design system for modular wall design and manufacturing
CN109165401B (en) * 2018-07-09 2024-03-01 国核电力规划设计研究院有限公司 Method and device for generating two-dimensional construction map based on civil structure three-dimensional model
WO2020214602A1 (en) * 2019-04-15 2020-10-22 Armstrong World Industries, Inc. Systems and methods of predicting architectural materials within a space
CN112784350A (en) * 2021-03-17 2021-05-11 杭州品茗安控信息技术股份有限公司 Construction drawing label generation method, device and system and readable storage medium

Also Published As

Publication number Publication date
CN115168957A (en) 2022-10-11

Similar Documents

Publication Publication Date Title
EP4220563A1 (en) U-turn lane line automatic labelling method and apparatus, computer readable storage medium, and map
CN106898246B (en) A kind of generation method of indoor map and generate system
CN111832131A (en) Steel bar modeling method and device based on BIM model and computer equipment
EP3651061A1 (en) Method and device for evaluating the result of an automatic parking operation, corresponding device and storage medium
CN115168957B (en) Wall size marking method and related device
CN113590005A (en) Labeling method and device for polygonal vector map, electronic equipment and storage medium
TW201322182A (en) System and method for checking borderlines of drawing
CN113901568B (en) Engineering quantity processing method and device for plate haunching and electronic equipment
CN107869995A (en) A kind of generation method, system and the mobile terminal of path duration
CN113834493B (en) High-precision map speed limiting processing method, device, equipment and storage medium
CN112735019B (en) Queuing guide method, queuing guide device, queuing guide system, electronic equipment and storage medium
CN113724571A (en) Generation method and generation device of rail transit station map and electronic equipment
US8744146B2 (en) Vascular reformatting using curved planar reformation
CN115082951B (en) Beam member identification method, device, equipment and storage medium
CN108475412A (en) Image processor for wearable device
CN115544622A (en) Urban and rural participation type three-dimensional planning design platform, method, equipment and storage medium
CN109885160A (en) The method and device that interior label is unfolded in Virtual Space
CN113872798A (en) Method and device for constructing space network topological graph, storage medium and electronic equipment
JP2007240848A (en) Display program, data structure and display device
CN113449798A (en) Port unmanned driving map generation method and device, electronic equipment and storage medium
CN112667648A (en) Terrain dynamic updating method and device, electronic equipment and readable storage medium
CN115845381B (en) Quick path finding method, device, equipment and medium based on bounding box
CN115048015B (en) Automatic driving simulation scene construction method and system based on high-precision map
JP7422222B2 (en) Collision detection method, apparatus, electronic device, storage medium and computer program for object
CN113538627B (en) Map description file generation method and device

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant