Dynamo-driven adaptive cutting method for BIM geological model
Patent Information
- Application Number
- CN202611190191.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2026-08-06
- Publication Date
- 2026-10-30
AI Technical Summary
[0004]有鉴于此,本发明的目的在于提供一种基于Dynamo驱动的BIM地质模型自适应切割方法,以缓解现有地质分层模型切割过程中存在的人工操作繁琐、切割效率低、切割顺序混乱及自动化程度不足,导致地质分层模型处理效率低的技术问题
[0004]有鉴于此,本发明的目的在于提供一种基于Dynamo驱动的BIM地质模型自适应切割方法,以缓解现有地质分层模型切割过程中存在的人工操作繁琐、切割效率低、切割顺序混乱及自动化程度不足,导致地质分层模型处理效率低的技术问题。
Smart Images

Figure CN123015925A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of underground engineering modeling technology, and in particular to an adaptive cutting method for BIM geological models based on Dynamo-driven approaches. Background Technology
[0002] With the rapid development of BIM (Building Information Modeling) technology in the field of transportation infrastructure, underground engineering is gradually moving towards digitalization, intelligence and refinement. In the process of modeling highway tunnels and underground engineering, in order to meet the needs of construction organization design, segmented excavation simulation, construction progress management and numerical analysis, it is usually necessary to segment the overall geological model to form structural units corresponding to different construction stages. While BIM platforms like Revit possess certain solid modeling capabilities, they are weak in the batch automatic cutting of long-distance continuous geological solid structures in complex underground engineering. Traditional cutting methods typically involve manually creating cutting surfaces and then performing Boolean operations one by one. For long underground projects, this often requires creating a large number of cutting sections and performing cutting operations one by one, resulting in low work efficiency. Furthermore, they lack the ability to automatically sort and spatially determine cutting surfaces, which can easily lead to problems such as cutting confusion, incorrect orientation, and model loss under conditions of multiple cutting surfaces. Relying on manual interaction makes it difficult to achieve batch and parameterized automatic processing of geological models. When the model contains complex curves, irregular cross-sections, or multiple solid structures, traditional cutting methods are prone to cutting failures, entity recognition errors, or Boolean operation anomalies. Although Dynamo has been introduced to assist modeling, it mainly focuses on component generation and parameter reading, with limited research on automatic entity cutting based on geometric logic.
[0003] However, the existing technology has the following problems: the cutting process of the existing geological stratification model is cumbersome due to manual operation, low cutting efficiency, chaotic cutting sequence and insufficient automation, resulting in low processing efficiency of the geological stratification model. Summary of the Invention
[0004] In view of this, the purpose of this invention is to provide an adaptive cutting method for BIM geological models based on Dynamo, so as to alleviate the technical problems of cumbersome manual operation, low cutting efficiency, chaotic cutting sequence and insufficient automation in the cutting process of existing geological stratification models, which leads to low processing efficiency of geological stratification models.
[0005] In a first aspect, embodiments of this application provide an adaptive cutting method for BIM geological models based on Dynamo-driven methods, the method comprising: Obtain geological survey data, construct a three-dimensional geological entity model based on the geological survey data, and output the overall geological entity; Identify the key geological interfaces of the overall geological entity, extract multiple spatial control points of the key geological interfaces, fit all spatial control points into interface curves, and map them to the spatial coordinate system of the overall geological entity to obtain a set of cutting control lines. The entire geological entity is input into Dynamo to obtain a solid object. The volume of the solid object is then checked for reasonableness to obtain a set of entities to be cut. Based on the set of cutting control lines and the set of entities to be cut, a local coordinate system is constructed and an initial plane is generated. The normal vector of the initial plane is determined, and the direction of the normal vector is checked. The plane is stretched along the checked normal vector to obtain the set of cutting surfaces. The cutting surfaces of the set of cutting surfaces are sorted in ascending order and assigned sequential numbers to obtain the cutting surface execution sequence; Boolean segmentation is performed on the cut surfaces in the sequence to obtain each layer of entities. Each layer of entities is then inspected to obtain independent geological layer entities that pass the inspection. Extract the geological parameters of the independent geological layer entities, establish a Revit family parameter mapping relationship, obtain a family file, and load the family file into Revit to form a three-dimensional geological BIM model.
[0006] In one implementation of the first aspect, the process of inputting the overall geological entity into Dynamo to obtain a solid object, and performing volume rationality verification on the solid object to obtain a set of entities to be cut includes: In Dynamo, the Select Model Elements node is used to read the overall geological entity, and all geometric objects of the overall geological entity are obtained based on the Element.Geometry node. The geometric objects are classified based on their geometric types, and non-entity objects are deleted. Attributes are extracted from each retained entity object, and a unified geometric attribute database is established. All entity objects are extracted from the unified geometric attribute database. The volume of the entity objects is checked for reasonableness. If the volume of the entity object is less than the minimum volume threshold, the current entity object is removed to obtain a legal entity object. A unique ID is assigned to each legitimate entity object, and a preliminary mapping relationship is established between the legitimate entity object and the stratigraphic interface database constructed based on the geological survey data, forming a set of entities to be cut.
[0007] In one implementation of the first aspect, the process of performing direction verification on the normal vector includes: Determine whether the direction of the normal vector is consistent with the direction of the geological stratigraphic sequence in the geological survey data; If they match, then retain the normal vector; If they are inconsistent, the normal vectors are reversed to ensure that the direction of the normal vectors is uniformly pointing downwards towards the formation.
[0008] In one implementation of the first aspect, the process of arranging the cutting surfaces of the set of cutting surfaces in ascending order and assigning them sequential numbers to obtain a cutting surface execution sequence includes: Obtain all cutting surfaces of the cutting surface set, calculate the geometric center point of each cutting surface, obtain the three-dimensional coordinates of each geometric center point, and determine the sorting key value according to the project type; Based on the sorting key value, the cutting surfaces are sorted in ascending order, and a sequence number is assigned to the sorted cutting surfaces. Detect whether adjacent cutting surfaces intersect in space, and obtain the cutting surface execution sequence if they do not intersect.
[0009] In one implementation of the first aspect, the detection of whether adjacent cutting surfaces intersect in space, and in the case of intersection, the sorting of the ascending order processing is adjusted based on the burial depth relationship reflected by the geological sequence and the Z coordinate of the three-dimensional coordinates.
[0010] In one implementation of the first aspect, the process of performing Boolean segmentation on the cut surfaces to obtain the entities at each layer includes: For the first cutting surface in the sequence, execute the Solid.Split node to perform Boolean splitting to generate the upper solid and the lower solid; Based on the preliminary mapping relationship, the upper entity is identified as the current target layer; The lower entity is used as the input for the next round of Boolean segmentation, and the identification is repeated until all the cutting surfaces in the cutting surface execution sequence have been identified, thus obtaining the entities of each layer.
[0011] In one implementation of the first aspect, the method of detecting the entities in each layer includes: closure detection, volume continuity detection, and void-free detection.
[0012] Other features and advantages of the invention will be set forth in the description which follows, and will be apparent in part from the description, or may be learned by practicing the invention. The objects and other advantages of the invention are realized and obtained in accordance with the structures particularly pointed out in the description, claims and drawings.
[0013] To make the above-mentioned objects, features and advantages of the present invention more apparent and understandable, preferred embodiments are described below in detail with reference to the accompanying drawings. Attached Figure Description
[0014] To more clearly illustrate the specific embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the specific embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of the present invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0015] Figure 1 A flowchart illustrating the adaptive cutting method for BIM geological models based on Dynamo-driven technology provided in this embodiment of the invention. Figure 2 This is an operation interface diagram for step S4 provided in an embodiment of the present invention; Figure 3 The operation interface diagrams for steps S5 and S6 provided in the embodiments of the present invention are shown. Figure 4 This is a diagram of the operation interface for step S7 provided in an embodiment of the present invention. Detailed Implementation
[0016] To make the objectives, technical solutions, and advantages of the embodiments of the present invention clearer, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.
[0017] Please see Figure 1 As shown, it is a flowchart illustrating the adaptive cutting method for BIM geological models based on Dynamo-driven technology provided in an embodiment of the present invention.
[0018] To facilitate understanding of this embodiment, a detailed description of the adaptive cutting method for BIM geological models based on Dynamo-driven technology disclosed in this embodiment of the invention will be provided first, including: Step S1: Obtain geological survey data, and construct a three-dimensional geological entity model based on the geological survey data to output the overall geological entity; Step S2: Identify the key geological interfaces of the overall geological entity, extract multiple spatial control points of the key geological interfaces, fit all spatial control points into interface curves, and map them to the spatial coordinate system of the overall geological entity to obtain a set of cutting control lines. Step S3: Input the overall geological entity into Dynamo to obtain a solid object, and perform volume rationality verification on the solid object to obtain a set of entities to be cut. Step S4: Based on the set of cutting control lines and the set of entities to be cut, construct a local coordinate system and generate an initial plane, determine the normal vector of the initial plane, verify the direction of the normal vector, and stretch along the verified normal vector to obtain a set of cutting surfaces; Step S5: Sort the cutting surfaces of the set of cutting surfaces in ascending order and assign them sequential numbers to obtain the cutting surface execution sequence; Step S6: Perform Boolean segmentation on the cutting surface sequence to obtain each layer entity, and detect each layer entity to obtain independent geological layer entities that pass the detection. Step S7: Extract the geological parameters of the independent geological layer entities, establish a Revit family parameter mapping relationship, obtain a family file, and load the family file into Revit to form a three-dimensional geological BIM model.
[0019] Specifically, this invention constructs a three-dimensional geological entity from geological survey data. It identifies key interfaces, extracts spatial control points, fits interface curves, maps them to the entity coordinate system to generate cutting control lines, imports the geological entity into Dynamo for volume verification, constructs a local coordinate system using the control lines, and stretches along the verified normal vector to form a set of cutting surfaces. After sorting and numbering the cutting surfaces, Boolean segmentation is performed to obtain independent geological layer entities that have passed inspection. Finally, geological parameters for each layer are extracted, and a family file is generated by establishing a Revit family parameter mapping relationship and loaded into the Revit environment to complete the construction of the three-dimensional geological BIM model, based on key geological boundaries. The cutting method of fitting curves with surface control points ensures that the geological stratification boundaries follow the occurrence and undulation patterns revealed by the survey data, thus ensuring the consistency between the model and the actual geological structure. The combination of Dynamo visual programming and volume rationality verification solidifies the topological verification and cutting logic of geological entities in a parameterized and traceable manner, avoiding topological errors such as voids, overlaps, and volume loss that are prone to occur in manual modeling. The execution sequence established by the ascending arrangement and sequential numbering of cutting surfaces ensures that the Boolean segmentation of multi-layered geological bodies is executed in a deterministic order, avoiding fragmented entities or segmentation failures caused by improper cutting order, thereby improving the processing efficiency of geological stratification models.
[0020] Specifically, in step S1, the embodiment of the present invention collects geological survey data, which includes: borehole data, geological profile maps, DEM (digital elevation model) elevation data, topographic contour lines, and boundary data of the study area.
[0021] In this embodiment of the invention, the borehole data includes the borehole number, coordinates, top and bottom elevations of the formation, lithology, and thickness.
[0022] Specifically, in this embodiment of the invention, DEM data is imported into Civil 3D, and a surface surface is constructed using the TIN (Triangular Irregular Network) interpolation algorithm as the top boundary. Based on the elevation of the deepest borehole bottom, a preset safety depth is extended downward to generate a unified bottom plane as the bottom boundary. Based on the boundary line of the study area, a vertical lateral closed boundary is generated to complete the lateral boundary constraint. Using the Civil 3D entity generation tool, the top boundary, bottom boundary, and lateral boundary are constrained and closed to form a complete three-dimensional geological entity model.
[0023] In this embodiment of the invention, the deepest borehole bottom elevation is the minimum value of the top and bottom elevations of the formation in the borehole data.
[0024] In this embodiment of the invention, the preset safe depth is 50m, but the above value is not limited to this, and those skilled in the art can adjust the value according to actual needs.
[0025] Specifically, in this embodiment of the invention, the entire geological entity is exported as a Revit-recognizable format and converted into a Dynamo-operable solid object to serve as the reference geometry for cutting, thus completing the model export.
[0026] In this embodiment of the invention, the Revit can recognize formats as RVT or IFC.
[0027] Specifically, this invention constructs a surface curve in Civil 3D using the TIN interpolation algorithm as the top boundary, generates a bottom plane by extending a preset safe depth downwards from the deepest borehole bottom elevation, and combines this with the vertical lateral closed boundary formed by the boundary of the study area. The three elements together form a complete three-dimensional geological entity model, which is then exported to a Revit-recognizable format and converted into a Dynamo-operable entity object. The bottom boundary processing, which extends a safe depth downwards from the deepest borehole as the reference, ensures that the model can completely encompass the storage space of all known strata, while reserving sufficient modeling tolerance for deep, unknown geological bodies. This avoids errors in model bottom truncation caused by insufficient borehole depth. The surface curve constructed by the TIN interpolation algorithm can adapt to changes in the density of terrain undulations, thereby improving the processing efficiency of geological stratification models.
[0028] Specifically, in step S2, this embodiment of the invention imports a geological profile map and identifies key geological interfaces, which include overburden interfaces, strongly weathered layer interfaces, moderately weathered layer interfaces, weakly weathered layer interfaces, fault interfaces, and fracture zone interfaces.
[0029] Specifically, in this embodiment of the invention, sampling is performed on each key geological interface to extract multiple spatial control points. The X, Y, and Z coordinates, stratigraphic number, and lithological number of each spatial control point are recorded. Using spline interpolation or linear connection, each spatial control point is fitted into a continuous spatial curve, i.e., an interface curve, to form a geometric expression of each key geological interface.
[0030] Specifically, in this embodiment of the invention, a stratigraphic interface database is established. The fields of the stratigraphic interface database include: interface number, stratigraphic name, spatial coordinate sequence, lithological properties, and control curve ID.
[0031] Specifically, in this embodiment of the invention, each interface curve is mapped to the spatial coordinate system of the overall geological entity to complete the geometric positioning.
[0032] Specifically, in this embodiment of the invention, all interface curves are grouped into a set of cutting control lines to serve as the geometric basis for generating the cutting surface.
[0033] Specifically, this invention extracts spatial control points by sampling at each interface, records their three-dimensional coordinates and stratigraphic lithology information, fits discrete points into continuous interface curves through spline interpolation or linear connection, establishes a stratigraphic interface database, maps all interface curves to the spatial coordinate system of the overall geological entity, forms a set of cutting control lines, and replaces the connection of discrete borehole points with interface curves, making the geological stratification boundary a smooth surface that conforms to the laws of geological sedimentation and tectonic structure. The attribute-based sampling of spatial control points makes each geometric point carry dual geological semantics of stratigraphy and lithology. The stratigraphic interface database systematizes the geometry, attributes and topological relationships of each geological interface into structured data, thereby improving the processing efficiency of the geological stratification model.
[0034] Specifically, in step S3, this embodiment of the invention uses the Select Model Elements node in Dynamo to read the imported overall geological entity, obtains all geometric objects through the Element.Geometry node, and uses the List.Flatten node to expand the nested structure, unify the data hierarchy, and complete the data flattening.
[0035] Specifically, in this embodiment of the invention, objects are classified according to their geometric type, and are divided into: Solid, Surface, Curve, and Point. Then, non-solid objects are deleted to complete the redundancy removal.
[0036] In this embodiment of the invention, non-entity objects can be annotations, markers, or auxiliary lines, etc.
[0037] Specifically, in this embodiment of the invention, attributes are extracted for each retained entity object, and a unified geometric attribute database is established based on the attribute extraction results. The attributes include volume, surface area, centroid coordinates, bounding box size, and boundary surface information.
[0038] Specifically, in this embodiment of the invention, all entity objects are extracted from the unified geometric attribute database. The number of faces, the number of edges, and the topological connectivity are used to determine whether the entity objects are closed. The volume of the entity objects is checked for reasonableness. If the volume of the entity object is less than the minimum volume threshold, the tiny fragment entity objects generated by data noise are removed to obtain legal entity objects.
[0039] In this embodiment of the invention, the minimum volume threshold is 1m³.
[0040] Specifically, the anomaly removal in this embodiment of the invention includes: removing non-closed, volume-abnormal, and self-intersecting entities.
[0041] Specifically, in this embodiment of the invention, a unique ID is assigned to each legitimate entity object, and a preliminary mapping relationship is established between the legitimate entity object and the stratigraphic name and lithological attributes in the stratigraphic interface database, forming a set of entities to be cut after cleaning, numbering, and attribute association.
[0042] In one embodiment, the initial mapping relationship is based on matching the centroid Z value with the stratigraphic elevation range.
[0043] Specifically, this invention reads the imported overall geological entity and obtains its geometric objects in Dynamo. After unifying the data hierarchy by flattening the list, attributes are extracted from the retained entities and a unified geometric attribute database is established. Subsequently, the entity closure is verified, and a unique ID is assigned to each legal entity and mapped to the stratigraphic name and lithological attributes in the stratigraphic interface database to form a set of entities to be cut. The classification and redundancy removal of geometric types avoids non-entity primitives from being mistakenly included in Boolean operations, which would lead to segmentation failure or invalid fragments. A multi-dimensional verification mechanism filters out minor fragments and topological defect entities caused by data noise, modeling errors, or incomplete interface constraints, preventing these anomalies from causing chain errors in Boolean segmentation and polluting the attribute statistics of downstream geological layers, thereby improving the processing efficiency of the geological stratification model.
[0044] Please see Figure 2 As shown, it is an operation interface diagram of step S4 provided in an embodiment of the present invention.
[0045] Specifically, in step S4, the present invention reads each interface curve in the set of cutting control lines one by one, extracts key points for each interface curve, extracts the starting point P1, ending point P2, midpoint or maximum curvature point P3 of the interface curve, takes the starting point P1 as the origin and the axis from the starting point P1 to the ending point P2 as the X-axis, constructs a local right-handed coordinate system, and calls Plane.ByThreePoints(P1,P2,P3) to generate the initial plane.
[0046] Specifically, in this embodiment of the invention, the normal vector of the initial plane is calculated as follows: .
[0047] Specifically, in this embodiment of the invention, after obtaining the normal vector, the direction of the normal vector is checked to determine whether the direction of the normal vector is consistent with the direction of the geological sequence of the geological survey data. For example, the geological sequence points from the overlying layer to the underlying layer. If the direction of the normal vector is reversed, the reverse normal vector is taken to ensure that the direction of the normal vector uniformly points to the downward direction of the strata.
[0048] Specifically, in this embodiment of the invention, the Curve.Extrude node is executed on the interface curve to stretch it along the normal direction to generate an initial cutting surface. To ensure that the initial cutting surface can completely penetrate the entities to be cut in the set of entities to be cut, the bounding box size of the entities to be cut is obtained. The extension length L of the initial cutting surface is dynamically calculated based on 1.5 times the maximum size of the entities to be cut. The initial cutting surface is extended by L / 2 in both the positive and negative normal directions to obtain a cutting surface. The Solid.Intersect node is executed to detect whether the cutting surface intersects with the entities to be cut.
[0049] In this embodiment of the invention, if the line does not penetrate the entity to be cut (i.e., the intersection line is empty), the extension length is increased, and the initial cutting surface is regenerated until it is completely penetrated, thus obtaining a set of cutting surfaces that are spatially accurate, directionally consistent, length adaptive, and completely penetrate the entity.
[0050] Specifically, this invention extracts the start point, end point, and midpoint or maximum curvature point of each interface curve, constructs a local right-handed coordinate system with the start point as the origin and the direction from the start point to the end point as the X-axis, generates an initial plane using these three points, calculates the normal vector, and performs geological sequence verification on the direction of the normal vector to ensure it uniformly points downwards towards the strata. Subsequently, the curve is stretched along the verified normal vector to generate an initial cutting surface, ultimately obtaining a set of cutting surfaces. The method of constructing a local coordinate system and plane using three points ensures that the spatial orientation of the cutting surface follows the actual distribution of the interface curve in three-dimensional space. Even if the interface is twisted or tilted in space, the cutting surfaces can still be aligned, rather than mechanically using horizontal or vertical sections. The geological sequence verification of the normal vector direction ensures that the normals of all cutting surfaces remain consistent, avoiding geologically inverted and disordered segmentation results caused by random normals, thereby improving the processing efficiency of the geological stratification model.
[0051] Please see Figure 3 The diagram shown is an operation interface diagram of steps S5 and S6 provided in an embodiment of the present invention.
[0052] Specifically, in step S5, the present invention obtains all cutting surfaces of the cutting surface set, calculates the geometric center point of each cutting surface, obtains the three-dimensional coordinates of each geometric center point, and defines sorting key values according to the project type. Straight projects (such as tunnels and pipelines) are sorted by X coordinate; curved projects (such as slopes and roadbeds) are sorted by cumulative mileage along the center line of the line; complex projects (such as mining areas and foundation pits) are sorted by the projection coordinates of spatial projection onto the dominant direction (such as the Z axis).
[0053] Specifically, in this embodiment of the invention, the cutting surfaces are sorted in ascending order based on the sorting key value, and the cutting surfaces after the ascending order are assigned sequential numbers (C1, C2, ..., Cn), a topological relationship is established, and the sequential logic of "C1 cuts to generate upper layer A and lower layer B, and C2 acts on layer B" is determined.
[0054] Specifically, in this embodiment of the invention, it is detected whether adjacent cutting surfaces intersect in space, i.e., they are not parallel and their projections overlap. If an intersection is detected, the order of the ascending arrangement is automatically adjusted according to the geological strata and the burial depth relationship reflected by the Z coordinate, to ensure that "the upper layer is cut first and the lower layer is cut later", thus obtaining the cutting surface execution sequence.
[0055] Specifically, this invention calculates the three-dimensional coordinates of the geometric center point of each cutting surface in the set of cutting surfaces, adaptively selects key sorting values according to the project type, then arranges the cutting surfaces in ascending order and assigns sequential numbers, establishing the sequential topological relationship between adjacent cutting surfaces. Simultaneously, it detects whether adjacent cutting surfaces spatially intersect; if they do, the sorting is automatically adjusted based on geological strata and burial depth, ultimately forming a cutting surface execution sequence. The sorting benchmark is selected differently according to the project type, enabling the cutting order to adapt to the spatial logic of projects with different geometric shapes. This avoids the possibility of cutting order confusion that may occur in different project scenarios under a unified sorting rule. The explicit establishment of sequential numbers and topological relationships reduces the complexity of multi-layer cutting arrangement. The automatic sorting driven by cross detection and burial depth ensures that the cutting process is correct both geometrically and geologically when cutting surfaces spatially intersect due to complex geological structures, avoiding modeling errors caused by reversed cutting order, thereby improving the processing efficiency of geological stratification models.
[0056] Specifically, in step S6, the embodiment of the present invention reads the overall geological entity, takes the first cutting surface C1 in the cutting surface execution sequence, executes the Solid.Split node to perform Boolean splitting, and generates the upper entity E_up and the lower entity E_down after Boolean splitting.
[0057] Specifically, according to the preliminary mapping relationship, the embodiment of the present invention identifies the upper entity E_up as the current target layer (such as the overlay layer), exports the upper entity E_up as an independent entity and marks it as the "overlay layer", and uses the lower entity E_down as the input entity for the next round of cutting. C2, C3, etc. are taken in sequence, and the identification is repeated until all cutting surfaces are processed to obtain the entities of each layer.
[0058] Specifically, in this embodiment of the invention, the final generated layer entities are tested for closure, volume continuity and absence of voids. For micro-holes or non-closed surfaces, a “stitching” or “surface patching” operation based on boundary edge matching is automatically performed to generate the final independent geological layer entities. The independent geological layer entities include: overburden layer, strongly weathered layer, moderately weathered layer, weakly weathered layer and bedrock entity.
[0059] Specifically, this invention sequentially extracts cutting surfaces through a cutting surface execution sequence, divides the entity to be cut into upper and lower entities through Boolean segmentation, detects each layer of entities based on the preliminary mapping relationship established before cutting, and generates independent geological layer entities. The progressive cutting of peeling off layers layer by layer ensures that each Boolean segmentation only processes the geological interface of the current uppermost layer, decoupling the complex multi-layer segmentation into multiple simple two-partition operations, reducing the geometric complexity of a single operation, and making the geological attribution of each layer of entities clearly determined during cutting, avoiding the fragment attribution confusion that may occur when cutting multiple layers simultaneously. The lower entity is used as the iterative reuse of the input for the next round of cutting, ensuring the spatial continuity of the geological body during the cutting process, thereby improving the processing efficiency of the geological layering model.
[0060] Please see Figure 4 As shown, it is an operation interface diagram of step S7 provided in an embodiment of the present invention.
[0061] Specifically, in step S7, this embodiment of the invention reads each independent geological layer entity and extracts the geological parameters of each layer entity. The geological parameters include: rock layer name, lithology type, volume, surface area, layer thickness, burial depth (top surface elevation), and centroid coordinates; and establishes a mapping relationship between Revit family parameters and geological attributes, for example, "lithology" → family parameter "MaterialType".
[0062] Specifically, in this embodiment of the invention, a geological layer family template is created based on the Revit family template. Preset parameter fields are used to write each layered entity as a geometric subject into the corresponding family instance, and the extracted geological parameters are written into the family parameters.
[0063] Specifically, in the embodiments of the present invention, under the condition of obtaining a geological stratum template, an independent family type is automatically generated for each lithology, such as "overburden-clay" and "moderately weathered granite", so that different layers under the same family template can be distinguished by type.
[0064] Specifically, in this embodiment of the invention, all family types are exported in batches as independent .rfa family files, with the file naming rule being "stratum_lithology_number.rfa".
[0065] Specifically, in this embodiment of the invention, all independently exported .rfa family files are batch loaded into the current Revit project, the original centroid coordinates of each layered entity are obtained, the centroid corresponding to the original centroid coordinates is used as the placement reference point, FamilyInstance.ByPoint is called to create a family instance, and each family instance is placed at the centroid position of the corresponding layered entity.
[0066] Specifically, in this embodiment of the invention, after placement, the normal vector is aligned with the dip direction of the strata by rotating the family instance of the normal vector of the layered entity.
[0067] Specifically, the embodiments of the present invention establish vertical relationships between layers through the Revit “upper and lower layers” or “group” functions, complete the automatic deployment and spatial reorganization of all layer entities, and form a complete three-dimensional geological BIM model.
[0068] Specifically, the embodiments of the present invention confirm that all family instances have been correctly placed, establish a hierarchical tree structure of "strata-lithology-volume-depth" in Revit, deeply bind geological parameters with BIM component attributes, support querying, statistics, and export, and generate the final three-dimensional layered geological BIM model.
[0069] In this embodiment of the invention, the three-dimensional layered geological BIM model supports the following applications: construction simulation (earthwork excavation, support design); risk analysis (landslides, seepage, settlement); numerical calculation (FLAC3D, PLAXIS interface data export); and BIM collaborative management (data exchange with design, construction, and supervision platforms).
[0070] Specifically, this invention extracts the geological parameters of each independent geological layer entity, establishes a mapping relationship with Revit family parameters, generates independent family types for each lithology based on family templates, and batch exports them as .RFA family files with regular naming conventions. Then, using the original centroid of each layer entity as a reference point, the family instances are batch loaded and placed in the Revit project. Based on the normal vector rotation, the family instances are aligned with the dip of the strata, establishing vertical relationships between layers to form a hierarchical tree structure. Finally, a three-dimensional layered geological BIM model with deep parameter binding is completed. The structured mapping and automatic writing of geological parameters to Revit family parameters ensure that each BIM component not only has a geometric shape but also carries complete geological attributes. The automatic placement and orientation rotation based on the original centroid and normal vector ensure that the position and orientation of the family instances in the BIM space are consistent with the actual strata in the geological model. The automatic establishment of the hierarchical tree structure permanently solidifies the vertical stacking relationship between strata in a structured manner in the BIM, thereby improving the processing efficiency of the geological layered model.
[0071] The above description is only a preferred embodiment of the present application and is not intended to limit the present application. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of the present application should be included within the scope of protection of the present application.
Claims
1. An adaptive cutting method for BIM geological models based on Dynamo-driven methods, characterized in that, include: Obtain geological survey data, construct a three-dimensional geological entity model based on the geological survey data, and output the overall geological entity; Identify the key geological interfaces of the overall geological entity, extract multiple spatial control points of the key geological interfaces, fit all spatial control points into interface curves, and map them to the spatial coordinate system of the overall geological entity to obtain a set of cutting control lines. The entire geological entity is input into Dynamo to obtain a solid object. The volume of the solid object is then checked for reasonableness to obtain a set of entities to be cut. Based on the set of cutting control lines and the set of entities to be cut, a local coordinate system is constructed and an initial plane is generated. The normal vector of the initial plane is determined, and the direction of the normal vector is checked. The plane is stretched along the checked normal vector to obtain the set of cutting surfaces. The cutting surfaces of the set of cutting surfaces are sorted in ascending order and assigned sequential numbers to obtain the cutting surface execution sequence; Boolean segmentation is performed on the cut surfaces in the sequence to obtain each layer of entities. Each layer of entities is then inspected to obtain independent geological layer entities that pass the inspection. Extract the geological parameters of the independent geological layer entities, establish a Revit family parameter mapping relationship, obtain a family file, and load the family file into Revit to form a three-dimensional geological BIM model.
2. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 1, characterized in that, The process of inputting the overall geological entity into Dynamo to obtain a solid object, and performing volume rationality verification on the solid object to obtain the set of entities to be cut includes: In Dynamo, the Select Model Elements node is used to read the overall geological entity, and all geometric objects of the overall geological entity are obtained based on the Element.Geometry node. The geometric objects are classified based on their geometric types, and non-entity objects are deleted. Attributes are extracted from each retained entity object, and a unified geometric attribute database is established. All entity objects are extracted from the unified geometric attribute database. The volume of the entity objects is checked for reasonableness. If the volume of the entity object is less than the minimum volume threshold, the current entity object is removed to obtain a legal entity object. A unique ID is assigned to each legitimate entity object, and a preliminary mapping relationship is established between the legitimate entity object and the stratigraphic interface database constructed based on the geological survey data, forming a set of entities to be cut.
3. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 1, characterized in that, The process of performing direction verification on the normal vector includes: Determine whether the direction of the normal vector is consistent with the direction of the geological stratigraphic sequence in the geological survey data; If they match, then retain the normal vector; If they are inconsistent, the normal vectors are reversed to ensure that the direction of the normal vectors is uniformly pointing downwards towards the formation.
4. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 1, characterized in that, The process of sorting the cutting surfaces of the set of cutting surfaces in ascending order and assigning them sequential numbers to obtain the cutting surface execution sequence includes: Obtain all cutting surfaces of the cutting surface set, calculate the geometric center point of each cutting surface, obtain the three-dimensional coordinates of each geometric center point, and determine the sorting key value according to the project type; Based on the sorting key value, the cutting surfaces are sorted in ascending order, and a sequence number is assigned to the sorted cutting surfaces. Detect whether adjacent cutting surfaces intersect in space, and obtain the cutting surface execution sequence if they do not intersect.
5. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 4, characterized in that, The detection process checks whether adjacent cutting surfaces intersect in space. If they intersect, the sorting is adjusted based on the relationship between the geological sequence and the burial depth reflected by the Z-coordinate of the three-dimensional coordinates.
6. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 1, characterized in that, The process of performing Boolean segmentation on the cut surfaces of the sequence to obtain the entities of each layer includes: For the first cutting surface in the sequence, execute the Solid.Split node to perform Boolean splitting to generate the upper solid and the lower solid; Based on the preliminary mapping relationship, the upper entity is identified as the current target layer; The lower entity is used as the input for the next round of Boolean segmentation, and the identification is repeated until all the cutting surfaces in the cutting surface execution sequence have been identified, thus obtaining the entities of each layer.
7. The adaptive cutting method for BIM geological models based on Dynamo-driven technology according to claim 1, characterized in that, The methods for detecting the entities in each layer include: closure detection, volume continuity detection, and void-free detection.
