Method, device, equipment and storage medium for generating outer third dimension mark

By responding to cursor movement operations in real time, the third dimension marking parameter outside the building construction drawing is determined, and the marking preview results are generated and confirmed, which solves the problem of inefficient marking in the existing technology and realizes an efficient and simple marking process.

CN114996816BActive Publication Date: 2025-02-28GLODON CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210706363.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-06-21
Publication Date
2025-02-28
Estimated Expiration
2042-06-21

AI Technical Summary

Technical Problem

In the prior art, the third dimension marking on the outside of the building construction drawing is inefficient, manual marking is tedious, and semi-automatic marking based on software requires complex interactive operations.

Method used

By responding to the cursor movement operation, the cursor selection point is determined in real time, the annotation parameters are determined based on the selected point position, the annotation preview result is generated and displayed, and the result is used as the final annotation result after the preview is confirmed.

Benefits of technology

It improves labeling efficiency, is simple to interact, and can quickly preview and generate the third dimension mark on the outside, avoiding the mechanical boredom of manual labeling and the complex interaction between software-based semi-automatic marking.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114996816B_ABST
    Figure CN114996816B_ABST
Patent Text Reader

Abstract

The present application is about a method, device, equipment and storage medium for generating the third dimension mark of the outside, and specifically relates to the field of computer-aided design. The method comprises: in response to a cursor movement operation, determining the cursor selected point in real time; based on the position of the cursor selected point, determining the marking parameters, the marking parameters are parameters related to the third dimension mark of the outside of the building construction drawing; based on the marking parameters, generating and displaying the marking preview result of the building construction drawing; in response to a preview confirmation operation, using the marking preview result as the marking result of the third dimension mark of the outside of the building construction drawing. In the above scheme, the interactive operation is simple and can improve the marking efficiency.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer-aided design, and in particular to a method, device, equipment and storage medium for generating an outer third dimension mark. Background Art

[0002] In the design of architectural construction drawings, in order to better display the dimensional information involved in the architectural construction drawings, it is necessary to dimension the architectural construction drawings.

[0003] Dimensioning includes the third dimensioning on the outside. The third dimensioning on the outside refers to adding dimensioning on the outside of the building construction drawing, mainly marking elevations, axes, walls, doors, windows, and openings, etc. In the related art, manual dimensioning is adopted, or the semi-automatic dimensioning function based on software is adopted to realize the third dimensioning on the outside.

[0004] The manual annotation implementation method provided by the related art has low annotation efficiency; the software-based semi-automatic annotation function implementation method requires users to perform complex interactive operations to select the components to be annotated, which also leads to low annotation efficiency. Summary of the invention

[0005] The present application provides a method, device, equipment and storage medium for generating an outer third dimension annotation, which improves the annotation efficiency. The technical solution is as follows.

[0006] In one aspect, a method for generating an outer third dimension mark is provided, the method comprising:

[0007] In response to the cursor movement operation, determining the cursor selected point in real time;

[0008] Based on the position of the point selected by the cursor, determining a marking parameter, wherein the marking parameter is a parameter related to marking the third outer dimension of the building construction drawing;

[0009] Based on the annotation parameters, generating and displaying an annotation preview result of the building construction drawing;

[0010] In response to the preview confirmation operation, the annotation preview result is used as the annotation result of the outer third dimension annotation of the building construction drawing.

[0011] In another aspect, a device for generating an outer third dimension mark is provided, the device comprising:

[0012] A cursor determination module, for determining a cursor selected point in real time in response to a cursor movement operation;

[0013] A marking parameter determination module, used to determine the marking parameters based on the position of the point selected by the cursor, wherein the marking parameters are parameters related to marking the third outer dimension of the building construction drawing;

[0014] A marking result preview module, used to generate and display the marking preview result of the building construction drawing based on the marking parameters;

[0015] The marking result determination module is used to respond to the preview confirmation operation and use the marking preview result as the marking result of the outer third dimension marking of the building construction drawing.

[0016] In a possible implementation, the annotation parameters include: an annotation direction and an annotation range; and the device further includes:

[0017] A candidate component identification module is used to identify candidate components among the components in all the annotation directions within the annotation range based on the occlusion relationship between the components, wherein the candidate components are components that need to be annotated with the third outer dimension;

[0018] The marking result determination module is further used to mark the third outer dimension of the candidate component in the marking direction, and generate and display the marking preview result of the building construction drawing.

[0019] In a possible implementation, the candidate component identification module is further used to:

[0020] Sort and group all components in the marked direction within the marked range to obtain a first group to an Nth group, where N is a positive integer;

[0021] In the case where the components in the i-th group are not completely blocked by the i-th mask surface, identifying the components in the i-th group as the candidate components, where i is greater than or equal to 1 and less than or equal to N;

[0022] The j-th mask surface is obtained by merging the j-1-th mask surface based on the components in the j-1-th group, wherein j is greater than or equal to 2 and less than or equal to N, and the first mask surface is empty.

[0023] In a possible implementation, the annotation parameters further include: an occlusion direction; and the candidate component identification module is further used to:

[0024] Drawing an occlusion line along the occlusion direction;

[0025] Projecting all components in the marked direction within the marked range onto the occlusion line to obtain a projection parameter domain of each component on the occlusion line;

[0026] Sort the components from small to large according to the minimum value in the projection parameter domain of each component;

[0027] Grouping the sorted components according to the grouping logic to obtain the first group to the Nth group;

[0028] The grouping logic includes: components with the same minimum value in the projection parameter domain are grouped into the same group, and components with different minimum values ​​in the projection parameter domain are grouped into different groups.

[0029] In a possible implementation, the candidate component identification module is further used to:

[0030] In the case where the component is an intersection component, the intersection component is broken into first to Mth components based on the intersection, the intersection component is a component oblique to the marking direction and having the intersection, and M is a positive integer;

[0031] In the case that any one of the first to Mth components is not completely blocked by the mask surface in the corresponding group, the intersection component is identified as the candidate component.

[0032] In a possible implementation, the annotation parameter determination module is further used to:

[0033] Determine a target component based on the position of the point selected by the cursor, wherein the target component is a component in the building construction drawing that is closest to the point selected by the cursor in vertical distance and has its foot perpendicular to the component itself;

[0034] The annotation parameter is determined based on at least one of the component information of the target component and the position of the point selected by the cursor.

[0035] In a possible implementation, the annotation parameter determination module is further used to:

[0036] Taking the subgraph where the target component is located as the annotation range;

[0037] or,

[0038] Using the direction of the target component as the annotation direction;

[0039] or,

[0040] The direction from the position of the cursor selected point to the target component is used as the occlusion direction.

[0041] On the other hand, a computer device is provided, comprising a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the above-mentioned method for generating the third outer dimension marking.

[0042] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the above-mentioned method for generating the outer third dimension marking.

[0043] In another aspect, a computer program product or computer program is provided, the computer program product or computer program comprising computer instructions, the computer instructions being stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer device executes the above-mentioned method for generating the outer third dimension mark.

[0044] The technical solution provided by this application may have the following beneficial effects:

[0045] During the movement of the cursor, the annotation parameters related to the third outer dimension annotation are determined in real time based on the position of the cursor selected point, so that the annotation preview result of the building construction drawing is automatically generated according to the annotation parameters. After the preview confirmation operation, the current annotation preview result is used as the final annotation result of the third outer dimension annotation of the building construction drawing. The interactive operation is simple and can improve the annotation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the specific implementation methods of the present application 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 application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying any creative work.

[0047] Figure 1 It is a schematic diagram of an interface for marking the third dimension on the outside according to an exemplary embodiment.

[0048] Figure 2 It is a schematic diagram of an interface for marking the third dimension on the outside according to an exemplary embodiment.

[0049] Figure 3 The present invention is a flowchart of a method for generating a third outer dimension mark according to an exemplary embodiment.

[0050] Figure 4 is a schematic diagram of a subgraph composed of interconnected components according to an exemplary embodiment.

[0051] Figure 5 The present invention is a flowchart of a method for generating a third outer dimension mark according to an exemplary embodiment.

[0052] Figure 6 It is a schematic diagram showing a method for determining annotation parameters according to an exemplary embodiment.

[0053] Figure 7 The figure is a flowchart of a method for identifying candidate components according to an exemplary embodiment.

[0054] Figure 8 is a schematic diagram showing projection of a component according to an exemplary embodiment.

[0055] Fig. 9 is a schematic diagram showing updating a mask surface according to an exemplary embodiment.

[0056] Fig.10 is a schematic diagram of an intersection component according to an exemplary embodiment.

[0057] Fig.11 is a schematic diagram of an intersection component according to an exemplary embodiment.

[0058] Fig.12 The present invention is a structural block diagram of a device for generating an outer third dimension mark according to an exemplary embodiment.

[0059] Fig.13 It is a schematic diagram of a computer device provided according to an exemplary embodiment of the present application. DETAILED DESCRIPTION

[0060] The technical solution of the present application will be described clearly and completely below in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present application, rather than all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.

[0061] It should be understood that the "indication" mentioned in the embodiments of the present application can be a direct indication, an indirect indication, or an indication of an association relationship. For example, A indicates B, which can mean that A directly indicates B, for example, B can be obtained through A; it can also mean that A indirectly indicates B, for example, A indicates C, and B can be obtained through C; it can also mean that there is an association relationship between A and B.

[0062] In the description of the embodiments of the present application, the term "corresponding" may indicate a direct or indirect correspondence between two items, or an association relationship between the two items, or a relationship between indication and being indicated, configuration and being configured, and the like.

[0063] In an embodiment of the present application, "predefinition" can be achieved by pre-saving corresponding codes, tables or other methods that can be used to indicate relevant information in a device (for example, including a terminal device and a network device). The present application does not limit its specific implementation method.

[0064] Before describing the various embodiments shown in the present application, the concepts involved in the present application are first introduced.

[0065] The third dimension mark on the outside: In the architectural construction drawing design, the plane and elevation view Figure 1 Generally, a third dimensioning will be added on the outside, mainly for the outer components, marking the elevation, axis, walls, doors, windows and openings.

[0066] The marking direction of the third dimension marking on the outside is determined (mostly in the orthogonal direction), there are more marked objects, and the span along the dimension direction is larger, and the marking position is clearer (marked on the inside of the two dimension lines).

[0067] Manual marking of the third dimension on the outside is inefficient and tedious.

[0068] If the software-based semi-automatic marking function is used to mark the third outer dimension, the user is required to perform complex interactive operations to select the components to be marked, which also leads to low marking efficiency.

[0069] For example, the semi-automatic annotation function provided by Revit picks parallel walls to annotate the walls and the doors, windows, and axes on them. It selects a single wall each time and does not support box selection. When there are many walls on the building facade, the interaction is complicated.

[0070] For example, Tian Zheng provides multiple semi-automatic annotation functions. 1) Door and window annotation: supports annotation of doors, windows, and axes. The interaction is slightly complicated, and no filtering is performed on the walls with overlapping projections in the selection set. 2) Two-point annotation: Use the two points drawn by the mouse to pass through the wall, and annotate all walls connected to the passed wall and the doors, windows, and axes on them. Annotation of inclined walls is not supported. When the facade of the project has too many bumps and depressions, the selection set judged by the connection may not be accurate, and the width of the intersecting walls will be annotated (the third dimension annotation on the outside does not require this annotation). 3) Quick annotation: Annotate all walls within the selection range. The generated annotation is not accurate, and the user needs to check and adjust it again, and the placement of the annotation cannot be specified. When there are a lot of selected contents, the drawing annotations overlap, which is not beautiful.

[0071] In response to the above problems, the present application provides a method for semi-automatically generating the third dimension mark of the outer side, and the user can quickly preview and generate the third dimension mark of the outer side through simple human-computer interaction.

[0072] For example, after the user starts the third dimension annotation function on the outside in the software, he moves the cursor to the outside of the building in the plan view or elevation / section view. The software can generate the annotation preview result in real time as the cursor moves. After the user confirms that the preview effect of the annotation preview result is correct, he confirms the placement position of the annotation result by moving the cursor, and clicks to generate the annotation result.

[0073] For example, in the process of generating the annotation preview results, the software will automatically identify the outer components as alternative components based on the occlusion relationship between the components in the model corresponding to the view, and then mark the fixed features of the alternative components, such as the sides of doors and windows, the end faces or sides of the walls.

[0074] Combined with reference Figure 1 or Figure 2 After turning on the door and window marking function in the software, the third dimension marking on the outside of the building construction drawing will be automatically generated and displayed according to the position of the cursor controlled by the mouse.

[0075] The technical solution provided by the present application is further described below in conjunction with the following embodiments.

[0076] Figure 3 FIG. 1 is a flowchart of a method for generating a third dimension mark on the outer side according to an exemplary embodiment. The method is executed by a computer device. Figure 3 As shown, the method for generating the outer third dimension mark may include the following steps:

[0077] Step 310: In response to the cursor movement operation, determine the cursor selected point in real time.

[0078] The cursor selected point is a point on the screen of the computer device that indicates the position selected by the user. Exemplarily, the cursor selected point is displayed on the screen of the computer device.

[0079] The cursor selected point changes in real time based on the user's cursor movement operation. For example, at time point a, the cursor selected point is a first coordinate point on the screen, and the user moves the cursor at time point b, and the cursor selected point changes to a second coordinate point on the screen.

[0080] The cursor movement operation may be controlled by the user through an external device of the computer device, or by the user touching the screen of the computer device. The external device includes but is not limited to: a mouse, a handle, and virtual reality (VR) glasses.

[0081] Exemplarily, the user controls the movement of the cursor by means of a mouse, and a moving cursor selection point is displayed on the screen of the computer device accordingly.

[0082] Step 320: Based on the position of the point selected by the cursor, determine the annotation parameters, which are parameters related to the third dimension annotation of the outer side of the building construction drawing.

[0083] After determining the point selected by the cursor, the computer device processes information based on the position of the point selected by the cursor to determine the annotation parameters of the third dimension annotation on the outer side of the building construction drawing.

[0084] Among them, the building construction drawing is used to describe the construction design of the building. The building construction drawing can be a plan view, a facade view, or a section view. This application does not limit the type of building construction drawings.

[0085] The annotation parameters include but are not limited to: annotation range, annotation direction and occlusion direction.

[0086] 1) The marking range refers to the range in the building construction drawing where the third outer dimension marking is required.

[0087] Optionally, the unit of the annotation range is a sub-drawing, that is, the third dimension of the outer side is an sub-drawing of the building construction drawing. A sub-drawing refers to a drawing composed of interconnected components.

[0088] For example, each component is a node. According to the adjacent relationship between components, interconnected components are in the same subgraph of the building construction drawing. At this time, the subgraph in the algorithm corresponds to the monomer in the building model. The subgraph is divided to support semi-automatic annotation of multi-monomer models.

[0089] Exemplary, with reference to Figure 4 , which shows two sub-graphs: Figure 1 Kazuko Figure 2 ,son Figure 1 Corresponds to Figure 4 (a) in the Figure 2 Corresponds to Figure 4 (b) in the Figure 1 (or sub Figure 2 ) are interconnected.

[0090] 2) The marking direction refers to the direction of the third outer dimension marking.

[0091] Optionally, the computer device marks the components in the marking direction with a third dimension on the outside.

[0092] Optionally, the computer device displays the outer third dimension annotation in the annotation direction. Figure 1 The labeling direction in is the x-axis direction. Figure 2 The labeling direction in is the y-axis direction.

[0093] 3) The occlusion direction refers to the direction perpendicular to the annotation direction.

[0094] In the following embodiments, a computer device projects a component based on an occlusion line in an occlusion direction.

[0095] Step 330: Generate and display the annotation preview result of the building construction drawing based on the annotation parameters.

[0096] After obtaining the annotation parameters, the computer device performs annotation processing on the building construction drawing based on the annotation parameters, and generates and displays the annotation preview result of the building construction drawing.

[0097] Optionally, the placement position of the annotation preview result is automatically determined by the computer device based on the position of the cursor selection point. For example, the placement position of the annotation preview result is within a certain range from the position of the cursor selection point.

[0098] Optionally, the placement position of the annotation preview result is determined by the computer device based on the user's position selection operation. For example, the user selects the placement position of the annotation preview result through the position selection operation, and the computer device displays the annotation preview result at the placement position of the annotation preview result selected by the user.

[0099] Step 340: In response to the preview confirmation operation, the annotation preview result is used as the annotation result of the third outer dimension annotation of the building construction drawing.

[0100] The computer device displays the annotation preview result of the building construction drawing, and the user confirms the annotation preview result. After the user confirms that the effect of the annotation preview result is correct, the user performs a preview confirmation operation. After receiving the preview confirmation operation, the computer device fixedly displays the annotation preview result on the outside of the building construction drawing.

[0101] Exemplarily, as the mouse moves, the annotation preview result is generated in real time on the computer device. After the user confirms that the preview effect is correct, he / she confirms the placement position by moving the mouse. The user clicks the mouse, and the computer device can use the current annotation preview result as the final annotation result at the placement position.

[0102] To sum up, the method for generating the third outer dimension annotation provided in this embodiment determines the annotation parameters related to the third outer dimension annotation based on the position of the cursor selected point in real time during the movement of the cursor, thereby automatically generating the annotation preview result of the building construction drawing according to the annotation parameters, and after the preview confirmation operation, the current annotation preview result is used as the final annotation result of the third outer dimension annotation of the building construction drawing. The interactive operation is simple and can improve the annotation efficiency.

[0103] In an exemplary embodiment, the computer device automatically identifies the outer components based on the occlusion relationship between the components, and uses the identified outer components as candidate components that require the outer third dimensioning.

[0104] Figure 5 FIG. 1 is a flowchart of a method for generating a third dimension mark on the outer side according to an exemplary embodiment. The method is executed by a computer device. Figure 5 As shown, the method for generating the outer third dimension mark may include the following steps:

[0105] Step 510: In response to the cursor movement operation, determine the cursor selected point in real time.

[0106] The specific implementation of this step can refer to step 310 and will not be repeated here.

[0107] Step 520: Based on the position of the point selected by the cursor, determine the annotation parameters, which are parameters related to the third dimension annotation of the outer side of the building construction drawing. The annotation parameters include: annotation direction and annotation range.

[0108] In one possible implementation, step 520 includes: determining the target component based on the position of the cursor selected point, the target component being a component in the building construction drawing that is closest to the vertical distance to the cursor selected point and has its foot perpendicular to the component itself; determining the annotation parameters based on at least one of the component information of the target component and the position of the cursor selected point.

[0109] In a construction drawing, there are several components. The computer device selects a component that is closest to the vertical distance from the cursor selection point and has its foot perpendicular to the component itself as the target component based on the position of the cursor selection point, and determines the annotation parameters by combining the component information of the target component and at least one of the positions of the cursor selection point.

[0110] The component information of the target component is used to describe the target component, and the component information includes but is not limited to: the location of the component; and the subgraph where the component is located.

[0111] Exemplarily, when the annotation parameter is an annotation range, the annotation range is determined in the following manner: the computer device uses the sub-graph where the target component is located as the annotation range.

[0112] Exemplarily, when the annotation parameter is the annotation direction, the annotation direction is determined in the following manner: the computer device uses the direction of the target component as the annotation direction.

[0113] Exemplarily, when the annotation parameter is the occlusion direction, the occlusion direction is determined in the following manner: the computer device uses the direction from the position of the point selected by the cursor to the target component as the occlusion direction.

[0114] Combined with reference Figure 6 , take the current position where the user's mouse is hovering as the cursor selection point, find a component that is the closest to the cursor selection point and whose foot is perpendicular to the component itself as the target component, use the direction of the target component as the annotation direction, the direction from the cursor selection point to the target component as the occlusion direction, and the sub-image where the target component is located as the annotation range.

[0115] Step 530: Based on the occlusion relationship between components, among the components in all marking directions within the marking range, candidate components are identified, and the candidate components are components that require the third outer dimension marking.

[0116] The computer device obtains the occlusion relationship between the components, and based on the information, identifies the outer components among the components in all marking directions within the marking range, and uses the outer components as candidate components that require the outer third dimension marking.

[0117] Among them, the occlusion relationship between components is obtained by the computer device based on a certain algorithm. Therefore, the identification of alternative components based on the occlusion relationship between components can be considered as an automatic identification. It does not require user interaction to select the alternative components that need to be labeled. The interaction is simple and the labeling efficiency is high.

[0118] Step 540: Annotate the third outer dimension of the candidate component in the annotation direction, and generate and display the annotation preview result of the building construction drawing.

[0119] After identifying the candidate components, the computer equipment performs a third outer dimension marking on the candidate components in the marking direction, and generates and displays the marking preview result of the building construction drawing.

[0120] Step 550: In response to the preview confirmation operation, the annotation preview result is used as the annotation result of the third outer dimension annotation of the building construction drawing.

[0121] The specific implementation of this step can refer to step 340 and will not be repeated here.

[0122] To sum up, the method for generating the third outer dimension annotation provided in this embodiment determines the annotation parameters related to the third outer dimension annotation based on the position of the cursor selected point in real time during the movement of the cursor, thereby automatically generating the annotation preview result of the building construction drawing according to the annotation parameters, and after the preview confirmation operation, the current annotation preview result is used as the final annotation result of the third outer dimension annotation of the building construction drawing. The interactive operation is simple and can improve the annotation efficiency.

[0123] At the same time, the method for generating the outer third dimension annotation provided in this embodiment obtains the occlusion relationship between components, and based on this information, automatically identifies the alternative components that need to be marked with the outer third dimension among the components in all annotation directions within the annotation range. There is no need to select the alternative components through user interaction, the interactive operation is simple, and the annotation efficiency is high.

[0124] In an exemplary embodiment, the computer device groups the components and uses a mask surface to perform covering judgment on the components in the group to obtain the covering relationship between the components, thereby identifying candidate components.

[0125] Figure 7 FIG. 1 is a flowchart of a method for identifying a candidate component according to an exemplary embodiment. The method is executed by a computer device. Figure 7 As shown, the method for identifying the candidate component (i.e., step 530 in the above embodiment) may include the following steps:

[0126] Step 710: sort and group the components in all the marked directions within the marked range to obtain the first group to the Nth group, where N is a positive integer.

[0127] The computer device obtains components in all annotation directions within the annotation range, sorts these components based on certain rules, and groups these components according to the order of each component. Each group includes at least one component, and the first group to the Nth group after grouping also have an order, with the first group at the beginning and the Nth group at the end.

[0128] In a possible implementation, step 710 includes:

[0129] 1) Draw the occlusion line along the occlusion direction.

[0130] 2) Project all components in the annotation direction within the annotation range onto the occlusion line to obtain the projection parameter domain of each component on the occlusion line.

[0131] The computer device projects the component onto the occlusion line to obtain the projection parameter domain of each component on the occlusion line. The specific value of the projection parameter domain is the coordinate range of the projection coordinate of the component on the occlusion line.

[0132] Exemplarily, the component a is projected onto the occlusion line, and the coordinate range of the projection coordinates of the component on the occlusion line is [x, y], and the projection parameter domain of the component is [x, y].

[0133] 3) Sort the components from small to large according to the minimum value in the projection parameter domain of each component.

[0134] Exemplary, with reference to Figure 8 , there are 4 components: component 1, component 2, component 3 and component 4. According to the minimum value in the projection parameter domain of each component, the components are sorted from small to large: component 1 / component 2, component 3, component 4.

[0135] 4) Grouping the sorted components according to the grouping logic to obtain the first group to the Nth group; wherein the grouping logic includes: components with the same minimum value in the projection parameter domain are grouped into the same group, and components with different minimum values ​​in the projection parameter domain are grouped into different groups.

[0136] Exemplary, with reference to Figure 8 , since the sorting is: component 1 / component 2, component 3, component 4, component 1 and component 2 are divided into the same group, component 3 is divided into a separate group, and component 4 is divided into a separate group. Based on the sorting, the first group is (component 1, component 2), the second group is (component 3), and the third group is (component 4).

[0137] Step 720: When the components in the i-th group are not completely blocked by the i-th mask surface, identify the components in the i-th group as candidate components, where i is greater than or equal to 1 and less than or equal to N.

[0138] The j-th mask surface is obtained by merging the j-1-th mask surface based on the components in the j-1-th group, j is greater than or equal to 2 and less than or equal to N, and the first mask surface is empty.

[0139] The computer device creates a mask surface, and the initial first mask surface is empty. The corresponding mask surfaces are used in sequence to make covering judgments on the components in each group: if the component is not completely covered by the mask surface, it is considered to be an outer component, and the component is used as an alternative component that needs to be marked; if the component is completely covered by the mask surface, it is considered to be an inner component and does not need to be marked.

[0140] Exemplarily, N is 2, the first mask surface is empty, the components in the first group will not be completely obscured by the first mask surface, and the components in the first group are all identified as alternative components; based on the components in the first group, the first mask surface is merged to obtain the second mask surface, and whether the components in the second group are completely covered by the second mask surface is used as the basis to judge whether the components in the second group are alternative components.

[0141] If the covering judgment of the components in the current group is all completed, the components in the current group are used to update the mask surface, and the mask surface continues to grow. Since the mask surface is updated by components, the mask surface is used to make covering judgments on the components in the group, and the occlusion relationship between the components is utilized.

[0142] It should be understood that the components in the same group do not judge the covering relationship with each other, but use the group in the previous order to cover the group in the next order. In addition, the components in the same group use the current mask surface to make a covering judgment at the same time, and then merge into the current mask surface at the same time to form a new mask surface.

[0143] For example, Figure 8 In the example shown, after the grouping is completed, the process of using the mask to determine the covering of the components in the group includes:

[0144] For the first group (component 1, component 2), since the initial first mask surface is empty, (component 1, component 2) is not blocked and is used as an alternative component, and then (component 1, component 2) is combined with the first mask surface to obtain the second blocking surface, which is the union of (component 1, component 2). Fig. 9 , which shows the second mask surface.

[0145] For the second group (component 3), (component 3) is completely covered by the second mask surface, therefore, component 3 is not an alternative component, and the updated third mask surface is the same as the second mask surface, which is the union of (component 1, component 2).

[0146] For the third group (component 4), (component 4) is not completely covered by the third mask surface, so the alternative components are updated to (component 1, component 2, component 4), and (component 4) is merged with the third mask surface. The fourth mask surface becomes the union of (component 1, component 2, component 4). Since there are no other components, the current mask judgment step ends.

[0147] Optionally, for components of the intersection type, candidate components are identified based on the following method:

[0148] When the component is an intersection component, the intersection component is broken into first to Mth components based on the intersection, where the intersection component is a component that is oblique to the marking direction and has an intersection, and M is a positive integer; when any one of the first to Mth components is not completely blocked by the mask surface in the corresponding group, the intersection component is identified as an alternative component.

[0149] It should be understood that the intersection component may have at least one intersection, and based on the intersection, the intersection component is broken into (the number of intersections+1) components.

[0150] Taking the intersection component as an example, which is a component with an intersection, the intersection component is broken into: a first component and a second component. The first component and the second component are respectively sorted, grouped, and subsequently covered as separate components. When any one of the first component and the second component is not completely blocked by the mask surface in the corresponding group, the intersection component is identified as an alternative component.

[0151] Exemplary, with reference to Fig.10 , which shows an intersection component with an oblique intersection relationship. The intersection component is broken into two parts and grouped and blocked as two components. As long as any one component is not completely covered, the intersection component will also be identified as an alternative component.

[0152] Exemplary, with reference to Fig.11 , which shows an intersection component with an oblique T-shaped connection. The intersection component is broken into two parts and grouped and blocked as two components. As long as any one component is not completely covered, the intersection component will also be identified as an alternative component.

[0153] To sum up, the method for generating the third outer dimension annotation provided in this embodiment determines the annotation parameters related to the third outer dimension annotation based on the position of the cursor selected point in real time during the movement of the cursor, thereby automatically generating the annotation preview result of the building construction drawing according to the annotation parameters, and after the preview confirmation operation, the current annotation preview result is used as the final annotation result of the third outer dimension annotation of the building construction drawing. The interactive operation is simple and can improve the annotation efficiency.

[0154] At the same time, the method for generating the third outer dimension annotation provided in this embodiment groups the components, and uses a mask surface to make a covering judgment on the components in the group, determines the covering relationship between the components, and then identifies the alternative components based on the covering relationship between the components, thereby improving the accuracy of identifying the alternative components.

[0155] It should be noted that the above method embodiments may be implemented individually or in combination, and this application does not impose any limitation on this.

[0156] Fig.12 The present invention is a structural block diagram of a device for generating the outer third dimension mark according to an exemplary embodiment. The device comprises:

[0157] The cursor determination module 1201 is used to determine the cursor selected point in real time in response to the cursor movement operation;

[0158] A marking parameter determination module 1202, for determining a marking parameter based on the position of the point selected by the cursor, wherein the marking parameter is a parameter related to marking the third outer dimension of the building construction drawing;

[0159] The annotation result preview module 1203 is used to generate and display the annotation preview result of the building construction drawing based on the annotation parameters;

[0160] The marking result determination module 1204 is used to respond to the preview confirmation operation and use the marking preview result as the marking result of the outer third dimension marking of the building construction drawing.

[0161] In a possible implementation, the annotation parameters include: an annotation direction and an annotation range; and the device further includes:

[0162] A candidate component identification module is used to identify candidate components among the components in all the annotation directions within the annotation range based on the occlusion relationship between the components, wherein the candidate components are components that need to be annotated with the third outer dimension;

[0163] The marking result determination module 1204 is further used to mark the third outer dimension of the candidate component in the marking direction, and generate and display the marking preview result of the building construction drawing.

[0164] In a possible implementation, the candidate component identification module is further used to:

[0165] Sort and group all components in the marked direction within the marked range to obtain a first group to an Nth group, where N is a positive integer;

[0166] In the case where the components in the i-th group are not completely blocked by the i-th mask surface, identifying the components in the i-th group as the candidate components, where i is greater than or equal to 1 and less than or equal to N;

[0167] The j-th mask surface is obtained by merging the j-1-th mask surface based on the components in the j-1-th group, wherein j is greater than or equal to 2 and less than or equal to N, and the first mask surface is empty.

[0168] In a possible implementation, the annotation parameters further include: an occlusion direction; and the candidate component identification module is further used to:

[0169] Drawing an occlusion line along the occlusion direction;

[0170] Projecting all components in the marked direction within the marked range onto the occlusion line to obtain a projection parameter domain of each component on the occlusion line;

[0171] Sort the components from small to large according to the minimum value in the projection parameter domain of each component;

[0172] Grouping the sorted components according to the grouping logic to obtain the first group to the Nth group;

[0173] The grouping logic includes: components with the same minimum value in the projection parameter domain are grouped into the same group, and components with different minimum values ​​in the projection parameter domain are grouped into different groups.

[0174] In a possible implementation, the candidate component identification module is further used to:

[0175] In the case where the component is an intersection component, the intersection component is broken into first to Mth components based on the intersection, the intersection component is a component oblique to the marking direction and having the intersection, and M is a positive integer;

[0176] In the case that any one of the first to Mth components is not completely blocked by the mask surface in the corresponding group, the intersection component is identified as the candidate component.

[0177] In a possible implementation, the annotation parameter determination module 1202 is further configured to:

[0178] Determine a target component based on the position of the point selected by the cursor, wherein the target component is a component in the building construction drawing that is closest to the point selected by the cursor in vertical distance and has its foot perpendicular to the component itself;

[0179] The annotation parameter is determined based on at least one of the component information of the target component and the position of the point selected by the cursor.

[0180] In a possible implementation, the annotation parameter determination module 1202 is further configured to:

[0181] Taking the subgraph where the target component is located as the annotation range;

[0182] or,

[0183] Using the direction of the target component as the annotation direction;

[0184] or,

[0185] The direction from the position of the cursor selected point to the target component is used as the occlusion direction.

[0186] It should be noted that: the device for generating the outer third dimension mark provided in the above embodiment is only illustrated by the division of the above functional modules. In actual applications, the above functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. In addition, the device and method embodiments provided in the above embodiment belong to the same concept, and the specific implementation process is detailed in the method embodiment, which will not be repeated here.

[0187] See also Fig.13 , which is a schematic diagram of a computer device provided according to an exemplary embodiment of the present application, the computer device includes a memory and a processor, the memory is used to store a computer program, and when the computer program is executed by the processor, the above-mentioned semantic similarity calculation method is implemented.

[0188] The processor may be a central processing unit (CPU). The processor may 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, or a combination of the above chips.

[0189] As a non-transitory computer-readable storage medium, the memory can be used to store non-transitory software programs, non-transitory computer executable programs and modules, such as program instructions / modules corresponding to the method in the embodiment of the present invention. The processor executes various functional applications and data processing of the processor by running the non-transitory software programs, instructions and modules stored in the memory, that is, implementing the method in the above method embodiment.

[0190] The memory may include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function; the data storage area may store data created by the processor, etc. In addition, the memory may include a high-speed random access memory, and may also 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 may optionally include a memory remotely disposed relative to the processor, and these remote memories may be connected to the processor via a network. Examples of the above-mentioned network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof.

[0191] In an exemplary embodiment, a computer-readable storage medium is also provided, which is used to store at least one computer program, and the at least one computer program is loaded and executed by a processor to implement all or part of the steps in the above method. For example, the computer-readable storage medium can be a read-only memory (ROM), a random access memory (RAM), a compact disc read-only memory (CD-ROM), a magnetic tape, a floppy disk, an optical data storage device, etc.

[0192] Those skilled in the art will readily appreciate other embodiments of the present application after considering the specification and practicing the invention disclosed herein. The present application is intended to cover any modification, use or adaptation of the present application, which follows the general principles of the present application and includes common knowledge or customary techniques in the art that are not disclosed in the present application. The specification and examples are intended to be exemplary only, and the true scope and spirit of the present application are indicated by the following claims.

[0193] It should be understood that the present application is not limited to the precise structures that have been described above and shown in the drawings, and that various modifications and changes may be made without departing from the scope thereof. The scope of the present application is limited only by the appended claims.

Claims

1. A method for generating the outer third dimension mark, characterized in that: The method comprises: In response to the cursor movement operation, determining the cursor selected point in real time; Based on the position of the point selected by the cursor, a marking parameter is determined, and the marking parameter is a parameter related to marking the third outer dimension of the building construction drawing, wherein the determining of the marking parameter based on the position of the point selected by the cursor includes: determining a target component based on the position of the point selected by the cursor, and the target component is a component in the building construction drawing that is closest to the point selected by the cursor in vertical distance and has its foot perpendicular to the component itself; determining the marking parameter based on at least one of the component information of the target component and the position of the point selected by the cursor; Based on the annotation parameters, generating and displaying an annotation preview result of the building construction drawing; In response to the preview confirmation operation, the annotation preview result is used as the annotation result of the outer third dimension annotation of the building construction drawing.

2. The method according to claim 1, characterized in that The marking parameters include: marking direction and marking range; The method further comprises: Based on the occlusion relationship between components, identifying candidate components among the components in all the marking directions within the marking range, wherein the candidate components are components that require the third outer dimension marking; The generating and displaying the annotation preview result of the building construction drawing based on the annotation parameters includes: The third outer dimension is marked on the candidate component in the marking direction, and a marking preview result of the building construction drawing is generated and displayed.

3. The method according to claim 2, characterized in that The identifying of candidate components from the components in all the marked directions within the marked range based on the occlusion relationship between the components includes: Sort and group all components in the marked direction within the marked range to obtain a first group to an Nth group, where N is a positive integer; In the case where the components in the i-th group are not completely blocked by the i-th mask surface, identifying the components in the i-th group as the candidate components, where i is greater than or equal to 1 and less than or equal to N; The j-th mask surface is obtained by merging the j-1-th mask surface based on the components in the j-1-th group, wherein j is greater than or equal to 2 and less than or equal to N, and the first mask surface is empty.

4. The method according to claim 3, characterized in that The annotation parameters also include: occlusion direction; The step of sorting and grouping all components in the marked direction within the marked range to obtain first to Nth groups includes: Drawing an occlusion line along the occlusion direction; Projecting all components in the marked direction within the marked range onto the occlusion line to obtain a projection parameter domain of each component on the occlusion line; Sort the components from small to large according to the minimum value in the projection parameter domain of each component; Grouping the sorted components according to the grouping logic to obtain the first group to the Nth group; The grouping logic includes: components with the same minimum value in the projection parameter domain are grouped into the same group, and components with different minimum values ​​in the projection parameter domain are grouped into different groups.

5. The method according to claim 3, characterized in that: The method further comprises: In the case where the component is an intersection component, the intersection component is broken into first to Mth components based on the intersection, the intersection component is a component oblique to the marking direction and having the intersection, and M is a positive integer; In the case that any one of the first to Mth components is not completely blocked by the mask surface in the corresponding group, the intersection component is identified as the candidate component.

6. The method according to claim 1, characterized in that The step of determining the annotation parameter based on at least one of the component information of the target component and the position of the point selected by the cursor includes: Taking the subgraph where the target component is located as the annotation range; or, Using the direction of the target component as the annotation direction; or, The direction from the position of the cursor selected point to the target component is used as the occlusion direction.

7. A device for generating the outer third dimension mark, characterized in that: The device comprises: A cursor determination module, for determining a cursor selected point in real time in response to a cursor movement operation; A marking parameter determination module is used to determine the marking parameters based on the position of the point selected by the cursor, wherein the marking parameters are parameters related to the marking of the third outer dimension of the building construction drawing, wherein the marking parameter determination module is specifically used to determine the target component based on the position of the point selected by the cursor, wherein the target component is a component in the building construction drawing that is closest to the point selected by the cursor in vertical distance and has its foot perpendicular to the component itself; the marking parameters are determined based on at least one of the component information of the target component and the position of the point selected by the cursor; A marking result preview module, used to generate and display the marking preview result of the building construction drawing based on the marking parameters; The marking result determination module is used to respond to the preview confirmation operation and use the marking preview result as the marking result of the outer third dimension marking of the building construction drawing.

8. A computer device, characterized in that: The computer device includes a processor and a memory, wherein the memory stores at least one instruction, at least one program, a code set or an instruction set, and the at least one instruction, at least one program, a code set or an instruction set is loaded and executed by the processor to implement the method for generating the outer third dimension marking as described in any one of claims 1 to 6.

9. A computer-readable storage medium, characterized in that: The storage medium stores at least one instruction, at least one program, code set or instruction set, and the at least one instruction, at least one program, code set or instruction set is loaded and executed by the processor to implement the method for generating the outer third dimension marking as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Vertical graph identification method for converting architectural drawing into three-dimensional BIM model

    CN109993827A

  • Method and device for generating facade construction drawing by building model

    CN111859511A