A method, device, electronic device and storage medium for processing graphic elements

By obtaining the relative positional relationship between the primitives to be processed and the target board primitives, the primitives are processed flush, which solves the problem of low primitive processing efficiency in the existing technology, and achieves fast and accurate engineering quantity calculation and simplified operations.

CN113192203BActive Publication Date: 2024-09-06GLODON CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202110546836.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-05-19
Publication Date
2024-09-06
Estimated Expiration
2041-05-19

AI Technical Summary

Technical Problem

The existing technology cannot process graphics elements quickly and accurately, resulting in low engineering quantity calculation efficiency, cumbersome operations, and long time consumption.

Method used

By obtaining the relative positional relationship between the primitives to be processed and the target board primitives, the primitives to be processed are processed flush, including determining intersections, adjusting elevations, and performing segmentation processing according to primitive types to ensure elevation consistency.

Benefits of technology

It realizes rapid summary calculation, improves the accuracy and work efficiency of engineering quantity calculation, and simplifies the operation process.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN113192203B
    Figure CN113192203B
Patent Text Reader

Abstract

The present invention discloses a method, device, electronic device and storage medium for processing primitives, the method comprising: obtaining primitives to be processed and primitives on a target board; and performing flush processing on the primitives to be processed based on the relative position relationship between the primitives to be processed and the primitives on the target board. The present invention adjusts the properties of the primitives to be processed based on the relative position relationship between the primitives to be processed and the primitives on the target board to achieve the final flush processing; the flush processing of the primitives to be processed with the primitives on the target board can achieve rapid aggregation, high calculation efficiency, ensure the accuracy of the engineering quantity calculation results, and thus greatly improve the work efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of data processing technology, and in particular to a method, device, electronic equipment and storage medium for processing graphic elements. Background Art

[0002] With the development of the construction industry, the scenes in construction projects are becoming more and more complex. For example, the flush processing of the elevations of the components such as columns, walls, and beams under the sloping roof and floor slabs in the split-story building, the resulting engineering quantity calculation is relatively complicated. The flush processing refers to the adjustment of the elevations in the properties of the columns, beams, and wall elements to the top elevation of the top plate after the sloping roof is set, so that the elevations of the columns, walls, and beams are flush with the elevations of the sloping roof panels. For the above complex scenes, the existing flush processing method adjusts the elevations in the properties of the columns, beams, and wall elements to the top elevation of the top plate, so that the elevations of the columns, walls, and beams are flush with the elevations of the sloping roof panels. However, it is necessary to repeatedly calculate the elevations of the locations of the various elements, which is a large amount of calculation, and it is necessary to frequently switch various component elements, which is cumbersome and time-consuming. Therefore, how to quickly and accurately adjust the elevations of the components such as columns, walls, and beams under the sloping roof and floor slabs to ensure that the engineering quantity can be calculated quickly and accurately is extremely important for engineering cost personnel. Summary of the invention

[0003] In view of this, an embodiment of the present invention provides a method, device, electronic device and storage medium for processing graphic elements, which solves the problem in the prior art that graphic elements cannot be processed quickly and accurately, resulting in the inability to quickly and accurately calculate engineering quantities.

[0004] According to a first aspect, an embodiment of the present invention provides a primitive processing method, comprising:

[0005] Get the graphics element to be processed and the graphics element of the target board;

[0006] The to-be-processed graphic element is leveled based on the relative position relationship between the to-be-processed graphic element and the target board graphic element.

[0007] The graphic element processing method provided in the embodiment of the present invention adjusts the attributes of the graphic elements to be processed according to the relative position relationship between the acquired graphic elements to be processed and the graphic elements on the target board to achieve the final flush processing; the flush processing of the graphic elements to be processed with the graphic elements on the target board can be achieved, which has high calculation efficiency, ensures the accuracy of the engineering quantity calculation results, and thus greatly improves work efficiency.

[0008] In combination with the first aspect, in a first implementation of the first aspect, the leveling of the to-be-processed graphic element based on the relative position relationship between the to-be-processed graphic element and the target board graphic element includes:

[0009] Determine whether the to-be-processed primitive intersects with the target board primitive;

[0010] When the to-be-processed graphic element intersects with the target board graphic element, the to-be-processed graphic element is leveled.

[0011] In combination with the first implementation of the first aspect, in the second implementation of the first aspect, the determining whether the to-be-processed primitive intersects with the target board primitive includes:

[0012] Extending the coordinates of the to-be-processed graphic element to determine an extended plate graphic element;

[0013] The coordinates of the extended plate primitive and the target plate primitive are used to determine whether the coordinates of the extended plate primitive and the target plate primitive intersect.

[0014] In combination with the first implementation of the first aspect, in the third implementation of the first aspect, the determining whether the to-be-processed primitive intersects with the target board primitive further includes:

[0015] sorting the graphics elements to be processed according to their elevations;

[0016] Starting from the to-be-processed primitive with the largest elevation, it is determined in turn whether the to-be-processed primitive intersects with the target board primitive.

[0017] The primitive processing method provided by the embodiment of the present invention sorts the primitives to be processed according to their elevations, so as to timely discover and process illegal processing, thereby increasing the accuracy and credibility of calculation.

[0018] In combination with the first implementation of the first aspect, in a fourth implementation of the first aspect, the leveling of the to-be-processed graphic element includes:

[0019] Obtaining the primitive type of the primitive to be processed;

[0020] According to the type of the graphic element, adjusting the elevation of the graphic element to be processed;

[0021] It is determined whether the adjusted primitive meets the preset rule. When the adjusted primitive meets the preset rule, the target primitive after the leveling process is determined.

[0022] In combination with the fourth implementation manner of the first aspect, in the fifth implementation manner of the first aspect, when the primitive type is a point primitive, adjusting the elevation of the primitive to be processed according to the primitive type includes:

[0023] Get the top elevation of the top plate within the preset range;

[0024] The elevation of the graphic element to be processed is modified to the top elevation of the top plate.

[0025] In combination with the fifth implementation manner of the first aspect, in the sixth implementation manner of the first aspect, when the primitive type is a line primitive, adjusting the elevation of the primitive to be processed according to the primitive type includes:

[0026] Determine the intersection point information according to the attributes of the to-be-processed primitive and the target board primitive;

[0027] Segmenting the to-be-processed graphic element using the intersection point information to determine segmentation information;

[0028] Determine a plurality of new graphic elements based on the segmentation information and the attributes of the graphic element to be processed;

[0029] The elevation of each new graphic element is set to adjust the elevation of the graphic element to be processed.

[0030] In combination with the sixth implementation of the first aspect, in the seventh implementation of the first aspect, determining the intersection point information according to the attributes of the to-be-processed primitive and the target board primitive includes:

[0031] According to the attributes of the to-be-processed primitive and the target board primitive, determining the horizontal plane coordinates of each attribute;

[0032] The intersection coordinates of each of the horizontal plane coordinates are obtained to determine the intersection point information.

[0033] In combination with the sixth implementation manner of the first aspect, in the eighth implementation manner of the first aspect, setting the elevation of each new primitive to adjust the elevation of the primitive to be processed includes:

[0034] Determine whether the new primitive is a primitive of a preset type;

[0035] When the new element is an element of a preset type, obtaining the top elevation of the hollow floor slab;

[0036] The elevation of the new element is set to the top elevation of the hollow floor slab.

[0037] The primitive processing method provided by the embodiment of the present invention sets the elevation of primitives according to different primitive types, realizes fast matching and processing of different operations, and ensures calculation efficiency and accuracy.

[0038] In combination with the eighth implementation manner of the first aspect, in the ninth implementation manner of the first aspect, when the new primitive is not a primitive of a preset type, the elevation of the new primitive is set to the top elevation of the top plate.

[0039] In combination with the first aspect, in a tenth implementation of the first aspect, obtaining a target board primitive includes:

[0040] Determine the selection range according to the attributes of the graphic element to be processed;

[0041] All board primitives within the selection range are determined as target board primitives.

[0042] The primitive processing method provided by the embodiment of the present invention uses the attributes of the primitive to be processed to determine the selection range, so as to determine the target board primitive within the selection range, thereby realizing automatic selection of the target board primitive and improving calculation efficiency.

[0043] In combination with the first aspect, in an eleventh implementation of the first aspect, the acquiring of the target board primitive further includes:

[0044] In response to a selection operation on a current board element;

[0045] The current board primitive is determined as a target board primitive.

[0046] The primitive processing method provided in this embodiment selects the target board primitive to achieve determination of the designated board, thereby ensuring the adaptability of calculation.

[0047] According to a second aspect, an embodiment of the present invention provides a primitive processing device, comprising:

[0048] The first processing module is used to obtain the graphics element to be processed and the graphics element of the target board;

[0049] The second processing module is used to perform leveling processing on the image element to be processed based on the relative position relationship between the image element to be processed and the image element of the target board.

[0050] According to the third aspect, an embodiment of the present invention provides an electronic device, comprising: a memory and a processor, the memory and the processor being communicatively connected to each other, the memory storing computer instructions, and the processor executing the graphic element processing method described in the first aspect or any one of the embodiments of the first aspect by executing the computer instructions.

[0051] According to a fourth aspect, an embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium stores computer instructions, and the computer instructions are used to enable the computer to execute the primitive processing method described in the first aspect or any one of the embodiments of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS

[0052] In order to more clearly illustrate the specific implementation methods of the present invention or the technical solutions in the prior art, the drawings required for use in the specific implementation methods or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are some implementation methods of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.

[0053] Figure 1 is a flowchart of a method for processing a graphic element according to an embodiment of the present invention;

[0054] Figure 2 is a flowchart of a method for processing a graphic element according to a preferred embodiment of the present invention;

[0055] Figure 3 is a specific flow chart of another primitive processing method according to an embodiment of the present invention;

[0056] Figure 4 is a schematic diagram of a primitive processing device according to an embodiment of the present invention;

[0057] Figure 5 It is a schematic diagram of the hardware structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0058] In order to make the purpose, technical solution and advantages of the embodiments of the present invention clearer, the technical solution in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative work are within the scope of protection of the present invention.

[0059] With the development of the construction industry, the requirements for construction projects have been improved to varying degrees in terms of early structural design, exterior design, material quality, seismic strength requirements, scaffolding materials and erection methods, formwork materials and laying methods, concrete pouring methods, etc.; the improvement of early design requirements also means that the scenes in construction projects are becoming more and more complex, such as the living room and bedroom, bathroom, kitchen, sloping roof and floor slabs in split-story buildings. The elevation of columns, walls, beams and other components, the basement ramps of large shopping malls, and the calculation of the engineering quantities generated by the columns, walls, beams and other components under the underground garage are also more complicated than other scenes. Therefore, for cost estimators, how to quickly and accurately adjust the elevation of components such as columns, walls, beams and other components under the sloping roof and floor slabs, and how to quickly and accurately output the quantity is extremely important. There are two existing processing methods: software processing and manual calculation, among which:

[0060] The software processing method is that after the sloping roof is set up, the elevations in the properties of the columns, beams, and walls are adjusted to the top elevation of the top plate, so that the elevations of the columns, walls, and beams are flush with the elevations of the sloping roof panels. However, there are many sloping roofs and ramps in the current projects, and the cost estimator needs to adjust the elevations of different types of elements under all sloping plates. First, calculate the elevations of the columns, beams, and walls under the sloping plates, and then switch to the corresponding component layers to adjust the elevations of the elements one by one. It is necessary to repeatedly calculate the elevations of the locations of each element, which requires a large amount of calculations, and it is also necessary to frequently switch between various components. The operation is cumbersome and time-consuming.

[0061] The manual calculation method calculates the column, wall and beam top elevations based on the existing inclined plate data, the Pythagorean theorem and the three-boundary function, and records the elevation data of each component element for calculation. However, the manual calculation method not only requires a large amount of calculation and a lot of recorded data, but also a large amount of data sorting, and the accuracy of manual calculation is difficult to guarantee.

[0062] According to an embodiment of the present invention, an embodiment of a method for processing graphic elements is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.

[0063] In this embodiment, a method for processing graphic elements is provided, which can be used in electronic devices such as computers, mobile phones, tablet computers, etc. Figure 1 is a flowchart of a method for processing a graphic element according to an embodiment of the present invention. Figure 1 As shown, the process includes the following steps:

[0064] S11, obtaining the graphics element to be processed and the graphics element of the target board.

[0065] Among them, the plate elements include: columns (columns, structural columns, masonry columns); walls (shear walls, masonry walls, insulation walls, curtain walls); beams (beams, connecting beams, ring beams); plates (cast-in-place plates, spiral plates); prefabricated components (prefabricated columns, composite plates (prefabricated bottom plates), composite plates (full thickness)); hollow floor slabs (hollow floor slabs, main rib beams, secondary rib beams) and other components, and other components may also be included in practical applications. Specifically, the to-be-processed element may be obtained by monitoring the selection operation of the element in the system, and the selection operation may be implemented by point selection or by box selection. The selection operation may be set using an existing method, and the present embodiment is not limited thereto. The acquisition of the target plate element may be determined by monitoring the user's selection, or by using the properties of the to-be-processed element to determine the target plate element. It may be determined in any manner, and the present embodiment is only taken as an example and is not limited thereto.

[0066] S12, performing leveling processing on the graphics element to be processed based on the relative position relationship between the graphics element to be processed and the graphics element of the target board.

[0067] By comparing and dividing all the graphics elements to be processed with all the graphics elements on the target board, the relative position relationship between the graphics elements to be processed and the graphics elements on the target board is determined. The relative position relationship can be determined by comparing the coordinate values ​​of each graphics element, or by searching through a coordinate relationship list to determine the relative position relationship of the graphics element. Specifically, the description of this step will be expanded in detail below.

[0068] The graphic element processing method provided in this embodiment adjusts the attributes of the graphic elements to be processed according to the relative position relationship between the acquired graphic elements to be processed and the graphic elements on the target board to achieve the final flush processing; the flush processing of the graphic elements to be processed with the graphic elements on the target board can be realized, and the calculation efficiency is high, which ensures the accuracy of the engineering quantity calculation results, thereby greatly improving work efficiency.

[0069] In this embodiment, a method for processing a graphic element is provided. Figure 2 is a flowchart of a method for processing a graphic element according to an embodiment of the present invention. Figure 2 As shown, the process includes the following steps:

[0070] S21, obtaining the graphics element to be processed and the graphics element of the target board.

[0071] For details on how to obtain the graphics elements to be processed, see Figure 1 S11 of the illustrated embodiment will not be described in detail here.

[0072] Specifically, the step S21 of obtaining the target board primitives comprises the following steps:

[0073] S211, determining a selection range according to the attributes of the graphic element to be processed.

[0074] First, the properties of the primitives to be processed are used to determine the selection range of the primitives to be processed. Taking the above-mentioned split-story building in the construction project as an example, the current floor of the primitives to be processed can be determined according to the properties of the primitives to be processed. Because the leveling of the primitives is an operation performed on the same floor, only the plate primitives on the same floor need to be determined. It should be noted that this embodiment is only described by taking the above-mentioned split-story building as an example. In actual applications, it can also be used for other buildings, and this embodiment is not limited to this.

[0075] S212, determining all board primitives within the selection range as target board primitives.

[0076] Specifically, all plate elements within the selection range are determined as target plate elements, that is, all plate elements (columns, walls, beams, plates, prefabricated components, composite plates, hollow floor slabs and other components) in the current floor are determined as target plate elements that need to be compared.

[0077] In an optional implementation manner, the step S21 of obtaining the target board primitives may further include the following steps:

[0078] (1) Responding to the selection operation of the current board element. Monitor the user's operation behavior and respond to the selection operation of the current board element.

[0079] (2) Determine the current board element as the target board element.

[0080] In this embodiment, the target board primitive may be determined by the user after selection, and the current board primitive selected by the user is determined as the target board primitive for subsequent primitive processing.

[0081] S22, performing leveling processing on the graphics element to be processed based on the relative position relationship between the graphics element to be processed and the graphics element of the target board.

[0082] Specifically, the above S22 includes the following steps:

[0083] S221, determining whether the graphics element to be processed intersects with the graphics element of the target board.

[0084] Specifically, the above step S221 may further include the following steps:

[0085] (11) Extend the coordinates of the graphics element to be processed to determine the extended plate graphics element.

[0086] The element to be processed is infinitely extended to determine the extended plate element. Specifically, the extension direction can be an extension in the up and down directions or an extension in all directions. In practical applications, the extension range of the element to be processed can also be controlled within the current floor (selection range), which can be selected according to actual equipment resources and actual needs, and this embodiment is not limited thereto.

[0087] (12) Using the coordinates of the extended plate element and the target plate element, determine whether the coordinates of the extended plate element intersect with the coordinates of the target plate element. Determine whether the coordinates of the extended plate element intersect with the coordinates of the target plate element by using the coordinate information of each element. When the coordinates of each element are the same, it can be determined whether the coordinates of the extended plate element intersect with the coordinates of the target plate element.

[0088] In an optional implementation manner, the above S221 further includes the following steps:

[0089] (21) Sort the graphics elements to be processed by their elevations.

[0090] In this embodiment, after obtaining the graphics elements to be processed, all graphics elements to be processed can be sorted according to their elevations. Specifically, the elevations can be sorted from large to small, or from small to large. As long as the sorting is convenient for subsequent processing, this embodiment is not limited to this.

[0091] (22) Starting from the to-be-processed primitive with the largest elevation, determine in turn whether the to-be-processed primitive intersects with the target plate primitive. Starting from the to-be-processed primitive with the largest elevation, determine in turn in the order of arrangement whether the current to-be-processed primitive intersects with the target plate primitive.

[0092] S222, when the to-be-processed primitive intersects with the target board primitive, the to-be-processed primitive is leveled, which will be described in detail below and will not be repeated here.

[0093] The graphic element processing method provided in this embodiment adjusts the attributes of the graphic elements to be processed based on the relative position relationship between the acquired graphic elements to be processed and the graphic elements of the target board to achieve the final flush processing; the flush processing of the graphic elements to be processed with the graphic elements of the target board can achieve rapid aggregation and high calculation efficiency, thereby ensuring the accuracy of the engineering quantity calculation results and greatly improving work efficiency; the selection range is determined by using the attributes of the graphic elements to be processed to determine the target board graphic elements within the selection range, so as to realize automatic selection of the target board graphic elements and improve calculation efficiency; the target board graphic elements are selected to achieve the determination of the specified board, thereby ensuring the adaptability of the calculation.

[0094] In this embodiment, a method for processing a graphic element is provided. Figure 3 is a flowchart of a method for processing a graphic element according to an embodiment of the present invention. Figure 3 As shown, the process includes the following steps:

[0095] S31, obtaining the graphics element to be processed and the graphics element of the target board.

[0096] For details, please see Figure 1 S11 of the illustrated embodiment will not be described in detail here.

[0097] S32, performing leveling processing on the graphic element to be processed based on the relative position relationship between the graphic element to be processed and the graphic element of the target board.

[0098] Specifically, the above S32 includes the following steps:

[0099] S321, obtaining the primitive type of the primitive to be processed, wherein the primitive type includes point primitives and line primitives, and the line primitives include primary rib beams, secondary rib beams, and other types of beams, walls, and other primitive component types.

[0100] S322, adjusting the elevation of the graphics element to be processed according to the graphics element type.

[0101] In a specific implementation, when the primitive type is a point primitive, the above step S322 includes the following steps:

[0102] (31) Obtaining the top elevation of the roof within the preset range: First, obtaining the top elevation of the roof within the current floor (preset range), wherein the top elevation of the roof refers to the elevation of the top of the current floor.

[0103] (32) Modify the elevation of the element to be processed to the top elevation of the top plate. After determining the top elevation of the top plate, modify the elevation of the element to be processed to the obtained top elevation of the top plate.

[0104] In another embodiment of the present invention, when the primitive type is a line primitive, the above step S322 further includes the following steps:

[0105] (41) Determine the intersection point information based on the attributes of the graphics element to be processed and the graphics element of the target board.

[0106] Specifically, the intersection point information can be determined by determining the horizontal coordinates of the attributes of the to-be-processed primitives and the target board primitives through the attributes of the to-be-processed primitives and the target board primitives, and then obtaining the intersection coordinates of the horizontal coordinates, and determining the intersection coordinates as the intersection point information. That is, the intersection point information can be determined by the intersection position of the two-dimensional projection of the line primitive and the two-dimensional projection of all the target board primitives.

[0107] (42) The processing primitives are segmented using the intersection point information to determine the segmentation information. The processing primitives are segmented according to different intersection point information, and the line primitives are finally processed similarly to the interruption operation through the segmentation information. The segmentation information includes the interruption interval position information, the two-dimensional line information after the interruption, the three-dimensional line information after the alignment, the plate information corresponding to the alignment, etc., and then the intersection point information with the same position can be merged, or the invalid (interval length is less than the width of the line primitive is considered invalid) intersection point information can be deleted.

[0108] (43) Based on the segmentation information and the attributes of the to-be-processed primitive, a plurality of new primitives are determined. After the segmentation information is determined, the corresponding attributes of each segment of the to-be-processed primitive are reset to regenerate a plurality of new primitives.

[0109] (44) Setting the elevation of each new primitive to adjust the elevation of the primitive to be processed. After generating the new primitive, setting the elevation of each new primitive to determine the final target primitive, and realizing the alignment operation of the primitive with the target board primitive.

[0110] The above step of setting the elevation of each new primitive to adjust the elevation of the primitive to be processed specifically includes the following steps:

[0111] a. Determine whether the new primitive is a preset type primitive. Different primitives have different elevation settings. First, determine whether the new primitive is a preset type primitive. In this embodiment, the preset type primitives are primary ribs and secondary ribs. In actual applications, the preset type primitives can be set according to needs, and this embodiment is not limited to this.

[0112] b. When the new element is a preset type element, obtain the top elevation of the hollow floor slab.

[0113] c. Set the elevation of the new element to the top elevation of the hollow floor slab.

[0114] d. When the new element is not a preset type element, set the elevation of the new element to the top plate top elevation. In addition to the above-mentioned main rib beams and secondary rib beams, the new element may also be an element of other types of beams and wall components.

[0115] S323, determine whether the adjusted primitives meet the preset rules. When the adjusted primitives meet the preset rules, determine the target primitives after the alignment process. In this embodiment, if there are primitives that fail to be aligned, after the process is completed, the data will be uniformly rolled back to restore the original primitive attribute configuration. If the alignment is successful, it will be displayed according to the new attributes and configuration. If the alignment is successful, the preset rules are met. The definition of the preset rules is set according to the existing rules for determining the legitimacy of the primitives, and this embodiment will not elaborate on it in detail.

[0116] In practical applications, taking the above-mentioned split-story building as an example, it includes automatic alignment and specified alignment. If the target plate element is automatically selected, all the plate elements on the current floor will be filtered first, and then the selected element body will be extended up and down by a certain length (indicating the length within the current floor range) to determine whether there are related plate elements by judging the intersection relationship; if specified alignment is used, whether the intersection is determined based on the specified selected target plate element and the selected element extension body.

[0117] The selected elements will be sorted by elevation to ensure that when there are high and low layered walls, only the upper layer is flushed, and the lower layer is not moved; after sorting, the wall with the higher elevation will be flushed first, and then the legality will be checked. If there are high and low layered walls, the verification will be illegal after the bottom wall is flushed. The illegal ones will be rolled back and the current flushing will be exited. Among them, when multiple elements are selected for flushing, each element will be processed in turn, and the process of processing each element is consistent. The result of the flushing of each element will be recorded during the processing (the relevant attributes will be obtained in the middle, the interruption information will be processed, and the relevant attributes will be set. If any process fails, the failure information will be recorded). If there are elements that fail to be flushed, after the processing is completed, the data will be rolled back to restore the original element's attribute configuration. If the flushing is successful, it will be displayed according to the new attributes and configuration.

[0118] The first step in processing a single element is to check whether there are any associated plate elements. If it is an automatic method, the extension method will filter all associated plate elements. The specified method will only determine whether it is associated with the specified plate. For point elements (columns), the processing method is slightly different from that of line elements (beams or walls). Point elements do not involve interruption processing. Simply set the top plate elevation attribute to complete the flush processing. For the processing of line elements, the two-dimensional projection of the line element is segmented by the different intersection positions of the two-dimensional projections of all associated plate elements. The segmentation information and the plate information are finally processed in a similar way to the interruption operation. The elevation attribute settings of the main rib beams and secondary rib beams in the line elements are different from those of other beams. They need to be set to the hollow floor slab elevation.

[0119] When there are multiple plate elements associated with an element, the projection intersection position and elevation information will be judged in turn with the associated plate to generate interruption information (the interruption information includes the interruption interval position information, the two-dimensional line information after the interruption, the three-dimensional line information after the leveling, the corresponding plate information, etc.), and then merge the same position, or delete the invalid (interval length is less than the width of the linear element is considered invalid) breakpoint information. After calculating all the interruption information, the element will be regenerated according to the interruption information (the mechanism of regenerating the element is the same as the interruption operation, and the interruption information will be added to segment the original linear element, and each segment will be used as a new element after segmentation), and the original beam span information will be synchronized, and then the starting elevation properties of the associated plate will be set for the new elements in turn.

[0120] In this embodiment, the design drawings may show that the elevation of the top of the board in the same floor may be different. For example, in a split-story building, the elevation of the columns, walls, beams and other components under the floor slab basically follows the top of the board. There are two types of boards with different elevations in the same floor, and the bottom board is an inclined board, the top board is a flat board, and there is a beam in it. After drawing, the top of the board can only be flush with the elevation of the flat board above, not with the inclined board below. According to the actual engineering needs of the user, there are the following scenarios:

[0121] Scenario 1: When there is a sloping roof in the project (cast-in-place slab is selected in the component list, there is a sloping slab element, and there are column, wall, and beam elements under the sloping slab, and the elevations of these elements are not flush with the sloping slab), the user needs to adjust the elevations of the columns (columns, structural columns, masonry columns), walls (shear walls, masonry walls, insulation walls, curtain walls), beams (beams, connecting beams, ring beams), precast columns, and main rib beams under the sloping roof to below the sloping roof;

[0122] The user needs to align the elevations of the columns, walls, and beams under the inclined slab with the inclined slab. First, select the column / wall / beam component in the component list, switch to the column (column, structural column, masonry column) / wall (shear wall, masonry wall, insulation wall, curtain wall) / beam (beam, connecting beam, ring beam) component layer, click "Automatically align slab", select the columns, walls, and beams whose elevations need to be adjusted, and in response to the user's confirmation operation, the "Alignment completed" bubble will pop up.

[0123] Scenario 2: When there are two cast-in-place slabs with different elevations in the same layer of a project (select cast-in-place slab in the component list, and view two slabs with different elevations at the same position in 3D, the bottom one is an inclined slab, the top one is a flat slab, and there are columns, walls, and beams under the slabs), and the slab at the bottom is an inclined slab and the top one is a flat slab, the user needs to adjust the elevations of the columns, walls, and beams under the slab to below the inclined slab;

[0124] The user needs to adjust the elevation of the columns, walls, and beams under the inclined slabs with two elevations in the same layer to the specified slab; select the column / wall / beam component in the component list, switch to the column (column, structural column, masonry column) / wall (shear wall, masonry wall, insulation wall, curtain wall) / beam (beam, connecting beam, ring beam) component layer, click "Specify flush slab", select the columns, walls, and beams whose elevations need to be adjusted, respond to the confirmation operation, select the target slab element to be flushed, respond to the confirmation operation, and the "Flushing completed" bubble will pop up.

[0125] Scenario 3: When there are cast-in-place slabs with different elevations in the same layer of a project (select cast-in-place slabs in the component list, and there are multiple slabs with different elevations at the same position in 3D view, and there are columns, walls, and beams under the slabs), the user needs to adjust the elevations of the columns, walls, and beams under the slabs to different inclined slabs;

[0126] The user needs to adjust the elevation of the columns, walls, and beam elements under the inclined slabs with multiple elevations in the same layer to the specified different inclined slabs; select the cast-in-place slab in the component list, switch to the component layer under the cast-in-place slab component layer, and click "Specify flush slab"; select the column whose elevation needs to be adjusted, respond to the OK operation; select the target slab element to be flushed; respond to the OK operation again, and the "Flush completed" bubble will pop up; then select the beam whose elevation needs to be adjusted, respond to the OK operation; select the target slab element to be flushed; respond to the OK operation, and the "Flush completed" bubble will pop up; finally select the wall whose elevation needs to be adjusted, respond to the OK operation; select the target slab element to be flushed; after responding to the OK operation, the "Flush completed" bubble will pop up.

[0127] Scenario 4: When there are two or more precast panels with different elevations on the same layer in a project (select the precast panel in the component list, and there are two or more panels with different elevations at the same location in the 3D view, and there are precast column elements under the panels), the user needs to adjust the elevation of the precast columns under the panels to the same flat panel;

[0128] The user needs to adjust the elevation of the precast columns under the precast slabs with two / multiple elevations on the same layer to the specified slab; select the precast columns in the component list, switch to the precast column component layer, and click "Specify flush slab"; select the precast columns whose elevations need to be adjusted, and respond to the OK operation; select the target slab element to be flushed; in response to the OK operation, the "Flushing Completed" bubble pops up.

[0129] Scenario 5: When there are two or more hollow floor slabs with different elevations in the same layer of the project (select the hollow floor slab in the component list, and there are two or more slabs with different elevations in the same position in the 3D view, and there are main rib beams and secondary rib beams under the slabs), the user needs to adjust the elevations of the main rib beams and secondary rib beams under the slabs to the same flat plate;

[0130] The user needs to adjust the elevation of the main rib beam / secondary rib beam element under the hollow floor slab with two / multiple elevations in the same layer to the specified slab; select the main rib beam / secondary rib beam in the component list, switch to the component layer under the main rib beam / secondary rib beam component layer, and click "Specify flush slab"; select the main rib beam & secondary rib beam whose elevation needs to be adjusted, and respond to the confirmation operation; select the target slab element to be flushed; after responding to the confirmation operation, the "Flushing completed" bubble pops up.

[0131] It should be noted that this embodiment only uses the above-mentioned scenarios as examples to illustrate the primitive processing method of the present application. In actual applications, there may be other scenarios, and this embodiment is not limited to these.

[0132] The graphic element processing method provided in this embodiment sorts each graphic element to be processed according to its elevation, so as to facilitate timely discovery and processing of illegal processing, thereby increasing the accuracy and reliability of calculations; the elevations of graphic elements are set according to different graphic element types, so as to achieve fast matching and processing of different operations, thereby ensuring calculation efficiency and accuracy.

[0133] In this embodiment, a primitive processing device is also provided, which is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware of a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.

[0134] This embodiment provides a graphics primitive processing device, such as Figure 4 As shown, it includes: a first processing module 1, used for obtaining the image element to be processed and the image element of the target board; a second processing module 2, used for aligning the image element to be processed based on the relative position relationship between the image element to be processed and the image element of the target board.

[0135] The target detection device in this embodiment is presented in the form of a functional unit, where the unit refers to an ASIC circuit, a processor and memory that executes one or more software or fixed programs, and / or other devices that can provide the above functions.

[0136] The further functional description of each of the above modules is the same as that of the above corresponding embodiments and will not be repeated here.

[0137] The embodiment of the present invention also provides an electronic device having the above Figure 4 The primitive processing device shown.

[0138] See also Figure 5 , Figure 5 is a schematic diagram of the structure of an electronic device provided by an optional embodiment of the present invention, such as Figure 5 As shown, the electronic device may include: at least one processor 601, such as a CPU (Central Processing Unit), at least one communication interface 603, a memory 604, and at least one communication bus 602. The communication bus 602 is used to realize the connection and communication between these components. The communication interface 603 may include a display screen (Display), a keyboard (Keyboard), and the optional communication interface 603 may also include a standard wired interface and a wireless interface. The memory 604 may be a high-speed RAM memory (Random Access Memory) or a non-volatile memory (non-volatile memory), such as at least one disk storage. The memory 604 may optionally be at least one storage device located away from the aforementioned processor 601. The processor 601 may be combined with Figure 4 In the described device, the memory 604 stores an application program, and the processor 601 calls the program code stored in the memory 604 to execute any of the above method steps.

[0139] The communication bus 602 may be a peripheral component interconnect (PCI) bus or an extended industry standard architecture (EISA) bus. The communication bus 602 may be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 5 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.

[0140] Among them, the memory 604 may include a volatile memory (English: volatile memory), such as a random access memory (English: random-access memory, abbreviated: RAM); the memory may also include a non-volatile memory (English: non-volatile memory), such as a flash memory (English: flash memory), a hard disk drive (English: hard disk drive, abbreviated: HDD) or a solid-state drive (English: solid-state drive, abbreviated: SSD); the memory 604 may also include a combination of the above types of memory.

[0141] The processor 601 may be a central processing unit (CPU), a network processor (NP), or a combination of a CPU and a NP.

[0142] The processor 601 may further include a hardware chip. The hardware chip may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. The PLD may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), a generic array logic (GAL), or any combination thereof.

[0143] Optionally, the memory 604 is also used to store program instructions. The processor 601 can call the program instructions to implement the present application Figure 1 , 2 And the primitive processing method shown in 3 embodiments.

[0144] The embodiment of the present invention further provides a non-transitory computer storage medium, which stores computer executable instructions, and the computer executable instructions can execute the primitive processing method in any of the above method embodiments. The storage medium can be a disk, an optical disk, a read-only memory (ROM), a random access memory (RAM), a flash memory, a hard disk drive (HDD) or a solid-state drive (SSD), etc.; the storage medium can also include a combination of the above types of memory.

[0145] Although the embodiments of the present invention have been described in conjunction with the accompanying drawings, those skilled in the art may make various modifications and variations without departing from the spirit and scope of the present invention, and such modifications and variations are all within the scope defined by the appended claims.

Claims

1. A method for processing a graphic element, characterized in that: The method comprises: Get the graphics element to be processed and the graphics element of the target board; sorting the graphics elements to be processed according to their elevations; Starting from the to-be-processed primitive with the largest elevation, determining in sequence whether the to-be-processed primitive intersects with the target board primitive; When the to-be-processed primitive intersects with the target board primitive, performing a flushing process on the to-be-processed primitive; The leveling of the to-be-processed graphic element includes: Acquire the primitive type of the primitive to be processed, wherein the primitive type includes a line primitive; According to the type of the graphic element, adjusting the elevation of the graphic element to be processed; Determine whether the adjusted primitive meets the preset rule, and when the adjusted primitive meets the preset rule, determine the target primitive after the leveling process; Wherein, when the primitive type is a line primitive, adjusting the elevation of the primitive to be processed according to the primitive type includes: Determine the intersection point information according to the attributes of the to-be-processed primitive and the target board primitive; Segmenting the to-be-processed graphic element using the intersection point information to determine segmentation information; Determine a plurality of new graphic elements based on the segmentation information and the attributes of the graphic element to be processed; The elevation of each new graphic element is set to adjust the elevation of the graphic element to be processed.

2. The method according to claim 1, characterized in that: The determining whether the to-be-processed primitive intersects with the target board primitive comprises: Extending the coordinates of the to-be-processed graphic element to determine an extended plate graphic element; The coordinates of the extended plate primitive and the target plate primitive are used to determine whether the coordinates of the extended plate primitive and the target plate primitive intersect.

3. The method according to claim 1, characterized in that When the primitive type is a point primitive, adjusting the elevation of the primitive to be processed according to the primitive type includes: Get the top elevation of the top plate within the preset range; The elevation of the graphic element to be processed is modified to the top elevation of the top plate.

4. The method according to claim 1, characterized in that The step of determining the intersection point information according to the attributes of the to-be-processed primitive and the target board primitive includes: According to the attributes of the to-be-processed primitive and the target board primitive, determining the horizontal plane coordinates of each attribute; The intersection coordinates of each of the horizontal plane coordinates are obtained to determine the intersection point information.

5. The method according to claim 1, characterized in that: The step of setting the elevation of each new graphic element to adjust the elevation of the graphic element to be processed includes: Determine whether the new primitive is a primitive of a preset type; When the new element is an element of a preset type, obtaining the top elevation of the hollow floor slab; The elevation of the new element is set to the top elevation of the hollow floor slab.

6. The method according to claim 5, characterized in that When the new primitive is not a primitive of a preset type, the elevation of the new primitive is set to the top elevation of the top plate.

7. The method according to claim 1, characterized in that The step of obtaining the target board primitives includes: Determine the selection range according to the attributes of the graphic element to be processed; All board primitives within the selection range are determined as target board primitives.

8. The method according to claim 1, characterized in that The step of obtaining the target board primitives further includes: In response to a selection operation on a current board element; The current board primitive is determined as a target board primitive.

9. A graphics primitive processing device, characterized in that: include: The first processing module is used to obtain the graphics element to be processed and the graphics element of the target board; The second processing module is used to sort the to-be-processed primitives according to their elevations, and start from the to-be-processed primitive with the largest elevation, and sequentially determine whether the to-be-processed primitives intersect with the target board primitives; when the to-be-processed primitives intersect with the target board primitives, perform a flushing process on the to-be-processed primitives; The second processing module is specifically used to obtain the primitive type of the primitive to be processed, the primitive type includes a line primitive, and adjust the elevation of the primitive to be processed according to the primitive type; determine whether the adjusted primitive meets the preset rule, and when the adjusted primitive meets the preset rule, determine the target primitive after the leveling process; The second processing module is further used to determine the intersection point information according to the properties of the to-be-processed primitive and the target board primitive when the primitive type is a linear primitive; segment the to-be-processed primitive using the intersection point information to determine segmentation information; and determine multiple new primitives based on the segmentation information and the properties of the to-be-processed primitive; The elevation of each new graphic element is set to adjust the elevation of the graphic element to be processed.

10. An electronic device, characterized in that: include: A memory and a processor, wherein the memory and the processor are communicatively connected to each other, computer instructions are stored in the memory, and the processor executes the primitive processing method according to any one of claims 1 to 8 by executing the computer instructions.

11. A computer storage medium, characterized in that: The computer-readable storage medium stores computer instructions, and the computer instructions are used to enable a computer to execute the primitive processing method according to any one of claims 1 to 8.