CN113449373A - Overlap detection method and device and electronic equipment - Google Patents

Overlap detection method and device and electronic equipment Download PDF

Info

Publication number
CN113449373A
CN113449373A CN202110824167.XA CN202110824167A CN113449373A CN 113449373 A CN113449373 A CN 113449373A CN 202110824167 A CN202110824167 A CN 202110824167A CN 113449373 A CN113449373 A CN 113449373A
Authority
CN
China
Prior art keywords
detection
main body
building
overlapped
overlap
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.)
Granted
Application number
CN202110824167.XA
Other languages
Chinese (zh)
Other versions
CN113449373B (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.)
Shenzhen Xumi Yuntu Space Technology Co Ltd
Original Assignee
Shenzhen Xumi Yuntu Space Technology 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 Shenzhen Xumi Yuntu Space Technology Co Ltd filed Critical Shenzhen Xumi Yuntu Space Technology Co Ltd
Priority to CN202110824167.XA priority Critical patent/CN113449373B/en
Priority claimed from CN202110824167.XA external-priority patent/CN113449373B/en
Publication of CN113449373A publication Critical patent/CN113449373A/en
Application granted granted Critical
Publication of CN113449373B publication Critical patent/CN113449373B/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/60Analysis of geometric attributes
    • G06T7/62Analysis of geometric attributes of area, perimeter, diameter or volume

Abstract

The disclosure provides an overlap detection method, an overlap detection device and electronic equipment, and belongs to the technical field of software. The method comprises the following steps: detecting whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in the CAD; if the second detection subject is detected to be overlapped with the first detection subject, target information is displayed; wherein the target information comprises at least one of: the floor of the first detection body that overlaps the second detection body, the floor of the second detection body that overlaps the first detection body, and the overlap area. Through the technical scheme provided by the embodiment of the disclosure, the problem of low efficiency of building design by using a two-dimensional CAD when building bodies are overlapped can be solved.

Description

Overlap detection method and device and electronic equipment
Technical Field
The disclosure belongs to the technical field of software, and particularly relates to an overlap detection method, an overlap detection device and electronic equipment.
Background
With the development of software technology, various auxiliary software is more and more widely applied in various industries, for example, in the building industry, an architectural designer can use two-dimensional CAD (Computer Aided Design) software to Design an architecture.
In general, when a plot is designed, an architect will arrange the buildings in their entirety in the CAD drawing, and then fine-tune the details of each building so that each building meets the specifications or standards. For example, for residential plots with a demand for covered commercial sites, building designers often design down-the-street commercial stores under a residential building. In calculating the building area, in order to avoid repeated calculation of the building area, the building designer needs to manually perform deduction for the building area of the overlapping portion of the commercial shop and the house.
However, the conventional architectural design has a complex drawing, which may include various buildings, and the architect cannot quickly check and verify the buildings, and often causes miscalculation, or repeated deduction, thereby resulting in a low efficiency of architectural design using a two-dimensional CAD when there is building overlap.
Disclosure of Invention
An object of the embodiments of the present disclosure is to provide an overlap detection method, an overlap detection device, and an electronic device, which can solve the problem that efficiency of building design using a two-dimensional CAD is low when building overlaps exist.
In order to solve the technical problem, the present disclosure is implemented as follows:
in a first aspect, an embodiment of the present disclosure provides an overlap detection method, including: detecting whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in the CAD; if the second detection subject is detected to be overlapped with the first detection subject, target information is displayed; wherein the target information comprises at least one of: the floor of the first detection body that overlaps the second detection body, the floor of the second detection body that overlaps the first detection body, and the overlap area.
In a second aspect, an embodiment of the present disclosure provides an overlap detection apparatus, including: the device comprises a detection module and a display module; the detection module is used for detecting whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, and the drawing is a two-dimensional drawing in a CAD; the display module is used for displaying target information if the detection module detects that the second detection main body is overlapped with the first detection main body; wherein the target information comprises at least one of: the floor of the first detection body that overlaps the second detection body, the floor of the second detection body that overlaps the first detection body, and the overlap area.
In a third aspect, the disclosed embodiments provide an electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, which when executed by the processor implement the steps of the method according to the first aspect.
In a fourth aspect, the disclosed embodiments provide a readable storage medium on which a program or instructions are stored, which when executed by a processor, implement the steps of the method according to the first aspect.
In a fifth aspect, the embodiments of the present disclosure provide a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the method according to the first aspect.
In the embodiment of the disclosure, the electronic device may detect whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, where the drawing is a two-dimensional drawing in the CAD; if the second detection subject is detected to overlap with the first detection subject, the electronic device may display the target information. Since the target information may include at least one of: the floor that overlaps with the second detection main part in the first detection main part, the floor that overlaps with the first detection main part in the second detection main part, the overlap area, consequently can be for the user demonstration floor that overlaps under the condition that detects the overlap, the area of overlap, the user of being convenient for is fixed a position the floor that overlaps fast, and directly adopt the area of overlap to calculate, need not that the user is manual to seek in the picture, manual calculation, can seek the building body main part of overlap and the floor of overlap fast, the neglected calculation of having avoided among the manual check-up process of user, miscalculation or repeated deduction, the efficiency of using the CAD of two-dimentional to carry out architectural design when having the building body to overlap has been improved.
Drawings
Fig. 1 is a schematic flow chart of an overlap detection method according to an embodiment of the present disclosure;
FIG. 2 is an interface schematic diagram of an overlay detection output interface provided by an embodiment of the present disclosure;
fig. 3 is a second logic diagram of attribute information of a building provided in the embodiment of the present disclosure;
fig. 4 is a second schematic flowchart of an overlap detection method according to an embodiment of the disclosure;
fig. 5 is a third schematic flowchart of an overlap detection method according to an embodiment of the disclosure;
FIG. 6 is a schematic diagram illustrating a possible structure of an overlap detection apparatus according to an embodiment of the present disclosure;
fig. 7 is a schematic structural diagram of an electronic device according to an embodiment of the disclosure;
fig. 8 is a hardware schematic diagram of an electronic device according to an embodiment of the present disclosure.
Detailed Description
The technical solutions in the embodiments of the present disclosure will be clearly and completely described below with reference to the drawings in the embodiments of the present disclosure, and it is obvious that the described embodiments are some, but not all embodiments of the present disclosure. All other embodiments, which can be derived by a person skilled in the art from the embodiments disclosed herein without making any creative effort, shall fall within the protection scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present disclosure are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the disclosure may be practiced other than those illustrated or described herein, and that the objects identified as "first," "second," etc. are generally a class of objects and do not limit the number of objects, e.g., a first object may be one or more. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
The overlap detection method provided by the embodiments of the present disclosure is described in detail below with reference to the accompanying drawings by specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flowchart of an overlap detection method provided in an embodiment of the present disclosure, as shown in fig. 1, the method includes the following S101 and S102:
s101, the electronic equipment detects whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located.
Wherein the drawing is a two-dimensional drawing in CAD.
It can be understood that the first detection main body is any one building body in the drawing.
It should be noted that, when detecting a first detection main body, the first detection main body is a main detection building body, and other building bodies in the drawing are secondary detection building bodies. When each main inspection building body is subjected to overlapping detection, whether other building bodies are overlapped with the main inspection building body or not can be traversed.
Specifically, if overlapping detection is started, the electronic device may use each building body in the drawing as a main detection building body one by one, use other building bodies in the drawing as secondary detection building bodies, and determine whether each building body has an overlapping relationship with the other building bodies.
Optionally, the electronic device may perform overlap detection on the detection subject in the two-dimensional drawing according to a preset detection rule. The preset detection rule is related to a storage mode of plane data and layer height data in the two-dimensional drawing.
That is, the electronic device can detect whether there is a building body overlapping with the first detection main body in the two-dimensional drawing at the first detection main body based on the plane data and the layer height data of the building body.
For example, the electronic device may determine whether there is an overlap between two building bodies on the plane according to the plane data, and then determine whether there is an overlap on the floor height according to the floor height data. The electronic equipment can also determine whether the positions of the long edges and the positions of the wide edges of the two buildings are overlapped according to the plane data, then determine whether the positions of the long edges and the positions of the wide edges of the two buildings are overlapped, and finally determine whether the layer heights of the two buildings are overlapped, so that whether the two buildings are overlapped is determined.
For example, in the two-dimensional drawing, the electronic device may first detect whether two-dimensional coordinates of two buildings in the two-dimensional drawing overlap, then obtain the floor height of the building configured by the user from the configuration of the floor height, and then detect whether the floor height of the two buildings overlap. The electronic device can also obtain the plane data of each building and the layer height data corresponding to the building, and then compares whether two buildings overlap or not based on the plane data and the layer height data of the buildings.
And S102, if the electronic equipment detects that the second detection main body is overlapped with the first detection main body, displaying target information.
Wherein the target information comprises at least one of: the floor of the first detection body that overlaps the second detection body, the floor of the second detection body that overlaps the first detection body, and the overlap area.
Wherein, the second detects the main part and is any building body except first detection main part in the picture.
It is understood that the floor height in the first detection subject (i.e., the height of a single floor) and the floor height of the second detection subject may be the same or different.
Generally, in a drawing in two-dimensional drawing software, the height direction is not clearly identified, that is, the height is not expressed in the drawing, and the overlap detection method provided by the embodiment of the disclosure can be applied to the two-dimensional drawing software, so that a user (for example, an architectural designer) can be assisted in detecting and reminding the overlap in the height direction.
An example can be obtained by packaging the detection method provided by the embodiment of the disclosure as an intelligent plug-in of the CAD, the electronic device can display an option or a virtual key of "overlap detection" in the CAD interface, if it is detected that the option is selected, overlap detection can be performed on each defined building in the drawing, and if there are overlapping buildings, the detection result can be displayed in the display interface for viewing.
Fig. 2 is a schematic view of a display interface of a detection result of an overlap detection provided in an embodiment of the present disclosure, and as shown in fig. 2, the electronic device may display a main detection building, a secondary detection building, an affected layer, and an overlap area. In fig. 2, the affected floor is a floor of the main inspection building. With reference to fig. 2, it can be seen that the building body is a main inspection building body of the 1# floor, the building bodies are secondary inspection building bodies of the 2# floor and the 3# floor, and the 2# floor has an influence on all of the 1 st floor to the 7 th floor of the 1# floor, that is, the 2# floor and the 1 st floor have an overlap with each other, and the overlap area of each floor is 14.00 square meters; the 3# floor has an influence on all the floors 1 to 2 of the 1# floor, namely, the 3# floor overlaps with the floors 1 and 2 of the 1# floor, the overlapping surface of the floor 1 of the 1# floor and the floor 1 of the 3# floor is 16.00 square meters, and the overlapping surface of the floor 2 of the 1# floor and the floor 1 of the 3# floor is 10.00 square meters.
It can be understood that because the floor height of different buildings is different, consequently, the floor of the overlap of different detection main parts can be for the same floor, also can be different floors. For example, layer 1 of building 1 overlaps layer 1 of building 2, and layer 1 of building 1 overlaps layer 2 of building 3.
It should be noted that, in the embodiment of the present disclosure, if it is detected that a plurality of main inspection building bodies and other building bodies are all overlapped, the electronic device may display a plurality of sub inspection building bodies corresponding to the overlapped main inspection building bodies, which is not specifically limited in this regard.
According to the overlap detection method provided by the embodiment of the disclosure, the electronic device can detect whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in CAD; if the second detection subject is detected to overlap with the first detection subject, the electronic device may display the target information. Since the target information may include at least one of: the floor that overlaps with the second detection main part in the first detection main part, the floor that overlaps with the first detection main part in the second detection main part, the overlap area, consequently can be for the user demonstration floor that overlaps under the condition that detects the overlap, the area of overlap, the user of being convenient for is fixed a position the floor that overlaps fast, and directly adopt the area of overlap to calculate, need not that the user is manual to seek in the picture, manual calculation, can seek the building body main part of overlap and the floor of overlap fast, the neglected calculation of having avoided among the manual check-up process of user, miscalculation or repeated deduction, the efficiency of using the CAD of two-dimentional to carry out architectural design when having the building body to overlap has been improved.
Optionally, in the overlap detection method provided in the embodiment of the present disclosure, after the above S102, the following S103 may be further included:
s103, the electronic equipment positions the position of the building overlapped in the drawing under the condition of receiving the positioning input.
For example, the positioning input may be an input of clicking a target floor by a user, or an input triggered by the user through a virtual key.
The target floor may be a floor in the first detection main body or a floor in the second detection main body, which is not specifically limited in this embodiment of the disclosure.
For example, the architectural designer may select a first detection subject in the detection interface, or may select a second detection subject in the detection result interface.
It can be understood that the electronic device can quickly locate the overlapped building body corresponding to the target floor in the two-dimensional drawing in response to the input of the target floor, so that an architectural designer can quickly view, modify or adjust the building body.
For example, if the architect clicks on a "view-locating" virtual button in the test results interface shown in fig. 2, the electronic device may locate the primary and overlapping secondary test structures in the two-dimensional map.
Based on the scheme, after the electronic equipment displays the target information, namely, after the result of the overlapping detection is displayed, the electronic equipment can be triggered to quickly position the position of the overlapped building body in the two-dimensional drawing for the user through the positioning input, so that the user can quickly find the overlapping position in the two-dimensional drawing without manually dragging the drawing to find the overlapping position by the user.
Optionally, with reference to fig. 3, in the overlap detection method provided in the embodiment of the present disclosure, before the above S101, the following S104 and S105 may further be included:
and S104, generating a number for each building in the drawing by the electronic equipment according to a preset sequence.
It should be noted that the preset sequence may be a default numbering sequence or a numbering sequence selected by a user, and this is not specifically limited in this disclosure.
For example, the electronic device may number all building body bodies from any one of the two-dimensional drawings, and may number all building body bodies in a clockwise or counterclockwise direction, and the number may be a number or a letter number, or may be in other number forms, which is not specifically limited in this embodiment of the disclosure.
For example, the electronic device may number the building blocks in an order of top left-top right-bottom left-bottom, starting from the top left corner, and the building blocks may be numbered in a-B-C-D or 1-2-3-4.
And S105, generating attribute information of each building by the electronic equipment according to the three-dimensional coordinates of each building and the number of each building.
Wherein the attribute information indicates three-dimensional physical position and size information of the building body.
It should be noted that the attribute information of the building includes the number of the building.
Fig. 4 is a schematic diagram of attribute information of a building of cuboid that this disclosed embodiment provided, as shown in fig. 4, the picture, this building's serial number is a, and this building's adoption three-dimensional coordinate carries out the representation of physical position, then can be according to the attribute information of the shown coordinate form storage building a in the picture, and be in proper order: (XA11, YA11, ZA11), (XA12, YA11, ZA11), (XA12, YA11, ZA12), (XA11, YA11, ZA12), (XA11, YA12, ZA11), (XA12, YA12, ZA11), (XA12, YA12, ZA12), (XA11, YA12, ZA 12).
It should be noted that, the above description is given by taking a cuboid building as an example, in practical application, the building may be in any regular or irregular shape, and the attribute information of the building may be generated by using three-dimensional physical position and size information.
For example, the building B is a half-spherical building B, for example, a building with a radius r, and the coordinates of the center of the sphere B, the coordinates of the highest point, and the radius r can be stored.
Based on this scheme, electronic equipment can be in the two-dimentional picture under the condition that overlaps the detection, number each building body in this two-dimentional picture earlier. And then generating attribute information of the building body by combining the plane coordinate of the building body and the height defined by the user to generate a three-dimensional physical position of the building body different from other building bodies in the drawing, thereby providing a basis for subsequently judging whether the building bodies are overlapped.
Optionally, in the overlap detection method provided in the embodiment of the present disclosure, the above S101 may be specifically executed by the following S11:
s11, the electronic equipment detects whether a building body overlapped with the first detection main body exists in the drawing where the first detection main body is located according to the attribute information of the building body.
In this embodiment, the detection rule for the electronic device to detect whether or not the building bodies in the two-dimensional drawing are overlapped is associated with the attribute information of the building bodies.
It is understood that the three-dimensional coordinate position of each building in the drawing and the area of each surface of each building can be stored in the attribute information of the building.
Based on the scheme, because the attribute information of the building body is determined according to the three-dimensional physical coordinates of the building body, the electronic equipment can determine whether the building body overlapped with the first detection main body in the drawing where the first detection main body is located exists or not according to the attribute information of the building body. If the attribute information of the two buildings is overlapped, the two buildings can be determined to be overlapped.
Optionally, in the overlap detection method provided in the embodiment of the present disclosure, the above S11 may be specifically executed through the following S12:
s12, the electronic equipment detects whether a building body overlapped with the three-dimensional physical position of the first detection main body exists in the drawing where the first detection main body is located.
In general, in two-dimensional drawing software, the height of a building is not represented in a drawing, and only information such as size and shape on a plane is represented.
In the embodiment of the present disclosure, the three-dimensional physical location in the two-dimensional mapping software is determined for the electronic device according to the two-dimensional plane data, the height defined by the user, and the number of the generated building body.
It should be noted that, in the embodiment of the present disclosure, the electronic device may determine whether three-dimensional physical positions of every two detection bodies overlap to determine whether the main detection body and the sub detection body overlap in height.
Based on the scheme, when the electronic equipment can carry out overlapping detection on the building body in the two-dimensional drawing, whether the three-dimensional physical position of the secondary building body is overlapped with that of the main building body is determined through the three-dimensional physical position obtained by processing.
Specifically, in the overlap detection method provided in the embodiment of the present disclosure, the above-mentioned S12 may be specifically executed by the following S121 and S121, or S121 and S123:
s121, the electronic equipment determines whether the three-dimensional coordinates of the target detection main body are overlapped with the three-dimensional coordinates of the first detection main body.
The target detection main body is any one detection main body different from the first detection main body in the drawing.
It should be noted that the three-dimensional coordinate of the target detection subject is a three-dimensional coordinate carrying a detection subject number.
Optionally, the electronic device may compare one by one whether the coordinates of the two detection subjects on each of the three-dimensional coordinate axes are overlapped; the electronic device may also compare whether the two detection main bodies overlap on the corresponding surfaces of the two coordinate axes found in the three-dimensional coordinate axis, and then compare whether the two detection main bodies overlap on one coordinate axis other than the two coordinate axes in the three-dimensional coordinate axis. The embodiments of the present disclosure are not particularly limited in this regard.
For example, the electronic device may first detect whether two detection subjects overlap in the XY plane, and then detect whether coordinates of the two building subjects overlap in the Z direction if the two detection subjects overlap in the XY plane, and may determine that three-dimensional physical positions of the two detection subjects overlap if the two building subjects overlap in the Z direction.
And S122, if the three-dimensional coordinates of the target detection main body are overlapped with the three-dimensional coordinates of the first detection main body, the electronic equipment determines that the target detection main body is overlapped with the first detection main body.
And S123, if it is determined that the three-dimensional coordinates of the target detection main body do not overlap with the three-dimensional coordinates of the first detection main body, the electronic equipment determines that the target detection main body does not overlap with the first detection main body.
Based on the scheme, the electronic equipment can determine whether the target detection main body and the first detection main body are overlapped or not in the two-dimensional drawing according to the three-dimensional coordinates of the building body, if the three-dimensional coordinates are overlapped, the two detection main bodies are overlapped, and if the three-dimensional coordinates are not overlapped, the two detection main bodies are not overlapped.
Optionally, in the overlap detection method provided in the embodiment of the present disclosure, the above S121 may be specifically executed through the following a1 to a 4:
a1, the electronic device determines whether there is an overlap between the coordinate positions of the target detection subject and the first detection subject on the first coordinate axis.
A2, in the case that the coordinate positions of the object detection subject on the first coordinate axis are overlapped, the electronic equipment determines whether the coordinate positions of the first detection subject and the object detection subject on the second coordinate axis are overlapped.
A3, in the case that the coordinate positions of the object detection subject on the second coordinate axis are overlapped, the electronic equipment determines whether the coordinate positions of the first detection subject and the object detection subject on the third coordinate axis are overlapped.
And A4, if the coordinate positions of the target detection subject on the third coordinate axis are overlapped, the electronic equipment determines that the three-dimensional physical positions of the first detection subject and the target detection subject are overlapped.
The first coordinate axis, the second coordinate axis and the third coordinate axis are coordinate axes in a three-dimensional coordinate system.
It can be understood that the electronic equipment determines whether the coordinates of two buildings on three coordinate axes in the three-dimensional coordinate axis have an overlapping part, if two buildings do not overlap on any one coordinate axis, the two buildings do not overlap, and if the two buildings all overlap on three coordinate axes, the two buildings overlap.
For example, the electronic device may first determine whether there is overlap in the coordinates on the X-axis, then determine whether there is overlap in the coordinates on the Y-axis, and finally determine that there is overlap in the coordinates on the Z-axis.
For example, for building A and building B, it is first determined whether XA11-XA12 overlaps with XB11-XB 12. Assume that XA11 is less than XA12 and XB11 is less than XB 12. If XA11 is less than XB11, XB12 is greater than or equal to XA11 and XB12 is less than or equal to XA12, then XA11-XA12 and XB11-XB12 are overlapped; if XA11 is greater than or equal to XB11, XB12 is greater than XA11 and less than or equal to XA12, then XA11-XA12 overlaps with XB11-XB 12.
Exemplarily, fig. 5 is a schematic flowchart of an overlap detection method provided by an embodiment of the present disclosure, and as shown in fig. 5, after the overlap detection is started, S501 to S507 described below may be included.
S501, the electronic equipment determines a main inspection building and a secondary inspection building.
Specifically, other buildings in the drawing are used as secondary inspection buildings, and then each secondary inspection building is traversed to sequentially determine whether the secondary inspection building overlaps with the coordinate of the main inspection building.
S502, the electronic equipment determines whether the coordinate positions on the X axis are overlapped.
If the coordinate positions of the main detection building body and the secondary detection building body are overlapped on the X axis, the following S503 is continuously executed; if there is no overlap in the coordinate positions on the X axis, S506 described below is performed to re-determine the secondary building to continue detecting the next secondary building.
S503, the electronic equipment determines whether the coordinate positions on the Y axis are overlapped.
If the coordinate positions of the main detection building body and the secondary detection building body on the Y axis are overlapped, the following S504 is continuously executed; if there is no overlap in the coordinate positions on the Y axis, S506 described below is performed to re-determine the secondary building to continue detecting the next secondary building.
S504, the electronic equipment determines whether the coordinate positions on the Z axis are overlapped.
If the coordinate positions of the main detection building body and the secondary detection building body on the Z axis are overlapped, executing the following S505; if there is no overlap in the coordinate positions on the Z axis, S506 described below is performed to re-determine the secondary building to continue detecting the next secondary building.
And S505, the electronic equipment determines that the main inspection building body and the secondary inspection building body are overlapped.
After determining that the main inspection building and the secondary inspection building of the group overlap, if there is a secondary inspection building that is not detected, the electronic device performs the following S506; if the secondary detection building does not exist and is not detected, the electronic equipment re-determines the main detection building in the drawing and re-executes the steps from S501 to S506; if the secondary inspection building bodies of each main inspection building body are detected completely, executing the following S507 and outputting the final result of the current overlapping detection.
S506, the electronic equipment reselects the secondary inspection building.
And S507, the electronic equipment outputs the detection result.
It should be noted that, the electronic device may also add the detection result of the main inspection building in real time on the display interface of the detection result under the condition that each overlapping building of one main inspection building is detected.
Based on the scheme, the electronic equipment can gradually determine whether each one-dimensional coordinate of the two buildings in the three-dimensional coordinates is overlapped, if the coordinates of any dimension are not overlapped, the two buildings are determined not to be overlapped, and if the coordinates of the three dimensions are overlapped, the two buildings are determined to be overlapped.
Optionally, in the overlap detection method provided in the embodiment of the present disclosure, after the above S122, the following S124 may be further included:
and S124, under the condition that the target detection main body is determined to be overlapped with the first detection main body, the electronic equipment determines the overlapped floors of the first detection main body and the second detection main body and the overlapped area of each overlapped floor according to the three-dimensional coordinates of the target detection main body, the three-dimensional coordinates of the first detection main body and the size information.
The three-dimensional coordinate can be determined according to the above mode, namely the three-dimensional coordinate carries the number of the building body.
Illustratively, the electronic device may calculate an overlap area on the XY plane and provide the overlap area to the user when performing the overlap detection.
Based on this scheme, electronic equipment can be at the in-process that overlaps the detection, if it overlaps to detect two building bodies, then can adopt three-dimensional coordinate and size information among the attribute information of these two building bodies to calculate the area of overlapping, need not the manual calculation of user, under the condition that needs subtract overlap area, can confirm fast that the area value of deducting has improved the efficiency of design, has simplified the step of user operation.
It should be noted that, in the overlap detection method provided by the embodiment of the present disclosure, the execution subject may be an overlap detection apparatus, or a control module in the overlap detection apparatus for executing the method of the overlap detection party. The method for executing the overlap detection method by the overlap detector device is taken as an example in the embodiment of the present disclosure, and the overlap detector device provided in the embodiment of the present disclosure is explained.
Fig. 6 is a schematic diagram of an overlap detection apparatus 600 according to an embodiment of the present disclosure, where the overlap detection apparatus 600 includes: a detection module 601 and a display module 602; the detection module 601 is used for detecting whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in the CAD; a display module 602, configured to display target information if the detection module 601 detects that the second detection subject overlaps the first detection subject; wherein the target information comprises at least one of: the floor of the first detection body that overlaps the second detection body, the floor of the second detection body that overlaps the first detection body, and the overlap area.
Optionally, the overlap detection apparatus further comprises: a positioning module; and the positioning module is used for positioning the position of the building body overlapped in the drawing under the condition of receiving the positioning input after the display module displays the target information.
Optionally, the overlap detection apparatus further comprises: a generation module; the generating module is used for generating numbers for the end points of all the buildings in the drawing according to a preset sequence before detecting whether the buildings overlapped with the first detection main body exist in the drawing where the first detection main body is located; generating attribute information of each building according to the three-dimensional coordinates and the end point numbers of each building; wherein the attribute information indicates three-dimensional physical position and size information of the building body.
Optionally, the detection module is specifically configured to detect attribute information of the building, and detect whether there is a building overlapping with the first detection main body in a drawing where the first detection main body is located.
Optionally, the detection module is specifically configured to detect whether a building body overlapped with the three-dimensional physical position of the first detection main body exists in a drawing where the first detection main body is located.
Optionally, the detection module is specifically configured to determine whether there is an overlap between the three-dimensional coordinates of the target detection subject and the three-dimensional coordinates of the first detection subject; if the three-dimensional coordinates of the target detection main body are overlapped with the three-dimensional coordinates of the first detection main body, the target detection main body is overlapped with the first detection main body; or if the three-dimensional coordinates of the target detection body are determined not to overlap with the three-dimensional coordinates of the first detection body, determining that the target detection body does not overlap with the first detection body; the target detection main body is any one detection main body different from the first detection main body in the drawing.
Optionally, the detection module is specifically configured to determine whether there is an overlap between the target detection subject and the first detection subject in the coordinate positions of the first coordinate axis; under the condition that the coordinate positions of the target detection bodies on the first coordinate axis are overlapped, determining whether the coordinate positions of the first detection body and the target detection body on the second coordinate axis are overlapped or not; under the condition that the coordinate positions of the target detection bodies on the second coordinate axis are overlapped, determining whether the coordinate positions of the first detection body and the target detection body on the third coordinate axis are overlapped or not; if the coordinate positions of the target detection main bodies on the third coordinate axis are overlapped, determining that the three-dimensional physical positions of the first detection main body and the target detection main bodies are overlapped; the first coordinate axis, the second coordinate axis and the third coordinate axis are coordinate axes in a three-dimensional coordinate system.
Optionally, the overlap detection apparatus further comprises: a determination module; the determination module is used for determining the overlapped floors of the first detection main body and the second detection main body and the overlapped area of each overlapped floor according to the three-dimensional coordinate of the target detection main body, the three-dimensional coordinate of the first detection main body and the size information under the condition that the detection module determines that the target detection main body is overlapped with the first detection main body.
The embodiment of the disclosure provides an overlap detection device, which can detect whether a building body overlapped with a first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in a CAD; if the second detection subject is detected to overlap with the first detection subject, the electronic device may display the target information. Since the target information may include at least one of: the floor that overlaps with the second detection main part in the first detection main part, the floor that overlaps with the first detection main part in the second detection main part, the overlap area, consequently can be for the user demonstration floor that overlaps under the condition that detects the overlap, the area of overlap, the user of being convenient for is fixed a position the floor that overlaps fast, and directly adopt the area of overlap to calculate, need not that the user is manual to seek in the picture, manual calculation, can seek the building body main part of overlap and the floor of overlap fast, the neglected calculation of having avoided among the manual check-up process of user, miscalculation or repeated deduction, the efficiency of using the CAD of two-dimentional to carry out architectural design when having the building body to overlap has been improved.
The overlap detection device in the embodiments of the present disclosure may be a device, or may be a component, an integrated circuit, or a chip in a terminal. The device can be mobile electronic equipment or non-mobile electronic equipment. By way of example, the mobile electronic device may be a mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic device, a wearable device, a UMPC (ultra-mobile personal computer), a netbook or a PDA (personal digital assistant), and the like, and the non-mobile electronic device may be a server, a Network Attached Storage (NAS), a PC (personal computer), a TV (television), a teller machine or a self-service machine, and the like, and the disclosed embodiments are not limited in particular.
The overlap detection apparatus provided in the embodiment of the present disclosure can implement each process implemented by the method embodiments of fig. 1 to fig. 5, and is not described here again to avoid repetition.
Optionally, as shown in fig. 7, an electronic device 700 is further provided in an embodiment of the present disclosure, and includes a processor 701, a memory 702, and a program or an instruction stored in the memory 702 and executable on the processor 701, where the program or the instruction is executed by the processor 701 to implement each process of the foregoing overlap detection method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic device in the embodiment of the present disclosure includes the mobile electronic device and the non-mobile electronic device described above.
Fig. 8 is a schematic diagram of a hardware structure of an electronic device implementing an embodiment of the present disclosure.
The electronic device 800 includes, but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810.
Those skilled in the art will appreciate that the electronic device 800 may further comprise a power source (e.g., a battery) for supplying power to the various components, and the power source may be logically connected to the processor 810 via a power management system, so as to manage charging, discharging, and power consumption management functions via the power management system. The electronic device structure shown in fig. 8 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is omitted here.
The embodiment of the disclosure provides an electronic device, which can detect whether a building body overlapped with a first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in a CAD; if the second detection subject is detected to overlap with the first detection subject, the electronic device may display the target information. Since the target information may include at least one of: the floor that overlaps with the second detection main part in the first detection main part, the floor that overlaps with the first detection main part in the second detection main part, the overlap area, consequently can be for the user demonstration floor that overlaps under the condition that detects the overlap, the area of overlap, the user of being convenient for is fixed a position the floor that overlaps fast, and directly adopt the area of overlap to calculate, need not that the user is manual to seek in the picture, manual calculation, can seek the building body main part of overlap and the floor of overlap fast, the neglected calculation of having avoided among the manual check-up process of user, miscalculation or repeated deduction, the efficiency of using the CAD of two-dimentional to carry out the building body design when having the building body to overlap has been improved.
It is to be understood that, in the embodiment of the present disclosure, the input Unit 804 may include a GPU (Graphics Processing Unit) 841 and a microphone 842, and the Graphics processor 841 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 806 may include a display panel 861, and the display panel 861 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 807 includes a touch panel 871 and other input devices 872. Touch panel 871, also referred to as a touch screen. The touch panel 871 may include two parts of a touch detection device and a touch controller. Other input devices 872 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein. The memory 809 may be used to store software programs as well as various data including, but not limited to, application programs and operating systems. The processor 810 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 810.
The embodiments of the present disclosure further provide a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the program or the instruction implements each process of the above-mentioned overlap detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device described in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a ROM (Read-Only Memory), a RAM (Random Access Memory), a magnetic disk or an optical disk.
The embodiment of the present disclosure further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the above-mentioned overlap detection method embodiment, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present disclosure may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The embodiments of the present disclosure further provide a computer program product including instructions, which when running on a computer, enables the computer to execute the processes of the above-mentioned embodiment of the overlap detection method, and achieve the same technical effects, and therefore, the details are not repeated herein to avoid repetition.
It should be noted that, in this document, 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 phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it is noted that the scope of the methods and apparatus in the embodiments of the present disclosure is not limited to performing functions in the order shown or discussed, but may include performing functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
While the present disclosure has been described with reference to the embodiments illustrated in the drawings, which are intended to be illustrative rather than restrictive, it will be apparent to those of ordinary skill in the art in light of the present disclosure that many more modifications may be made without departing from the spirit of the disclosure and the scope of the appended claims.

Claims (12)

1. A method of overlap detection, the method comprising:
detecting whether a building body overlapped with a first detection main body exists in a drawing where the first detection main body is located, wherein the drawing is a two-dimensional drawing in CAD (computer aided design);
if the second detection subject is detected to be overlapped with the first detection subject, displaying target information;
wherein the target information comprises at least one of: a floor of the first detection subject that overlaps the second detection subject, a floor of the second detection subject that overlaps the first detection subject, and an overlapping area.
2. The method of claim 1, wherein after displaying the target information, the method further comprises:
and under the condition that the positioning input is received, positioning the position of the building body overlapped in the drawing.
3. The method of claim 1, wherein before detecting whether there is an overlapping building in the drawing of the first detection subject, the method further comprises:
generating numbers for the end points of each building in the drawing according to a preset sequence;
generating attribute information of each building according to the three-dimensional coordinates and the end point numbers of each building;
wherein the attribute information indicates three-dimensional physical location and size information of the building body.
4. The method according to claim 3, wherein the detecting whether there is a detection subject overlapping with the first detection subject in the drawing where the first detection subject is located comprises:
according to the attribute information of the building body, whether the building body overlapped with the first detection main body exists in the drawing where the first detection main body is located is detected.
5. The method of claim 4, wherein the detecting whether the building body overlapped with the first detecting main body exists in the drawing of the first detecting main body according to the attribute information of the building body comprises:
and detecting whether a building body overlapped with the three-dimensional physical position of the first detection main body exists in the drawing where the first detection main body is located.
6. The method of claim 5, wherein the detecting whether the building body overlapped with the three-dimensional physical position of the first detection main body exists in the drawing of the first detection main body comprises:
determining whether three-dimensional coordinates of a target detection subject overlap with the three-dimensional coordinates of the first detection subject;
if the three-dimensional coordinates of the target detection body are determined to be overlapped with the three-dimensional coordinates of the first detection body, determining that the target detection body is overlapped with the first detection body; alternatively, the first and second electrodes may be,
if it is determined that the three-dimensional coordinates of the target detection subject do not overlap with the three-dimensional coordinates of the first detection subject, determining that the target detection subject does not overlap with the first detection subject;
the target detection main body is any detection main body different from the first detection main body in the drawing.
7. The method of claim 6, wherein determining whether there is an overlap between the three-dimensional coordinates of the target detection subject and the three-dimensional coordinates of the first detection subject comprises:
determining whether the coordinate positions of the target detection subject and the first detection subject on a first coordinate axis are overlapped;
determining whether the coordinate positions of the first detection subject and the target detection subject on the second coordinate axis overlap or not when the coordinate positions of the target detection subject on the first coordinate axis overlap;
determining whether the coordinate positions of the first detection subject and the target detection subject on the third coordinate axis overlap or not when the coordinate positions of the target detection subject on the second coordinate axis overlap;
if the coordinate positions of the target detection main bodies on the third coordinate axis are overlapped, determining that the three-dimensional physical positions of the first detection main body and the target detection main body are overlapped;
the first coordinate axis, the second coordinate axis and the third coordinate axis are coordinate axes in a three-dimensional coordinate system.
8. The method according to any one of claims 4 to 7, further comprising:
when the overlapping of the object detection main body and the first detection main body is determined, the overlapped floor of the first detection main body and the second detection main body and the overlapped area of each overlapped floor are determined according to the three-dimensional physical position of the object detection main body, the three-dimensional physical position of the first detection main body and size information.
9. An overlay detection apparatus, comprising: the device comprises a detection module and a display module;
the detection module is used for detecting whether a building body overlapped with the first detection main body exists in a drawing where the first detection main body is located; the drawing is a two-dimensional drawing in CAD (computer aided design);
the display module is used for displaying target information if the detection module detects that the second detection main body and the first detection main body are reset;
wherein the target information comprises at least one of: a floor of the first detection subject that overlaps the second detection subject, a floor of the second detection subject that overlaps the first detection subject, and an overlapping area.
10. An electronic device comprising a processor, a memory, and a program or instructions stored on the memory and executable on the processor, the program or instructions when executed by the processor implementing the steps of the overlap detection method of any one of claims 1 to 8.
11. A readable storage medium, on which a program or instructions are stored, which when executed by a processor implement the steps of the overlay detection method according to any one of claims 1 to 8.
12. A computer program product comprising instructions for causing a computer to perform the steps of the overlap detection method according to any one of claims 1 to 8 when run on a computer.
CN202110824167.XA 2021-07-21 Overlap detection method and device and electronic equipment Active CN113449373B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110824167.XA CN113449373B (en) 2021-07-21 Overlap detection method and device and electronic equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110824167.XA CN113449373B (en) 2021-07-21 Overlap detection method and device and electronic equipment

Publications (2)

Publication Number Publication Date
CN113449373A true CN113449373A (en) 2021-09-28
CN113449373B CN113449373B (en) 2024-04-30

Family

ID=

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157963A (en) * 2003-11-28 2005-06-16 Sumitomo Forestry Co Ltd Room layout retrieval system
JP2007164771A (en) * 2005-11-15 2007-06-28 Toshiba Corp Building layout design support system, method and program
CN101349115A (en) * 2008-09-08 2009-01-21 北京罗顿沙河建设发展有限公司 Residential building of odd and even layers stagger building space obligating amplification room layer height resource
US20120182258A1 (en) * 2011-01-18 2012-07-19 Masaki Kubo Display device
WO2014145592A1 (en) * 2013-03-15 2014-09-18 Aditazz, Inc. System and method for realizing a building system that involves computer based matching of form to function
KR101815034B1 (en) * 2016-07-22 2018-01-08 서울시립대학교 산학협력단 Apparatus for establishing BIM objects to estimate construction cost based on architectural drawing, a method thereof, and a computer recordable medium storing the method
CN111046475A (en) * 2019-12-24 2020-04-21 广州市城市建设工程监理公司 Method and device for calculating building area and storage medium
WO2020134528A1 (en) * 2018-12-29 2020-07-02 深圳云天励飞技术有限公司 Target detection method and related product
US20210165997A1 (en) * 2018-08-07 2021-06-03 Beijing Sensetime Technology Development Co., Ltd. Object three-dimensional detection method and apparatus, intelligent driving control method and apparatus, medium and device

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2005157963A (en) * 2003-11-28 2005-06-16 Sumitomo Forestry Co Ltd Room layout retrieval system
JP2007164771A (en) * 2005-11-15 2007-06-28 Toshiba Corp Building layout design support system, method and program
CN101349115A (en) * 2008-09-08 2009-01-21 北京罗顿沙河建设发展有限公司 Residential building of odd and even layers stagger building space obligating amplification room layer height resource
US20120182258A1 (en) * 2011-01-18 2012-07-19 Masaki Kubo Display device
WO2014145592A1 (en) * 2013-03-15 2014-09-18 Aditazz, Inc. System and method for realizing a building system that involves computer based matching of form to function
KR101815034B1 (en) * 2016-07-22 2018-01-08 서울시립대학교 산학협력단 Apparatus for establishing BIM objects to estimate construction cost based on architectural drawing, a method thereof, and a computer recordable medium storing the method
US20210165997A1 (en) * 2018-08-07 2021-06-03 Beijing Sensetime Technology Development Co., Ltd. Object three-dimensional detection method and apparatus, intelligent driving control method and apparatus, medium and device
WO2020134528A1 (en) * 2018-12-29 2020-07-02 深圳云天励飞技术有限公司 Target detection method and related product
CN111046475A (en) * 2019-12-24 2020-04-21 广州市城市建设工程监理公司 Method and device for calculating building area and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
高磊;凌晨;: "关于建筑物等效截收面积计算的若干问题探讨", 气象科技, no. 06 *

Similar Documents

Publication Publication Date Title
US9996982B2 (en) Information processing device, authoring method, and program
JP5776201B2 (en) Information processing apparatus, information sharing method, program, and terminal apparatus
CN107358401B (en) Intelligent management system/method for building project, readable storage medium and terminal
JP5282079B2 (en) Multi-display system, terminal, method and program
EP2237230B1 (en) Graph display control apparatus and graph display control method
US10318152B2 (en) Modifying key size on a touch screen based on fingertip location
US9639212B2 (en) Information processor, processing method, and projection system
CN104081307A (en) Image processing apparatus, image processing method, and program
JP2015018585A (en) Portable information terminal, processing method, and program
CN113077548B (en) Collision detection method, device, equipment and storage medium for object
US20230015892A1 (en) Computer System and Methods for Optimizing Distance Calculation
CN103558957A (en) Method and device for screen operation of mobile terminal
CN109582269B (en) Physical splicing screen display method and device and terminal equipment
EP2998833B1 (en) Electronic device and method of controlling display of screen thereof
CN113449373A (en) Overlap detection method and device and electronic equipment
CN113449373B (en) Overlap detection method and device and electronic equipment
US8867785B2 (en) Method and apparatus for detecting proximate interface elements
CN112083845B (en) Bubble control processing method and device
CN115496860A (en) Flexible rule model construction method and device, terminal equipment and storage medium
CN107368247B (en) Method/system for managing field project, computer readable storage medium and terminal
Oh et al. Efficient 3D design drawing visualization based on mobile augmented reality
AU2018203392B2 (en) Placemat: a ui for 2d/3d composition
CN102479002B (en) Optical touch control system and sensing method thereof
CN112308766A (en) Image data display method and device, electronic equipment and storage medium
CN112287708A (en) Near Field Communication (NFC) analog card switching method, device and equipment

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