A method, device and computer-readable storage medium for quickly generating two-dimensional pixels based on a three-dimensional steel bar model
By abstracting the three-dimensional steel bars into the steel bar axis and combining the blanking algorithm and offset processing of concrete profiles, the problem of time-consuming two-dimensional pixel generation and uncontrollable blanking results in the prior art is solved, and efficient and controllable two-dimensional pixel generation is achieved.
Patent Information
- Application Number
- CN202111293629.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-11-03
- Publication Date
- 2025-04-15
- Estimated Expiration
- 2041-11-03
AI Technical Summary
When existing construction engineering auxiliary design software processes a large amount of steel bar data, the blanking operation generated by two-dimensional pixels takes a long time, the graph output efficiency is low, and the blanking results are uncontrollable, making it easy to have multiple lines and missing lines.
Abstract the three-dimensional tubular steel bars as the steel bar axis and identify the diameter of the steel bars. Get the intersection point with the concrete outline along the steel bar axis and identify the normal vector of the concrete surface. The steel bars are blanked through the concrete outline, and the intersection points and normal vectors are updated. Project the visible steel bar axis to the drawing plane, simplify discrete points, offset the two-dimensional steel bar axis through the diameter and normal vector of the steel bar to generate a two-line two-dimensional steel bar axis.
The speed of two-dimensional pixel generation is significantly improved, the blanking process becomes autonomous and controllable, the degree of discreteness of blanking lines is reduced, and the editability of the drawing is improved.
Smart Images

Figure CN114037809B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of the present disclosure relate to computer-aided design in construction engineering, and more specifically, to methods, devices, equipment, media and program products for rapidly generating two-dimensional pixels based on three-dimensional steel bar models. Background Art
[0002] At present, most construction engineering auxiliary design software uses a third-party commercial geometric kernel universal hidden line algorithm to process steel and concrete data, calculate the occlusion relationship between steel and concrete, and use the final output hidden line to generate two-dimensional pixels. However, when the amount of steel data is large, the hidden line calculation of the conventional two-dimensional pixel generation method is time-consuming and the output efficiency is low. In addition, the hidden line result of the conventional two-dimensional pixel generation method is uncontrollable, the hidden line is relatively discrete, and there will be problems such as multiple lines and missing lines. Among them, due to the high degree of discreteness of the hidden line, it is not conducive to picking and editing. Summary of the invention
[0003] Embodiments of the present disclosure provide a method, apparatus, device, medium and program product for rapidly generating two-dimensional pixels based on a three-dimensional steel bar model.
[0004] In the first aspect of the present disclosure, a method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model is provided. The method includes: abstracting a three-dimensional tubular steel bar into a steel bar axis and identifying the diameter of the steel bar; obtaining the intersection of the steel bar axis and the concrete contour along the steel bar axis, and identifying the normal vector of the concrete surface at the intersection of the steel bar and the concrete; using the concrete contour to hide the steel bar along the projection direction to obtain the visible steel bar axis, and updating the intersection of the steel bar axis and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete; projecting the visible steel bar axis onto the drawing plane while simplifying discrete points to obtain the two-dimensional steel bar axis; and offsetting the two-dimensional steel bar axis by the diameter of the steel bar and the updated normal vector to obtain a double-line two-dimensional steel bar axis.
[0005] In the second aspect of the present disclosure, a device for quickly generating two-dimensional pixels is provided. The device includes: an abstraction module configured to abstract three-dimensional tubular steel bars into steel bar axes; an identification module configured to identify the diameter of the steel bars; an acquisition module configured to acquire the intersection of the steel bar axes and the concrete contour along the steel bar axes, wherein the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified by the identification module; a hidden module configured to hide the steel bars using the concrete contour along the projection direction to acquire the visible steel bar axes, and update the intersection of the steel bar axes and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete; a projection module configured to project the visible steel bar axes onto the drawing plane while simplifying discrete points to acquire the two-dimensional steel bar axes; and an offset module configured to offset the two-dimensional steel bar axes by the diameter of the steel bar and the updated normal vector to acquire the two-line two-dimensional steel bar axes.
[0006] In a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.
[0007] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0008] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0009] This Summary is provided to introduce a selection of concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to limit the scope of the claimed subject matter. BRIEF DESCRIPTION OF THE DRAWINGS
[0010] The above and other objects, features and advantages of the present disclosure will become more clearly understood by describing the embodiments of the present disclosure in more detail in conjunction with the accompanying drawings, wherein the same or similar figure marks in the embodiments of the present disclosure represent the same or similar components.
[0011] In the attached picture:
[0012] Figure 1 is a schematic diagram showing a three-dimensional steel bar model illustrating geometric data about steel bars and concrete;
[0013] Figure 2 is a side view including the axis of the steel bar according to an embodiment of the present disclosure;
[0014] Figure 3 is a front view including the intersection of the steel bar axis and the concrete profile according to an embodiment of the present disclosure;
[0015] Figure 4 is a right side view showing the keyway of the concrete;
[0016] Figure 5 showing a front view including an updated intersection of a reinforcement axis and a concrete profile according to an embodiment of the present disclosure;
[0017] Figure 6 is a front view showing double-line two-dimensional reinforcement axes of offset bottom reinforcement;
[0018] Figure 7 A reinforcement diagram illustrating a two-dimensional pixel according to an embodiment of the present disclosure is shown;
[0019] Figure 8 A top view of a steel bar with a bent end according to an embodiment of the present disclosure is shown;
[0020] Fig. 9 is a flow chart showing a method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model according to the present disclosure;
[0021] Fig.10 A block diagram of an apparatus 1000 for rapidly generating two-dimensional pixels according to an embodiment of the present disclosure is shown; and
[0022] Fig.11 A block diagram of a computing system is shown in which embodiments of the present disclosure may be implemented. DETAILED DESCRIPTION
[0023] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although some embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments described herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.
[0024] The term "including" and its variations used in this document represent open inclusion, that is, "including but not limited to". Unless otherwise stated, the term "or" should be understood as "and / or", the term "based on" should be understood as "based at least in part on", and the term "one embodiment" should be understood as "at least one embodiment". The term "another embodiment" should be understood as "at least one additional embodiment". The terms "first", "second", etc. may refer to different or the same objects. Other explicit and implicit definitions may also be included below.
[0025] At present, most construction engineering auxiliary design software uses a third-party commercial geometric kernel universal hidden line algorithm to process steel and concrete data, calculate the occlusion relationship between steel and concrete, and use the final output hidden line to generate two-dimensional pixels. However, when the amount of steel data is large, the hidden line calculation of the conventional two-dimensional pixel generation method is time-consuming and the output efficiency is low. In addition, the hidden line result of the conventional two-dimensional pixel generation method is uncontrollable, the hidden line is relatively discrete, and there will be problems such as multiple lines and missing lines. Among them, due to the high degree of discreteness of the hidden line, it is not conducive to picking and editing.
[0026] In the embodiment of the present disclosure, the three-dimensional tubular steel bar is abstracted as the steel bar axis, and the diameter of the steel bar is marked; along the steel bar axis, the intersection of the steel bar axis and the concrete contour is obtained, and the normal vector of the concrete surface at the intersection of the steel bar and the concrete is marked; along the projection direction, the concrete contour is used to hide the steel bar to obtain the visible steel bar axis, and the intersection of the steel bar axis and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete are updated; the visible steel bar axis is projected onto the drawing plane and the discrete points are simplified to obtain the two-dimensional steel bar axis; and the two-dimensional steel bar axis is offset by the diameter of the steel bar and the updated normal vector to obtain the two-line two-dimensional steel bar axis. The three-dimensional tubular set data is abstracted as the steel bar axis, which simplifies the geometric data and the hidden calculation, so that the speed can be significantly improved, which is twice as fast as the prior art. According to the method for quickly generating two-dimensional pixels based on the three-dimensional steel bar model of the embodiment of the present disclosure, the hidden process can be made autonomous and controllable, and the degree of hidden line discreteness is significantly reduced, which is convenient for picking and editing. Therefore, the working principle and mechanism of the present disclosure are significantly different from any known method.
[0027] Figure 1 is a schematic diagram showing a three-dimensional reinforcement model illustrating geometric data on reinforcement and concrete. Figure 1 The schematic diagram of FIG. 1 illustrates a three-dimensional tubular steel bar 110 and a concrete profile 101. Figure 1 As shown in , examples of the reinforcement include waist reinforcement 102 , stirrups 103 , bottom reinforcement 104 and tension reinforcement 105 .
[0028] Since the steel bar is a three-dimensional tubular geometric body with a fixed diameter and is wrapped by concrete, simplifying it to the steel bar axis is sufficient to locate the steel bar and determine the occlusion relationship between the steel bar and the concrete. According to the method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model disclosed in the present invention, the three-dimensional tubular steel bar 110 is abstracted into a steel bar axis 210 to convert the geometric data from an entity type to a curve type, thereby achieving the purpose of simplifying the geometric data. In the abstraction process, the diameter of the steel bar is identified, and the discrete points and curve information of the steel bar axis are identified. The curve information of the steel bar axis is used to draw the two-dimensional pixels of the curved part of the steel bar.
[0029] Figure 2 is a side view including a steel bar axis 210 according to an embodiment of the present disclosure, wherein the steel bar axis 210 is for the purpose of simplifying geometric data, and the method for rapidly generating two-dimensional pixels based on a three-dimensional steel bar model according to the present disclosure is Figure 1 The three-dimensional tubular steel bar 110 is abstracted and obtained.
[0030] Figure 3 3 is a front view of the intersection 302 of the steel bar axis 310 and the concrete profile 301 according to an embodiment of the present disclosure. In this example, the axis of the bottom reinforcement 304 is used as an example of the steel bar axis 310 for illustration. It should be understood that the steel bar axis 310 is not limited to the axis of the bottom reinforcement 304, and may also include the axis of waist reinforcement, stirrups and tension reinforcement. Figure 3 As shown in , the steel bar axis 310 is cut by the concrete contour 301. Along the steel bar axis 310, the intersection 302 of the axis of the bottom bar 304 and the concrete contour 301 is obtained. At the same time, the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified. Figure 3 As shown in FIG. 1 , the intersection 302 cuts the axis of the bottom reinforcement 304 into two parts, the part between the two intersections 302 is located inside the concrete contour and the parts from the two intersections 302 to the two ends of the axis of the bottom reinforcement 304 are located outside the concrete contour, i.e., the inside concrete part 304a and the outside concrete part 304b. The end of the concrete includes a keyway 303.
[0031] In the projection direction, due to the existence of structures such as the keyway 303 of the concrete, it is not enough to use only the intersection 302 to obtain the visible steel bar axis, and it is also necessary to use the concrete contour along the projection direction to perform shielding calculation on the steel bar. Figure 4 4 is a right side view showing the keyway 403 of the concrete. Since the keyway 403 is not through, the concrete including the keyway 403 blocks the steel bars in the front view. Figure 4 As shown in Figure 4In the x direction in the figure, the outer contour of the concrete end blocks a part of the outer reinforcement due to the presence of the keyway 303. According to the method for quickly generating two-dimensional pixels based on a three-dimensional reinforcement model disclosed in the present invention, the intersection point of the reinforcement axis and the concrete contour can be updated to obtain a new intersection point of the reinforcement axis and the concrete contour, and the updated intersection point to the end of the reinforcement is the visible reinforcement axis in the front view. According to the method for quickly generating two-dimensional pixels based on a three-dimensional reinforcement model disclosed in the present invention, the normal vector of the concrete surface at the intersection of the reinforcement and the concrete can also be updated.
[0032] As discussed above, more specifically, from a specific projection direction (e.g., the direction of the front view), the concrete surface intersecting the steel bars may not be visible, and thus the steel bar portion outside the concrete (e.g., the concrete outer portion 304b) may be obscured. In this case, the steel bars need to be hidden using the concrete contour along the projection direction.
[0033] Figure 5 FIG. 1 shows a front view including an updated intersection of the steel bar axis and the concrete profile according to an embodiment of the present disclosure. Figure 5 As shown in FIG. 5 , after being hidden, the intersection 502 of the bottom reinforcement 304 and the concrete contour 301 is updated. The updated intersection 502 of the bottom reinforcement 304 and the concrete contour 301 is the steel bar segment at the end of the bottom reinforcement 304, that is, the steel bar segment 504b, which is the visible steel bar axis.
[0034] The 3D tubular steel bar has a width (diameter) when viewed from a certain direction. On the 2D drawing plane, we use double lines to represent the steel bar width. The steel bar data is projected onto the drawing plane to obtain the 2D steel bar axis, and the discrete points are simplified at the same time. For example, only the endpoints with the largest interval are retained for the collinear steel bar points, thereby reducing the amount of data. Then, based on the offset algorithm, the 2D steel bar axis on the drawing plane is offset by using the information about the diameter of the steel bar to obtain the double-line 2D steel bar axis, thereby obtaining the 2D pixel.
[0035] Figure 6 604 is a front view showing a double-line two-dimensional reinforcement axis line of the offset bottom reinforcement 604, and other elements in the figure are omitted for the purpose of illustration and simplicity.
[0036] In addition to being perpendicular to concrete, steel bars and concrete can also be obliquely intersected. According to the method for rapidly generating two-dimensional pixels based on a three-dimensional steel bar model disclosed in the present invention, the angle between the two-dimensional steel bar axis and the concrete surface is calculated based on the normal vector of the concrete surface at the intersection of the steel bar and concrete after updating, and the offset and offset direction are calculated by using the diameter of the steel bar and the angle, and the two-dimensional steel bar axis is offset to obtain a double-line two-dimensional steel bar axis to obtain a two-dimensional pixel.
[0037] Figure 7A reinforcement diagram illustrating two-dimensional pixels according to an embodiment of the present disclosure is shown. Figure 7 The reinforcement diagram illustrates a double-line two-dimensional bottom reinforcement axis 704, a double-line two-dimensional stirrup axis 703, a double-line two-dimensional tension reinforcement axis 705 and a double-line two-dimensional waist reinforcement axis 702.
[0038] For steel bars with elbows, according to the requirements of engineering drawings, the ends of the steel bars with elbows need to be represented as short horizontal lines in the top view, and the bends need to be drawn as round heads in the top view. According to the method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model disclosed in the present invention, the ends of the two-dimensional steel bar axis of the steel bars with elbows are closed as short axis lines, and then round heads are drawn according to curve information.
[0039] Figure 8 The top view of a steel bar with a bent end according to an embodiment of the present disclosure is shown. According to the method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model disclosed in the present disclosure, in the top view, the end of the two-dimensional steel bar axis of the steel bar with a bend is closed as a short axis 806, and the bend is drawn as a round head 807.
[0040] Fig. 9 The flowchart shows a method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model according to the present disclosure.
[0041] At block 901 , a three-dimensional tubular steel bar is abstracted into a steel bar axis, and the diameter of the steel bar is recorded.
[0042] At block 902 , the intersection of the steel bar axis and the concrete contour is obtained along the steel bar axis, and a normal vector of the concrete surface identifying the intersection of the steel bar and the concrete is recorded.
[0043] At block 903 , the steel bars are hidden along the projection direction using the concrete contour to obtain visible steel bar axes, and the intersection points of the steel bar axes and the concrete contour and the normal vectors of the concrete surface at the intersection of the steel bars and the concrete are updated.
[0044] At block 904 , the visible reinforcement axis is projected onto the drawing plane while simplifying the discrete points to obtain a two-dimensional reinforcement axis.
[0045] And, at block 905, the two-dimensional rebar axis is offset by the diameter of the rebar and the updated normal vector to obtain a double-line two-dimensional rebar axis.
[0046] Fig.10 A block diagram of an apparatus 1000 for rapidly generating two-dimensional pixels according to an embodiment of the present disclosure is shown.
[0047] Abstraction module 1001, configured to abstract the three-dimensional tubular steel bar into a steel bar axis;
[0048] An identification module 1002 is configured to identify the diameter of the steel bar;
[0049] The acquisition module 1003 is configured to acquire the intersection point of the steel bar axis and the concrete contour along the steel bar axis, wherein the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified by the identification module;
[0050] The concealment module 1004 is configured to conceal the steel bars using the concrete contour along the projection direction to obtain the visible steel bar axis, and update the intersection point of the steel bar axis and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete;
[0051] A projection module 1005 is configured to project the visible steel bar axis onto the drawing plane while simplifying the discrete points to obtain a two-dimensional steel bar axis; and
[0052] The offset module 1006 is configured to offset the two-dimensional steel bar axis by the diameter of the steel bar and the updated normal vector to obtain a double-line two-dimensional steel bar axis.
[0053] In some embodiments, the reinforcement includes waist reinforcement, stirrups, bottom reinforcement and tension reinforcement.
[0054] In some embodiments, the identification module 1002 is further configured to identify discrete points and curve information of the steel bar axis, where the curve information is used to draw the curve portion of the steel bar.
[0055] In some embodiments, the visible rebar axis is the portion from the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
[0056] In some embodiments, the device 1000 may also include a calculation module, which is configured to calculate the angle between the two-dimensional steel bar axis and the concrete surface based on the updated normal vector, and offset the two-dimensional steel bar axis by using the diameter of the steel bar and the angle to obtain a double-line two-dimensional steel bar axis.
[0057] In some embodiments, the offset module 1006 is further configured to close the ends of the two-dimensional steel bar axis of the steel bar with the bend into a short axis, and then draw a round head according to the curve information.
[0058] Fig.11 Shown is a block diagram of a computing system 1100 in which embodiments of the present disclosure may be implemented. Fig. 9 The method 900 shown in FIG. 1 can be implemented by a computing system 1100 . Fig.11 The computing system 1100 shown is merely an example and should not be construed as limiting the functionality and scope of use of the embodiments described herein.
[0059] like Fig.11As shown, computing system 1100 is in the form of a general purpose computing device. Components of computing system 1100 may include, but are not limited to, one or more processors or processing units 1100, memory 1120, one or more input devices 1130, one or more output devices 1140, storage 1150, and one or more communication units 1140. Processing unit 1100 may be an actual or virtual processor and is capable of performing various processes according to the program stored in memory 1120. In a multi-processing system, multiple processing units execute computer executable instructions to increase processing capabilities.
[0060] The computing system 1100 typically includes a plurality of computer-readable media. Such media may be any available media accessible to the computing system 1100, including but not limited to volatile and non-volatile media, removable and non-removable media. The memory 1120 may be a volatile memory (e.g., registers, caches, random access memory (RAM)), a non-non-volatile memory (e.g., read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory), or some combination thereof. The storage device 1150 may be removable or non-removable and may include a machine-readable medium, such as a flash drive, a disk, or any other medium, which may be capable of storing information and may be accessed within the computing system 1100.
[0061] The computing system 1100 may further include additional removable / non-removable, volatile / non-volatile computer system storage media. Fig.11 As shown in , a disk drive for reading or writing from a removable, non-volatile disk (e.g., a "floppy disk") and an optical drive for reading or writing from a removable, non-volatile optical disk may be provided. In these cases, each drive may be connected to the bus by one or more data media interfaces. Memory 1120 may include at least one program product having (e.g., at least one) set of program modules that are configured to perform the functions of the various embodiments described herein.
[0062] A program / utility tool having one or more execution modules set may be stored, for example, in memory 1120. An execution module may include, but is not limited to, an operating system, one or more application programs, other program modules, and operating data. Each example or specific combination of these examples may include an implementation of a networking environment. An execution module typically performs the functions and / or methods of an embodiment of the subject matter described herein, such as method 900.
[0063] Input unit 1130 can be one or more various input devices. For example, input unit 1130 can include user equipment, such as a mouse, keyboard, tracking ball, etc. Communication unit 1160 implements communication to another computing entity on a communication medium. Additionally, the functions of the components of computing system 1100 can be implemented with a single computing cluster or multiple computing machines, which can communicate through a communication connection. Therefore, computing system 1100 can operate in a networked environment using a logical connection with one or more other servers, a network personal computer (PC), or another general network node. For example, but not limited to, the communication medium includes wired or wireless networking technology.
[0064] The computing system 1100 may also communicate with one or more external devices (not shown) as needed, such as storage devices, display devices, etc., with one or more devices that enable a user to interact with the computing system 1100, or with any device that enables the computing system 1100 to communicate with one or more other computing devices (e.g., a network card, a modem, etc.). Such communications may be performed via an input / output (I / O) interface (not shown).
[0065] The functions described herein may be performed at least in part by one or more hardware logic components. For example, but not limited to, illustrative types of hardware logic components that may be used include field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), etc.
[0066] The program code for implementing the methods of the subject matter described herein can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device, so that the program code, when executed by the processor or controller, causes the functions / operations specified in the flow chart and / or block diagram to be implemented. The program code can be executed entirely on the machine, partially on the machine, partially on the machine as a stand-alone software package and partially on a remote machine, or entirely on a remote machine or server.
[0067] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. A more specific example of a machine-readable storage medium may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
[0068] In addition, although each operation is described in a specific order, this should be understood as requiring such operation to be performed in the specific order shown or in a sequential order, or requiring that all illustrated operations should be performed to obtain the desired result. Under certain circumstances, multitasking and parallel processing may be advantageous. Similarly, although several specific implementation details are included in the above discussion, these should not be interpreted as limiting the scope of the subject matter described herein. Certain features described in the context of a separate implementation can also be implemented in a single implementation in combination. On the contrary, the various features described in the context of a single implementation can also be implemented in multiple implementations individually or in any suitable sub-combination.
[0069] Some example implementations of the present disclosure are listed below.
[0070] In the first aspect of the present disclosure, a method for quickly generating two-dimensional pixels based on a three-dimensional steel bar model is provided. The method includes: abstracting a three-dimensional tubular steel bar into a steel bar axis and identifying the diameter of the steel bar; obtaining the intersection of the steel bar axis and the concrete contour along the steel bar axis, and identifying the normal vector of the concrete surface at the intersection of the steel bar and the concrete; using the concrete contour to hide the steel bar along the projection direction to obtain the visible steel bar axis, and updating the intersection of the steel bar axis and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete; projecting the visible steel bar axis onto the drawing plane while simplifying discrete points to obtain the two-dimensional steel bar axis; and offsetting the two-dimensional steel bar axis by the diameter of the steel bar and the updated normal vector to obtain a double-line two-dimensional steel bar axis.
[0071] In some embodiments, the reinforcement includes waist reinforcement, stirrups, bottom reinforcement and tension reinforcement.
[0072] In some embodiments, the method further comprises: identifying discrete points and curve information of the steel bar axis, wherein the curve information is used to draw the curve portion of the steel bar.
[0073] In some embodiments, the visible rebar axis is the portion from the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
[0074] In some embodiments, the method further includes calculating an angle between the two-dimensional steel bar axis and the concrete surface according to the updated normal vector, and offsetting the two-dimensional steel bar axis by using the diameter of the steel bar and the angle to obtain a double-line two-dimensional steel bar axis.
[0075] In some embodiments, the method further comprises: for a steel bar with a bend, closing the end of a two-dimensional steel bar axis of the steel bar with a bend into a short axis, and then drawing a round head according to the curve information.
[0076] In the second aspect of the present disclosure, a device for quickly generating two-dimensional pixels is provided. The device includes: an abstraction module configured to abstract three-dimensional tubular steel bars into steel bar axes; an identification module configured to identify the diameter of the steel bars; an acquisition module configured to acquire the intersection of the steel bar axes and the concrete contour along the steel bar axes, wherein the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified by the identification module; a hidden module configured to hide the steel bars using the concrete contour along the projection direction to acquire the visible steel bar axes, and update the intersection of the steel bar axes and the concrete contour and the normal vector of the concrete surface at the intersection of the steel bar and the concrete; a projection module configured to project the visible steel bar axes onto the drawing plane while simplifying discrete points to acquire the two-dimensional steel bar axes; and an offset module configured to offset the two-dimensional steel bar axes by the diameter of the steel bar and the updated normal vector to acquire the two-line two-dimensional steel bar axes.
[0077] In some embodiments, the reinforcement includes waist reinforcement, stirrups, bottom reinforcement and tension reinforcement.
[0078] In some embodiments, the identification module is further configured to identify discrete points and curve information of the steel bar axis, where the curve information is used to draw the curve portion of the steel bar.
[0079] In some embodiments, the visible rebar axis is the portion from the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
[0080] In some embodiments, the device may further include a calculation module configured to calculate the angle between the two-dimensional steel bar axis and the concrete surface based on the updated normal vector, and offset the two-dimensional steel bar axis by using the diameter of the steel bar and the angle to obtain a double-line two-dimensional steel bar axis.
[0081] In some embodiments, the offset module is further configured to close the ends of the two-dimensional steel bar axis of the steel bar with the bend into a short axis, and then draw a round head according to the curve information.
[0082] In a third aspect of the present disclosure, an electronic device is provided, comprising: a processor; and a memory storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to the first aspect.
[0083] In a fourth aspect of the present disclosure, a computer-readable storage medium is provided, wherein one or more computer instructions are stored on the computer-readable storage medium, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0084] In a fifth aspect of the present disclosure, a computer program product is provided, wherein the computer program product comprises one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to the first aspect.
[0085] The embodiments of the present disclosure have been described above, and the above description is exemplary, not exhaustive, and is not limited to the disclosed embodiments. Many modifications and changes will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the described embodiments. The choice of terms used herein is intended to best explain the principles of the embodiments, practical applications, or improvements to the technology in the market, or to enable other persons of ordinary skill in the art to understand the embodiments disclosed herein.
Claims
1. A method for rapidly generating two-dimensional pixels based on a three-dimensional steel bar model, comprising: Abstract the three-dimensional tubular steel bar into the steel bar axis and mark the diameter of the steel bar; Acquire the intersection of the axis of the steel bar blocked by the concrete contour and the concrete contour along the steel bar axis, and identify the normal vector of the concrete surface at the intersection of the steel bar and the concrete; Along the projection direction, the steel bar is hidden by updating the intersection point between the axis of the blocked steel bar and the concrete contour, the visible steel bar axis is obtained, and the intersection point and the normal vector are updated; Projecting the steel bar axis including the visible steel bar axis onto the drawing plane while simplifying the discrete points to obtain a two-dimensional steel bar axis; as well as The method of offsetting the two-dimensional steel bar axis by using the diameter and the updated normal vector to obtain a double-line two-dimensional steel bar axis includes: Calculate the angle between the two-dimensional steel bar axis and the concrete surface according to the updated normal vector, and The two-dimensional steel bar axis is offset by using the diameter and the angle to obtain the double-line two-dimensional steel bar axis.
2. The method according to claim 1, wherein: The steel bars include waist bars, stirrups, bottom bars and tension bars.
3. The method according to claim 1, further comprising: Discrete points and curve information of the steel bar axis are identified, and the curve information is used to draw the curve portion of the steel bar.
4. The method according to claim 1, wherein: The visible steel bar axis is the updated portion from the intersection point to the end of the steel bar.
5. The method according to claim 3, further comprising: For the steel bar with the elbow, the ends of the two-dimensional steel bar axis of the steel bar with the elbow are closed as a short axis, and then a round head is drawn according to the curve information.
6. A device for rapidly generating two-dimensional pixels, comprising: An abstraction module, configured to abstract the three-dimensional tubular reinforcement into reinforcement axes; An identification module, configured to identify the diameter of the steel bar; An acquisition module is configured to acquire, along the steel bar axis, an intersection point between the axis of the steel bar blocked by the concrete contour and the concrete contour, wherein the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified by the identification module; A concealment module is configured to conceal the steel bar along the projection direction by updating the intersection point between the axis of the shielded steel bar and the concrete contour, and obtain the visible steel bar axis and the normal vector; A projection module is configured to project the steel bar axis including the visible steel bar axis onto a drawing plane while simplifying discrete points to obtain a two-dimensional steel bar axis; and An offset module is configured to obtain a double-line two-dimensional steel bar axis by offsetting the two-dimensional steel bar axis using the diameter and the updated normal vector, comprising: Calculate the angle between the two-dimensional steel bar axis and the concrete surface according to the updated normal vector, and The two-dimensional steel bar axis is offset by using the diameter and the angle to obtain the double-line two-dimensional steel bar axis.
7. The device according to claim 6, wherein: The steel bars include waist bars, stirrups, bottom bars and tension bars.
8. The device according to claim 6, wherein the identification module is further configured to: identify discrete points and curve information of the steel bar axis, wherein the curve information is used to draw the curve portion of the steel bar.
9. The device according to claim 6, wherein: The visible steel bar axis is the updated portion from the intersection point to the end of the steel bar.
10. The device according to claim 8, wherein the offset module is further configured to: for the steel bar with a bend, close the end of the two-dimensional steel bar axis of the steel bar with the bend into a short axis, and then draw a round head according to the curve information.
11. An electronic device, comprising: processor; and a memory storing one or more computer instructions, wherein the one or more computer instructions are executed by the processor to implement the method according to any one of claims 1 to 5.
12. A computer-readable storage medium having one or more computer instructions stored thereon, wherein: The one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 5.
13. A computer program product comprising one or more computer instructions, wherein the one or more computer instructions are executed by a processor to implement the method according to any one of claims 1 to 5.
Citation Information
Patent Citations
Rapid reinforcement method for three-dimensional model of concrete structure
CN102799712A
Automatic generation method of drawing for three-dimensional concrete structural reinforcement
CN102831259A