Building model processing method and device
By calculating the vector cross product value of the simulated curtain wall positioning line of the architectural model and automatically identifying the negative angle and positive angle, the problems of vector chaos and low efficiency in the development of the architectural model are solved, and development efficiency and accuracy are improved.
Patent Information
- Application Number
- CN202011628381.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2020-12-30
- Publication Date
- 2024-12-13
- Estimated Expiration
- 2040-12-30
AI Technical Summary
In the development of architectural model, the simulated curtain wall processing of BIECO building-stone curtain wall function requires human correction, resulting in the problems of vector confusion, low accuracy and low efficiency. The lack of unified interface causes developers to design and implement it themselves, which increases working time and Reduced development efficiency.
By determining multiple simulated curtain wall positioning lines of the architectural model, calculating the vector cross product values of adjacent positioning lines, automatically identifying the negative angle and positive angle, standardizing the vectors of the architectural model, and improving work efficiency and accuracy.
It realizes rapid and automatic standardization of the vectors of building models, improves work efficiency and accuracy, and solves the technical problems of line segment vector chaos and artificial correction.
Smart Images

Figure CN114692258B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the field of architectural models, and in particular to an architectural model processing method and device. Background Art
[0002] In current development and design, similar problems are often encountered. For example, the BIECO building-stone curtain wall function requires linked list processing of the selected simulated curtain wall to facilitate the subsequent generation details. If a unified interface is not provided to developers, every time a function is needed, developers will think, design, and implement it by themselves. There may be loopholes and low execution efficiency, which will increase the working time of developers and reduce development efficiency.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiment of the present invention provides a method and device for processing a building model, so as to at least solve the technical problems in the related art that when building a building model, the vectors of line segments are confused, human involvement and correction are required, and the accuracy and efficiency are low.
[0005] According to one aspect of an embodiment of the present invention, a method for processing a building model is provided, comprising: determining positioning lines of a plurality of simulated curtain walls of a building model; determining a vector cross product value of two adjacent positioning lines; and determining whether a portion of the simulated curtain walls corresponding to two adjacent positioning lines is a positive angle or a negative angle based on the vector cross product value.
[0006] Optionally, determining the positioning lines of multiple simulated curtain walls of the building model includes: grouping the multiple positioning lines, connecting the multiple positioning lines in each group; calculating the directed area of the polygon enclosed by the multiple positioning lines in each group; and determining the positioning lines of the multiple simulated curtain walls according to the directed area.
[0007] Optionally, before calculating the directed area of the polygon enclosed by the multiple positioning lines of each group, the step includes: determining whether the multiple positioning lines form a closed polygon; if the multiple positioning lines do not form a closed polygon, creating line segments so that the multiple positioning lines form a closed polygon; if the multiple positioning lines form a closed polygon, executing the step of calculating the directed area of the polygon enclosed by the multiple positioning lines of each group.
[0008] Optionally, determining the positioning lines of the multiple simulated curtain walls according to the directed area includes: determining the arrangement direction of the multiple deformable positioning lines corresponding to the directed area according to the positive or negative value of the directed area, wherein the arrangement direction is counterclockwise or clockwise; when the arrangement direction is opposite to a preset direction, reversing the directions of the multiple positioning lines; when the arrangement direction is the same as a preset direction, using the multiple positioning lines as the positioning lines of the multiple simulated curtain walls.
[0009] Optionally, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area according to the positive or negative value of the directed area includes: based on the line of sight direction of the building model, when the directed area is positive, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area to be counterclockwise; when the directed area is negative, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area to be clockwise.
[0010] Optionally, determining whether the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a yang angle or a yin angle based on the vector cross product value includes: when the vector direction of the vector cross product value is upward, determining that the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a yin angle; when the vector direction of the vector cross product value is downward, determining that the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a yang angle.
[0011] Optionally, the method further includes: generating a curtain wall of the building model according to the external angle and the internal angle, wherein the internal angle and the external angle correspond to different curtain wall structures respectively.
[0012] According to another aspect of an embodiment of the present invention, a building model processing device is also provided, including: a first determination module, used to determine the positioning lines of multiple simulated curtain walls of the building model; a second determination module, used to determine the vector cross product value of two adjacent positioning lines; and a third determination module, used to determine whether the simulated curtain walls corresponding to two adjacent positioning lines are a positive angle or a negative angle based on the vector cross product value.
[0013] According to another aspect of an embodiment of the present invention, a computer storage medium is further provided, wherein the computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned building model processing methods.
[0014] According to another aspect of an embodiment of the present invention, a processor is further provided, wherein the processor is used to run a program, wherein the program executes any one of the above-mentioned building model processing methods when running.
[0015] In an embodiment of the present invention, a method is adopted in which positioning lines of multiple simulated curtain walls of a building model are determined; vector cross product values of two adjacent positioning lines are determined; and according to the vector cross product values, it is determined whether the simulated curtain walls corresponding to the two adjacent positioning lines are a positive angle or a negative angle. By simulating the positioning lines of the curtain walls, vector cross product values of the positioning lines are determined, and the negative angles and positive angles of the simulated curtain walls are automatically identified according to the vector cross product values. The vectors of the building model are quickly and automatically standardized to improve work efficiency and accuracy, thereby solving the technical problems in the related art of vector confusion of line segments when building models, the need for manual involvement and correction, low accuracy, and low efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0016] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0017] Figure 1 is a flow chart of a building model processing method according to an embodiment of the present invention;
[0018] Figure 2 is a schematic diagram of a functional interface according to an embodiment of the present invention;
[0019] Figure 3 is a schematic diagram of a simulated curtain wall according to an embodiment of the present invention;
[0020] Figure 4 is a schematic diagram of a grid of a simulated curtain wall according to an embodiment of the present invention;
[0021] Figure 5 is a schematic diagram of a generated slate curtain wall according to an embodiment of the present invention;
[0022] Figure 6 is a schematic diagram of a column of a slate curtain wall after being generated according to an embodiment of the present invention;
[0023] Figure 7 is a schematic diagram of a location line of a simulated curtain wall according to an embodiment of the present invention;
[0024] Figure 8 is a schematic diagram of a simulated inner corner and outer corner of a curtain wall according to an embodiment of the present invention;
[0025] Fig. 9 is a schematic diagram of a vector cross product of a negative angle and a positive angle of a simulated curtain wall according to an embodiment of the present invention;
[0026] Fig.10 is a schematic diagram of a building model processing device according to an embodiment of the present invention. DETAILED DESCRIPTION
[0027] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present invention.
[0028] It should be noted that the terms "first", "second", etc. in the specification and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0029] According to an embodiment of the present invention, a method embodiment of a building model processing method is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0030] Figure 1 is a flow chart of a building model processing method according to an embodiment of the present invention. Figure 1 As shown, the method comprises the following steps:
[0031] Step S102, determining the positioning lines of multiple simulated curtain walls of the building model;
[0032] Step S104, determining the vector cross product value of two adjacent positioning lines;
[0033] Step S106, determining whether the angle between two adjacent positioning lines corresponding to the simulated curtain walls is a positive angle or a negative angle according to the vector cross product value.
[0034] Through the above steps, the positioning lines of multiple simulated curtain walls of the building model are determined; the vector cross product value of two adjacent positioning lines is determined; according to the vector cross product value, it is determined that the simulated curtain walls corresponding to the two adjacent positioning lines are a positive angle or a negative angle, and the positioning lines of the simulated curtain walls are used to determine the vector cross product value of the positioning lines, and the negative angle and positive angle of the simulated curtain walls are automatically identified according to the vector cross product value, so that the vectors of the building model are quickly and automatically standardized, and the work efficiency and accuracy are improved, thereby solving the technical problems in the related technology that the vectors of the line segments are confused when the building model is established, and human involvement and correction are required, and the accuracy and efficiency are low.
[0035] The positioning lines of the simulated curtain wall can locate the position and creation direction of the simulated curtain wall. By calculating the vector cross product value according to different positioning lines of the simulated curtain wall, it can be determined whether the adjacent curtain walls are positive angles or negative angles. This can quickly and automatically standardize the vectors of the building model, improve work efficiency and accuracy, and solve the technical problems of the related art that the vectors of the line segments are chaotic when the building model is established, which requires manual involvement and correction, and has low accuracy and low efficiency.
[0036] The above steps can be applied to a building model simulation system, and the positioning lines of the multiple simulated curtain walls of the building model can be multiple positioning lines of the multiple curtain walls, after processing, the connected simulated curtain walls are linked into a linked list, and are arranged in a predetermined order. In this embodiment, the predetermined order is counterclockwise.
[0037] According to the above-mentioned multiple positioning lines arranged in a predetermined order, the vector cross product value of two adjacent positioning lines can be determined, and according to the positive and negative of the vector cross product value, it is determined that the angle of the curtain wall corresponding to the two adjacent positioning lines is a positive angle or a negative angle. Therefore, according to the positioning line of the simulated curtain wall of the building model, it is effectively determined that the structure of the curtain wall is a negative angle or a positive angle.
[0038] Therefore, by simulating the positioning line of the curtain wall, the vector cross product value of the positioning line is determined, and the inner and outer corners of the simulated curtain wall are automatically identified according to the vector cross product value, so as to quickly and automatically standardize the vectors of the building model and improve work efficiency and accuracy, thereby solving the technical problems in related technologies of vector confusion of line segments when establishing building models, the need for manual involvement and correction, low accuracy and low efficiency.
[0039] Optionally, determining the positioning lines of multiple simulated curtain walls of the building model includes: grouping the multiple positioning lines, connecting the multiple positioning lines in each group; calculating the directed area of the polygon enclosed by the multiple positioning lines in each group; and determining the positioning lines of the multiple simulated curtain walls according to the directed area.
[0040] Due to the large number of simulated curtain walls, the order of their establishment is relatively chaotic, resulting in a large number of positioning lines with inconsistent directions. Group the positioning lines and group the related positioning lines together. That is, when the building model is more complex, its virtual curtain wall may be divided into several parts. According to whether they are adjacent, group the positioning lines of the simulated curtain wall and group the related positioning lines together.
[0041] The multiple positioning lines of each group are surrounded into a polygon, and its directed area is calculated, and the multiple positioning lines are sorted according to the directed area. The above-mentioned directed area is a vector, and its size is equal to the area of the polygon. Its direction can be determined by right-hand determination. The positional relationship of the convex polygon can be effectively determined according to the positive and negative of the directed area. In this embodiment, if the directed area is positive, it means that the multiple positioning lines of the polygon are arranged clockwise, and if the directed area is negative, it means that the multiple positioning lines in the polygon are arranged counterclockwise. Then, the order of the multiple positioning lines is determined, so as to ensure the accuracy of the subsequent determination of the vector cross product value.
[0042] Optionally, before calculating the directed area of the polygon enclosed by the multiple positioning lines of each group, the step includes: determining whether the multiple positioning lines form a closed polygon; if the multiple positioning lines do not form a closed polygon, creating line segments so that the multiple positioning lines form a closed polygon; if the multiple positioning lines form a closed polygon, executing the step of calculating the directed area of the polygon enclosed by the multiple positioning lines of each group.
[0043] The multiple positioning lines in each group mentioned above may not necessarily form a closed polygon. When the multiple positioning lines do not form a closed polygon, it may be impossible to calculate the directed area of the multiple positioning lines, and it is also impossible to determine the order of the multiple positioning lines. Therefore, by creating line segments, the multiple positioning lines are made to form a closed polygon in order to determine the directed area of the polygon and the order of the multiple positioning lines.
[0044] Optionally, determining the positioning lines of multiple simulated curtain walls based on the directed area includes: determining the arrangement direction of the multiple positioning lines corresponding to the directed area according to the positive and negative value of the directed area, wherein the arrangement direction is counterclockwise or clockwise; when the arrangement direction is opposite to a preset direction, reversing the directions of the multiple positioning lines; when the arrangement direction is the same as the preset direction, using the multiple positioning lines as the positioning lines of multiple simulated curtain walls.
[0045] It can be that when the directed area is negative, the arrangement direction of the multiple positioning lines of the polygon is clockwise, and when the directed area is positive, the arrangement direction of the positioning lines of the polygon is counterclockwise. When the arrangement direction is opposite to the preset direction, the directions of the multiple positioning lines are reversed; when the arrangement direction is the same as the preset direction, the direction of the positioning line is kept unchanged, and the multiple positioning lines are used as the positioning lines of multiple simulated curtain walls, and then the cross product values of two adjacent positioning lines are determined according to the multiple orderly arranged positioning lines, so that the multiple positioning lines of each group are effectively sorted, and then the connected cross product values are determined according to the sorted positioning lines.
[0046] Optionally, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area according to the positive or negative value of the directed area includes: based on the line of sight direction of the building model, when the directed area is positive, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area is counterclockwise; when the directed area is negative, determining the arrangement direction of the multiple multi-shape positioning lines corresponding to the directed area is clockwise.
[0047] It should be noted that the arrangement order of the multiple positioning lines of the polygon will be opposite when viewed from different angles. For example, if viewed from the front, it is clockwise, while if viewed from the back, it will become counterclockwise. Therefore, this embodiment combines the sight line direction of the building model to prevent the multiple positioning lines from conflicting with the actual direction of the building model, resulting in inapplicability.
[0048] Based on the sight line direction of the building model, when the directed area is positive, the arrangement direction of the multiple positioning lines of the polygon corresponding to the directed area is determined to be counterclockwise; when the directed area is negative, the arrangement direction of the multiple positioning lines of the polygon corresponding to the directed area is determined to be clockwise. This effectively determines the arrangement order of the multiple positioning lines of the polygon, providing an effective guarantee for the subsequent determination of the vector cross product value.
[0049] Optionally, determining whether the simulated curtain walls corresponding to two adjacent positioning lines are a yang angle or a yin angle based on the vector cross product value includes: when the vector direction of the vector cross product value is upward, determining that the simulated curtain walls corresponding to the two adjacent positioning lines are a yin angle; when the vector direction of the vector cross product value is downward, determining that the simulated curtain walls corresponding to the two adjacent positioning lines are a yang angle.
[0050] The above-mentioned vector cross product value is a vector, and its size is equal to the dot product of the two positioning lines. The Qixiangxiang is determined by the right-hand rule according to the direction of the two positioning lines. In this embodiment, the vector cross product value is positive when the direction is upward, and negative when the direction is downward. Therefore, when the vector direction of the vector cross product value is upward, it is determined that the simulated curtain walls corresponding to the two adjacent positioning lines are a Yin angle; when the vector direction of the vector cross product value is downward, it is determined that the simulated curtain walls corresponding to the two adjacent positioning lines are a Yang angle. Therefore, according to the vector cross product value of the two positioning lines, it is effectively determined that the angle of the corresponding curtain wall is a Yin angle or a Yang angle.
[0051] Optionally, the method further includes: generating a curtain wall of the building model according to the external angle and the internal angle, wherein the internal angle and the external angle correspond to different curtain wall structures respectively.
[0052] For example, for stone curtain walls, the curtain walls at the inner corners do not need to be chamfered, and can be directly spliced at right angles, so that one end of a curtain wall is extended so that the side of the extended curtain wall is aligned with the back of the extended curtain wall, so that the outer surfaces of the two curtain walls are at a right angle, and the outer surfaces of the pins formed by the two curtain walls are complete. The curtain walls at the outer corners need to be chamfered 45 degrees at the points of the outer corner lines of the two curtain walls, so that the two curtain walls can be spliced together, and the outer surfaces of the two curtain walls at the outer corners are complete and form a outer corner.
[0053] Thus, the curtain wall is automatically generated according to the positive and negative angles, thus improving the efficiency and accuracy of curtain wall generation.
[0054] It should be noted that the embodiment of the present application also provides an optional implementation, which is described in detail below.
[0055] This embodiment provides a related algorithm for completing the clockwise and counterclockwise sorting of a group of line segments based on computer language. Provides a related algorithm for completing the XOR (complement) of two line segments. Developers only need to pass in the parameters required by the technical interface, and the XOR (complement) set of the two line segments is returned.
[0056] The user only needs to quote the library file of the present invention in the project and pass in the corresponding parameters of the functional interface to call the encapsulated function to quickly obtain the result.
[0057] (1) Applicable scenarios
[0058] Function interface such as Figure 2 As shown, Figure 2 is a schematic diagram of a functional interface according to an embodiment of the present invention
[0059] Scenario: Generate the main body of the curtain wall based on the simulated curtain wall and curtain wall grid, including the panels and columns of the stone curtain wall. Before generation, it is necessary to pre-process the positioning lines of the selected simulated curtain wall, connect the connected simulated curtain walls into a linked list, and sort the positioning lines of all simulated curtain walls in counterclockwise order.
[0060] Input parameters: simulate the positioning line of the curtain wall.
[0061] Return result: the positioning lines of the simulated curtain wall sorted in counter-clockwise order.
[0062] Before running the function generation, click the "Pick" button on the function interface and select two simulated curtain walls.
[0063] Simulate the display effect of curtain wall, such as Figure 3 As shown, Figure 3 Schematic diagram of a simulated curtain wall according to an embodiment of the present invention.
[0064] Simulate the display effect of the curtain wall grid, such as Figure 4 As shown, Figure 4 Schematic diagram of a simulated curtain wall grid according to an embodiment of the present invention.
[0065] The display effect of the generated stone curtain wall is as follows: Figure 5 As shown, Figure 5 is a schematic diagram of a generated slate curtain wall according to an embodiment of the present invention.
[0066] The display effect of the columns of the generated stone curtain wall is as follows: Figure 6 As shown, Figure 6 Schematic diagram of columns of a generated slate curtain wall according to an embodiment of the present invention.
[0067] Specific application description in the scenario:
[0068] After selecting two simulated curtain walls, the positioning lines of the simulated curtain walls are as follows: Figure 7 As shown, Figure 7 Schematic diagram of the positioning line of the simulated curtain wall according to the embodiment of the present invention, the direction of the positioning line depends on the drawing direction when drawing the simulated curtain wall.
[0069] Figure 8 is a schematic diagram of simulating the inner and outer corners of a curtain wall according to an embodiment of the present invention, Fig. 9 is a schematic diagram of a vector cross product of a negative angle and a positive angle of a simulated curtain wall according to an embodiment of the present invention, such as Figure 8 and Fig. 9As shown, since the panels at the corners of the stone curtain wall need to be spliced, it is necessary to determine whether the corner is a internal corner or a external corner. The places where the internal corner and the external corner are connected will be different, so it is necessary to determine whether the current corner is a internal corner or a external corner. In order to facilitate judgment, the positioning lines of the curtain wall need to be sorted counterclockwise, and the internal corner and the external corner are determined by the positive and negative values of the vector cross product Z value.
[0070] (3) Algorithm Implementation
[0071] Input parameters: line segment set, sight direction, clockwise or counterclockwise
[0072] Output result: a set of line segments (one or more groups) sorted by line direction and the choice of clockwise or counterclockwise.
[0073] Implementation steps:
[0074] ① Group the line segments into one or more connected line segments. And adjust the direction of the line segments to the same direction, clockwise or counterclockwise.
[0075] ②Process the line segment set of each group of head and tail vectors.
[0076] The processing steps are as follows:
[0077] If the line segment set is a line segment whose ends are not closed, create a line segment to connect the ends.
[0078] ii Calculate the directed area of the enclosed polygon.
[0079] Calculate the directed area of a polygon using the conventional polygon area calculation algorithm.
[0080] iii. Determine the positive or negative value of the polygon area, and combine the sight direction to determine whether the current line segment direction is the required clockwise or counterclockwise direction. If the direction is correct, no processing is done; if the direction is incorrect, the direction of each line segment is reversed.
[0081] The advantages created by this implementation are as follows: providing a method for calculating the intersection of a straight line and a plane based on a computer language, using direct calls, eliminating the need for developers to design and implement functions themselves, reducing developer development time and improving development efficiency.
[0082] Fig.10 is a schematic diagram of a building model processing device according to an embodiment of the present invention. Fig.10 As shown, according to another aspect of an embodiment of the present invention, a building model processing device is also provided, including: a first determination module 1002, a second determination module 1004 and a third determination module 1006. The device is described in detail below.
[0083] The first determination module 1002 is used to determine the positioning lines of multiple simulated curtain walls of the building model; the second determination module 1004 is connected to the above-mentioned first determination module 1002, and is used to determine the vector cross product value of two adjacent positioning lines; the third determination module 1006 is connected to the above-mentioned second determination module 1004, and is used to determine whether the simulated curtain walls corresponding to two adjacent positioning lines are a positive angle or a negative angle based on the vector cross product value.
[0084] Through the above-mentioned device, the positioning lines of multiple simulated curtain walls of the building model are determined; the vector cross product value of two adjacent positioning lines is determined; according to the vector cross product value, it is determined that the simulated curtain walls corresponding to the two adjacent positioning lines are a positive angle or a negative angle. Through the positioning lines of the simulated curtain walls, the vector cross product value of the positioning lines is determined, and the negative angle and positive angle of the simulated curtain wall are automatically identified according to the vector cross product value, the vector of the building model is quickly and automatically standardized, and the work efficiency and accuracy are improved, thereby solving the technical problems in the related technology that the vectors of the line segments are confused when the building model is established, and human involvement and correction are required, and the accuracy and efficiency are low.
[0085] According to another aspect of an embodiment of the present invention, a computer storage medium is further provided, the computer storage medium including a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute any one of the above-mentioned building model processing methods.
[0086] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned building model processing methods is executed.
[0087] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0088] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0089] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0090] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0091] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0092] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0093] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A method for processing a building model, characterized in that: include: Determine the location lines of multiple simulated curtain walls of the building model; Determine the vector cross product value of two adjacent positioning lines; Determine whether the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a positive angle or a negative angle according to the vector cross product value; Wherein, determining the positioning lines of multiple simulated curtain walls of the building model includes: Grouping the plurality of positioning lines, wherein the plurality of positioning lines in each group are connected; Calculate the directed area of the polygon enclosed by each group of multiple positioning lines; Determining the positioning lines of the plurality of simulated curtain walls according to the directed areas comprises: Determining the arrangement direction of the plurality of positioning lines of the plurality of shapes corresponding to the directed area according to the positive or negative value of the directed area, wherein the arrangement direction is counterclockwise or clockwise; When the arrangement direction is opposite to the preset direction, the directions of the plurality of positioning lines are reversed; When the arrangement direction is the same as the preset direction, the plurality of positioning lines are used as positioning lines of the plurality of simulated curtain walls; Wherein, before calculating the directed area of the polygon enclosed by each group of multiple positioning lines, the method includes: Determining whether the plurality of positioning lines enclose a closed polygon; In the case that the plurality of positioning lines do not enclose a closed polygon, creating line segments so that the plurality of positioning lines enclose a closed polygon; In the case that the plurality of positioning lines enclose a closed polygon, a step of calculating the directed area of the polygon enclosed by each group of the plurality of positioning lines is performed.
2. The method according to claim 1, characterized in that The method of determining the arrangement direction of the plurality of positioning lines corresponding to the directed area according to the positive or negative sign of the directed area comprises: Based on the sight line direction of the building model, when the directed area is positive, determining that the arrangement direction of the plurality of positioning lines of the multi-deformation corresponding to the directed area is counterclockwise; When the directed area is negative, it is determined that the arrangement direction of the plurality of positioning lines of the polygon corresponding to the directed area is clockwise.
3. The method according to claim 1, characterized in that The step of determining whether the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a positive angle or a negative angle according to the vector cross product value comprises: When the vector direction of the vector cross product value is upward, determining that the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a concave angle; When the vector direction of the vector cross product value is downward, it is determined that the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a positive angle.
4. The method according to claim 1, characterized in that: Also includes: The curtain wall of the building model is generated according to the external angle and the internal angle, wherein the internal angle and the external angle correspond to different curtain wall structures respectively.
5. A building model processing device, characterized in that: include: A first determination module is used to determine the location lines of multiple simulated curtain walls of the building model; A second determination module is used to determine a vector cross product value of two adjacent positioning lines; A third determination module is used to determine whether the angle between the simulated curtain walls corresponding to two adjacent positioning lines is a positive angle or a negative angle according to the vector cross product value; Among them, the first determination module includes: grouping the multiple positioning lines, and the multiple positioning lines in each group are connected; calculating the directed area of the polygon enclosed by the multiple positioning lines in each group; determining the positioning lines of the multiple simulated curtain walls according to the directed area, including: determining the arrangement direction of the multiple positioning lines corresponding to the directed area according to the positive and negative of the directed area, wherein the arrangement direction is counterclockwise or clockwise; when the arrangement direction is opposite to the preset direction, the directions of the multiple positioning lines are reversed; when the arrangement direction is the same as the preset direction, the multiple positioning lines are used as the positioning lines of the multiple simulated curtain walls; before calculating the directed area of the polygon enclosed by the multiple positioning lines in each group, it also includes: determining whether the multiple positioning lines enclose a closed polygon; if the multiple positioning lines do not enclose a closed polygon, creating line segments to make the multiple positioning lines enclose a closed polygon; if the multiple positioning lines enclose a closed polygon, executing the step of calculating the directed area of the polygon enclosed by the multiple positioning lines in each group.
6. A computer storage medium, characterized in that: The computer storage medium includes a stored program, wherein when the program is executed, the device where the computer storage medium is located is controlled to execute the building model processing method according to any one of claims 1 to 4.
7. A processor, characterized in that: The processor is used to run a program, wherein the program executes the building model processing method according to any one of claims 1 to 4 when running.
Citation Information
Patent Citations
Single-curved plate fitting hyperbolic modeling method for curtain wall design and construction
CN105608294A
BIM-based curved surface curtain wall sunlight focusing safety visual analysis method
CN111597607A
Method for measuring and modeling spaces using markerless augmented reality
US20190051054A1
