Detailed Description
Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While some embodiments of the present disclosure are illustrated in the accompanying drawings, it is to be understood that the present disclosure may be embodied in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided for a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the disclosure are for illustrative purposes only and are not intended to limit the scope of the disclosure.
The term "include" and variations thereof as used herein is meant to be inclusive in an open-ended manner, i.e., "including but not limited to". Unless specifically stated otherwise, 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" is to be understood as "at least one further embodiment". The terms "first," "second," and the like may refer to different or the same object. Other explicit and implicit definitions may also be included below.
At present, most of building engineering aided design software adopts a third-party commercial geometric kernel universal blanking algorithm to process reinforcing steel bar and concrete data, calculates the shielding relation of the reinforcing steel bar and the concrete, and generates a two-dimensional pixel by utilizing a finally output blanking line. However, in the case where the amount of the bar data is large, the blanking operation of the conventional two-dimensional pixel generation method takes a long time and the plotting efficiency is low. In addition, the blanking result of the conventional two-dimensional pixel generation method is uncontrollable, the blanking lines are discrete, and the problems of multiple lines and missing lines can occur. The discrete degree of the hidden lines is high, so that picking and editing are not facilitated.
In an embodiment of the present disclosure, a three-dimensional tubular rebar is abstracted as a rebar axis and a diameter of the rebar is identified; acquiring an intersection point of the axis of the steel bar and the concrete outline along the axis of the steel bar, and identifying a normal vector of a concrete surface at the intersection of the steel bar and the concrete; blanking the reinforcing steel bars by using the concrete outline along the projection direction to obtain a visible reinforcing steel bar axis, and updating the intersection point of the reinforcing steel bar axis and the concrete outline and the normal vector of the concrete surface at the intersection of the reinforcing steel bar and the concrete; projecting the visible steel bar axis to a drawing plane and simplifying discrete points at the same time to obtain a two-dimensional steel bar axis; and offsetting the two-dimensional steel bar axis through the diameter of the steel bar and the updated normal vector to obtain a two-line two-dimensional steel bar axis. The three-dimensional tubular set data is abstracted to be the axis of the steel bar, the geometric data and blanking operation are simplified, the speed is obviously improved, and compared with the prior art, the speed is improved by one time. According to the method for rapidly generating the two-dimensional pixels based on the three-dimensional steel bar model, the blanking process can be automatically controlled, the discrete degree of the blanking lines is obviously reduced, and picking and editing are facilitated. Thus, the principles of operation and mechanisms of the present disclosure are significantly different from any known method.
Fig. 1 is a schematic diagram showing a three-dimensional rebar model illustrating geometric data about rebar and concrete. The schematic diagram of fig. 1 illustrates a three-dimensionaltubular rebar 110 and aconcrete profile 101. As shown in fig. 1, examples of the reinforcing bars include awale 102, astirrup 103, abottom bar 104, and atie bar 105.
Because the reinforcing steel bar is a three-dimensional tubular geometric solid with a fixed diameter and is wrapped by the concrete, the reinforcing steel bar is simplified into a reinforcing steel bar axis which is enough for positioning the reinforcing steel bar and judging the shielding relation between the reinforcing steel bar and the concrete. According to the method for rapidly generating the two-dimensional pixels based on the three-dimensional steel bar model, the three-dimensionaltubular steel bar 110 is abstracted to thesteel bar axis 210 so as to convert the geometric data from the entity type to the curve type, thereby achieving the purpose of simplifying the geometric data. In the abstraction process, the diameter of the rebar is identified, and the discrete points of the rebar axis and the curve information are identified, the curve information of the rebar axis being used for the drawing of the two-dimensional pixels of the curved portion of the rebar.
Fig. 2 is a side view including arebar axis 210 according to an embodiment of the present disclosure, therebar axis 210 being obtained by abstracting the three-dimensionaltubular rebar 110 of fig. 1 according to a method of rapidly generating two-dimensional pixels based on a three-dimensional rebar model of the present disclosure for the purpose of simplifying geometric data.
Fig. 3 is an elevation view including anintersection 302 of arebar axis 310 and aconcrete profile 301, according to an embodiment of the present disclosure. In the present example, the axis of thebottom rib 304 is used as an example of thereinforcement axis 310, and it should be understood that thereinforcement axis 310 is not limited to the axis of thebottom rib 304, and may include the axes of the wale, the stirrup, and the tie bar. As shown in fig. 3, therebar axis 310 is cut by theconcrete profile 301. Along therebar axis 310, theintersection 302 of the axis of thebottom rebar 304 with theconcrete profile 301 is taken. Meanwhile, the normal vector of the concrete surface at the intersection of the steel bar and the concrete is identified. As shown in fig. 3, the intersection points 302 cut the axis of thebottom bar 304 in two parts, the part between the twointersection points 302 being located inside the concrete profile and the parts of the twointersection points 302 to the two ends of the axis of thebottom bar 304 being located outside the concrete profile, i.e. the concreteinner part 304a and the concreteouter part 304 b. Wherein the end of the concrete includes akeyway 303.
In the projection direction, due to the existence of the structure of the concretekey groove 303 and the like, theintersection point 302 is not enough to obtain the visible steel bar axis, and the concrete outline is used for carrying out shielding calculation on the steel bar along the projection direction. Fig. 4 is a right side view showing thekey groove 403 of concrete. Since thekey groove 403 is not penetrated, the concrete including thekey groove 403 shields the reinforcing bars in a front view direction. As shown in fig. 4, in the front view direction (x direction in fig. 4), the concrete end outer profile shields a portion of the external rebar due to the presence of thekeyway 303. According to the method for rapidly generating the two-dimensional pixels based on the three-dimensional steel bar model, the intersection point of the steel bar axis and the concrete outline can be updated to obtain the new intersection point of the steel bar axis and the concrete outline, and the updated intersection point to the end of the steel bar is the visible steel bar axis in the front view. According to the method for rapidly generating the two-dimensional pixels based on the three-dimensional steel bar model, the normal vector of the concrete surface at the intersection of the steel bar and the concrete can be updated.
As discussed above, more particularly, the concrete face intersecting the rebar may not be visible from a particular projection direction (e.g., the direction of the front view), and thus the portion of the rebar outside the concrete (e.g., the concreteouter portion 304b) may be obscured, requiring the rebar to be blanked using the concrete profile along that projection direction.
Fig. 5 shows an elevation view including an intersection of a renewed rebar axis with a concrete profile, according to an embodiment of the present disclosure. After blanking, theintersection point 502 of thebottom bar 304 with theconcrete profile 301 is updated, as shown in fig. 5. The section of rebar from theintersection 502 of the renewedbottom rebar 304 with theconcrete profile 301 to the end of thebottom rebar 304,rebar section 504b, is the visible rebar axis.
The three-dimensional tubular steel bar has a width (diameter) when viewed from a certain direction, and on a two-dimensional drawing plane, the width of the steel bar is represented by a double line. The rebar data is projected onto the drawing plane to obtain a two-dimensional rebar axis, while simplifying discrete points, e.g., collinear rebar points, while retaining only the most spaced endpoints, thereby reducing the amount of data. Then, based on an offset algorithm, a two-line two-dimensional rebar axis is obtained by offsetting the two-dimensional rebar axis on the drawing plane using information about the diameter of the rebar, thereby obtaining a two-dimensional pixel.
Fig. 6 is an elevation view of a two-wire two-dimensional rebar axis showing an offsetbottom rebar 604, with other elements omitted for purposes of illustration and simplicity.
Besides the orthogonal, the steel bars and the concrete are also in the oblique crossing condition. According to the method for rapidly generating the two-dimensional pixel based on the three-dimensional steel bar model, the included angle between the axis of the two-dimensional steel bar and the concrete surface is calculated according to the updated normal vector of the concrete surface at the intersection of the steel bar and the concrete, the offset and the offset direction are calculated by using the diameter of the steel bar and the included angle, and the axis of the two-dimensional steel bar is offset to obtain the axis of the two-line two-dimensional steel bar so as to obtain the two-dimensional pixel.
FIG. 7 shows a reinforcement map illustrating a two-dimensional pixel according to an embodiment of the present disclosure. The reinforcement map of fig. 7 illustrates a two-wire two-dimensionalbottom rib axis 704, a two-wire two-dimensional stirrup axis 703, a two-wire two-dimensionallacing wire axis 705, and a two-wire two-dimensionallumbar rib axis 702.
For a steel bar with a bend, the end of the steel bar with the bend needs to be represented as a short transverse line in top view and the bend needs to be drawn as a round head in top view, as required by engineering drawings. According to the method for rapidly generating the two-dimensional pixels based on the three-dimensional steel bar model, the end of the two-dimensional steel bar axis of the steel bar with the elbow is closed to be the short axis, and then the round head is drawn according to the curve information.
Fig. 8 shows a top view of a case of a rebar with a bend at the end according to an embodiment of the disclosure. According to the method for rapidly generating two-dimensional pixels based on the three-dimensional steel bar model of the present disclosure, in a top view, the end of the two-dimensional steel bar axis of the steel bar with the bend is closed as a short axis 806, and the bend is drawn as around head 807.
Fig. 9 is a flowchart illustrating a method of rapidly generating two-dimensional pixels based on a three-dimensional rebar model according to the present disclosure.
Atblock 901, a three-dimensional tubular rebar is abstracted as a rebar axis and a record identifying the diameter of the rebar is recorded.
Atblock 902, along the rebar axis, the intersection of the rebar axis and the concrete profile is obtained and the normal vector identifying the concrete face where the rebar intersects the concrete is recorded.
Atblock 903, the rebar is blanked with the concrete profile along the projection direction to obtain a visible rebar axis, and the intersection of the rebar axis and the concrete profile and the normal vector of the concrete face where the rebar intersects the concrete are updated.
Atblock 904, the visible rebar axis is projected onto the drawing plane while simplifying the discrete points to obtain a two-dimensional rebar axis.
And, atblock 905, offsetting the two-dimensional rebar axis by the diameter of the rebar and the updated normal vector to obtain a two-wire two-dimensional rebar axis.
Fig. 10 shows a block diagram of anapparatus 1000 for fast generation of two-dimensional pixels according to an embodiment of the present disclosure.
Anabstraction module 1001 configured to abstract a three-dimensional tubular rebar into a rebar axis;
anidentification module 1002 configured to identify a diameter of a rebar;
the obtainingmodule 1003 is configured to obtain an intersection point of the steel bar axis and the concrete outline along the steel bar axis, wherein a normal vector of a concrete surface at the intersection of the steel bar and the concrete is identified through the identifying module;
ablanking module 1004 configured to blank the rebar using the concrete profile along the projection direction to obtain a visible rebar axis and update an intersection of the rebar axis and the concrete profile and a normal vector of a concrete face where the rebar intersects the concrete;
aprojection module 1005 configured to project the visible rebar axis to the drawing plane while simplifying the discrete points to obtain a two-dimensional rebar axis; and
an offsetmodule 1006 configured to offset the two-dimensional rebar axis by the diameter of the rebar and the updated normal vector to obtain a two-wire two-dimensional rebar axis.
In some embodiments, the rebar comprises a wale, a stirrup, a bottom bar, and a tie bar.
In some embodiments, theidentification module 1002 is further configured to identify discrete points of the rebar axis and curve information used to plot a curved portion of the rebar.
In some embodiments, the visible rebar axis is the portion of the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
In some embodiments, theapparatus 1000 may further include a calculation module configured to calculate an angle of the two-dimensional rebar axis to the concrete face from the updated normal vector, and offset the two-dimensional rebar axis by using the diameter of the rebar and the angle to obtain a two-wire two-dimensional rebar axis.
In some embodiments, the offsetmodule 1006 is further configured to, for a rebar having a bend, close the end of the two-dimensional rebar axis of the rebar having the bend to the minor axis and then draw the round head from the curve information.
FIG. 11 illustrates a block diagram of acomputing system 1100 in which embodiments of the disclosure may be implemented. Themethod 900 shown in fig. 9 may be implemented by thecomputing system 1100. Thecomputing system 1100 illustrated in FIG. 11 is an example only and should not be construed as limiting the scope and functionality of use of the embodiments described herein.
As shown in fig. 11,computing system 1100 is in the form of a general purpose computing device. Components ofcomputing system 1100 may include, but are not limited to, one or more processors orprocessing units 1100,memory 1120, one ormore input devices 1130, one ormore output devices 1140,storage 1150, and one ormore communication units 1140. Theprocessing unit 1100 may be a real or virtual processor and can perform various processes according to persistence stored in thememory 1120. In a multi-processing system, multiple processing units execute computer-executable instructions to increase processing power.
Computing system 1100 typically includes a number of computer-readable media. Such media may be any available media that is accessible bycomputing system 1100 and includes, but is not limited to, volatile and non-volatile media, removable and non-removable media. Thememory 1120 may be volatile memory (e.g., registers, cache, Random Access Memory (RAM)), non-volatile memory (e.g., Read Only Memory (ROM), Electrically Erasable Programmable Read Only Memory (EEPROM), flash memory), or some combination thereof.Storage 1150 may be removable or non-removable, and may include machine-readable media, such as a flash drive, a diskette, or any other medium, which may be capable of being used to store information and which may be accessed withincomputing system 1100.
Thecomputing system 1100 may further include additional removable/non-removable, volatile/nonvolatile computer system storage media. Although not shown in FIG. 11, a magnetic disk drive for reading from and writing to a removable, non-volatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to 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 carry out the functions of the various embodiments described herein.
A program/utility tool having one or more sets of execution modules may be stored, for example, in thememory 1120. The execution modules may include, but are not limited to, an operating system, one or more application programs, other program modules, and operating data. Each of these examples, or particular combinations, may include an implementation of a networked environment. The execution module generally performs the functions and/or methods of embodiments of the subject matter described herein, such asmethod 900.
Theinput unit 1130 may be one or more of various input devices. For example, theinput unit 1130 may include a user device such as a mouse, a keyboard, a trackball, or the like. Acommunication unit 1160 enables communicating over a communication medium to another computing entity. Additionally, the functionality of the components ofcomputing system 1100 may be implemented in a single computing cluster or multiple computing machines, which are capable of communicating over a communication connection. Thus, thecomputing system 1100 may operate in a networked environment using logical connections to one or more other servers, network Personal Computers (PCs), or another general network node. By way of example, and not limitation, communication media includes wired or wireless networking technologies.
Computing system 1100 can also communicate with one or more external devices (not shown), such as storage devices, display devices, etc., as desired, one or more devices that enable a user to interact withcomputing system 1100, or any devices (e.g., network cards, modems, etc.) that enablecomputing system 1100 to communicate with one or more other computing devices. Such communication may be performed via input/output (I/O) interfaces (not shown).
The functions described herein may be performed, at least in part, by one or more hardware logic components. By way of example, and not limitation, 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), system on a chip (SOCs), Complex Programmable Logic Devices (CPLDs), and the like.
Program code for implementing methods of the subject matter described herein may be written in any combination of one or more programming languages. These program codes may be provided to a processor or controller of a general purpose computer, special purpose computer, or other programmable data processing apparatus, such that the program codes, when executed by the processor or controller, cause the functions/operations specified in the flowchart and/or block diagram to be performed. The program code may execute entirely on the machine, partly on the machine, as a stand-alone software package partly on the machine and partly on a remote machine or entirely on the remote machine or server.
In the context of this disclosure, a machine-readable medium may be a tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. The 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, apparatus, or device, or any suitable combination of the foregoing. More specific examples of a machine-readable storage medium would include an electrical connection based on one or more wires, a portable computer diskette, 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 disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.
Further, while operations are depicted in a particular order, this should be understood as requiring that such operations be performed in the particular order shown or in sequential order, or that all illustrated operations be performed, to achieve desirable results. Under certain circumstances, multitasking and parallel processing may be advantageous. Likewise, while several specific implementation details are included in the above discussion, these should not be construed as limitations on the scope of the subject matter described herein. Certain features that are described in the context of separate implementations can also be implemented in combination in a single implementation. Conversely, various features that are described in the context of a single implementation can also be implemented in multiple implementations separately or in any suitable subcombination.
Some example embodiments of the present disclosure are listed below.
In a first aspect of the present disclosure, a method for rapidly generating two-dimensional pixels based on a three-dimensional rebar model is provided. The method comprises the following steps: abstracting a three-dimensional tubular steel bar into a steel bar axis, and marking the diameter of the steel bar; acquiring an intersection point of the axis of the steel bar and the concrete outline along the axis of the steel bar, and identifying a normal vector of a concrete surface at the intersection of the steel bar and the concrete; blanking the reinforcing steel bars by using the concrete outline along the projection direction to obtain a visible reinforcing steel bar axis, and updating the intersection point of the reinforcing steel bar axis and the concrete outline and the normal vector of the concrete surface at the intersection of the reinforcing steel bar and the concrete; projecting the visible steel bar axis to a drawing plane and simplifying discrete points at the same time to obtain a two-dimensional steel bar axis; and offsetting the two-dimensional steel bar axis through the diameter of the steel bar and the updated normal vector to obtain a two-line two-dimensional steel bar axis.
In some embodiments, the rebar comprises a wale, a stirrup, a bottom bar, and a tie bar.
In some embodiments, the method further comprises: discrete points of the rebar axis are identified and curve information is used to plot the curved portion of the rebar.
In some embodiments, the visible rebar axis is the portion of the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
In some embodiments, the method further comprises calculating an angle of the two-dimensional rebar axis to the concrete face from the updated normal vector, and offsetting the two-dimensional rebar axis by using the diameter of the rebar and the angle to obtain a two-wire two-dimensional rebar axis.
In some embodiments, the method further comprises: for a rebar with a bend, the ends of the two-dimensional rebar axis of the rebar with the bend are closed to the minor axis, and then the round head is drawn according to the curve information.
In a second aspect of the present disclosure, an apparatus for fast generation of a two-dimensional pixel is provided. The device includes: an abstraction module configured to abstract the three-dimensional tubular rebar into a rebar axis; an identification module configured to identify a diameter of a rebar; the acquisition module is configured to acquire an intersection point of the steel bar axis and the concrete outline along the steel bar axis, wherein a normal vector of a concrete surface at the intersection of the steel bar and the concrete is identified through the identification module; the blanking module is configured to blank the steel bars by using the concrete outline along the projection direction to obtain a visible steel bar axis, and update the intersection point of the steel bar axis and the concrete outline and the normal vector of the concrete surface at the intersection of the steel bar and the concrete; the projection module is configured to project the visible rebar axis to a drawing plane and simplify discrete points at the same time so as to obtain a two-dimensional rebar axis; and an offset module configured to offset the two-dimensional rebar axis by the diameter of the rebar and the updated normal vector to obtain a two-wire two-dimensional rebar axis.
In some embodiments, the rebar comprises a wale, a stirrup, a bottom bar, and a tie bar.
In some embodiments, the identification module is further configured to identify discrete points of the rebar axis and curve information used to plot the curved portion of the rebar.
In some embodiments, the visible rebar axis is the portion of the intersection of the updated rebar axis with the concrete profile to the end of the rebar.
In some embodiments, the apparatus may further include a calculation module configured to calculate an angle of the two-dimensional rebar axis to the concrete face from the updated normal vector, and offset the two-dimensional rebar axis by using the diameter of the rebar and the angle to obtain a two-wire two-dimensional rebar axis.
In some embodiments, the offset module is further configured to, for a rebar having an elbow, close the end of the two-dimensional rebar axis of the rebar having the elbow to the minor axis and then draw the round head from the curve information.
In a third aspect of the present disclosure, an electronic device is provided. The electronic device includes: 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.
In a fourth aspect of the disclosure, a computer-readable storage medium is provided. The computer readable storage medium has stored thereon 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.
In a fifth aspect of the disclosure, a computer program product is provided. 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.
Embodiments of the present disclosure have been described above, and the above description is intended to be illustrative, not exhaustive, and not limited to the disclosed embodiments. Many modifications and variations will be apparent to those of ordinary skill in the art without departing from the scope and spirit of the illustrated embodiments. The terminology used herein is chosen in order to best explain the principles of the embodiments, the practical application, or improvements made to the technology in the marketplace, or to enable others of ordinary skill in the art to understand the embodiments disclosed herein.