A method and device for automatic modeling of parameterized mine cave model
By combining the use of skeleton center lines and functional modules in Revit and Dynamo, the problem that traditional mine modeling consumes a lot of resources and cannot handle tunnel intersections and cross-section changes is solved, and the effects of automated modeling and rapid modification are achieved.
Patent Information
- Application Number
- CN202310642495.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-06-01
- Publication Date
- 2024-08-30
- Estimated Expiration
- 2043-06-01
AI Technical Summary
The traditional mine model modeling method consumes a lot of manpower and material resources, and cannot effectively handle the problems of tunnel intersections and cross-section changes.
Draw the skeleton centerline of the mine in Revit software, and use Dynamo's basic mine creation function module to set the width, height, and vault height of the corridor. The cave roof, cave wall, and floor are formed through internal calculations, and the cross corridors and The heterogeneous corridor function module handles branch and cross-section changes and generates a mine model that meets parameter requirements.
It realizes automated modeling of mine models, reduces time and labor costs, can quickly modify and generate new models, and adapts to complex mine topology and cross-section changes.
Smart Images

Figure CN116628820B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of parametric modeling, and in particular to a method and a device for automatic modeling of a parametric mine cave model. Background Art
[0002] At present, the traditional mine modeling method uses 3DsMAX, Revit and other modeling software for manual modeling, and there are also methods based on Dynamo to parameterize shield tunnels for automatic modeling. Manual modeling consumes a lot of manpower and material resources, and it is difficult to modify the finished model. The shield tunnel parametric modeling method based on Dynamo cannot handle the situation of tunnel intersection. In addition, mines are different from shield tunnels, and the cross-section inside mines will change. Summary of the invention
[0003] The embodiment of the present invention provides a method and device for automatic modeling of a parameterized mine cave model. The technical solution is as follows:
[0004] On the one hand, a method for automatic modeling of a parameterized mine cave model is provided, comprising:
[0005] S1. In the three-dimensional space of Revit software, use the model line to draw multiple space polylines as the skeleton center line of the mine, and each space polyline corresponds to a corridor of the mine;
[0006] S2. In the Dynamo interface, use the Create Basic Mine function module, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine;
[0007] S3, after the internal operation of the basic mine cave creation function module, the cave roof, cave wall and floor are formed respectively, and together form the appearance of the mine cave;
[0008] S4. If the topological structure of the mine tunnel does not contain branches and the cross section remains unchanged, after running the basic mine tunnel creation function module, a basic mine tunnel model that meets the parameter requirements is generated;
[0009] S5. If the topological structure of the mine cave contains branches, or the cross section changes, load the corresponding functional module, modify the corresponding part of the basic mine cave model, and generate the corresponding mine cave model.
[0010] Optionally, the S3 specifically includes:
[0011] Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1;
[0012] Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1;
[0013] Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations;
[0014] On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface, and the opening polyline and the arch arc are combined by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which are uniformly drawn on the cross-sectional plane group to form a cross-sectional group;
[0015] All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
[0016] Optionally, the output items of the basic mine cave creation function module include, in addition to cave cave information, cave cave appearance, which is composed of a surface group consisting of cave roof, cave wall and floor;
[0017] The subscript number of the surface group is used to control the output of different parts. Finally, only outputting IN[1] means only outputting the floor; only outputting IN[2] means only outputting the cave ceiling; only outputting IN[3] means only outputting the cave walls; and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
[0018] Optionally, if the topological structure of the mine cave contains branches but the cross section remains unchanged, the corresponding functional module is loaded in S5, and the corresponding part of the model is corrected to load the cross-corridor functional module to generate a mine cave model with a branch structure. The specific steps are as follows:
[0019] The main corridor is regarded as section A, and the branch corridor is regarded as section B;
[0020] Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group;
[0021] Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end;
[0022] Sort all endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve;
[0023] For segment A, use the Surface.SubtractFrom interface to perform a subtraction operation similar to that of the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A and output it;
[0024] For section B, delete the first section of the corridor containing the floor part, keep the remaining corridor, and use the PolySurface.ByLoft interface to connect the closed curve and the first cross-section edge of the remaining corridor of section B to form a new first section of the corridor. The new first section of the corridor is combined with the remaining corridor to form a new section B, which is then output.
[0025] Optionally, if the front and rear cross sections of the same section of the mine tunnel change, the corresponding functional module is loaded in S5, and the corresponding parts of the model are corrected to generate a mine tunnel model with a changed cross section. The specific steps are as follows:
[0026] The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C;
[0027] Delete the last cross section of segment A;
[0028] Use the PolySurface.UconnectedBoundaries interface to extract the edges of the last cross section of segment A and the first cross section of segment C;
[0029] Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C;
[0030] Combine the connecting surface with the corridor of section A with the last cross section deleted to form a new section A, and output it;
[0031] Section B corridor remains unchanged and is output directly.
[0032] On the other hand, a parameterized mine cave model automatic modeling device is provided, comprising:
[0033] The skeleton centerline drawing module is used to draw multiple space polylines as the skeleton centerline of the mine tunnel using the model line in the three-dimensional space of the Revit software. Each space polyline corresponds to a corridor of the mine tunnel.
[0034] Select a setting module, which is used to use the Create Basic Mine function module in the Dynamo interface, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine;
[0035] An internal calculation module, used for forming the cave roof, cave wall and floor respectively through the internal calculation of the basic mine cave creation function module, and forming the appearance of the mine cave together;
[0036] The first generation module is used to generate a basic mine cave model that meets the parameter requirements after running the basic mine cave creation function module if the topological structure of the mine cave does not contain branches and the cross section remains unchanged;
[0037] The second generation module is used to load the corresponding functional module if the topological structure of the mine contains branches or the cross section changes, and to modify the corresponding parts of the basic mine model to generate the corresponding mine model.
[0038] Optionally, the internal operation module is specifically used to:
[0039] Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1;
[0040] Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1;
[0041] Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations;
[0042] On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface, and the opening polyline and the arch arc are combined by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which are uniformly drawn on the cross-sectional plane group to form a cross-sectional group;
[0043] All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
[0044] Optionally, the output items of the basic mine cave creation function module include, in addition to cave cave information, cave cave appearance, which is composed of a surface group consisting of cave roof, cave wall and floor;
[0045] The subscript number of the surface group is used to control the output of different parts. Finally, only outputting IN[1] means only outputting the floor; only outputting IN[2] means only outputting the cave ceiling; only outputting IN[3] means only outputting the cave walls; and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
[0046] Optionally, if the topological structure of the mine contains branches but the cross section remains unchanged, the device further includes a cross-corridor function module for modifying the corresponding parts of the model to generate a mine model with a branch structure, specifically for:
[0047] The main corridor is regarded as section A, and the branch corridor is regarded as section B;
[0048] Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group;
[0049] Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end;
[0050] Sort all endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve;
[0051] For segment A, use the Surface.SubtractFrom interface to perform a subtraction operation similar to that of the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A and output it;
[0052] For section B, delete the first section of the corridor containing the floor part, keep the remaining corridor, and use the PolySurface.ByLoft interface to connect the closed curve and the first cross-section edge of the remaining corridor of section B to form a new first section of the corridor. The new first section of the corridor is combined with the remaining corridor to form a new section B, which is then output.
[0053] Optionally, if the front and rear cross-sections of the same section of the mine tunnel change, the method further includes a non-planar corridor function module, which is used to correct the corresponding parts of the model and generate a mine tunnel model with a changed cross-section, specifically for:
[0054] The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C;
[0055] Delete the last cross section of segment A;
[0056] Use the PolySurface.UconnectedBoundaries interface to extract the edges of the last cross section of segment A and the first cross section of segment C;
[0057] Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C;
[0058] Combine the connecting surface with the corridor of section A with the last cross section deleted to form a new section A, and output it;
[0059] Section B corridor remains unchanged and is output directly.
[0060] On the other hand, an electronic device is provided, which includes a processor and a memory, wherein the memory stores at least one instruction, and the at least one instruction is loaded and executed by the processor to implement the above-mentioned parameterized mine model automatic modeling method.
[0061] On the other hand, a computer-readable storage medium is provided, wherein at least one instruction is stored in the storage medium, and the at least one instruction is loaded and executed by a processor to implement the above-mentioned parameterized mine model automatic modeling method.
[0062] The beneficial effects brought about by the technical solution provided by the embodiment of the present invention include at least:
[0063] The present invention adopts the parametric modeling technology based on Dynamo to realize the automatic modeling of various mine models, which not only reduces the time and labor costs, but also enables repeated modifications and real-time generation of new models. BRIEF DESCRIPTION OF THE DRAWINGS
[0064] In order to more clearly illustrate the technical solutions in the embodiments of the present invention, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0065] Figure 1 This is a flow chart of a parameterized mine cave model automated modeling method provided by an embodiment of the present invention;
[0066] Figure 2 This is an operation effect diagram of a basic mine cave creation function module provided by an embodiment of the present invention;
[0067] Figure 3 This is a flow chart of the internal algorithm of the basic mine cave creation function module provided by an embodiment of the present invention;
[0068] Figure 4 It is a detailed diagram of the skeleton centerline processing provided by an embodiment of the present invention;
[0069] Figure 5 is a schematic diagram of a generated cave cross-section group provided by an embodiment of the present invention;
[0070] Figure 6 is a schematic diagram of edge connections with different cross sections provided by an embodiment of the present invention;
[0071] Figure 7 It is an operation effect diagram of the cross-corridor function module provided by an embodiment of the present invention;
[0072] Figure 8 is a flow chart of the internal algorithm of the cross-corridor function module provided by an embodiment of the present invention;
[0073] Fig. 9 It is a schematic diagram of the internal implementation of the cross-corridor functional module provided in an embodiment of the present invention;
[0074] Fig.10 This is an operational effect diagram of the non-planar corridor function module provided by an embodiment of the present invention;
[0075] Fig.11 It is a flow chart of the internal algorithm of the non-planar corridor function module provided by an embodiment of the present invention;
[0076] Fig.12 It is a schematic diagram of the internal implementation of the non-planar corridor function module provided by an embodiment of the present invention;
[0077] Fig.13 The embodiment of the present invention provides a method for automatically generating various mine cave model renderings from the center line of the mine cave skeleton;
[0078] Fig.14 It is a block diagram of a parameterized mine cave model automatic modeling device provided by an embodiment of the present invention;
[0079] Fig.15 It is a structural schematic diagram of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION
[0080] In order to make the technical problems, technical solutions and advantages to be solved by the present invention more clear, a detailed description will be given below with reference to the accompanying drawings and specific embodiments.
[0081] The embodiment of the present invention provides a method for automatic modeling of a parameterized mine cave model, which can be implemented by an electronic device, which can be a terminal or a server. Figure 1 The process flow chart of the parameterized mine cave model automatic modeling method shown in the figure may include the following steps:
[0082] S1. In the three-dimensional space of Revit software, use the model line to draw multiple space polylines as the skeleton center line of the mine, and each space polyline corresponds to a corridor of the mine;
[0083] S2. In the Dynamo interface, use the Create Basic Mine function module, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine;
[0084] S3, after the internal operation of the basic mine cave creation function module, the cave roof, cave wall and floor are formed respectively, and together form the appearance of the mine cave;
[0085] S4. If the topological structure of the mine tunnel does not contain branches and the cross section remains unchanged, after running the basic mine tunnel creation function module, a basic mine tunnel model that meets the parameter requirements is generated;
[0086] S5. If the topological structure of the mine cave contains branches, or the cross section changes, load the corresponding functional module, modify the corresponding part of the basic mine cave model, and generate the corresponding mine cave model.
[0087] For the parametric modeling of the embodiment of the present invention, some preliminary work is required:
[0088] First of all, the object that needs to be described in geometric terms and parameterized is: the mine.
[0089] The mine can be described as consisting of corridors extending in different directions, and each corridor can be further described as a horizontal, hollow, irregular column.
[0090] Secondly, parameter refinement is needed.
[0091] According to the actual mine conditions, the arch height, width and curvature of the arch top of different corridor cross-sections have certain differences. The embodiment of the present invention extracts the following five free parameters after analysis: mine name, mine corridor centerline (skeleton centerline), mine corridor width, height and arch height as input parameters of the mine parametric modeling algorithm.
[0092] The mine name is used as the unique identifier of the mine and stores the non-geometric information of the mine (such as introduction information, management information, etc.).
[0093] Combine the following Figure 2-Figure 13 , a method for automatic modeling of parameterized mine cave models is described in detail, including:
[0094] S1. In the three-dimensional space of Revit software, use the model line to draw multiple space polylines as the skeleton center line of the mine, and each space polyline corresponds to a corridor of the mine;
[0095] like Figure 2 As shown on the right, in the three-dimensional space of Revit software, model lines are used to draw multiple spatial polylines as the skeleton center lines of the mine (in actual projects, they can be drawn according to drawings and materials), and each spatial polyline corresponds to a corridor of the mine.
[0096] S2. In the Dynamo interface, use the Create Basic Mine function module, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine;
[0097] In the Dynamo interface, such as Figure 2 As shown on the left, a basic mine cave creation function module designed by an embodiment of the present invention is used, and the skeleton center line drawn in the Revit software is selected using the SelectModelElements interface, and the width, height, arch height and name of the corresponding corridor are set as input parameters for creating the mine cave;
[0098] If the width, height, and arch height of multiple connected corridors are the same, you can set them once instead of separately.
[0099] S3, after the internal operation of the basic mine cave creation function module, the cave roof, cave wall and floor are formed respectively, and together form the appearance of the mine cave;
[0100] Alternatively, if Figure 3 and 4 As shown, the S3 specifically includes:
[0101] Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1;
[0102] Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1;
[0103] Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations;
[0104] On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface. The opening polyline and the arch arc are merged by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which is uniformly drawn on the cross-sectional plane group to form a cross-sectional group, as shown in FIG. Figure 5 As shown;
[0105] All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
[0106] Connecting all cross-section edges is essentially a lofting operation. It can not only connect the same cross-section edges, but also connect the edges of different cross-sections, such as Figure 6 As shown in the figure, a circular cross-section edge is constructed, and then a rectangular cross-section edge is constructed, and the PolySurface.ByLoft interface is used to connect the edges.
[0107] Optionally, the output items of the basic mine cave creation function module include, in addition to cave cave information, cave cave appearance, which is composed of a surface group consisting of cave roof, cave wall and floor;
[0108] The subscript number of the surface group is used to control the output of different parts. Finally, only outputting IN[1] means only outputting the floor; only outputting IN[2] means only outputting the cave ceiling; only outputting IN[3] means only outputting the cave walls; and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
[0109] S4. If the topological structure of the mine tunnel does not contain branches and the cross section remains unchanged, after running the basic mine tunnel creation function module, a basic mine tunnel model that meets the parameter requirements is generated;
[0110] S5. If the topological structure of the mine cave contains branches, or the cross section changes, load the corresponding functional module, modify the corresponding part of the basic mine cave model, and generate the corresponding mine cave model.
[0111] Alternatively, if Figure 7 As shown, if the topological structure of the mine contains branches, but the cross section remains unchanged, the corresponding functional module is loaded in S5, and the corresponding part of the model is modified to generate a mine model with a branch structure, such as Figure 8As shown, the specific steps are:
[0112] The main corridor is regarded as section A, and the branch corridor is regarded as section B;
[0113] Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group;
[0114] Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end;
[0115] Sort all the endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve (such as Fig. 9 shown above left);
[0116] For segment A, use the Surface.SubtractFrom interface to perform a similar subtraction operation with the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A (such as Fig. 9 As shown in the upper right) and output;
[0117] For section B, delete the first corridor containing the floor section and keep the remaining corridors (such as Fig. 9 The closed curve is connected to the first cross-section edge of the remaining corridor of segment B using the PolySurface.ByLoft interface to form a new first corridor (as shown in the upper right). Fig. 9 The new first corridor is combined with the remaining corridors to form a new B segment (such as Fig. 9 Lower right), and output.
[0118] Alternatively, if Fig.10 As shown, if the front and rear cross-sections of the same section of the mine tunnel change, the corresponding functional module is loaded in S5, and the corresponding parts of the model are corrected to generate a mine tunnel model with a changed cross-section, such as Fig.11 As shown, the specific steps are:
[0119] The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C;
[0120] Delete the last cross section of segment A (such as Fig.12 shown above left);
[0121] Use the PolySurface.UconnectedBoundaries interface to extract the edge of the last cross section of segment A and the first cross section of segment C (such as Fig.12 shown in upper right);
[0122] Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C (such as Fig.12 shown below left);
[0123] The connecting surface is combined with the corridor of section A with the last cross section deleted to form a new section A (such as Fig.12 Lower right), and output;
[0124] Section B corridor remains unchanged and is output directly.
[0125] According to the structural characteristics of the actual mine cave, three functional modules, namely the basic mine cave functional module, the cross corridor functional module and the different surface corridor functional module, are flexibly combined and created. Fig.13 As shown, after drawing the center line of the mine skeleton, all functional modules are loaded and run at the same time to automatically generate the corresponding mine model.
[0126] The embodiment of the present invention can also repeatedly modify parameters such as the center line, wall height, width, and arch height of the mine corridor. The model of the mine corridor will be modified accordingly, and a mine model that meets the new parameters will be generated in real time.
[0127] like Fig.14 As shown, the embodiment of the present invention also provides a parameterized mine cave model automatic modeling device, including:
[0128] The skeleton center line drawing module 1410 is used to draw multiple space polylines as the skeleton center lines of the mine tunnel using the model lines in the three-dimensional space of the Revit software, and each space polyline corresponds to a corridor of the mine tunnel;
[0129] Selecting a setting module 1420, for using a basic mine cave creation function module in a Dynamo interface, selecting the skeleton center line drawn in the Revit software, and setting the width, height, arch height and name of the corresponding corridor as input parameters for creating a mine cave;
[0130] The internal calculation module 1430 is used to form the cave roof, cave wall and floor respectively through the internal calculation of the basic mine cave creation function module, and form the appearance of the mine cave together;
[0131] The first generation module 1440 is used to generate a basic mine cave model that meets the parameter requirements after running the basic mine cave creation function module if the topological structure of the mine cave does not contain branches and the cross section remains unchanged;
[0132] The second generation module 1450 is used to load the corresponding function module if the topological structure of the mine cave contains branches or the cross section changes, and to modify the corresponding parts of the basic mine cave model to generate the corresponding mine cave model.
[0133] Optionally, the internal operation module is specifically used to:
[0134] Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1;
[0135] Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1;
[0136] Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations;
[0137] On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface, and the opening polyline and the arch arc are combined by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which are uniformly drawn on the cross-sectional plane group to form a cross-sectional group;
[0138] All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
[0139] Optionally, the output items of the basic mine cave creation function module include, in addition to cave cave information, cave cave appearance, which is composed of a surface group consisting of cave roof, cave wall and floor;
[0140] The subscript number of the surface group is used to control the output of different parts. Finally, only outputting IN[1] means only outputting the floor; only outputting IN[2] means only outputting the cave ceiling; only outputting IN[3] means only outputting the cave walls; and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
[0141] Optionally, if the topological structure of the mine contains branches but the cross section remains unchanged, the device further includes a cross-corridor function module for modifying the corresponding parts of the model to generate a mine model with a branch structure, specifically for:
[0142] The main corridor is regarded as section A, and the branch corridor is regarded as section B;
[0143] Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group;
[0144] Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end;
[0145] Sort all endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve;
[0146] For segment A, use the Surface.SubtractFrom interface to perform a subtraction operation similar to that of the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A and output it;
[0147] For section B, delete the first section of the corridor containing the floor part, keep the remaining corridor, and use the PolySurface.ByLoft interface to connect the closed curve and the first cross-section edge of the remaining corridor of section B to form a new first section of the corridor. The new first section of the corridor is combined with the remaining corridor to form a new section B, which is then output.
[0148] Optionally, if the front and rear cross-sections of the same section of the mine tunnel change, the method further includes a non-planar corridor function module, which is used to correct the corresponding parts of the model and generate a mine tunnel model with a changed cross-section, specifically for:
[0149] The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C;
[0150] Delete the last cross section of segment A;
[0151] Use the PolySurface.UconnectedBoundaries interface to extract the edges of the last cross section of segment A and the first cross section of segment C;
[0152] Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C;
[0153] Combine the connecting surface with the corridor of section A with the last cross section deleted to form a new section A, and output it;
[0154] Section B corridor remains unchanged and is output directly.
[0155] An automatic modeling device for a parameterized mine cave model provided in an embodiment of the present invention has a functional structure corresponding to an automatic modeling method for a parameterized mine cave model provided in an embodiment of the present invention, which will not be described in detail here.
[0156] Fig.15 It is a structural diagram of an electronic device 1500 provided in an embodiment of the present invention. The electronic device 1500 may have relatively large differences due to different configurations or performances, and may include one or more processors (central processing units, CPU) 1501 and one or more memories 1502, wherein at least one instruction is stored in the memory 1502, and the at least one instruction is loaded and executed by the processor 1501 to implement the steps of the above-mentioned parameterized mine model automatic modeling method.
[0157] In an exemplary embodiment, a computer-readable storage medium is also provided, such as a memory including instructions, which can be executed by a processor in a terminal to complete the above-mentioned parameterized mine model automatic modeling method. For example, the computer-readable storage medium can be a ROM, a random access memory (RAM), a CD-ROM, a magnetic tape, a floppy disk, an optical data storage device, etc.
[0158] A person skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware or by instructing related hardware through a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0159] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for automatic modeling of a parametric mine cave model, characterized in that: include: S1. In the three-dimensional space of Revit software, use the model line to draw multiple space polylines as the skeleton center line of the mine, and each space polyline corresponds to a corridor of the mine; S2. In the Dynamo interface, use the Create Basic Mine function module, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine; S3, after the internal operation of the basic mine cave creation function module, the cave roof, cave wall and floor are formed respectively, and together form the appearance of the mine cave; S4. If the topological structure of the mine tunnel does not contain branches and the cross section remains unchanged, after running the basic mine tunnel creation function module, a basic mine tunnel model that meets the parameter requirements is generated; S5. If the topological structure of the mine cave contains branches or the cross section changes, load the corresponding functional module, modify the corresponding part of the basic mine cave model, and generate the corresponding mine cave model; The S3 specifically includes: Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1; Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1; Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations; On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface, and the opening polyline and the arch arc are combined by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which are uniformly drawn on the cross-sectional plane group to form a cross-sectional group; All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
2. The method according to claim 1, characterized in that: The output items of the basic mine cave creation function module include, in addition to cave chamber information, cave chamber appearance, which is composed of a surface group consisting of cave roof, cave wall and floor; The subscript number of the surface group is used to control the output of different parts. Finally, only IN[1] is output, indicating that only the floor is output. Outputting only IN[2] means only the cave ceiling is output, outputting only IN[3] means only the cave walls are output, and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
3. The method according to claim 1, characterized in that If the topological structure of the mine cave contains branches, but the cross section remains unchanged, the corresponding functional module is loaded in S5, and the corresponding part of the model is corrected to load the cross-corridor functional module, so as to generate a mine cave model with a branch structure. The specific steps are as follows: The main corridor is regarded as section A, and the branch corridor is regarded as section B; Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group; Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end; Sort all endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve; For segment A, use the Surface.SubtractFrom interface to perform a subtraction operation similar to that of the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A and output it; For section B, delete the first section of the corridor containing the floor part, keep the remaining corridor, and use the PolySurface.ByLoft interface to connect the closed curve and the first cross-section edge of the remaining corridor of section B to form a new first section of the corridor. The new first section of the corridor is combined with the remaining corridor to form a new section B, which is then output.
4. The method according to claim 1, characterized in that: If the front and rear cross sections of the same section of the mine tunnel change, the corresponding function module is loaded in S5, and the corresponding parts of the model are corrected to generate a mine tunnel model with a changed cross section. The specific steps are as follows: The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C; Delete the last cross section of segment A; Use the PolySurface.UconnectedBoundaries interface to extract the edges of the last cross section of segment A and the first cross section of segment C; Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C; Combine the connecting surface with the corridor of section A with the last cross section deleted to form a new section A, and output it; Section B corridor remains unchanged and is output directly.
5. A parameterized mine model automatic modeling device, characterized in that: include: The skeleton centerline drawing module is used to draw multiple space polylines as the skeleton centerline of the mine tunnel using the model line in the three-dimensional space of the Revit software. Each space polyline corresponds to a corridor of the mine tunnel. Select a setting module, which is used to use the Create Basic Mine function module in the Dynamo interface, select the skeleton center line drawn in the Revit software, and set the width, height, arch height and name of the corresponding corridor as input parameters for creating the mine; An internal calculation module, used for forming the cave roof, cave wall and floor respectively through the internal calculation of the basic mine cave creation function module, and forming the appearance of the mine cave together; The first generation module is used to generate a basic mine cave model that meets the parameter requirements after running the basic mine cave creation function module if the topological structure of the mine cave does not contain branches and the cross section remains unchanged; The second generation module is used to load the corresponding function module if the topological structure of the mine cave contains branches or the cross section changes, and to modify the corresponding parts of the basic mine cave model to generate the corresponding mine cave model; The internal operation module is specifically used for: Decompress the selected spatial polyline from Revit software to parse the Revit data element and convert it into the data format in Dynamo and store it in variable IN1; Path processing is performed to separate the starting endpoint, ending endpoint, direction and length of each segment of the spatial polyline from IN1; Establish multiple local plane coordinate systems, and based on the local plane coordinate system, take the end point as the origin of the coordinate system and the direction of the polyline segment as the normal direction, generate a cross-sectional plane group, apply these geometric information to subsequent modeling operations, and store them in the cavern information as output items for subsequent modeling operations; On the cross-sectional plane group, according to the wall height x, width y and arch height h of the mine corridor, four points with coordinates (-y / 2, x), (-y / 2, 0), (y / 2, 0) and (y / 2, x) are drawn on the local plane coordinate system of the cross-sectional plane group, and the PolyCurve.ByPoints interface is used to sequentially connect them to form an opening polyline, while the arch arc of the mine corridor is drawn by the EllipseArc.ByPlaneRadiiAngles interface, and the opening polyline and the arch arc are combined by the List.Combine interface to generate the corresponding mine corridor cross-sectional edge, which are uniformly drawn on the cross-sectional plane group to form a cross-sectional group; All cross-section edges are connected to form the cave roof, walls and floor, which together form the appearance of the mine.
6. The device according to claim 5, characterized in that The output items of the basic mine cave creation function module include, in addition to cave chamber information, cave chamber appearance, which is composed of a surface group consisting of cave roof, cave wall and floor; The subscript number of the surface group is used to control the output of different parts. Finally, only IN[1] is output, indicating that only the floor is output. Outputting only IN[2] means only the cave ceiling is output, outputting only IN[3] means only the cave walls are output, and outputting IN[1], IN[2], and IN[3] means outputting the floor, cave ceiling, and cave walls at the same time.
7. The device according to claim 5, characterized in that If the topological structure of the mine cave contains branches but the cross section remains unchanged, the device further includes a cross-corridor function module for modifying the corresponding parts of the model to generate a mine cave model with a branch structure, specifically for: The main corridor is regarded as section A, and the branch corridor is regarded as section B; Perform intersection operations on each surface of the cave ceiling and cave wall part of the first section of the corridor of section B and the cave ceiling and cave wall part of the corridor of section A, extract the surfaces whose operation results are not empty, and form an intersection surface group; Use the Geometry.Intersect interface to calculate the intersecting face groups and obtain a set of intersecting curves connected end to end; Sort all endpoints in the intersecting curve group by their Z coordinate values, find the two endpoints with the smallest Z coordinate values, and connect them to form a closed curve; For segment A, use the Surface.SubtractFrom interface to perform a subtraction operation similar to that of the closed curve, delete the surface inside the closed curve, and combine it with the remaining surfaces and the floor to form a new segment A and output it; For section B, delete the first section of the corridor containing the floor part, keep the remaining corridor, and use the PolySurface.ByLoft interface to connect the closed curve and the first cross-section edge of the remaining corridor of section B to form a new first section of the corridor. The new first section of the corridor is combined with the remaining corridor to form a new section B, which is then output.
8. The device according to claim 5, characterized in that If the front and rear cross-sections of the same section of the mine tunnel change, the device also includes a different-surface corridor function module, which is used to correct the corresponding parts of the model and generate a mine tunnel model with a changed cross-section, specifically for: The part before the cross-section changes is called segment A, and the part after the cross-section changes is called segment C; Delete the last cross section of segment A; Use the PolySurface.UconnectedBoundaries interface to extract the edges of the last cross section of segment A and the first cross section of segment C; Use the PolySurface.ByLoft interface to connect the two extracted edges to form the connection surface between the corridors of Section A and Section C; Combine the connecting surface with the corridor of section A with the last cross section deleted to form a new section A, and output it; Section B corridor remains unchanged and is output directly.
Citation Information
Patent Citations
Mining-method tunnel parametric modeling method and device based on Revit and Dynamo
CN111159808A
Parameterized TBM shield tunnel model establishing method
CN112906106A
Long tunnel parametric modeling method based on Dynamo and Revit
CN112943364A
Parameterized water collecting well modeling method based on Revit and Dynamo
CN114218632A
Process for Merging Parametric Building Information Models
US20170357738A1
