Model file processing method and device, storage medium, and electronic device
By performing room affiliation judgment and data interruption processing in the Revit model file, the problem of insufficient data accuracy in the existing technology is solved, higher data accuracy and processing efficiency are achieved, and a reliable data basis is provided for subsequent operations. .
Patent Information
- Application Number
- CN202111196325.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-14
- Publication Date
- 2024-10-01
- Estimated Expiration
- 2041-10-14
AI Technical Summary
In the existing Revit model file processing method, when obtaining room data, the data accuracy is insufficient due to the extension processing of walls and dividing lines, and subsequent operations such as offset processing cannot be supported.
By obtaining the separated room data and boundary line data in the link file of the building information model, room affiliation judgment and data interruption processing are performed to ensure data accuracy, and boundary interruption processing is performed based on the room interruption data, using a layer-by-layer progression. The dual logic improves data accuracy.
It improves the accuracy of data interruption processing, facilitates subsequent operations such as offset processing, and ensures the accuracy and processing efficiency of room target data.
Smart Images

Figure CN113902867B_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a model file processing method and model file processing device, a computer-readable storage medium, and an electronic device. Background Art
[0002] Revit is the name of a series of software from Autodesk. The Revit series of software is built for Building Information Modeling (BIM), which can help architects design, build and maintain better quality and more energy-efficient buildings. Moreover, Revit is one of the most widely used software in the BIM system of my country's construction industry. In the Revit model, there are linked instance objects, model group objects, or nested linked objects of any elevation. They are processed according to the room objects inside such objects and the boundary objects corresponding to the rooms.
[0003] Generally, all rooms in the file are obtained. Furthermore, the wall positioning lines and room dividing lines corresponding to all rooms are obtained, and then they are extended to a certain length, and then the data structure of each room is obtained by interrupting each other at the intersection. However, if all wall positioning lines and room dividing lines are extended, an incorrect data structure may be obtained later, which is not accurate enough and cannot continue to support subsequent offset processing and other operations.
[0004] In view of this, there is an urgent need in the art to develop a new model file processing method and device.
[0005] It should be noted that the information disclosed in the above background technology section is only used to enhance the understanding of the background of the present disclosure, and therefore may include information that does not constitute the prior art known to ordinary technicians in the field. Summary of the invention
[0006] The purpose of the present disclosure is to provide a model file processing method, a model file processing device, a computer-readable storage medium and an electronic device, thereby at least to a certain extent overcoming the technical problem of insufficient data processing accuracy caused by the limitations of related technologies.
[0007] Other features and advantages of the present disclosure will become apparent from the following detailed description, or may be learned in part by the practice of the present disclosure.
[0008] According to a first aspect of an embodiment of the present invention, a method for processing a model file is provided, the method comprising:
[0009] Obtaining a link file of a building information model, and obtaining partition room data and boundary line data in the link file;
[0010] Performing room subordination judgment on the partitioned room data to obtain a subordination position relationship, and performing data interruption processing on the partitioned room data according to the subordination position relationship to obtain room interruption data;
[0011] The boundary line data is subjected to boundary interruption processing according to the room interruption data to obtain room target data.
[0012] In an exemplary embodiment of the present invention, the acquiring of the partition room data and the boundary line data in the link file includes:
[0013] Acquire the original room data in the link file, and perform floor grouping processing on the original room data to obtain target room data;
[0014] The segmented room data and the boundary line data in the target room data are acquired.
[0015] In an exemplary embodiment of the present invention, the step of performing floor grouping processing on the original room data to obtain target room data includes:
[0016] Acquire a floor mapping relationship corresponding to the original room data, and perform data conversion processing on the original room data according to the floor mapping relationship to obtain target floor data of the original room data;
[0017] The original room data is subjected to floor grouping processing according to the target floor data to obtain target room data.
[0018] In an exemplary embodiment of the present invention, the partitioned room data includes: room wall data and partition line data.
[0019] In an exemplary embodiment of the present invention, the step of performing data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data includes:
[0020] If the subordinate position relationship is that the room wall data belongs to multiple rooms, data interruption processing is performed on the room wall data to obtain room interruption data;
[0021] If the subordinate position relationship is that the dividing line data belongs to multiple rooms, data interruption processing is performed on the dividing line data to obtain room interruption data.
[0022] In an exemplary embodiment of the present invention, the method further comprises:
[0023] When the segmentation line data is not obtained in the link file, the boundary line data is determined to be the room target data.
[0024] In an exemplary embodiment of the present invention, performing boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data includes:
[0025] Performing room projection processing on the boundary line data according to the room interruption data to obtain a room projection result;
[0026] If the room projection result is that the room interruption data is projected on the boundary line data, boundary interruption processing is performed on the boundary line data to obtain room target data.
[0027] According to a second aspect of an embodiment of the present invention, there is provided a model file processing device, characterized in that it includes:
[0028] A data acquisition module is configured to acquire a link file of a building information model, and acquire partition room data and boundary line data in the link file;
[0029] a position determination module configured to perform room subordination determination on the partitioned room data to obtain a subordination position relationship, and perform data interruption processing on the partitioned room data according to the subordination position relationship to obtain room interruption data;
[0030] The boundary interruption module is configured to perform boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data.
[0031] According to a third aspect of an embodiment of the present invention, there is provided an electronic device, comprising: a processor and a memory; wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the method for processing the model file in any of the above exemplary embodiments is implemented.
[0032] According to a fourth aspect of an embodiment of the present invention, there is provided a computer-readable storage medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method for processing a model file in any of the above exemplary embodiments is implemented.
[0033] It can be seen from the above technical solutions that the model file processing method, model file processing device, computer storage medium and electronic device in the exemplary embodiments of the present disclosure have at least the following advantages and positive effects:
[0034] In the method and device provided by the exemplary embodiment of the present disclosure, room subordination judgment is performed on the segmented room data, so as to perform data interruption processing on the segmented room data according to the subordinate position relationship, thereby ensuring the accuracy of the data interruption processing, and also making the room interruption data obtained by the data interruption processing provide a processing basis and data foundation for the subsequent boundary interruption processing. In addition, boundary interruption processing is performed on the boundary line data according to the room interruption data, further ensuring the accuracy of the secondary interruption processing, and improving the accuracy of the room target data obtained by interruption according to the layer-by-layer progressive dual logic, which provides convenience for various operations such as subsequent offset processing.
[0035] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the present disclosure. BRIEF DESCRIPTION OF THE DRAWINGS
[0036] The accompanying drawings herein are incorporated into the specification and constitute a part of the specification, illustrate embodiments consistent with the present disclosure, and together with the specification are used to explain the principles of the present disclosure. Obviously, the accompanying drawings described below are only some embodiments of the present disclosure, and for ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without creative work.
[0037] Figure 1 A schematic diagram schematically illustrates a flow chart of a method for processing a model file in an exemplary embodiment of the present disclosure;
[0038] Figure 2 A flowchart schematically illustrates a method for acquiring segmented room data and boundary line data in an exemplary embodiment of the present disclosure;
[0039] Figure 3 A flowchart schematically illustrating a method for floor grouping processing in an exemplary embodiment of the present disclosure is provided;
[0040] Figure 4 A flowchart schematically illustrating a method for data interruption processing in an exemplary embodiment of the present disclosure;
[0041] Figure 5 A flowchart schematically illustrating a method for boundary interruption processing in an exemplary embodiment of the present disclosure;
[0042] Figure 6 A flowchart schematically illustrates a method for processing a model file in an application scenario in an exemplary embodiment of the present disclosure;
[0043] Figure 7 A schematic diagram schematically shows the structure of a device for processing a model file in an exemplary embodiment of the present disclosure;
[0044] Figure 8An electronic device for implementing a method for processing a model file in an exemplary embodiment of the present disclosure is schematically shown;
[0045] Fig. 9 A computer-readable storage medium for implementing a method for processing a model file in an exemplary embodiment of the present disclosure is schematically shown. DETAILED DESCRIPTION
[0046] Example embodiments will now be described more fully with reference to the accompanying drawings. However, example embodiments can be implemented in a variety of forms and should not be construed as being limited to the examples set forth herein; on the contrary, these embodiments are provided so that the present disclosure will be more comprehensive and complete, and the concepts of the example embodiments are fully conveyed to those skilled in the art. The described features, structures, or characteristics may be combined in one or more embodiments in any suitable manner. In the following description, many specific details are provided to provide a full understanding of the embodiments of the present disclosure. However, those skilled in the art will appreciate that the technical solutions of the present disclosure may be practiced while omitting one or more of the specific details, or other methods, components, devices, steps, etc. may be adopted. In other cases, known technical solutions are not shown or described in detail to avoid obscuring various aspects of the present disclosure.
[0047] The terms "a", "an", "the" and "said" are used in this specification to indicate the presence of one or more elements / components / etc.; the terms "including" and "having" are used to express an open-ended inclusion and mean that additional elements / components / etc. may exist in addition to the listed elements / components / etc.; the terms "first" and "second" etc. are used only as labels and are not intended to limit the quantity of their objects.
[0048] In addition, the accompanying drawings are only schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings represent the same or similar parts, and their repeated descriptions will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities.
[0049] In view of the problems existing in the related art, the present invention proposes a method for processing a model file. Figure 1 A flowchart showing a method for processing a model file is shown in FIG. Figure 1 As shown, the method for processing the model file includes at least the following steps:
[0050] Step S110: Obtain the link file of the building information model, and obtain the partition room data and boundary line data in the link file.
[0051] Step S120: Perform room subordination judgment on the partitioned room data to obtain a subordinate position relationship, and perform data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data.
[0052] Step S130: Perform boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data.
[0053] In the exemplary embodiment of the present disclosure, the room subordination judgment is performed on the split room data, so as to perform data interruption processing on the split room data according to the subordinate position relationship, thereby ensuring the accuracy of the data interruption processing, and also making the room interruption data obtained by the data interruption processing provide a processing basis and data foundation for the subsequent boundary interruption processing. In addition, the boundary line data is subjected to boundary interruption processing according to the room interruption data, further ensuring the accuracy of the secondary interruption processing, and improving the accuracy of the room target data obtained by interruption according to the layer-by-layer progressive dual logic, which provides convenience for various operations such as subsequent offset processing.
[0054] The following is a detailed description of each step of the model file processing method.
[0055] In step S110, a link file of a building information model is obtained, and partition room data and boundary line data in the link file are obtained.
[0056] In an exemplary embodiment of the present disclosure, the link file may be a file of a building information model established in Revit.
[0057] Among them, Revit is a modeling software widely used in the construction industry. Revit is the name of a series of software from Autodesk. The Revit series of software is built specifically for Building Information Modeling (BIM), which helps building designers design, build and maintain better quality and more energy-efficient buildings. Autodesk Revit is provided as an application that combines the functions of Autodesk Revit Architecture, Autodesk Revit MEP and Autodesk Revit Structure software.
[0058] Furthermore, the link file may be all the link files in other project files. It is worth noting that the all link files also include other link files that have an organizational relationship with the link files in the other project files. Among them, the other link files that have an organizational relationship with the link file may be other link files that the current link file also links to, that is, there is a nested relationship between the link files.
[0059] In an alternative embodiment, Figure 2A flow chart of a method for obtaining segmented room data and boundary line data is shown, as shown in FIG. Figure 2 As shown, the method at least includes the following steps: In step S210, original room data in the link file is obtained, and floor grouping processing is performed on the original room data to obtain target room data.
[0060] The original room data of all rooms contained in the linked file can be obtained through the interface provided by Revit.
[0061] In an alternative embodiment, Figure 3 A flow chart of a floor grouping processing method is shown in FIG. Figure 3 As shown, the method includes at least the following steps: in step S310, a floor mapping relationship corresponding to the original room data is obtained, and data conversion processing is performed on the original room data according to the floor mapping relationship to obtain target floor data of the original room data.
[0062] Since the link file is obtained from other project files, in order to successfully transplant the original room data in other project files into the current project file, the floor mapping relationship corresponding to the original room data can be obtained.
[0063] The floor mapping relationship may be a mapping relationship between the floors of rooms in other project files and the floors of room data in the current project file.
[0064] For example, when a room is on the 2nd floor in other project files, if the original room data is not converted through the floor mapping relationship, the original room data may be shown as on the 7th floor in the current project file, resulting in a floor error, which will further lead to errors in subsequent data interruption processing and boundary interruption processing.
[0065] Therefore, after the floor mapping relationship is obtained, the original room data may be converted according to the floor mapping relationship to ensure that the target floor data of the original room data in the current project file is consistent with the floor data in other previous project files.
[0066] In step S320, the original room data is grouped by floor according to the target floor data to obtain the target room data.
[0067] After obtaining the target floor data of the original room data of each room, the original room data may be grouped by floor according to the same target floor data to obtain the target room data of all rooms on the same floor.
[0068] In this exemplary embodiment, the target floor data of the original room data is determined through the floor mapping relationship to facilitate subsequent data interruption processing and boundary interruption processing according to the floor, thereby refining the data processing process and facilitating parallel processing of the data processing process to further improve the efficiency of data processing.
[0069] In step S220, the segmented room data and boundary line data in the target room data are acquired.
[0070] For the target room data of the same target floor data, the split room data and boundary line data of each room can be further obtained through the interface provided by Revit.
[0071] In an optional embodiment, the partitioned room data includes: room wall data and partition line data.
[0072] In the Revit modeling process, in addition to a room composed of walls as in real life, you can also divide a room into one or more sides by room dividing lines. Therefore, the data representing a wall of a room is the room wall data, and the dividing line representing a side of the room is the dividing line data.
[0073] In this exemplary embodiment, by performing floor grouping processing on the original room data, the segmented room data and boundary line data of the rooms on the same floor can be obtained, and the room data can be processed according to the floor granularity, with a finer division granularity, thereby improving the accuracy of subsequent data interruption processing and boundary interruption processing.
[0074] In step S120, room subordination judgment is performed on the partitioned room data to obtain a subordinate position relationship, and data interruption processing is performed on the partitioned room data according to the subordinate position relationship to obtain room interruption data.
[0075] In an exemplary embodiment of the present disclosure, performing room affiliation judgment on the segmented room data may be determining whether the positional relationship represented by the room wall data or the segmentation line data constitutes one room or multiple rooms.
[0076] When the room wall data or the dividing line data constitute multiple rooms, the room wall data or the dividing line data may be further subjected to data interruption processing.
[0077] In an alternative embodiment, Figure 4 A flow chart of a method for data interruption processing is shown, as shown in FIG. Figure 4 As shown, the method at least includes the following steps: in step S410, if the subordinate position relationship is that the room wall data belongs to multiple rooms, data interruption processing is performed on the room wall data to obtain room interruption data.
[0078] After performing room subordination judgment on the room wall data in the segmented room data to obtain a subordinate position relationship that the room wall data belongs to multiple rooms, data interruption processing may be performed on the room wall data.
[0079] For example, when two rooms share a wall, and the room wall data of the wall is 15 cm, and it is known that the wall data of the other three walls of the two rooms are 5 cm and 10 cm, the 15 cm room wall data can be segmented according to the length of 5 cm and 10 cm to obtain the room interruption data after the interruption of 5 cm and 10 cm. Therefore, the room interruption data is the wall that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts of 5 cm and 10 cm.
[0080] In step S420, if the subordinate position relationship is that the dividing line data belongs to multiple rooms, data interruption processing is performed on the dividing line data to obtain room interruption data.
[0081] After performing room affiliation judgment on the dividing line data in the divided room data to obtain a subordinate position relationship that the dividing line data belongs to multiple rooms, data interruption processing may be performed on the dividing line data.
[0082] For example, when two rooms share a room dividing line, and the dividing line data of the wall is 15cm, and it is known that the wall data of the other three walls of the two rooms are 5cm and 10cm, the 15cm dividing line data can be segmented according to the length of 5cm and 10cm to obtain the room interruption data after the interruption of 5cm and 10cm. Therefore, the room interruption data is the room dividing line that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts of 5cm and 10cm.
[0083] In this exemplary embodiment, data interruption processing is performed on the room wall data or the dividing line data according to the subordinate position relationship, which provides a processing basis and data foundation for subsequent boundary interruption processing and ensures the accuracy of the room target data.
[0084] In step S130, the boundary line data is subjected to boundary interruption processing according to the room interruption data to obtain room target data.
[0085] In an exemplary embodiment of the present disclosure, after obtaining the room interruption data according to the data interruption processing, the boundary line data may be further subjected to boundary interruption processing based on the room interruption data.
[0086] In an alternative embodiment, Figure 5 A flow chart of a method for border interruption processing is shown, as shown in Figure 5As shown, the method at least includes the following steps: In step S510, room projection processing is performed on the boundary line data according to the room interruption data to obtain a room projection result.
[0087] The boundary line data may be a basis for indicating a room wall or a room dividing line, that is, the boundary line data constitutes an inner boundary line of the room wall or the room dividing line.
[0088] When the room interruption data is the room dividing line that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts, 5cm and 10cm, the 5cm room interruption data can be projected on the boundary line data of the corresponding room, then the 5cm room interruption data will inevitably be projected on the boundary line data, that is, the room projection result is that the room interruption data can be projected on the boundary line data. Therefore, when the 10cm room interruption data is projected on the 5cm room boundary line data, it is obviously impossible to be projected on the boundary line data. Therefore, the room projection result at this time is that the room interruption data cannot be projected on the boundary line data.
[0089] In step S520, if the room projection result is that the room interruption data is projected on the boundary line data, boundary interruption processing is performed on the boundary line data to obtain the room target data.
[0090] When the room projection result is that the room interruption data is projected on the boundary line data, the boundary line data can be further processed according to the room interruption data to obtain the room target data. The room target data is the data of the room boundary line corresponding to each room interruption. After obtaining the room target data, it is convenient to perform other operations such as offset processing on the room.
[0091] In this exemplary embodiment, based on the room interruption data obtained through data interruption processing, boundary line data is further subjected to boundary interruption processing to obtain corresponding room target data, thereby improving the accuracy and efficiency of data processing.
[0092] In addition, when obtaining the partitioned room data from the link file, it may happen that only the partition line data is obtained. In this case, the boundary line data can be directly determined as the target room data.
[0093] In an optional embodiment, when the segmentation line data is not obtained in the link file, the boundary line data is determined to be room target data.
[0094] If there is no room dividing line data in the room in the obtained link file, the boundary line data of each room can be directly obtained as the room target data, which is equivalent to completing or skipping the data interruption processing and boundary interruption processing process.
[0095] The following is a detailed description of the method for processing the model file in the embodiment of the present disclosure in conjunction with an application scenario.
[0096] Figure 6 A flow chart of a method for processing a model file in an application scenario is shown, such as Figure 6 As shown, in step S610, Revit file.
[0097] That is, other project files are obtained.
[0098] In step S620, all link files in the project file are obtained.
[0099] Get the link file of the building information model. The link file can be the file of the building information model created in Revit.
[0100] Furthermore, the link file may be all the link files in other project files. It is worth noting that the all link files also include other link files that have an organizational relationship with the link files in the other project files. Among them, the other link files that have an organizational relationship with the link file may be other link files that the current link file also links to, that is, there is a nested relationship between the link files.
[0101] In step S630, all rooms in the link file are obtained and grouped by floor.
[0102] The original room data of all rooms contained in the linked file can be obtained through the interface provided by Revit.
[0103] The floor mapping relationship corresponding to the original room data is obtained, and the original room data is converted according to the floor mapping relationship to obtain the target floor data of the original room data.
[0104] Since the link file is obtained from other project files, in order to successfully transplant the original room data in other project files into the current project file, the floor mapping relationship corresponding to the original room data can be obtained.
[0105] The floor mapping relationship may be a mapping relationship between the floors of rooms in other project files and the floors of room data in the current project file.
[0106] For example, when a room is on the 2nd floor in other project files, if the original room data is not converted through the floor mapping relationship, the original room data may be shown as on the 7th floor in the current project file, resulting in a floor error, which will further lead to errors in subsequent data interruption processing and boundary interruption processing.
[0107] Therefore, after the floor mapping relationship is obtained, the original room data may be converted according to the floor mapping relationship to ensure that the target floor data of the original room data in the current project file is consistent with the floor data in other previous project files.
[0108] The original room data is processed by floor grouping according to the target floor data to obtain the target room data.
[0109] After obtaining the target floor data of the original room data of each room, the original room data may be grouped by floor according to the same target floor data to obtain the target room data of all rooms on the same floor.
[0110] In step S640, the walls and room dividing lines in each room are obtained.
[0111] For the target room data of the same target floor data, the split room data and boundary line data of each room can be further obtained through the interface provided by Revit.
[0112] The partitioned room data may include: room wall data and partition line data.
[0113] In the Revit modeling process, in addition to a room composed of walls as in real life, you can also divide a room into one or more sides by room dividing lines. Therefore, the data representing a wall of a room is the room wall data, and the dividing line representing a side of the room is the dividing line data.
[0114] In step S650, the wall and the room dividing line are interrupted by their positional relationship.
[0115] The room subordination judgment is performed on the partitioned room data to obtain the subordinate position relationship, and the data interruption processing is performed on the partitioned room data according to the subordinate position relationship to obtain the room interruption data.
[0116] Performing room affiliation judgment on the segmented room data may be to determine whether the positional relationship represented by the room wall data or the segmentation line data constitutes one room or multiple rooms.
[0117] When the room wall data or the dividing line data constitute multiple rooms, the room wall data or the dividing line data may be further subjected to data interruption processing.
[0118] If the subordinate position relationship is that the room wall data belongs to multiple rooms, data interruption processing is performed on the room wall data to obtain room interruption data.
[0119] After performing room subordination judgment on the room wall data in the segmented room data to obtain a subordinate position relationship that the room wall data belongs to multiple rooms, data interruption processing may be performed on the room wall data.
[0120] For example, when two rooms share a wall, and the room wall data of the wall is 15 cm, and it is known that the wall data of the other three walls of the two rooms are 5 cm and 10 cm, the 15 cm room wall data can be segmented according to the length of 5 cm and 10 cm to obtain the room interruption data after the interruption of 5 cm and 10 cm. Therefore, the room interruption data is the wall that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts of 5 cm and 10 cm.
[0121] If the subordinate position relationship is that the dividing line data belongs to multiple rooms, data interruption processing is performed on the dividing line data to obtain room interruption data.
[0122] After performing room affiliation judgment on the dividing line data in the divided room data to obtain a subordinate position relationship that the dividing line data belongs to multiple rooms, data interruption processing may be performed on the dividing line data.
[0123] For example, when two rooms share a room dividing line, and the dividing line data of the wall is 15cm, and it is known that the wall data of the other three walls of the two rooms are 5cm and 10cm, the 15cm dividing line data can be segmented according to the length of 5cm and 10cm to obtain the room interruption data after the interruption of 5cm and 10cm. Therefore, the room interruption data is the room dividing line that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts of 5cm and 10cm.
[0124] In step S660, the room boundary line is interrupted using the data in the interrupted data structure.
[0125] The boundary line data is processed by boundary interruption according to the room interruption data to obtain the room target data.
[0126] In an exemplary embodiment of the present disclosure, after obtaining the room interruption data according to the data interruption processing, the boundary line data may be further subjected to boundary interruption processing based on the room interruption data.
[0127] The room projection result is obtained by performing room projection processing on the boundary line data according to the room interruption data.
[0128] The boundary line data may be a basis for indicating a room wall or a room dividing line, that is, the boundary line data constitutes an inner boundary line of the room wall or the room dividing line.
[0129] When the room interruption data is the room dividing line that needs to be processed by data interruption, and the room interruption data after data interruption processing includes two parts, 5cm and 10cm, the 5cm room interruption data can be projected on the boundary line data of the corresponding room, then the 5cm room interruption data will inevitably be projected on the boundary line data, that is, the room projection result is that the room interruption data can be projected on the boundary line data. Therefore, when the 10cm room interruption data is projected on the 5cm room boundary line data, it is obviously impossible to be projected on the boundary line data. Therefore, the room projection result at this time is that the room interruption data cannot be projected on the boundary line data.
[0130] If the room projection result is that the room interruption data is projected on the boundary line data, boundary interruption processing is performed on the boundary line data to obtain the room target data.
[0131] When the room projection result is that the room interruption data is projected on the boundary line data, the boundary line data can be further processed according to the room interruption data to obtain the room target data. The room target data is the data of the room boundary line corresponding to each room interruption. After obtaining the room target data, it is convenient to perform other operations such as offset processing on the room.
[0132] In addition, when obtaining the partitioned room data from the link file, it may happen that only the partition line data is obtained. In this case, the boundary line data can be directly determined as the target room data.
[0133] When the segmentation line data is not obtained in the link file, the boundary line data is determined to be the room target data.
[0134] If there is no room dividing line data in the room in the obtained link file, the boundary line data of each room can be directly obtained as the room target data, which is equivalent to completing or skipping the data interruption processing and boundary interruption processing process.
[0135] The processing method of the model file in this application scenario performs room subordination judgment on the split room data, and performs data interruption processing on the split room data according to the subordinate position relationship, which ensures the accuracy of the data interruption processing and also makes the room interruption data obtained by the data interruption processing provide a processing basis and data foundation for the subsequent boundary interruption processing. In addition, the boundary line data is processed by boundary interruption according to the room interruption data, which further ensures the accuracy of the secondary interruption processing. According to the dual logic of progressive layers, the accuracy of the room target data obtained by interruption is improved, which provides convenience for various operations such as subsequent offset processing.
[0136] In addition, in an exemplary embodiment of the present disclosure, a device for processing a model file is also provided. Figure 7 A schematic diagram showing the structure of a processing device for a model file is shown in FIG. Figure 7 As shown, the model file processing device 700 may include: a data acquisition module 710, a position determination module 720 and a boundary interruption module 730. Among them:
[0137] The data acquisition module 710 is configured to obtain the link file of the building information model, and obtain the separated room data and boundary line data in the link file; the position judgment module 720 is configured to perform room subordination judgment on the separated room data to obtain the subordinate position relationship, and perform data interruption processing on the separated room data according to the subordinate position relationship to obtain room interruption data; the boundary interruption module 730 is configured to perform boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data.
[0138] In an exemplary embodiment of the present invention, the acquiring of the partition room data and the boundary line data in the link file includes:
[0139] Acquire the original room data in the link file, and perform floor grouping processing on the original room data to obtain target room data;
[0140] The segmented room data and the boundary line data in the target room data are acquired.
[0141] In an exemplary embodiment of the present invention, the step of performing floor grouping processing on the original room data to obtain target room data includes:
[0142] Acquire a floor mapping relationship corresponding to the original room data, and perform data conversion processing on the original room data according to the floor mapping relationship to obtain target floor data of the original room data;
[0143] The original room data is subjected to floor grouping processing according to the target floor data to obtain target room data.
[0144] In an exemplary embodiment of the present invention, the partitioned room data includes: room wall data and partition line data.
[0145] In an exemplary embodiment of the present invention, the step of performing data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data includes:
[0146] If the subordinate position relationship is that the room wall data belongs to multiple rooms, data interruption processing is performed on the room wall data to obtain room interruption data;
[0147] If the subordinate position relationship is that the dividing line data belongs to multiple rooms, data interruption processing is performed on the dividing line data to obtain room interruption data.
[0148] In an exemplary embodiment of the present invention, the method further comprises:
[0149] When the segmentation line data is not obtained in the link file, the boundary line data is determined to be the room target data.
[0150] In an exemplary embodiment of the present invention, performing boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data includes:
[0151] Performing room projection processing on the boundary line data according to the room interruption data to obtain a room projection result;
[0152] If the room projection result is that the room interruption data is projected on the boundary line data, boundary interruption processing is performed on the boundary line data to obtain room target data.
[0153] The specific details of the above-mentioned model file processing device 700 have been described in detail in the corresponding model file processing method, so they are not repeated here.
[0154] It should be noted that, although several modules or units of the processing device 700 of the model file are mentioned in the above detailed description, this division is not mandatory. In fact, according to the embodiments of the present disclosure, the features and functions of two or more modules or units described above can be embodied in one module or unit. Conversely, the features and functions of one module or unit described above can be further divided into multiple modules or units to be embodied.
[0155] In addition, in an exemplary embodiment of the present disclosure, an electronic device capable of implementing the above method is also provided.
[0156] Refer to the following Figure 8 An electronic device 800 according to such an embodiment of the present invention is described. Figure 8 The electronic device 800 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.
[0157] like Figure 8 As shown, the electronic device 800 is in the form of a general computing device. The components of the electronic device 800 may include, but are not limited to: the at least one processing unit 810, the at least one storage unit 820, a bus 830 connecting different system components (including the storage unit 820 and the processing unit 810), and a display unit 840.
[0158] The storage unit stores program codes, which can be executed by the processing unit 810, so that the processing unit 810 executes the steps according to various exemplary embodiments of the present invention described in the above “Exemplary Method” section of this specification.
[0159] The storage unit 820 may include a readable medium in the form of a volatile storage unit, such as a random access memory unit (RAM) 821 and / or a cache memory unit 822 , and may further include a read-only memory unit (ROM) 823 .
[0160] The storage unit 820 may also include a program / utility 824 having a set (at least one) of program modules 825, such program modules 825 including but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment.
[0161] Bus 830 may represent one or more of several types of bus structures, including a memory unit bus or memory unit controller, a peripheral bus, an accelerated graphics port, a processing unit, or a local bus using any of a variety of bus architectures.
[0162] The electronic device 800 may also communicate with one or more external devices 1000 (e.g., keyboards, pointing devices, Bluetooth devices, etc.), may also communicate with one or more devices that enable a user to interact with the electronic device 800, and / or communicate with any device that enables the electronic device 800 to communicate with one or more other computing devices (e.g., routers, modems, etc.). Such communication may be performed via an input / output (I / O) interface 850. Furthermore, the electronic device 800 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 860. As shown, the network adapter 840 communicates with other modules of the electronic device 800 via a bus 830. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the electronic device 800, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, etc.
[0163] Through the description of the above embodiments, it is easy for those skilled in the art to understand that the example embodiments described here can be implemented by software, or by software combined with necessary hardware. Therefore, the technical solution according to the embodiment of the present disclosure can be embodied in the form of a software product, which can be stored in a non-volatile storage medium (which can be a CD-ROM, a USB flash drive, a mobile hard disk, etc.) or on a network, and includes several instructions to enable a computing device (which can be a personal computer, a server, a terminal device, or a network device, etc.) to execute the method according to the embodiment of the present disclosure.
[0164] In an exemplary embodiment of the present disclosure, a computer-readable storage medium is also provided, on which a program product capable of implementing the above method of the present specification is stored. In some possible embodiments, various aspects of the present invention can also be implemented in the form of a program product, which includes a program code, and when the program product is run on a terminal device, the program code is used to enable the terminal device to perform the steps according to various exemplary embodiments of the present invention described in the above "Exemplary Method" section of the present specification.
[0165] refer to Fig. 9 As shown, a program product 900 for implementing the above method according to an embodiment of the present invention is described, which can adopt a portable compact disk read-only memory (CD-ROM) and include program code, and can be run on a terminal device, such as a personal computer. However, the program product of the present invention is not limited thereto. In this document, a readable storage medium can be any tangible medium containing or storing a program, which can be used by or in combination with an instruction execution system, an apparatus or a device.
[0166] The program product may use any combination of one or more readable media. The readable medium may be a readable signal medium or a readable storage medium. The readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of readable storage media include: an electrical connection with one or more wires, a portable disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above.
[0167] Computer readable signal media may include data signals propagated in baseband or as part of a carrier wave, in which readable program code is carried. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Readable signal media may also be any readable medium other than a readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.
[0168] The program code embodied on the readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wired, optical cable, RF, etc., or any suitable combination of the foregoing.
[0169] Program code for performing the operations of the present invention may be written in any combination of one or more programming languages, including object-oriented programming languages such as Java, C++, etc., and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the user computing device, partially on the user device, as a separate software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server. In cases involving a remote computing device, the remote computing device may be connected to the user computing device through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computing device (e.g., through the Internet using an Internet service provider).
[0170] Those skilled in the art will readily appreciate other embodiments of the present disclosure after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present disclosure that follow the general principles of the present disclosure and include common knowledge or customary technical means in the art that are not disclosed in the present disclosure. The specification and examples are to be considered as exemplary only, and the true scope and spirit of the present disclosure are indicated by the claims.
Claims
1. A method for processing a model file, It is characterized in that The method comprises: Obtain a link file of a building information model, and obtain partition room data and boundary line data in the link file; wherein the partition room data includes: room wall data representing one wall of the room, and partition line data representing one side of the room; the boundary line data constitutes the inner boundary line of the room wall or the room partition line; Performing room subordination judgment on the partitioned room data to obtain a subordinate position relationship, and performing data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data; wherein the subordinate position relationship is a position relationship represented by the room wall data or the dividing line data, and the position relationship is used to constitute one room or multiple rooms; Performing boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data; The step of performing data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data includes: When the room wall data or the dividing line data constitute a plurality of rooms, data interruption processing is performed on the partitioned room data to obtain room interruption data.
2. The method for processing a model file according to claim 1, It is characterized in that The obtaining of the separated room data and boundary line data in the link file comprises: Acquire the original room data in the link file, and perform floor grouping processing on the original room data to obtain target room data; The segmented room data and the boundary line data in the target room data are acquired.
3. According to the processing method of the model file described in claim 2, It is characterized in that The performing floor grouping processing on the original room data to obtain target room data includes: Acquire a floor mapping relationship corresponding to the original room data, and perform data conversion processing on the original room data according to the floor mapping relationship to obtain target floor data of the original room data; The original room data is subjected to floor grouping processing according to the target floor data to obtain target room data.
4. The method for processing a model file according to claim 1, It is characterized in that The step of performing data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data includes: If the subordinate position relationship is that the room wall data belongs to multiple rooms, data interruption processing is performed on the room wall data to obtain room interruption data; If the subordinate position relationship is that the dividing line data belongs to multiple rooms, data interruption processing is performed on the dividing line data to obtain room interruption data.
5. According to the method for processing the model file described in claim 1, It is characterized in that The method further comprises: When the segmentation line data is not obtained in the link file, the boundary line data is determined to be the room target data.
6. The method for processing a model file according to claim 1, It is characterized in that The performing boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data includes: Performing room projection processing on the boundary line data according to the room interruption data to obtain a room projection result; If the room projection result is that the room interruption data is projected on the boundary line data, boundary interruption processing is performed on the boundary line data to obtain room target data.
7. A model file processing device, It is characterized in that include: The data acquisition module is configured to acquire a link file of a building information model, and acquire partition room data and boundary line data in the link file; wherein the partition room data includes: room wall data representing one wall of the room, and partition line data representing one side of the room; the boundary line data constitutes the inner boundary line of the room wall or the room partition line; A position determination module is configured to perform room subordination determination on the partitioned room data to obtain a subordinate position relationship, and perform data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data; wherein the subordinate position relationship is a position relationship represented by the room wall data or the dividing line data, and the position relationship is used to constitute one room or multiple rooms; A boundary interruption module is configured to perform boundary interruption processing on the boundary line data according to the room interruption data to obtain room target data; The position determination module performs data interruption processing on the partitioned room data according to the subordinate position relationship to obtain room interruption data, including: When the room wall data or the dividing line data constitute a plurality of rooms, data interruption processing is performed on the partitioned room data to obtain room interruption data.
8. A computer-readable storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the method for processing the model file described in any one of claims 1 to 6 is implemented.
9. An electronic device, It is characterized in that include: processor; A memory, configured to store executable instructions of the processor; The processor is configured to execute the model file processing method described in any one of claims 1 to 6 by executing the executable instructions.
