BIM model-based face fusion blanking method and device, equipment and medium
By acquiring and updating the boundary representations of components in the BIM model, the hidden surface removal requirements are automatically processed, solving the problem of low efficiency in existing technologies and achieving a highly efficient hidden surface removal effect.
Patent Information
- Application Number
- CN202310316087.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-03-24
- Publication Date
- 2026-01-02
- Estimated Expiration
- 2043-03-24
AI Technical Summary
Existing technologies cannot automatically complete the hidden surface removal requirements during the rendering process based on BIM models, resulting in low efficiency and a high risk of errors and omissions, which affects the output display effect.
By acquiring components with geometric relationships in the BIM model, extracting their boundary representations, updating coplanar coincident edge pairs, and rendering based on the component's display attributes, automated hidden surface removal is achieved.
It improves processing efficiency, meets users' output display needs, and ensures the accuracy and real-time performance of the hidden surface removal effect.
Smart Images

Figure CN116401741B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] The present application relates to the technical field of computer-aided design, and in particular to a face fusion blanking method and device based on a BIM model, equipment and a medium. BACKGROUND
[0002] A building information model (BIM model) is composed of a plurality of components. When drawing architectural design drawings, a connection relationship such as a connection line is often established between two components in order to ensure the integrity of the components. When the drawing is output, the connection line (for example, a wall) between the components needs to be blanked. The components may also be deducted at times, and if the materials are the same after deduction, the blanking is required (for example, a beam and a column). Otherwise, when the drawing is output in a hidden line mode, the hidden line will be blocked by the upper boundary line that is not blanked, resulting in incorrect line types of the output drawing. In addition, in many cases, even if there is no deduction and connection relationship between the components, the blanking of the boundary line still needs to be processed. For example, during the output of an architectural elevation view, because of the fusion of the outer facade material, the lines between the upper and lower floors do not need to be drawn to meet the drawing needs of the architectural elevation view.
[0003] In the prior art, the blanking needs of the drawing cannot be automatically completed in the rendering process based on the BIM model, and can only be processed manually, which is not only low in efficiency, but also prone to errors and omissions for large-scale BIM models, thereby affecting the final display effect of the drawing. SUMMARY
[0004] Therefore, the embodiments of the present application provide a face fusion blanking method and device based on a BIM model, equipment and a medium to overcome the problem in the prior art that the blanking needs of the drawing of the BIM model can only be completed manually and the efficiency is low.
[0005] According to a first aspect, the embodiments of the present application provide a face fusion blanking method based on a BIM model, and the method comprises the following steps.
[0006] A first component and a second component having a geometric relationship in a BIM model are obtained, and the geometric relationship is used to represent that there is a face fusion blanking need between the components;
[0007] A first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component are extracted;
[0008] The first boundary representation body and the second boundary representation body are updated based on the coincident edges on the first boundary representation body and the second boundary representation body, and a first coincident edge pair that is completely coincident is obtained.
[0009] rendering drawing is performed on the first coincident edge pair based on display attributes of the first component and the second component, the display attributes being used to represent visibility of components.
[0010] Optionally, the first boundary representation and the second boundary representation are updated based on the coincident edges respectively, to obtain the first coincident edge pair that is completely coincident, including:
[0011] extracting an initial edge pair that is coincident between the first boundary representation and the second boundary representation;
[0012] judging whether a common plane exists for the plane where the initial edge pair is located;
[0013] calculating a starting point and an ending point of the coincident part for each edge of the initial edge pair that has the common plane;
[0014] sorting all the starting points and the ending points according to geometric parameter values of curves;
[0015] updating each edge of the initial edge pair that has the common plane by breaking, and updating the corresponding first boundary representation and the second boundary representation by using the sorted starting points and the ending points;
[0016] extracting the first coincident edge pair that is completely coincident between the updated first boundary representation and the second boundary representation.
[0017] Optionally, the updating each edge of the initial edge pair that has the common plane by breaking, and updating the corresponding first boundary representation and the second boundary representation by using the sorted starting points and the ending points, includes:
[0018] updating each edge of the initial edge pair that has the common plane by breaking, and updating each edge of the initial edge pair to a plurality of first edges by using the sorted starting points and the ending points;
[0019] updating topological information of the first boundary representation and the second boundary representation respectively based on the plurality of first edges corresponding to each edge of the initial edge pair.
[0020] Optionally, the rendering drawing is performed on the first coincident edge pair based on display attributes of the first component and the second component, including:
[0021] judging whether the first component and the second component are both invisible based on the display attributes of the first component and the second component;
[0022] when at least one of the first component and the second component is visible, the rendering drawing is not performed on the first coincident edge pair, to hide the first coincident edge pair.
[0023] Optionally, the first coinciding edge pair is rendered based on display properties of the first component and the second component when both the first component and the second component are invisible.
[0024] Optionally, the method further comprises:
[0025] When a display property of the first component and / or the second component is monitored to change, returning to rendering the first coinciding edge pair based on the display property of the first component and the second component.
[0026] Optionally, the method further comprises:
[0027] Obtaining a component identifier of a component requiring face fusion blanking in the BIM model;
[0028] Establishing a geometric relationship of a component requiring face fusion blanking based on the component identifier, the geometric relationship including a connection relationship, a deduction relationship and a preset blanking relationship.
[0029] According to a second aspect, an embodiment of the present application provides a face fusion blanking device based on a BIM model, the device comprising:
[0030] An obtaining module is configured to obtain a first component and a second component having a geometric relationship in a BIM model, the geometric relationship being used to represent a face fusion blanking requirement between components;
[0031] A first processing module is configured to extract a first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component;
[0032] A second processing module is configured to update the first boundary representation body and the second boundary representation body based on coinciding edges having a common plane on the first boundary representation body and the second boundary representation body, to obtain a first coinciding edge pair that is completely coinciding;
[0033] A third processing module is configured to render the first coinciding edge pair based on display properties of the first component and the second component, the display properties being used to represent visibility of the components.
[0034] According to a third aspect, an embodiment of the present application provides an electronic device, comprising:
[0035] A memory and a processor, which are communicatively connected with each other, the memory stores computer instructions, and the processor executes the computer instructions to perform the method of the first aspect and any optional implementation manner thereof.
[0036] According to a fourth aspect, an embodiment of the present application provides a computer readable storage medium storing computer instructions for causing a computer to execute the method of the first aspect, or any of the optional implementation forms of the first aspect.
[0037] The technical scheme of the present application has the following advantages:
[0038] The BIM model-based face fusion blanking method provided by the embodiment of the present application obtains a first component and a second component having a geometric relationship in a BIM model; extracts a first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component; updates the first boundary representation body and the second boundary representation body based on a coincident edge having a common face on the first boundary representation body and the second boundary representation body, to obtain a first coincident edge pair; and renders and draws the first coincident edge pair based on display attributes of the first component and the second component. Thus, in the rendering process of the BIM model, the boundary representation bodies having blanking requirements are updated by using the coincident edge pair having a common face, the coincident edge pair that is completely coincident is screened and obtained as a blanking object in the rendering and drawing process, and finally the blanking object is rendered and drawn according to the display attributes of the components, so that the blanking effect expected by the user is achieved, the processing efficiency is improved, and the drawing display requirements of the user are met. BRIEF DESCRIPTION OF DRAWINGS
[0039] In order to more clearly illustrate the specific embodiments of the present application or the technical solutions in the prior art, the drawings needed in the specific embodiments or the prior art description will be briefly introduced below. Obviously, the drawings in the following description are some embodiments of the present application, and those skilled in the art can also obtain other drawings according to these drawings without creative labor.
[0040] Figure 1 The flowchart of the BIM model-based face fusion blanking method in the embodiment of the present application;
[0041] Figure 2 The schematic diagram of the edge breaking processing in the embodiment of the present application;
[0042] Figure 3 The schematic diagram of a rendering and drawing result in the embodiment of the present application;
[0043] Figure 4 The schematic diagram of another rendering and drawing result in the embodiment of the present application;
[0044] Figure 5 The schematic diagram of still another rendering and drawing result in the embodiment of the present application;
[0045] Figure 6A result schematic diagram of rendering of an original BIM model in an embodiment of the present application;
[0046] Figure 7 A result schematic diagram of rendering of a BIM model after face fusion blanking in an embodiment of the present application;
[0047] Figure 8 A structure schematic diagram of a face fusion blanking device based on a BIM model in an embodiment of the present application;
[0048] Figure 9 A structure schematic diagram of an electronic device in an embodiment of the present application. DETAILED DESCRIPTION
[0049] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the following will clearly and completely describe the technical solutions in the embodiments of the present application with reference to the drawings in the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments in the present application, all other embodiments obtained by those skilled in the art without creative work fall within the scope of protection of the present application.
[0050] In the description of the present application, it should be noted that the terms “first”, “second”, “third” are only for the purpose of description, and cannot be understood as indicating or implying relative importance.
[0051] The technical features involved in different embodiments of the present application described below can be combined with each other as long as there is no conflict.
[0052] When drawing architectural design drawings, a connection relationship such as a connection line is often established between two components in order to ensure the integrity of the components. When drawing, the connection line (for example, a wall) between the components needs to be blanked. Sometimes, the components are also deducted. After deduction, if the materials are the same, blanking is needed (for example, beams and columns), otherwise, when drawing in the hidden line mode, the hidden line will be blocked by the upper unblanked boundary line, causing incorrect drawing lines. In addition, in many cases, even if there is no deduction and connection relationship between the components, the blanking of the boundary line still needs to be handled, such as when drawing a building in a vertical section view, because of the fusion of the facade material, the lines between the upper and lower floors do not need to be drawn to meet the drawing needs of the building vertical section view.
[0053] In the prior art, the blanking needs of drawing cannot be automatically completed in the rendering process based on the BIM model, and can only rely on manual processing, which is not only low in efficiency, but also prone to errors and omissions for large-scale BIM models, affecting the final drawing display effect.
[0054] Based on the above problems, an embodiment of the present application provides a face fusion blanking method based on a BIM model, as follows:Figure 1 As shown, the method specifically comprises the following steps:
[0055] Step S101: Obtain a first component and a second component in a BIM model that have a geometric relationship.
[0056] The geometric relationship is used to represent the face fusion and concealment requirement between the components. The geometric relationship includes a connection relationship, a deduction relationship, and a preset concealment relationship. The connection relationship is a connection between two components, such as a common wall between two components. The deduction relationship is a deduction between two components, such as a beam and a column. The preset concealment relationship is a user-defined scenario that needs to be concealed, such as a wall between upper and lower floors.
[0057] Specifically, when creating a BIM model, the component identifier of the component that needs face fusion and concealment is obtained. The geometric relationship of the component that needs face fusion and concealment is established based on the component identifier.
[0058] In actual application, the geometric relationship is determined according to the business. Each component has a geometric relationship component. For example, two walls need to be connected, and the connection geometric relationship is added to the geometric relationship component of the wall. According to the foregoing introduction, if two components have a connection and a deduction, they need to be concealed if the materials are the same. However, there are some scenarios without a connection and a deduction, and two objects also need to be concealed (such as walls between upper and lower floors). Therefore, a custom concealment relationship is established for the walls between the upper and lower floors to make them concealed. In addition, in actual application, the connection, deduction, and custom concealment geometric relationships can exist simultaneously.
[0059] Step S102: Extract a first boundary representation volume corresponding to the first component and a second boundary representation volume corresponding to the second component.
[0060] In actual application, before the BIM model is drawn, the relevant concealment conditions can be registered to determine whether two components need face fusion and concealment according to the corresponding geometric relationship in the relevant view. If the two components have a corresponding geometric relationship and need to be concealed according to the concealment condition, the boundary representation display nodes in the graphical representation of the components are collected, and then the collected volumes are face-fused and concealed two by two. The concealment condition is a callback function to inquire whether two components need to be concealed. For example, two walls have a connection geometric relationship. According to the view to be rendered, the identifiers of the two component objects, and the connection geometric relationship type, whether the two walls need to be concealed is inquired. If the two walls need to be concealed, they are concealed. If the two walls do not need to be concealed, they are not concealed.
[0061] Step S103: Update the first boundary representation volume and the second boundary representation volume based on the coincident edges on the first boundary representation volume and the second boundary representation volume that have a common face, to obtain a first coincident edge pair that completely coincides.
[0062] Exemplarily, according to whether the faces where the coincident edge pairs are located have a common plane, the method for judging the common plane is that the coincident edge is divided into N equal points according to parameters, and then the normal of the face where the equal points are located is calculated, and if the normal values are the same, it is considered that the common plane exists.
[0063] Step S104: rendering and drawing the first coincident edge pairs based on the display attributes of the first component and the second component.
[0064] The display attribute is used to represent the visibility of the component. For example, if the current component is invisible in the view, the display attribute is invisible, and if the current component is visible in the view, the display attribute is visible.
[0065] By performing the above steps, the face fusion blanking method based on the BIM model provided by the embodiment of the present application updates the boundary representation bodies with the existence of the blanking requirement by using the coincident edge pair boundary representation bodies with the existence of the face fusion, that is, the common plane, filters the coincident edge pairs that are completely coincident as the blanking objects in the rendering and drawing process, and finally renders and draws the blanking objects according to the display attributes of the components, so as to achieve the blanking effect expected by the user, improve the processing efficiency, and meet the output display requirements of the user.
[0066] Specifically, in an embodiment, the above step S103 specifically includes the following steps:
[0067] Step S31: extracting the initial edge pairs that exist coincident between the first boundary representation body and the second boundary representation body.
[0068] Step S32: judging whether the faces where the initial edge pairs are located have a common plane.
[0069] Step S33: for each edge of the initial edge pairs with the common plane, calculating the start point and the end point of the coincident part.
[0070] Step S34: sorting all the start points and the end points according to the geometric parameter values of the curves.
[0071] Step S35: updating each edge of the initial edge pairs with the common plane by breaking, and updating the corresponding first boundary representation body and the second boundary representation body.
[0072] Specifically, by breaking each edge of the initial edge pairs with the common plane by using the sorted start points and end points, each edge of the initial edge pairs is updated to a plurality of first edges; and the topological information of the first boundary representation body and the second boundary representation body is updated based on the plurality of first edges corresponding to each edge of the initial edge pairs.
[0073] Step S36: extracting the first coincident edge pairs that are completely coincident between the updated first boundary representation body and the second boundary representation body.
[0074] Specifically, by finding out the initial edge pairs between two boundary representation bodies that satisfy complete coincidence or partial coincidence; then judging whether the faces where the coincident edge pairs are located have coplanar according to the coincident edge pairs, the method of judging coplanar is described above, which will not be repeated here; for each edge of the initial coincident edge pairs that satisfy coplanar, the intersection geometric information of the starting point and the ending point of the coincident part is calculated, and each intersection point is marked as the starting point or the ending point of the coincident part, and then all intersection points are sorted according to the geometric parameter values of the curve (i.e. the parameter domain range of the original coincident part of the original edge in the geometric curve, and then the size is sorted according to the parameter domain range); for each edge of the initial coincident edge pairs that satisfy coplanar, according to the sorted intersection points, the starting point and the ending point information of the intersection points, the edge is broken, the original edge geometry is updated, the broken other edges are added to the end of the boundary representation body, and the topological information of the boundary representation body is updated, and the final complete coincident edge pair information is recorded.
[0075] Exemplarily, as shown in Figure 2 , the three edges 11, 12 and 13 pointed by the arrows are an integral edge before being hidden, and will be broken into three edges after being hidden, wherein the middle arrow corresponds to the hidden edge 12, which will directly update the geometry, and the other edges after being broken are the two edges 11 and 12 on the two sides remaining in this scene. Since the edge container exists in the geometry before being hidden, the newly generated edge is appended to the container, and the container does not need to be specially maintained, so the index of the original edge will not change, and according to this rule, it can be easily known which edge is the newly generated edge broken by the hidden according to the comparison between the two geometries before and after.
[0076] Specifically, in an embodiment, the step S104 specifically includes the following steps:
[0077] Step S41: judging whether the first component and the second component are both invisible based on the display attributes of the first component and the second component.
[0078] Step S42: when at least one of the first component and the second component is visible, not rendering and drawing the first coincident edge pair to hide the first coincident edge pair.
[0079] Step S43: when the first component and the second component are both invisible, rendering and drawing the first coincident edge pair.
[0080] Specifically, according to the updated boundary representation body, the graphic node of the boundary representation body is updated, for each edge of the final fully coincident edge pair, the unique identification information of all components fully coincident with the edge is updated and recorded, and in the rendering process, whether to draw is determined according to the unique identification information of the components recorded in the graphic display node of the coincident edge pair, if all components fully coincident with the edge are invisible in the view, the edge is drawn (visible) in the view, otherwise, the edge is not drawn. Wherein, the graphic node is for final rendering, and it has more information relative to the geometric body, such as edge display style, node identification, whether to pick up, capture and clip, etc.; the graphic node of the geometric body before blanking will store the additional information corresponding to the geometric edge, and the corresponding information needs to be updated after blanking, such as the above-mentioned splitting of one edge into three edges, the original additional information of the newly generated edge needs to be copied, then a unique node identification is updated, and finally the unique identification of the component to be blanked is recorded for the edge to be blanked.
[0081] Exemplarily, before rendering in the view window, a model view will generate components for the graphic node of the view rendering according to the view-related configuration, if it is finally determined that the component is visible in the view, it will be cached in the model view, so whether the component is visible in the view is to determine whether the component is cached in the visibility cache of the model view.
[0082] Thus, by utilizing the visibility of the component to flexibly blank the coincident edge pair, an automatic blanking processing function is realized, and different actual display needs of users can be flexibly adapted, thereby improving the user experience.
[0083] Specifically, in an embodiment, the BIM model-based face fusion blanking method provided by the embodiment of the present application further includes the following steps:
[0084] Step S105: When the display attribute of the first component and / or the second component is monitored to change, returning to step S104.
[0085] Exemplarily, as shown in Figure 3 , the arrows of wall 1 in the figure point to the edges that are blanked with wall 2 and wall 3, when wall 2 and wall 3 are invisible, in order to display the integrity of the components, the blanked edges need to be displayed, and the final rendering result is as shown in Figure 4 ; when wall 3 is invisible, in order to express that wall 1 and wall 2 need to be blanked, the coincident edges are not drawn in the rendering, and the final rendering result is as shown in Figure 5 . Thus, by monitoring the display state of the components that need to be blanked, when the display state of the components changes, the blanked edges are automatically re-rendered and drawn, thereby guaranteeing the real-time and accuracy of the view display effect, and improving the rendering efficiency.
[0086] The BIM model-based face fusion blanking method provided in the embodiment of the present application provides a face fusion message algorithm to ensure the correctness of the drawing. Since there are many sources of blanking between components, the capability of the upper-layer service to customize whether blanking is needed between components is provided. When the visibility of one component changes, the other component blanked by the one component does not need to be blanked again, and only needs to be rendered again. Exemplarily, Figure 6 a result schematic diagram of rendering of an original BIM model, Figure 7 a result schematic diagram of rendering of a BIM model after face fusion blanking.
[0087] The embodiment of the present application also provides a BIM model-based face fusion blanking device. Figure 8 As shown in the figure, the BIM model-based face fusion blanking device comprises:
[0088] The acquisition module 101 is configured to acquire a first component and a second component having a geometric relationship in a BIM model, and the geometric relationship is used to represent that face fusion blanking is needed between the components. For details, refer to the related description of step S101 in the method embodiment, which will not be repeated here.
[0089] The first processing module 102 is configured to extract a first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component. For details, refer to the related description of step S102 in the method embodiment, which will not be repeated here.
[0090] The second processing module 103 is configured to update the first boundary representation body and the second boundary representation body based on a coincident edge existing on the first boundary representation body and the second boundary representation body, to obtain a first coincident edge pair that is completely coincident. For details, refer to the related description of step S103 in the method embodiment, which will not be repeated here.
[0091] The third processing module 104 is configured to perform rendering and drawing on the first coincident edge pair based on display attributes of the first component and the second component, and the display attributes are used to represent the visibility of the components. For details, refer to the related description of step S104 in the method embodiment, which will not be repeated here.
[0092] The BIM model-based face fusion blanking device provided in the embodiment of the present application is used to execute the BIM model-based face fusion blanking method provided in the above embodiment, and the implementation mode and principle are the same, and for details, refer to the related description of the method embodiment, which will not be repeated here.
[0093] Through the cooperation of the above various components, the face fusion blanking device based on the BIM model provided by the embodiment of the application realizes the user's desired blanking effect by updating the boundary representation body with the existence of blanking demand in the rendering process of the BIM model by using the coincident edge pair of the existence of face fusion, that is, the coincident edge pair, screening the coincident edge pair that completely coincides as the blanking object in the rendering process, and finally rendering and drawing the blanking object according to the display attribute of the component, thereby improving the processing efficiency and meeting the drawing display requirements of the user.
[0094] The embodiment of the application further provides an electronic device, as shown in the figure, the electronic device comprises a processor 901 and a memory 902, wherein the processor 901 and the memory 902 can be connected through a bus or other manners, Figure 9 for example, the bus connection is taken as an example. Figure 9
[0095] The processor 901 can be a central processing unit (CPU). The processor 901 can also be other general-purpose processors, digital signal processors (DSP), application specific integrated circuits (ASIC), field programmable gate arrays (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. chips, or a combination of the above various chips.
[0096] The memory 902 is a kind of non-transient computer readable storage medium, which can be used to store non-transient software programs, non-transient computer executable programs and modules, such as program instructions / modules corresponding to the method in the above method embodiment. The processor 901 executes various functions of the processor and data processing by running the non-transient software programs, instructions and modules stored in the memory 902, that is, the method in the above method embodiment is realized.
[0097] The memory 902 can include a program storage area and a data storage area, where the program storage area can store an operating system, application programs required by at least one function, and the data storage area can store data created by the processor 901 and the like. In addition, the memory 902 can include a high-speed random access memory, and can further include a non-transitory memory, such as at least one disk storage device, a flash memory device, or other non-transitory solid-state storage device. In some embodiments, the memory 902 can optionally include a memory disposed remotely from the processor 901, which can be connected to the processor 901 through a network. Examples of the above network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof.
[0098] One or more modules are stored in the memory 902, which, when executed by the processor 901, perform the methods in the above method embodiments.
[0099] The above electronic device specific details can be understood in correspondence with the relevant description and effects in the above embodiments, which will not be described here.
[0100] Those skilled in the art can understand that all or part of the processes in the above embodiments can be completed by a computer program instructing related hardware, and the implemented program can be stored in a computer readable storage medium. When the program is executed, it can include the processes of the above embodiments. The storage medium can be a magnetic 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 memories.
[0101] Although the embodiments of the present application are described in conjunction with the accompanying drawings, various modifications and changes can be made by those skilled in the art without departing from the spirit and scope of the present application, and such modifications and changes fall within the scope defined by the appended claims.
Claims
1. A BIM model-based face fusion blanking method, characterized by, The method comprises: obtaining a first component and a second component in a BIM model, wherein the geometric relationship between the components is used to represent the surface fusion concealment requirement between the components; extracting a first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component; updating the first boundary representation body and the second boundary representation body based on the coincident edges of the first boundary representation body and the second boundary representation body, to obtain a first coincident edge pair; rendering the first coincident edge pair based on the display attributes of the first component and the second component, wherein the display attributes are used to represent the visibility of the components; the step of updating the first boundary representation body and the second boundary representation body based on the coincident edges of the first boundary representation body and the second boundary representation body to obtain a first coincident edge pair comprises: extracting an initial edge pair between the first boundary representation body and the second boundary representation body; determining whether the faces where the initial edge pair is located are coplanar; calculating the starting point and the ending point of the coincident part for each edge of the initial edge pair that is coplanar; sorting all the starting points and the ending points according to the geometric parameter values of the curves; updating each edge of the initial edge pair that is coplanar by breaking the edge using the sorted starting points and ending points, and updating the corresponding first boundary representation body and second boundary representation body; extracting a first coincident edge pair between the updated first boundary representation body and the second boundary representation body; the step of rendering the first coincident edge pair based on the display attributes of the first component and the second component comprises: determining whether the first component and the second component are both invisible based on the display attributes of the first component and the second component; when at least one of the first component and the second component is visible, not rendering the first coincident edge pair to hide the first coincident edge pair; when the first component and the second component are both invisible, rendering the first coincident edge pair.
2. The method of claim 1, wherein, the step of updating each edge of the initial edge pair that is coplanar by breaking the edge using the sorted starting points and ending points, and updating the corresponding first boundary representation body and second boundary representation body comprises: updating each edge of the initial edge pair that is coplanar by breaking the edge using the sorted starting points and ending points, and updating the corresponding first boundary representation body and second boundary representation body comprises: updating the topological information of the first boundary representation body and the second boundary representation body based on the first edges corresponding to each edge of the initial edge pair.
3. The method of claim 1, wherein, Further comprising: when the display attributes of the first component and / or the second component are changed, returning to the step of rendering the first coincident edge pair based on the display attributes of the first component and the second component.
4. The method of claim 1, wherein, Further comprising: obtaining the component identifier of the component that needs to be subjected to surface fusion concealment in the BIM model; establishing the geometric relationship of the component that needs to be subjected to surface fusion concealment based on the component identifier, wherein the geometric relationship comprises a connection relationship, a deduction relationship, and a preset concealment relationship.
5. A BIM model-based face fusion blanking device, characterized by, The device comprises: The acquisition module is configured to acquire a first component and a second component in a BIM model, the first component and the second component having a geometric relationship, and the geometric relationship is used to represent a surface fusion concealment requirement between the components. The first processing module is configured to extract a first boundary representation body corresponding to the first component and a second boundary representation body corresponding to the second component. The second processing module is configured to update the first boundary representation body and the second boundary representation body based on a coincident edge having a common plane between the first boundary representation body and the second boundary representation body, to obtain a first coincident edge pair that is completely coincident. The third processing module is configured to render and draw the first coincident edge pair based on display attributes of the first component and the second component, and the display attributes are used to represent visibility of the components.
6. An electronic device, comprising: The third processing module is configured to render and draw the first coincident edge pair based on display attributes of the first component and the second component, and the display attributes are used to represent visibility of the components. The memory and the processor are communicatively connected, the memory stores computer instructions, and the processor executes the computer instructions to perform the method in any one of claims 1-4.
7. A computer-readable storage medium, characterized in that, The computer readable storage medium stores computer instructions, and the computer instructions are used to make a computer execute the method in any one of claims 1-4.
Citation Information
Patent Citations
Display area rendering method and device, equipment, readable storage medium and product
CN112926000A
Component rendering method and device, electronic equipment and storage medium
CN114443003A