Building structure chart equal division point marking method and device
By determining the positions of beams and support in the building structure diagram, measuring the net span length and calculating the position of aliquot points, and determining the vertical line vector for marking by using vector cross product, the problem of time-consuming and labor-consuming for manual drawing of aliquot points marks is solved. , realizes efficient and accurate aliquot marking.
Patent Information
- Application Number
- CN202411030147.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-30
- Publication Date
- 2024-12-03
AI Technical Summary
In the prior art, manual drawing of building structure drawings is required to mark aliquots, which is time-consuming and labor-intensive and prone to errors, and lacks efficient and accurate methods.
By obtaining the building structure diagram, determining the positions of beams and support, measuring the net span length, calculating the positions of aliquots, and determining the perpendicular vector for marking using the cross product of the direction vector and the standard vector.
It improves the efficiency and accuracy of aliquot marking of building structural drawings, reduces manual errors, and ensures construction accuracy and design understanding.
Smart Images

Figure CN119066740A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of building technology, and in particular to a method and device for marking equally divided points in a building structure drawing. Background Art
[0002] In architectural structural drawings, equal-division point markings are usually used to indicate that a certain part or a certain distance is evenly divided into several parts. These markings are very important for ensuring construction accuracy, understanding design intent, and performing subsequent calculations. Currently, when drawing architectural structural drawings, people need to manually mark equal-division points, which is time-consuming, labor-intensive, and prone to errors. Summary of the invention
[0003] In view of this, the embodiments of the present application provide a method, device, electronic device and computer-readable storage medium for marking equally divided points in a building structure drawing, so as to solve the problem in the prior art of requiring manual drawing of equally divided points marking in a building structure drawing.
[0004] According to a first aspect of an embodiment of the present application, a method for marking equally divided points in a building structural drawing is provided, comprising: obtaining a structural drawing of a target building, wherein the structural drawing includes a plurality of beams and two supports supporting each beam; determining the two supports of each beam by finding entities intersecting with each beam on the structural drawing, wherein each beam and each support in the structural drawing is an entity; measuring the distance from an arbitrary position of each beam to the two supports of the beam, and taking the sum of the two measured distances of each beam as the clear span of each beam; calculating the positions of a plurality of equally divided points on each beam according to a predetermined number of division sections and the clear span of each beam; calculating the cross product of the direction vector of each beam and the standard vector at the position of each equally divided point on each beam to obtain the perpendicular vector at each equally divided point on the beam; and marking each equally divided point on each beam on the perpendicular vector at each equally divided point on each beam.
[0005] According to a second aspect of an embodiment of the present application, a device for marking equally divided points in a building structural drawing is provided, comprising: an acquisition module configured to acquire a structural drawing of a target building, wherein the structural drawing comprises a plurality of beams and two supports supporting each beam; a determination module configured to determine the two supports of each beam by finding entities intersecting with each beam on the structural drawing, wherein each beam and each support in the structural drawing is an entity; and a measurement module configured to measure the distance from any position of each beam to the two supports of the beam. The sum of the two distances measured for each beam is taken as the clear span length of each beam; the first calculation module is configured to calculate the positions of multiple equally divided points on each beam according to the pre-set number of divided sections and the clear span length of each beam; the second calculation module is configured to calculate the cross product of the direction vector of the beam and the standard vector at the position of each equally divided point on each beam, and obtain the perpendicular vector at each equally divided point on the beam; the marking module is configured to mark each equally divided point on each beam on the perpendicular vector at each equally divided point on each beam.
[0006] According to a third aspect of an embodiment of the present application, an electronic device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the above method when executing the computer program.
[0007] According to a fourth aspect of an embodiment of the present application, a computer-readable storage medium is provided, which stores a computer program, and when the computer program is executed by a processor, the steps of the above method are implemented.
[0008] Compared with the prior art, the embodiments of the present application have the following beneficial effects: obtaining a structural diagram of a target building, wherein the structural diagram includes multiple beams and two supports supporting each beam; determining the two supports of each beam by finding entities intersecting with each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity; measuring the distance from the position to the two supports of each beam from any position of each beam, and taking the sum of the two distances measured for each beam as the clear span length of each beam; calculating the positions of multiple equally divided points on each beam according to the number of division sections set in advance and the clear span length of each beam; calculating the cross product of the direction vector of the beam and the standard vector at the position of each equally divided point on each beam, and obtaining the vertical vector at each equally divided point of the beam; marking each equally divided point on each beam on the vertical vector at each equally divided point on each beam. The above technical means can solve the problem of manually drawing the marking of the equally divided points of the building structure diagram in the prior art, thereby improving efficiency and accuracy. BRIEF DESCRIPTION OF THE DRAWINGS
[0009] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.
[0010] Figure 1 It is a flow chart of a method for marking equally divided points in a building structure drawing provided in an embodiment of the present application;
[0011] Figure 2 It is a flowchart of a method for traversing and determining supports of each beam on a structural diagram provided by an embodiment of the present application;
[0012] Figure 3 It is a flowchart of a method for calculating the positions of equal division points provided in an embodiment of the present application;
[0013] Figure 4 It is a structural schematic diagram of a device for marking equally divided points in a building structure diagram provided in an embodiment of the present application;
[0014] Figure 5 It is a structural schematic diagram of an electronic device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0015] In the following description, specific details such as specific system structures, technologies, etc. are provided for the purpose of illustration rather than limitation, so as to provide a thorough understanding of the embodiments of the present application. However, it should be clear to those skilled in the art that the present application may also be implemented in other embodiments without these specific details. In other cases, detailed descriptions of well-known systems, devices, circuits, and methods are omitted to prevent unnecessary details from obstructing the description of the present application.
[0016] A method and device for marking equally divided points in a building structure drawing according to an embodiment of the present application will be described in detail below with reference to the accompanying drawings.
[0017] Figure 1 It is a flow chart of a method for marking equally divided points in a building structure drawing provided in an embodiment of the present application. Figure 1 The method for marking equally divided points in a building structure drawing can be executed by a computer or a server, or by software on the computer or the server. Figure 1 As shown, the method for marking equally divided points in the building structure drawing includes:
[0018] S101, obtaining a structural diagram of a target building, wherein the structural diagram includes a plurality of beams and two supports for supporting each beam;
[0019] S102, determining two supports of each beam by searching for entities intersecting each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity;
[0020] S103, starting from any position of each beam, measuring the distance from the position to two supports of the beam, and taking the sum of the two distances measured for each beam as the clear span length of each beam;
[0021] S104, calculating the positions of a plurality of equally divided points on each beam according to the number of divided sections set in advance and the clear span length of each beam;
[0022] S105, calculating the cross product of the direction vector of the beam and the standard vector at the position of each equally divided point on each beam, to obtain the perpendicular vector at each equally divided point of the beam;
[0023] S106, marking each equally divided point on each beam on the perpendicular vector at each equally divided point on each beam.
[0024] The equal-division point marks on the structural diagram of a building are usually used to indicate that each entity is evenly divided into several parts. These marks are very important for ensuring construction accuracy, understanding design intent, and performing subsequent calculations. The entity of the structural diagram generally has multiple beams and two supports supporting each beam. Each beam intersects with its support, so the two supports of each beam can be determined on the structural diagram by finding the entity intersecting with each beam. Generally, the distance between the two supports of each beam is the clear span length of each beam. In order to improve the measurement accuracy, the embodiment of the present application is to measure the distance from a certain position of each beam to the two supports of the beam as the clear span length of each beam. To mark the equal-division points on the structural diagram, it is necessary to first determine the number of division sections, that is, how many sections each beam is divided into. According to the number of division sections and the clear span length of each beam, the positions of multiple equal-division points on each beam are calculated. Calculate the cross product of the direction vector and the standard vector of the beam at each equally divided point on each beam, obtain the perpendicular vector at each equally divided point of the beam, and mark the equally divided points along the perpendicular vector. The direction vector of a beam is the vector indicating the direction of the centerline of the beam. The standard vector is a vector perpendicular to the direction vector. The direction vector, standard vector and perpendicular vector are mainly used to indicate the direction and have nothing to do with the length, so they can all be unit vectors. The direction vector, standard vector and perpendicular vector conform to the right-handed coordinate system. For example, in the right-handed coordinate system, the direction vector is the direction of the thumb, the standard vector is the direction of the middle finger, and the calculated perpendicular vector is the direction of the index finger.
[0025] According to the technical solution provided in the embodiment of the present application, a structural diagram of a target building is obtained, wherein the structural diagram includes multiple beams and two supports supporting each beam; the two supports of each beam are determined by finding entities intersecting with each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity; the distance from the position to the two supports of each beam is measured from any position of each beam, and the sum of the two distances measured for each beam is used as the clear span length of each beam; the positions of multiple equally divided points on each beam are calculated according to the number of division sections set in advance and the clear span length of each beam; the cross product of the direction vector of the beam and the standard vector is calculated at the position of each equally divided point on each beam, and the vertical vector at each equally divided point of the beam is obtained; each equally divided point on each beam is marked on the vertical vector at each equally divided point on each beam. The above technical means can solve the problem of manually drawing the marking of the equally divided points of the building structure diagram in the prior art, thereby improving efficiency and accuracy.
[0026] Furthermore, two supports of each beam are determined by searching for entities intersecting with each beam on the structural diagram, including: for each beam: traversing each entity in the structural diagram to determine whether the entity intersects with the beam; if so, using the entity as a support of the beam; and terminating the traversal when two supports of the entity are found.
[0027] Traverse each entity in the structure diagram in turn to determine whether the traversed entity intersects with the beam. If so, determine that the entity is a support of the beam. Because a beam generally has two supports, the traversal ends when the two supports of the entity are found.
[0028] Figure 2 1 is a flow chart of a method for traversing and determining the supports of each beam on a structural diagram provided by an embodiment of the present application. Figure 2 As shown, the method includes:
[0029] S201, execute the first cycle as follows:
[0030] S202, determining whether i is greater than N, wherein the initial value of i is 1, i is the serial number of the beam in the structure diagram, and N is the number of beams in the structure diagram;
[0031] S203, when i is greater than N, the first cycle ends;
[0032] S204, when i is less than or equal to N, execute the second loop as follows:
[0033] S205, determining whether j is equal to 2, wherein the initial value of j is 0;
[0034] S206, when j is less than 2, traverse the entities in the structure diagram, take an entity intersecting with the i-th beam as a support of the i-th beam, and update j with the value of j+1;
[0035] S207, when j is equal to 2, the second loop ends and i is updated with the value of i+1.
[0036] For a beam, execute the second loop to determine the support of the beam. Use j to record the number of supports found for the beam, and j is 0 at the beginning. The first traversal of the entities in the structure diagram finds an entity that intersects with the beam as the first support of the beam, and j is updated to 1. The second traversal of the remaining entities in the structure diagram (those not traversed the first time) finds an entity that intersects with the beam as the second support of the beam, and j is updated to 2. When j is equal to 2, the second loop ends.
[0037] For all beams in the structure diagram, i is used to represent the serial number of the beam in the structure diagram. At the beginning, i is 1, and the second loop is executed to determine the support of the first beam. When the two supports of the first beam are found, the second loop ends, and i is updated by 2. The second loop is executed to determine the support of the second beam. When the two supports of the second beam are found, the second loop ends, and i is updated by 3... until i is N+1, indicating that the supports of the N beams have been found, and the first loop ends.
[0038] Furthermore, starting from any position of each beam, the distance from the position to the two supports of the beam is measured, and the sum of the two distances measured for each beam is used as the clear span length of each beam, including: for each beam: obtaining the coordinate information of the position and the two supports of the beam; calculating the distances from the position to the two supports of the beam respectively based on the coordinate information of the position and the two supports of the beam; calculating the sum of the two distances, and using the sum as the clear span length of the beam.
[0039] For each beam: determine a position at random, and calculate the distance from the position to one of the beam's supports based on the coordinate information of the position and the support. Add the two calculated distances together and use the sum as the clear span length of the beam, which is the length of the portion of the beam between its two supports.
[0040] Furthermore, based on the number of divided sections set in advance and the clear span length of each beam, the positions of multiple equally divided points on each beam are calculated, including: for each beam: dividing the clear span length of the beam by the number of divided sections to obtain the segment length; starting from the intersection of the beam and any one of the supports of the beam, the segment lengths are added in sequence to obtain the positions of each equally divided point on the beam.
[0041] Assuming that the number of segments set in advance is 10, and the length of a beam is 20 meters, the length of the segment is 2 meters. The intersection of the beam and any support of the beam is marked as 0, and the positions of the equal points on the beam are 2 meters, 4 meters, 6 meters... 20 meters, that is, starting from the intersection of the beam and any support of the beam, the first equal point is 2 meters on the beam, and the second equal point is 4 meters...
[0042] Figure 3 FIG. 1 is a flow chart of a method for calculating the positions of equal division points provided in an embodiment of the present application. Figure 3 As shown, the method includes:
[0043] S301: For each beam, execute the following third cycle:
[0044] S302, dividing the clear span length of the beam by the number of divided segments to obtain a segment length;
[0045] S303, determining whether i is greater than M, wherein the initial value of i is 1, i is the serial number of the equally divided points on the beam, and M is the number of divided sections;
[0046] S304, when i is less than or equal to M, the position of the i-1th equally divided point plus the length of the segment is used as the position of the i-th equally divided point, and i is updated with the value of i+1, wherein when i is equal to 1, the position of the 0th equally divided point is the intersection of the beam and any one of its supports;
[0047] S305, when i is greater than M, determining whether the position of the Mth equally divided point is the intersection of the beam and another support thereof;
[0048] S306, if yes, then determine that the position calculation of each equally divided point on the beam is completed, and exit the third loop;
[0049] S307: If not, set i to 1.
[0050] For a beam, execute the third loop to calculate the positions of multiple equally divided points on the beam. Use i to represent the serial number of the equally divided points on the beam, and i starts at 1. The position of the 0th equally divided point is the intersection of the beam and any one of its supports. The position of the intersection of the beam and the support plus the length of the fragment is used as the position of the first equally divided point, and i is updated to 2. The position of the first equally divided point plus the length of the fragment is used as the position of the second equally divided point, and i is updated to 3... until i is greater than M, indicating that all the equally divided points of the beam have been determined. Then determine whether the position of the Mth equally divided point is the intersection of the beam and another support. If so, determine that the positions of the equally divided points on the beam are calculated correctly, and exit the third loop. If not, it means that the positions of the equally divided points on the beam are calculated incorrectly, set i to 1, and re-execute the third loop to calculate the positions of multiple equally divided points on the beam.
[0051] Furthermore, before calculating the positions of multiple equally divided points on each beam based on the pre-set number of division sections and the clear span length of each beam, the method also includes: screening each beam according to a preset threshold and the clear span length of each beam; discarding each beam with a clear span length less than or equal to the preset threshold, and only calculating the positions of multiple equally divided points on each beam with a clear span length greater than the preset threshold.
[0052] In actual scenarios, some beams with shorter lengths do not need to be marked with equal division points, so in order to improve efficiency, each beam is screened according to the preset threshold.
[0053] All the above optional technical solutions can be arbitrarily combined to form optional embodiments of the present application, which will not be described one by one here.
[0054] The following is an embodiment of the device of the present application, which can be used to execute the embodiment of the method of the present application. For details not disclosed in the embodiment of the device of the present application, please refer to the embodiment of the method of the present application.
[0055] Figure 3 Schematic diagram of a device for marking equally divided points in a building structure diagram provided in an embodiment of the present application. Figure 3 As shown, the building structure drawing equally divided point marking device comprises:
[0056] The acquisition module 301 is configured to acquire a structural diagram of a target building, wherein the structural diagram includes a plurality of beams and two supports supporting each beam;
[0057] A determination module 302 is configured to determine two supports of each beam by searching for entities intersecting each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity;
[0058] The measuring module 303 is configured to measure the distance from any position of each beam to two supports of the beam, and take the sum of the two distances measured for each beam as the clear span length of each beam;
[0059] The first calculation module 304 is configured to calculate the positions of a plurality of equally divided points on each beam according to the number of divided sections set in advance and the clear span length of each beam;
[0060] The second calculation module 305 is configured to calculate the cross product of the direction vector of the beam and the standard vector at each equally divided point on each beam to obtain the vertical vector at each equally divided point of the beam;
[0061] The marking module 306 is configured to mark each equally divided point on each beam on the perpendicular vector on each equally divided point on each beam.
[0062] The equal-division point marks on the structural diagram of a building are usually used to indicate that each entity is evenly divided into several parts. These marks are very important for ensuring construction accuracy, understanding design intent, and performing subsequent calculations. The entity of the structural diagram generally has multiple beams and two supports supporting each beam. Each beam intersects with its support, so the two supports of each beam can be determined on the structural diagram by finding the entity intersecting with each beam. Generally, the distance between the two supports of each beam is the clear span length of each beam. In order to improve the measurement accuracy, the embodiment of the present application is to measure the distance from a certain position of each beam to the two supports of the beam as the clear span length of each beam. To mark the equal-division points on the structural diagram, it is necessary to first determine the number of division sections, that is, how many sections each beam is divided into. According to the number of division sections and the clear span length of each beam, the positions of multiple equal-division points on each beam are calculated. Calculate the cross product of the direction vector and the standard vector of the beam at each equally divided point on each beam, obtain the perpendicular vector at each equally divided point of the beam, and mark the equally divided points along the perpendicular vector. The direction vector of a beam is the vector indicating the direction of the centerline of the beam. The standard vector is a vector perpendicular to the direction vector. The direction vector, standard vector and perpendicular vector are mainly used to indicate the direction and have nothing to do with the length, so they can all be unit vectors. The direction vector, standard vector and perpendicular vector conform to the right-handed coordinate system. For example, in the right-handed coordinate system, the direction vector is the direction of the thumb, the standard vector is the direction of the middle finger, and the calculated perpendicular vector is the direction of the index finger.
[0063] According to the technical solution provided in the embodiment of the present application, a structural diagram of a target building is obtained, wherein the structural diagram includes multiple beams and two supports supporting each beam; the two supports of each beam are determined by finding entities intersecting with each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity; the distance from the position to the two supports of each beam is measured from any position of each beam, and the sum of the two distances measured for each beam is used as the clear span length of each beam; the positions of multiple equally divided points on each beam are calculated according to the number of division sections set in advance and the clear span length of each beam; the cross product of the direction vector of the beam and the standard vector is calculated at the position of each equally divided point on each beam, and the vertical vector at each equally divided point of the beam is obtained; each equally divided point on each beam is marked on the vertical vector at each equally divided point on each beam. The above technical means can solve the problem of manually drawing the marking of the equally divided points of the building structure diagram in the prior art, thereby improving efficiency and accuracy.
[0064] In some embodiments, the determination module 302 is further configured to: for each beam: traverse each entity in the structural diagram to determine whether the entity intersects with the beam; if so, use the entity as a support of the beam; and terminate the traversal when two supports of the entity are found.
[0065] Traverse each entity in the structure diagram in turn to determine whether the traversed entity intersects with the beam. If so, determine that the entity is a support of the beam. Because a beam generally has two supports, the traversal ends when the two supports of the entity are found.
[0066] In some embodiments, the determination module 302 is also configured to execute the following first loop: determine whether i is greater than N, where the initial value of i is 1, i is the serial number of the beam in the structural diagram, and N is the number of beams in the structural diagram; when i is greater than N, end the first loop; when i is less than or equal to N, execute the following second loop: determine whether j is equal to 2, where the initial value of j is 0; when j is less than 2, traverse the entities in the structural diagram, and use an entity that intersects with the i-th beam as a support of the i-th beam, and update j with the value of j+1; when j is equal to 2, end the second loop and update i with the value of i+1.
[0067] For a beam, execute the second loop to determine the support of the beam. Use j to record the number of supports found for the beam, and j is 0 at the beginning. The first traversal of the entities in the structure diagram finds an entity that intersects with the beam as the first support of the beam, and j is updated to 1. The second traversal of the remaining entities in the structure diagram (those not traversed the first time) finds an entity that intersects with the beam as the second support of the beam, and j is updated to 2. When j is equal to 2, the second loop ends.
[0068] For all beams in the structure diagram, i is used to represent the serial number of the beam in the structure diagram. At the beginning, i is 1, and the second loop is executed to determine the support of the first beam. When the two supports of the first beam are found, the second loop ends, and i is updated by 2. The second loop is executed to determine the support of the second beam. When the two supports of the second beam are found, the second loop ends, and i is updated by 3... until i is N+1, indicating that the supports of the N beams have been found, and the first loop ends.
[0069] In some embodiments, the measurement module 303 is also configured to, for each beam: obtain the coordinate information of the position and the two supports of the beam; calculate the distance from the position to the two supports of the beam respectively based on the coordinate information of the position and the two supports of the beam; calculate the sum of the two distances, and use the sum as the clear span length of the beam.
[0070] For each beam: determine a position at random, and calculate the distance from the position to one of the beam's supports based on the coordinate information of the position and the support. Add the two calculated distances together and use the sum as the clear span length of the beam, which is the length of the portion of the beam between its two supports.
[0071] In some embodiments, the first calculation module 304 is also configured to: for each beam: divide the clear span length of the beam by the number of divided segments to obtain the segment length; and add the segment length in sequence starting from the intersection of the beam and any one of the supports of the beam to obtain the position of each equally divided point on the beam.
[0072] Assuming that the number of segments set in advance is 10, and the length of a beam is 20 meters, the length of the segment is 2 meters. The intersection of the beam and any support of the beam is marked as 0, and the positions of the equal points on the beam are 2 meters, 4 meters, 6 meters... 20 meters, that is, starting from the intersection of the beam and any support of the beam, the first equal point is 2 meters on the beam, and the second equal point is 4 meters...
[0073] In some embodiments, the first calculation module 304 is also configured to execute the following third loop for each beam: divide the clear span of the beam by the number of divided segments to obtain the segment length; determine whether i is greater than M, where the initial value of i is 1, i is the serial number of the equally divided points on the beam, and M is the number of divided segments; when i is less than or equal to M, add the position of the i-1th equally divided point to the segment length as the position of the i-th equally divided point, and update i with the value of i+1, where when i is equal to 1, the position of the 0th equally divided point is the intersection of the beam and any one of its supports; when i is greater than M, determine whether the position of the Mth equally divided point is the intersection of the beam and another of its supports; if so, determine that the position calculation of each equally divided point on the beam is completed and exit the third loop; if not, set i to 1.
[0074] For a beam, execute the third loop to calculate the positions of multiple equally divided points on the beam. Use i to represent the serial number of the equally divided points on the beam, and i starts at 1. The position of the 0th equally divided point is the intersection of the beam and any one of its supports. The position of the intersection of the beam and the support plus the length of the fragment is used as the position of the first equally divided point, and i is updated to 2. The position of the first equally divided point plus the length of the fragment is used as the position of the second equally divided point, and i is updated to 3... until i is greater than M, indicating that all the equally divided points of the beam have been determined. Then determine whether the position of the Mth equally divided point is the intersection of the beam and another support. If so, determine that the positions of the equally divided points on the beam are calculated correctly, and exit the third loop. If not, it means that the positions of the equally divided points on the beam are calculated incorrectly, set i to 1, and re-execute the third loop to calculate the positions of multiple equally divided points on the beam.
[0075] In some embodiments, the first calculation module 304 is further configured to screen each beam according to a preset threshold and the clear span length of each beam; discard each beam whose clear span length is less than or equal to the preset threshold, and only calculate the positions of multiple equally divided points on each beam whose clear span length is greater than the preset threshold.
[0076] In actual scenarios, some beams with shorter lengths do not need to be marked with equal division points, so in order to improve efficiency, each beam is screened according to the preset threshold.
[0077] It should be understood that the size of the serial numbers of the steps in the above embodiments does not mean the order of execution. The execution order of each process should be determined by its function and internal logic, and should not constitute any limitation on the implementation process of the embodiments of the present application.
[0078] Figure 4 Schematic diagram of an electronic device 4 provided in an embodiment of the present application. Figure 4 As shown, the electronic device 4 of this embodiment includes: a processor 401, a memory 402, and a computer program 403 stored in the memory 402 and executable on the processor 401. When the processor 401 executes the computer program 403, the steps in the above-mentioned method embodiments are implemented. Alternatively, when the processor 401 executes the computer program 403, the functions of the modules / units in the above-mentioned device embodiments are implemented.
[0079] The electronic device 4 may be a desktop computer, a notebook, a PDA, a cloud server, or other electronic device. The electronic device 4 may include, but is not limited to, a processor 401 and a memory 402. Those skilled in the art will appreciate that Figure 4 The electronic device 4 is merely an example and does not limit the electronic device 4 , and may include more or less components than those shown in the figure, or different components.
[0080] The processor 401 may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
[0081] The memory 402 may be an internal storage unit of the electronic device 4, for example, a hard disk or memory of the electronic device 4. The memory 402 may also be an external storage device of the electronic device 4, for example, a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the electronic device 4. The memory 402 may also include both an internal storage unit and an external storage device of the electronic device 4. The memory 402 is used to store computer programs and other programs and data required by the electronic device.
[0082] Those skilled in the art can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional units and modules is used as an example. In actual applications, the above-mentioned functions can be assigned to different functional units and modules as needed, that is, the internal structure of the device can be divided into different functional units or modules to complete all or part of the functions described above. The functional units and modules in the embodiments can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The above-mentioned integrated unit can be implemented in the form of hardware or in the form of software functional units.
[0083] If the integrated module / unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above-mentioned embodiment method, and can also be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium, and the computer program can implement the steps of the above-mentioned various method embodiments when executed by the processor. The computer program may include computer program code, and the computer program code may be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may include: any entity or device capable of carrying computer program code, recording medium, U disk, mobile hard disk, magnetic disk, optical disk, computer memory, read-only memory (ROM), random access memory (RAM), electric carrier signal, telecommunication signal and software distribution medium. It should be noted that the content contained in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electric carrier signals and telecommunication signals.
[0084] The above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. These modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A method for marking equally divided points in a building structure drawing, characterized in that: include: Obtaining a structural diagram of a target building, wherein the structural diagram includes a plurality of beams and two supports for supporting each beam; Determine two supports of each beam by searching for entities intersecting each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity; Starting from any position of each beam, measure the distance from that position to the two supports of the beam, and take the sum of the two distances measured for each beam as the clear span length of each beam; According to the number of divided sections set in advance and the clear span length of each beam, the positions of multiple equally divided points on each beam are calculated; The cross product of the direction vector of the beam and the standard vector is calculated at each equally divided point on each beam to obtain the perpendicular vector at each equally divided point of the beam; Mark each equally divided point on each beam on the perpendicular vector to each equally divided point on each beam.
2. The method according to claim 1, characterized in that The two supports of each beam are determined by finding entities intersecting each beam on the structural diagram, including: For each beam: Traversing each entity in the structural diagram to determine whether the entity intersects with the beam; If they intersect, the entity is regarded as a support of the beam; When two supports of the entity are found, the traversal ends.
3. The method according to claim 1, characterized in that The two supports of each beam are determined by finding entities intersecting each beam on the structural diagram, including: Execute the first loop as follows: Determine whether i is greater than N, wherein the initial value of i is 1, i is the sequence number of the beam in the structure diagram, and N is the number of beams in the structure diagram; When i is greater than N, the first cycle ends; When i is less than or equal to N, execute the second loop as follows: Determine whether j is equal to 2, where the initial value of j is 0; When j is equal to 2, the second loop ends and i is updated with the value of i+1; When j is less than 2, the entities in the structural diagram are traversed, an entity intersecting with the i-th beam is used as a support of the i-th beam, and j is updated with the value of j+1.
4. The method according to claim 3, characterized in that Measure the distance from any position of each beam to the two supports of the beam, and take the sum of the two distances measured for each beam as the clear span length of each beam, including: For each beam: Obtain the coordinate information of the position and the two supports of the beam; Calculate the distances from the position to the two supports of the beam according to the coordinate information of the position and the two supports of the beam; Calculate the sum of the two distances and use the sum as the clear span length of the beam.
5. The method according to claim 1, characterized in that According to the pre-set number of segments and the clear span length of each beam, the positions of multiple equally divided points on each beam are calculated, including: For each beam: The clear span length of the beam is divided by the number of divided segments to obtain the segment length; Starting from the intersection of the beam and any one of the supports of the beam, the segment lengths are sequentially added to obtain the positions of the equally divided points on the beam.
6. The method according to claim 1, characterized in that According to the pre-set number of segments and the clear span length of each beam, the positions of multiple equally divided points on each beam are calculated, including: For each beam, perform a third loop as follows: The clear span length of the beam is divided by the number of divided segments to obtain the segment length; Determine whether i is greater than M, where the initial value of i is 1, i is the serial number of the equally divided points on the beam, and M is the number of divided sections; When i is less than or equal to M, the position of the i-1th equally divided point plus the segment length is used as the position of the i-th equally divided point, and i is updated with the value of i+1, wherein when i is equal to 1, the position of the 0th equally divided point is the intersection of the beam and any one of its supports; When i is greater than M, determine whether the position of the Mth equally divided point is the intersection of the beam and its other support; If yes, it is determined that the position calculation of each equally divided point on the beam is completed, and the third loop is exited; If not, set i to 1.
7. The method according to claim 1, characterized in that Before calculating the positions of a plurality of equally divided points on each beam according to the pre-set number of divided sections and the clear span length of each beam, the method further includes: Screening each beam according to a preset threshold and the clear span length of each beam; Each beam whose clear span length is less than or equal to the preset threshold is discarded, and only the positions of multiple equally divided points on each beam whose clear span length is greater than the preset threshold are calculated.
8. A device for marking equally divided points in a building structure drawing, characterized in that: include: An acquisition module is configured to acquire a structural diagram of a target building, wherein the structural diagram includes a plurality of beams and two supports supporting each beam; A determination module is configured to determine two supports of each beam by searching for entities intersecting with each beam on the structural diagram, wherein each beam and each support in the structural diagram is an entity; The measuring module is configured to measure the distance from any position of each beam to two supports of the beam, and take the sum of the two distances measured for each beam as the clear span length of each beam; The first calculation module is configured to calculate the positions of a plurality of equally divided points on each beam according to the number of divided sections set in advance and the clear span length of each beam; A second calculation module is configured to calculate the cross product of the direction vector of the beam and the standard vector at the position of each equally divided point on each beam to obtain the vertical vector at each equally divided point of the beam; The marking module is configured to mark each equally divided point on each beam on the perpendicular vector on each equally divided point on each beam.
9. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 7 are implemented.
10. A computer-readable storage medium storing a computer program, characterized in that: When the computer program is executed by a processor, the steps of the method according to any one of claims 1 to 7 are implemented.
