Data collection and database construction system and method based on HBIM
Using HBIM technology to construct the meta-model framework and wooden system architectural logic of traditional wooden buildings, combined with 3D laser scanning and photo scanning, it solves the problems of low modeling efficiency and accuracy in the existing technology, and realizes efficient and accurate traditional buildings. Model building and information storage.
Patent Information
- Application Number
- CN202410814881.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-24
- Publication Date
- 2024-09-06
- Estimated Expiration
- 2044-06-24
AI Technical Summary
Existing digital modeling technology for ancient buildings relies on native software, resulting in low modeling efficiency and low accuracy, and cannot effectively store and inherit traditional building repair information.
The data collection and database construction system based on HBIM constructs the meta-model framework of traditional wooden buildings, extracts the architectural logic of the wooden system, establishes the meta-model, and uses three-dimensional laser scanning, photo scanning, Alpha-Shapes, and cosine similarity algorithms, etc. Technology automatically models, improving modeling efficiency and accuracy.
It achieves efficient and accurate construction of traditional wooden building models, improves modeling efficiency and accuracy, and can effectively store and inherit traditional building repair information.
Smart Images

Figure CN118395878B
Abstract
Description
Technical Field
[0001] The invention relates to a cultural relic building restoration system, and in particular to a data acquisition and database construction system and method based on HBIM. Background Art
[0002] In recent years, the continuous increase in new buildings has led to an increasingly larger gap in style between them and traditional dwellings. Traditional architectural forms are no longer continued, causing the settlements to gradually lose their traditional style.
[0003] At present, BIM technology has application cases in the entire life cycle of modern building planning, design, construction, operation, etc., and can effectively manage buildings. For historical buildings, Murphy first proposed the concept of Heritage-BIM (HBIM). HBIM can play a great role in the maintenance, repair, and dissemination of historical buildings: Due to the age of a large number of historical buildings, their design information is often manuscripts with limited accuracy or does not exist at all, which requires repeated confirmation during the maintenance process, consuming a lot of manpower and material resources. Through HBIM, the structure, size, material and other information of historical buildings can be clearly integrated into the model, improving maintenance efficiency. In addition, by preserving the geometric form of historical buildings in HBIM, it is also guaranteed that in the event of natural or man-made destruction, its three-dimensional appearance can be traced. HBIM can also be combined with VR, AR and other technologies to introduce tourists to the relevant knowledge of historical relics in a more immersive way;
[0004] However, it is quite complicated to generate a three-dimensional representation of historical buildings in HBIM. At present, the storage method of traditional building repair information is mainly scattered drawings and texts, which makes it impossible to effectively store and inherit traditional building repair information. With the digital transformation and development of the construction industry, the information management method with building information model as the core can improve the digital storage level of information; however, the existing digital modeling technology of ancient buildings mainly relies on the functions of native software and manual model construction, resulting in low modeling efficiency and low accuracy. In view of this, a data acquisition and database construction system and method based on HBIM are provided. Summary of the invention
[0005] The purpose of the present invention is to provide a data acquisition and database construction system and method based on HBIM to solve the problem that the existing ancient building digital modeling technology mentioned in the above background technology mainly relies on the functions of native software and manually builds the model, resulting in low modeling efficiency and low accuracy.
[0006] To achieve the above objectives, on the one hand, the present invention aims to provide a method for data acquisition and database construction based on HBIM, comprising:
[0007] S1. Construct a meta-model framework for traditional timber buildings;
[0008] S2, extract the architectural logic of the timber structure system of traditional timber buildings;
[0009] The architectural logic of the timber structure system determines the component classification, spatial relationship and combination order of the timber structure system;
[0010] S3. Establish a meta-model based on the architectural logic of the timber structure system;
[0011] S4. Automatic modeling using metamodel.
[0012] As a further improvement of the present technical solution, in S1, the metamodel framework includes meta-objects, meta-attributes, meta-relationships and meta-methods.
[0013] Among them, meta-objects constitute the basic entities of the model, corresponding to the actual components in traditional wooden buildings, such as columns, beams, rafters, brackets, purlins, etc. Each meta-object represents a type of building components with similar characteristics and functions;
[0014] Meta attributes are used to define various characteristics and parameters of each meta object, such as material (wood species), size (length, diameter), age, manufacturing process, status (intact, damaged), location coordinates, etc. These attributes help to accurately describe the details of each building component;
[0015] Meta-relationships are used to describe the interconnections and organizational structures between meta-objects, such as physical connections (mortise and tenon joints, nail joints), spatial layout (upper and lower adjacent, front and back arrangement), functional dependencies, etc. Meta-relationships establish the logic and integrity of the building structure;
[0016] Metamethods specify the rules and processes for operating metaobjects and metaattributes, including algorithms such as automatic combination, rule verification, and structural analysis. These methods enable models to be automatically generated, updated, or analyzed according to preset logic, thereby improving modeling efficiency and accuracy.
[0017] As a further improvement of the technical solution, the specific steps involved in S2 are:
[0018] S2.1. Use a 3D laser scanner to comprehensively scan traditional wooden buildings, obtain original point cloud data, and perform denoising, registration, and splicing on the original point cloud data;
[0019] At the same time, photos and videos of building details are collected through photo scanning to capture complex details and hidden parts, and then exported to obtain original point cloud data;
[0020] Use a normal camera to take photos of the target object, ensuring that every two photos have at least 50% overlap, and then use real-life scanning and 3D modeling software Agisoft Photoscan to batch export the classified point cloud data. The data format can be selected as 3D coordinate points in an Excel spreadsheet, and the original point cloud data can be imported through the data reading node of Grasshopper. Compared with 3D laser scanners, photo scanning has higher flexibility and convenience;
[0021] S2.2, extracting exposed features from the original point cloud data based on Alpha-Shapes, and obtaining the coordinate information of the feature points;
[0022] At the same time, the cosine similarity algorithm is used in combination with the traditional construction knowledge of wooden buildings to determine the hidden features to be supplemented.
[0023] Combined with the traditional structural knowledge of wooden buildings, according to the principles of wooden architecture, analyze the typical connection methods between the side brackets and adjacent components (such as beams, rafters, and columns), such as the types of mortise and tenon structures (straight tenons, dovetail tenons, etc.), positional relationships (such as the arrangement of side brackets and brackets), analyze the typical connection modes and spatial layout rules between various components, and determine the hidden features to be supplemented;
[0024] Specifically, the modeling features of bracket components include exposed features and hidden features;
[0025] Among them, the revealed features refer to the characteristic parameters that can be directly extracted from the point cloud, which are the main basis for reflecting the true status of component deformation;
[0026] Hidden features refer to the features of the obscured or interrupted parts of a component, usually including complex mortise and tenon structures.
[0027] As a further improvement of the technical solution, in S2.2, the specific steps involved in the exposure feature extraction are:
[0028] The original point cloud data is straightened along the vertical direction, and the main eigenvectors are retained through orthogonal transformation to achieve the effect of dimensionality reduction;
[0029] For each individual wooden component (such as brackets), its main elevation direction is determined through data analysis, and the point cloud data of the component is aligned along this direction by applying orthogonal transformation. This operation helps to reduce the complexity of subsequent processing and makes feature extraction more intuitive and accurate.
[0030] The straightened point cloud data are projected along the vertical, side and horizontal planes to obtain the front view, side view and top view of the bracket respectively;
[0031] The multi-dimensional view strategy helps to fully understand the spatial form of individual components and their positional relationship in the overall structure;
[0032] Based on the two-dimensional point cloud, Alpha-Shapes is used to extract the edges of a set of scattered points and extract the contour lines of discrete points. Among them, Alpha-Shapes is a powerful morphological analysis tool that controls the compactness of the boundary shape by adjusting a parameter (α value) to generate a series of polygons or curves around the point set. In this process, the appropriate selection of α value can accurately outline the outer contour of the point cloud data and effectively distinguish the clear edges and detailed features of components such as brackets, horns, and brackets;
[0033] Specifically, the basic principle is: use a circle with a radius of a to rotate around the point set, and obtain the internal and external contour lines of the point set after passing through all the points. When the circle radius a is large, the circle rolls on the outside of the point set S, and its outer rolling trajectory is the edge contour of the point set; if the radius a value is very small, then the circle will roll inward of the point set S. When the a value is small enough, all points are boundary points of the point; the value of the arc radius a has a great relationship with the accuracy of the extracted contour line. This method has a wide range of applications, and has good adaptability to rectangular, circular, irregular convex and concave polygons, and has good robustness and fast computing capabilities.
[0034] As a further improvement of the technical solution, in S2.2, the cosine similarity algorithm is specifically:
[0035] Assume that the identified feature point set in the point cloud is , each feature point There is a corresponding eigenvector , representing its geometric or structural features, using the cosine similarity metric to match unknown points in the point cloud with known component feature point sets to find potential hidden connection points:
[0036] ;
[0037] In the formula, Represents the first feature points, each of which represents a special position or key point in the structure of the point cloud; Represents each feature point The corresponding feature vector contains the description point Multiple feature attributes, such as position coordinates, color, texture, curvature, etc. The dimension of the vector is determined by the number of features. express; Represents the feature vector No. Quantity; Represents the feature vector No. Components, representing feature points In the The value of the feature dimension; Representing feature points and The Euclidean distance between Indicates the number of characteristic attributes of each feature point; Represents an index variable.
[0038] As a further improvement of the technical solution, the specific steps involved in S3 are:
[0039] S3.1. Define meta-objects, meta-attributes, meta-relations and meta-methods respectively;
[0040] Define meta-objects: clarify all basic and composite building units that constitute traditional wooden buildings, including Column, Beam, BracketSet, Roof, DoorWindow, etc.;
[0041] Define meta-attributes: assign necessary attribute fields to each meta-object, for example, Column contains attributes such as height, diameter, material, loadCapacity, etc.
[0042] Define meta-relationships: define relationships between components, such as Supports, ConnectedTo, PartOf, HasSubComponent, etc.
[0043] Define meta-methods: Define algorithms to automatically adjust the positions of components to conform to the logic of the timber structure, such as automatically generating mortise and tenon joints based on the type of brackets;
[0044] S3.2. Construct the spatial topological framework of all components in the timber structure system according to the construction logic of the timber structure system;
[0045] Building a spatial topological framework can be viewed as constructing a directed or undirected graph, where nodes represent meta-objects (such as columns and beams) and edges represent meta-relationships (such as supports and connections); weights in the graph can represent distances, support forces, or other physical properties;
[0046] Undirected graph representation: Let is an undirected graph representing the spatial topology of a wooden building, where is a set of vertices, representing the meta-objects in the building (such as columns, beams, brackets, etc.), is a set of edges, representing spatial relationships or connections between meta-objects; for example, if the columns Support beam , then in There is an edge ; Assign weights to each edge to represent physical properties, such as connection strength or distance;
[0047] Adjacency matrix: The connection relationship between buildings can be obtained through the adjacency matrix Description, where ,but ,otherwise ; For weighted graphs, ;
[0048] Among them, a tree structure is used to express hierarchical relationships. The nodes at each level represent a type of subsystem, such as the foundation layer, column grid layer, etc., and the child nodes represent specific components or more detailed subsystems. This structure can be mathematically described using a recursive formula or a hierarchical traversal algorithm.
[0049] Further, geometric relationship constraints: Assume that the beam With Column The connection points are and , the connection angle must meet certain mechanical conditions, and you can set equality or inequality constraints. For example, if the connection must be perpendicular, then ,in Represents vector dot product;
[0050] Topological constraints: In three-dimensional space, constraints can be used to ensure the rationality and connectivity of the spatial layout; for example, ensuring that all beam-column connections form a closed loop is achieved by checking the boundary conditions of each plane or spatial region, that is, each "opening" has a corresponding "closed" connection;
[0051] S3.3. Based on the spatial topology framework and meta-method, a meta-model is established using modeling software tools.
[0052] As a further improvement of the technical solution, in S4, the specific steps of modeling are:
[0053] S4.1. Use Trimble tools to slice the point cloud data to obtain the first floor plan and section point cloud image data to prepare materials for machine vision analysis;
[0054] S4.2, inputting the processed image data into a machine vision model to identify architectural features and meta-model categories, thereby providing a basis for subsequent parametric modeling, wherein the machine vision model preferably adopts convolutional neural networks (CNNs) for automatically identifying features in the image;
[0055] S4.3. After determining the metamodel category, use Grasshopper (GH)'s adaptive component and parameter setting functions to quickly arrange and adjust component parameters to form a timber frame model, achieving efficient and accurate model construction;
[0056] S4.4. Apply voxelized point cloud segmentation technology to process the original point cloud, and generate a high-precision solid BIM model through point cloud slicing and segmentation modeling;
[0057] Among them, the point cloud segmentation technology is specifically:
[0058] Using the rotation matrix, calculate the corresponding vector and coordinates of the unit axis vector and the three-dimensional coordinates of a point on the axis in the three-dimensional coordinate system after rotation;
[0059] Set the sampling point to The vertical distance between the axis of the column components is , according to the theoretical knowledge of space geometry, we have:
[0060] ;
[0061] ;
[0062] in, ;
[0063] In the formula, , and Indicates that after the rotation operation, The three-dimensional coordinates of the sampling points in the new coordinate system; , and Indicates The reference points of the axis lines of the column members are selected in the new coordinate system; , and Indicates The component of the unit direction vector of the axis of the column component in the new coordinate system, that is, the direction cosine of the column axis; Represents the position of the sampling point along a certain direction (assuming it is the height direction z); Indicates the sampling point to The square of the vertical distance between the axis of the column components; Indicates the maximum value of the sampling points along a certain direction (assuming it is the height direction z); Represents the minimum value of the sampling points along a certain direction (assuming it is the height direction z); Indicates the number of sampling points along this direction; Represents an index variable;
[0064] To avoid under-segmentation of column components, a threshold is set for the radius of the column. ,if Satisfies the following relationship:
[0065] ;
[0066] In the formula, Indicates The radius of the column element; represents the column radius threshold set to avoid under-segmentation;
[0067] Point cloud segmentation of wooden components:
[0068] After the point cloud segmentation of column components, the point cloud data of wooden components such as beams and rafters need to be segmented. Given that the positioning reference of wooden components in ancient buildings is the column axis, we can extract the column axis information based on the parameters of the column components, and use the axis information to construct a bounding box of the wooden component to be segmented, so as to realize the point cloud segmentation method of wooden components based on the bounding box; the key to the point cloud segmentation of wooden components based on the bounding box is to determine the spatial position relationship between the sampling point and the bounding box; this relationship can be judged by calculating the Euclidean distance from the sampling point to the six planes of the bounding box and observing its positive and negative signs, thereby effectively completing the point cloud segmentation of wooden components based on the bounding box.
[0069] S4.5. In Revit, the Dynamo plug-in is used to realize automatic modeling based on feature parameters. The vault is modeled using the vault modeling algorithm in combination with the metamodel and surveying data. On the basis of the vault modeling algorithm, the parameters of the diagonal ribs and side ribs are introduced to complete the missing mortise and tenon joints.
[0070] As a further improvement of the technical solution, in S4.4, the specific steps involved in generating a solid BIM model by slicing and segmenting the point cloud are:
[0071] S4.41. Find the extreme values of the three dimensions of the point cloud: , , , , and , calculate the surface area of the point cloud bounding box, and calculate the average surface density of the point cloud according to the number of point clouds;
[0072] S4.42, slice the point cloud in the selected direction, the number of slices Set as input parameter and calculate the point set on the tangent plane within the next threshold range;
[0073] S4.43, project the upper and lower point sets onto the tangent plane to find the intersection, and obtain the result through discrete point fitting A cut boundary contour;
[0074] S4.44, adjacent boundary contours are lofted and merged to create segmented entities;
[0075] S4.45, segmented entity combination, family category settings, material settings, and other instance attribute value settings.
[0076] As a further improvement of the technical solution, in S4.5, the vault modeling algorithm is specifically:
[0077] ;
[0078] In the formula, Indicates the height of the vault; Indicates the height of the arch bottom; represents the inverse tangent of the slope; It represents the horizontal distance from the arch foot to any point on the arch top; Indicates span; Indicates slope; Indicates the position of the vault profile in the vertical direction (usually the height direction), which changes with the span direction. Function of change;
[0079] In order to comprehensively consider the parametric expression of side ribs and diagonal ribs and integrate them into the basic vault profile model, an optimization model that can simultaneously describe the geometric characteristics and structural parameters of the vault structure is constructed. That is, the modeling parameters of diagonal ribs and side ribs are introduced to optimize the vault modeling algorithm. The side ribs are a series of cross sections along the vault profile. The width and thickness of each cross section are fixed, but the height varies with the vault profile. If the width of the side rib is ,thickness , then the side rib at any point Cross-sectional area Expressed as:
[0080] ;
[0081] If the angle between the diagonal rib and the arch bottom , the projected length of the diagonal rib on the arch profile is , the actual length of the diagonal rib The width of the oblique rib is , thickness is , then the diagonal rib at any point Cross-sectional area Expressed as:
[0082] ;
[0083] In the formula, It represents the slope of the vault profile at that point; Represents a small horizontal step when considering the change in the length of the diagonal rib.
[0084] Specifically, the specific optimization steps involved in the vault modeling algorithm are: generating the basic vault profile based on span and slope parameters;
[0085] In terms of basic morphology, the nail structures are distributed along the curvature of the vault according to the thickness parameters of the nail side arches, and these can be regarded as the basic units that constitute the vault structure;
[0086] Starting from a specific position of the arch bottom or arch top, extract the transverse section, generate the two-dimensional profile of the side rib according to the side rib width and thickness parameters, stretch the two-dimensional profile along the side of the arch top to form a three-dimensional side rib structure, and ensure that it is smoothly connected with the arch top surface;
[0087] Using a parametric approach, we first determine the starting and ending points of the diagonal ribs based on the basic form, consider the optimal fit between the diagonal ribs and the curved surface of the vault, extract or generate diagonal surfaces from the basic nail structure, and define the contours of the diagonal ribs. We apply extrusion operations and control the width and thickness of the diagonal ribs to ensure that they are in harmony with the overall structure of the vault. At the intersections of each structure, we pay special attention to the design and connection details of the nodes to ensure that all structural elements can be seamlessly connected geometrically and physically.
[0088] The parameter decoupling technology is introduced to enable the width and thickness of the diagonal ribs and side ribs to be adjusted independently of other parameters, thus enhancing the flexibility and accuracy of the design.
[0089] Using adaptive components in parametric design software such as Grasshopper, changes in each parameter directly affect the corresponding geometric elements without disturbing the integrity of other structures.
[0090] The improved algorithm is controlled by only seven parameters: three variables including the span between piers, the slope and the thickness of the nail side arches; and four values: one pair for the side ribs and another pair for the diagonal ribs, involving their width and thickness.
[0091] On the other hand, the present invention provides a data acquisition and database construction system based on HBIM, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the computer program to implement any one of the above-mentioned data acquisition and database construction methods based on HBIM.
[0092] Compared with the prior art, the present invention has the following beneficial effects:
[0093] In the data acquisition and database construction system and method based on HBIM, the parametric expression of side ribs and diagonal ribs is considered and integrated into the basic vault profile model to construct an optimization model that can simultaneously describe the geometric characteristics and structural parameters of the vault structure. That is, the modeling parameters of the diagonal ribs and side ribs are introduced, and the vault modeling algorithm is optimized so that the width and thickness of the diagonal ribs and side ribs can be adjusted independently of other parameters, thereby enhancing the flexibility and accuracy of the design. BRIEF DESCRIPTION OF THE DRAWINGS
[0094] Figure 1 It is a flowchart of the overall process of the present invention. DETAILED DESCRIPTION
[0095] The following will be combined with the drawings in the embodiments of the present invention to clearly and completely describe the technical solutions in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present invention.
[0096] Embodiment 1:
[0097] See also Figure 1 As shown, a data acquisition and database construction method based on HBIM is provided, including
[0098] S1. Construct a meta-model framework for traditional timber buildings;
[0099] In this embodiment, the metamodel framework includes meta-objects, meta-attributes, meta-relationships, and meta-methods.
[0100] Among them, meta-objects constitute the basic entities of the model, corresponding to the actual components in traditional wooden buildings, such as columns, beams, rafters, brackets, purlins, etc. Each meta-object represents a type of building components with similar characteristics and functions;
[0101] Meta attributes are used to define various characteristics and parameters of each meta object, such as material (wood species), size (length, diameter), age, manufacturing process, status (intact, damaged), location coordinates, etc. These attributes help to accurately describe the details of each building component;
[0102] Meta-relationships are used to describe the interconnections and organizational structures between meta-objects, such as physical connections (mortise and tenon joints, nail joints), spatial layout (upper and lower adjacent, front and back arrangement), functional dependencies, etc. Meta-relationships establish the logic and integrity of the building structure;
[0103] Metamethods specify the rules and processes for operating metaobjects and metaattributes, including algorithms such as automatic combination, rule verification, and structural analysis. These methods enable models to be automatically generated, updated, or analyzed according to preset logic, thereby improving modeling efficiency and accuracy.
[0104] S2. Extract the architectural logic of the timber structure system of traditional timber buildings; the architectural logic of the timber structure system determines the component classification, spatial relationship and combination order of the timber structure system;
[0105] In this embodiment, the specific steps involved in S2 are:
[0106] S2.1. Use a 3D laser scanner to comprehensively scan traditional wooden buildings, obtain original point cloud data, and perform denoising, registration, and splicing on the original point cloud data;
[0107] At the same time, photos and videos of building details are collected through photo scanning to capture complex details and hidden parts, and then exported to obtain original point cloud data;
[0108] Use a normal camera to take photos of the target object, ensuring that every two photos have at least 50% overlap, and then use real-life scanning and 3D modeling software Agisoft Photoscan to batch export the classified point cloud data. The data format can be selected as 3D coordinate points in an Excel spreadsheet, and the original point cloud data can be imported through the data reading node of Grasshopper. Compared with 3D laser scanners, photo scanning has higher flexibility and convenience;
[0109] S2.2, extracting exposed features from the original point cloud data based on Alpha-Shapes, and obtaining the coordinate information of the feature points;
[0110] At the same time, the cosine similarity algorithm is used in combination with the traditional construction knowledge of wooden buildings to determine the hidden features to be supplemented.
[0111] Combined with the traditional structural knowledge of wooden buildings, according to the principles of wooden architecture, analyze the typical connection methods between the side brackets and adjacent components (such as beams, rafters, and columns), such as the types of mortise and tenon structures (straight tenons, dovetail tenons, etc.), positional relationships (such as the arrangement of side brackets and brackets), analyze the typical connection modes and spatial layout rules between various components, and determine the hidden features to be supplemented;
[0112] Specifically, the modeling features of bracket components include exposed features and hidden features;
[0113] Among them, the revealed features refer to the characteristic parameters that can be directly extracted from the point cloud, which are the main basis for reflecting the true status of component deformation;
[0114] Hidden features refer to the features of the obstructed or interrupted parts of the component, usually including complex mortise and tenon structures.
[0115] In S2.2, the specific steps involved in the feature extraction are:
[0116] The original point cloud data is straightened along the vertical direction, and the main eigenvectors are retained through orthogonal transformation to achieve the effect of dimensionality reduction;
[0117] For each individual wooden component (such as brackets), its main elevation direction is determined through data analysis, and the point cloud data of the component is aligned along this direction by applying orthogonal transformation. This operation helps to reduce the complexity of subsequent processing and makes feature extraction more intuitive and accurate.
[0118] The straightened point cloud data are projected along the vertical, side and horizontal planes to obtain the front view, side view and top view of the bracket respectively;
[0119] The multi-dimensional view strategy helps to fully understand the spatial form of individual components and their positional relationship in the overall structure;
[0120] Based on the two-dimensional point cloud, Alpha-Shapes is used to extract the edges of a set of scattered points and extract the contour lines of discrete points. Among them, Alpha-Shapes is a powerful morphological analysis tool that controls the compactness of the boundary shape by adjusting a parameter (α value) to generate a series of polygons or curves around the point set. In this process, the appropriate selection of α value can accurately outline the outer contour of the point cloud data and effectively distinguish the clear edges and detailed features of components such as brackets, horns, and brackets;
[0121] Specifically, the basic principle is: use a circle with a radius of a to rotate around the point set, and obtain the internal and external contour lines of the point set after passing through all the points. When the circle radius a is large, the circle rolls on the outside of the point set S, and its outer rolling trajectory is the edge contour of the point set; if the radius a value is very small, then the circle will roll inward of the point set S. When the a value is small enough, all points are boundary points of the point; the value of the arc radius a has a great relationship with the accuracy of the extracted contour line. This method has a wide range of applications, and has good adaptability to rectangular, circular, irregular convex and concave polygons, and has good robustness and fast computing capabilities.
[0122] In S2.2, the cosine similarity algorithm is specifically:
[0123] Assume that the identified feature point set in the point cloud is , each feature point There is a corresponding eigenvector , representing its geometric or structural features, using the cosine similarity metric to match unknown points in the point cloud with known component feature point sets to find potential hidden connection points:
[0124] ;
[0125] In the formula, Represents the first feature points, each of which represents a special position or key point in the structure of the point cloud; Represents each feature point The corresponding feature vector contains the description point Multiple feature attributes, such as position coordinates, color, texture, curvature, etc. The dimension of the vector is determined by the number of features. express; Represents the feature vector No. Quantity; Represents the feature vector No. Components, representing feature points In the The value of the feature dimension; Representing feature points and The Euclidean distance between Indicates the number of characteristic attributes of each feature point; Represents an index variable;
[0126] Furthermore, by calculating the similarity between unknown points and known structural feature point sets, we can find those points that are not directly visible on the point cloud surface, but are very likely to have connections or dependencies based on their characteristics and the surrounding environment. For example, in the box bracket structure, by comparing the feature vectors of unknown points with the feature vectors of known components such as buckets and arches, we can infer the potential locations of mortise and tenon joints; the matching results can be used as a basis for subsequent processing to guide researchers or software algorithms to add or modify hidden structural elements in the model. Unknown points with high similarity are given priority as potential hidden features, and then combined with other analysis methods (such as structural logic reasoning and expert knowledge verification) for final confirmation.
[0127] S3. Establishing a meta-model based on the logic of timber-framed building system, wherein the specific steps involved in S3 are:
[0128] S3.1. Define meta-objects, meta-attributes, meta-relations and meta-methods respectively;
[0129] Define meta-objects: clarify all basic and composite building units that constitute traditional wooden buildings, including Column, Beam, BracketSet, Roof, DoorWindow, etc.;
[0130] Define meta-attributes: assign necessary attribute fields to each meta-object, for example, Column contains attributes such as height, diameter, material, loadCapacity, etc.
[0131] Define meta-relationships: define relationships between components, such as Supports, ConnectedTo, PartOf, HasSubComponent, etc.
[0132] Define meta-methods: Define algorithms to automatically adjust the positions of components to conform to the logic of the timber structure, such as automatically generating mortise and tenon joints based on the type of brackets;
[0133] S3.2. Construct the spatial topological framework of all components in the timber structure system according to the construction logic of the timber structure system;
[0134] Building a spatial topological framework can be viewed as constructing a directed or undirected graph, where nodes represent meta-objects (such as columns and beams) and edges represent meta-relationships (such as supports and connections); weights in the graph can represent distances, support forces, or other physical properties;
[0135] Undirected graph representation: Let is an undirected graph representing the spatial topology of a wooden building, where is a set of vertices, representing the meta-objects in the building (such as columns, beams, brackets, etc.), is a set of edges, representing spatial relationships or connections between meta-objects; for example, if the columns Support beam , then in There is an edge ; Assign weights to each edge to represent physical properties, such as connection strength or distance;
[0136] Adjacency matrix: The connection relationship between buildings can be obtained through the adjacency matrix Description, where ,but ,otherwise ; For weighted graphs, ;
[0137] Among them, a tree structure is used to express hierarchical relationships. The nodes at each level represent a type of subsystem, such as the foundation layer, column grid layer, etc., and the child nodes represent specific components or more detailed subsystems. This structure can be mathematically described using a recursive formula or a hierarchical traversal algorithm.
[0138] Further, geometric relationship constraints: Assume that the beam With Column The connection points are and , the connection angle must meet certain mechanical conditions, and you can set equality or inequality constraints. For example, if the connection must be perpendicular, then ,in Represents vector dot product;
[0139] Topological constraints: In three-dimensional space, constraints can be used to ensure the rationality and connectivity of the spatial layout; for example, ensuring that all beam-column connections form a closed loop is achieved by checking the boundary conditions of each plane or spatial region, that is, each "opening" has a corresponding "closed" connection;
[0140] S3.3. Based on the spatial topology framework and meta-method, a meta-model is established using modeling software tools.
[0141] Specifically, the point cloud data and photo scan data acquired and processed in step S2 are imported into modeling software, such as Revit, Autodesk Navisworks, etc.;
[0142] Based on the definitions of S3.1 and S3.2 and the spatial topology framework, use the modeling tool’s API or scripting language (such as Python) to write programs to automatically create meta-object instances, assign meta-attributes, apply meta-relationships, and form a preliminary building information meta-model;
[0143] On the basis of automatic modeling, manual intervention and fine-tuning are allowed to solve complex situations or special requirements that may be encountered in automatic modeling, ensuring the accuracy and completeness of the model;
[0144] By comparing field survey data, historical documents and expert knowledge, the accuracy of the metamodel is repeatedly verified, and iterative optimization is performed based on feedback.
[0145] S4. Automatically modeling using the metamodel; the specific steps of modeling are:
[0146] S4.1. Use Trimble tools to slice the point cloud data to obtain the first floor plan and section point cloud image data to prepare materials for machine vision analysis;
[0147] S4.2, inputting the processed image data into a machine vision model to identify architectural features and meta-model categories, thereby providing a basis for subsequent parametric modeling, wherein the machine vision model preferably adopts convolutional neural networks (CNNs) for automatically identifying features in the image;
[0148] Specifically, there are at least six types of meta-models, including one courtyard and one corridor, two-way two courtyards, three courtyards and one screen wall, four courtyards and five patios, and six courtyards and spring courtyards. After program analysis, the type of meta-model is determined, and then all relevant parameters are input into Grasshopper (GH) software for calculation, thereby driving the parametric generation of various component frame assembly models of the large timber frame and its nodes; this method not only speeds up the construction of the HBIM model, but also improves the accuracy and efficiency of model construction;
[0149] S4.3. After determining the metamodel category, use Grasshopper (GH)'s adaptive component and parameter setting functions to quickly arrange and adjust component parameters to form a timber frame model, achieving efficient and accurate model construction;
[0150] S4.4. Apply voxelized point cloud segmentation technology to process the original point cloud, and generate a high-precision solid BIM model through point cloud slicing and segmentation modeling;
[0151] Among them, the point cloud segmentation technology is specifically:
[0152] Using the rotation matrix, calculate the corresponding vector and coordinates of the unit axis vector and the three-dimensional coordinates of a point on the axis in the three-dimensional coordinate system after rotation;
[0153] Set the sampling point to The vertical distance between the axis of the column components is , according to the theoretical knowledge of space geometry, we have:
[0154] ;
[0155] ;
[0156] in, ;
[0157] In the formula, , and Indicates that after the rotation operation, The three-dimensional coordinates of the sampling points in the new coordinate system; , and Indicates The reference points of the axis lines of the column members are selected in the new coordinate system; , and Indicates The component of the unit direction vector of the axis of the column component in the new coordinate system, that is, the direction cosine of the column axis; Represents the position of the sampling point along a certain direction (assuming it is the height direction z); Indicates the sampling point to The square of the vertical distance between the axis of the column components; Indicates the maximum value of the sampling points along a certain direction (assuming it is the height direction z); Represents the minimum value of the sampling points along a certain direction (assuming it is the height direction z); Indicates the number of sampling points along this direction; Represents an index variable;
[0158] To avoid under-segmentation of column components, a threshold is set for the radius of the column. ,if Satisfies the following relationship:
[0159] ;
[0160] In the formula, Indicates The radius of the column element; represents the column radius threshold set to avoid under-segmentation;
[0161] Point cloud segmentation of wooden components:
[0162] After the point cloud segmentation of column components, the point cloud data of wooden components such as beams and rafters need to be segmented. Given that the positioning reference of wooden components in ancient buildings is the column axis, we can extract the column axis information based on the parameters of the column components, and use the axis information to construct a bounding box of the wooden component to be segmented, so as to realize the point cloud segmentation method of wooden components based on the bounding box; the key to the point cloud segmentation of wooden components based on the bounding box is to determine the spatial position relationship between the sampling point and the bounding box; this relationship can be judged by calculating the Euclidean distance from the sampling point to the six planes of the bounding box and observing its positive and negative signs, thereby effectively completing the point cloud segmentation of wooden components based on the bounding box.
[0163] S4.5. In Revit, the Dynamo plug-in is used to realize automatic modeling based on feature parameters. The vault is modeled using the vault modeling algorithm in combination with the metamodel and surveying data. On the basis of the vault modeling algorithm, the parameters of the diagonal ribs and side ribs are introduced to complete the missing mortise and tenon joints, thus overcoming the limitations of the standard model library and enhancing the real expression ability of the model.
[0164] The built-in visual programming tool Dynamo provides a method to achieve automatic modeling based on feature parameters, which can make the 3D visualization of architectural heritage more realistic.
[0165] Dynamo is an official plug-in that can be downloaded and run independently, or as a plug-in for other software such as Revit or Maya. It can replace programming work with visual modular nodes. Users can complete automatic modeling and data processing of the model through appropriate input and output data, thereby greatly reducing the difficulty of programming and using Dynamo's visual nodes to complete the reconstruction of bracket components.
[0166] In this embodiment, the specific steps involved in generating a solid BIM model by slicing and segmenting the point cloud in S4.4 are:
[0167] S4.41. Find the extreme values of the three dimensions of the point cloud: , , , , and , calculate the surface area of the point cloud bounding box, and calculate the average surface density of the point cloud according to the number of point clouds;
[0168] ;
[0169] In the formula, Represents the area of the point cloud bounding box; , express Dimension extremes; , express Dimension extremes; , express Dimension extremes;
[0170] Point cloud average surface density for:
[0171] ;
[0172] In the formula, Indicates the total number of points in the point cloud; Represents the surface area of the point cloud bounding box;
[0173] S4.42, slice the point cloud in the selected direction, the number of slices Set as input parameter and calculate the point set on the tangent plane within the next threshold range;
[0174] S4.43, project the upper and lower point sets onto the tangent plane to find the intersection, and obtain the result through discrete point fitting A cut boundary contour;
[0175] S4.44, adjacent boundary contours are lofted and merged to create segmented entities;
[0176] S4.45, segmented entity combination, family category settings, material settings, and other instance attribute value settings.
[0177] This method has good modeling performance for building components with complex surfaces, and by adjusting the number of slices, solid models with different degrees of refinement can be obtained.
[0178] In S4.5, the vault modeling algorithm is specifically as follows:
[0179] ;
[0180] In the formula, Indicates the height of the vault; Indicates the height of the arch bottom; represents the inverse tangent of the slope; It represents the horizontal distance from the arch foot to any point on the arch top; Indicates span; Indicates slope; Indicates the position of the vault profile in the vertical direction (usually the height direction), which changes with the span direction. Function of change;
[0181] In order to comprehensively consider the parametric expression of side ribs and diagonal ribs and integrate them into the basic vault profile model, an optimization model that can simultaneously describe the geometric characteristics and structural parameters of the vault structure is constructed. That is, the modeling parameters of diagonal ribs and side ribs are introduced to optimize the vault modeling algorithm. The side ribs are a series of cross sections along the vault profile. The width and thickness of each cross section are fixed, but the height varies with the vault profile. If the width of the side rib is ,thickness , then the side rib at any point Cross-sectional area Expressed as:
[0182] ;
[0183] If the angle between the diagonal rib and the arch bottom , the projected length of the diagonal rib on the arch profile is , the actual length of the diagonal rib The width of the oblique rib is , thickness is , then the diagonal rib at any point Cross-sectional area Expressed as:
[0184] ;
[0185] In the formula, It represents the slope of the vault profile at that point; Represents a small horizontal step when considering the change in the length of the diagonal rib.
[0186] Specifically, the specific optimization steps involved in the vault modeling algorithm are: generating the basic vault profile based on span and slope parameters;
[0187] In terms of basic morphology, the nail structures are distributed along the curvature of the vault according to the thickness parameters of the nail side arches, and these can be regarded as the basic units that constitute the vault structure;
[0188] Starting from a specific position of the arch bottom or arch top, extract the transverse section, generate the two-dimensional profile of the side rib according to the side rib width and thickness parameters, stretch the two-dimensional profile along the side of the arch top to form a three-dimensional side rib structure, and ensure that it is smoothly connected with the arch top surface;
[0189] Using a parametric approach, we first determine the starting and ending points of the diagonal ribs based on the basic form, consider the optimal fit between the diagonal ribs and the curved surface of the vault, extract or generate diagonal surfaces from the basic nail structure, and define the contours of the diagonal ribs. We apply extrusion operations and control the width and thickness of the diagonal ribs to ensure that they are in harmony with the overall structure of the vault. At the intersections of each structure, we pay special attention to the design and connection details of the nodes to ensure that all structural elements can be seamlessly connected geometrically and physically.
[0190] The parameter decoupling technology is introduced to enable the width and thickness of the diagonal ribs and side ribs to be adjusted independently of other parameters, thus enhancing the flexibility and accuracy of the design.
[0191] Using adaptive components in parametric design software such as Grasshopper, changes in each parameter directly affect the corresponding geometric elements without disturbing the integrity of other structures.
[0192] The improved algorithm is controlled by only seven parameters: three variables including the span between piers, the slope and the thickness of the nail side arches; and four values: one pair for the side ribs and another pair for the diagonal ribs, involving their width and thickness.
[0193] Embodiment 2:
[0194] The difference between Example 2 of the present invention and Example 1 is that this embodiment provides a data acquisition and database construction system based on HBIM, including a memory, a processor, and a computer program stored in the memory and executable on the processor, and the processor executes the computer program to implement any one of the above-mentioned data acquisition and database construction methods based on HBIM.
[0195] The above shows and describes the basic principles, main features and advantages of the present invention. Those skilled in the art should understand that the present invention is not limited by the above embodiments. The above embodiments and descriptions are only preferred examples of the present invention and are not intended to limit the present invention. Without departing from the spirit and scope of the present invention, the present invention may have various changes and improvements, which fall within the scope of the present invention. The scope of protection of the present invention is defined by the attached claims and their equivalents.
Claims
1. A data collection and database construction method based on HBIM, characterized in that: include: S1. Construct a meta-model framework for traditional timber buildings; S2, obtaining the original point cloud data, and extracting the architectural logic of the wooden structure system of the traditional wooden building from the original point cloud data based on Alpha-Shapes; S3. Define meta-objects, meta-attributes, meta-relationships and meta-methods respectively, and use modeling software tools to establish a meta-model based on the logic of timber-framed buildings; S4, combining the meta-model and surveying data, using the Dynamo plug-in to automatically build models, where: The vault modeling algorithm is used to model the vault, and the vault modeling algorithm is optimized by introducing the parameters of the diagonal ribs and side ribs to complete the missing mortise and tenon joints. In S4, the specific steps of modeling are: S4.
1. Slice the point cloud data using the Trimble tool to obtain the first floor plan and section point cloud image data; S4.2, input the processed image data into the machine vision model to identify architectural features and metamodel categories; S4.
3. After determining the metamodel category, use Grasshopper’s adaptive component and parameter setting functions to quickly arrange and adjust component parameters to form a timber frame model; S4.
4. Apply voxelized point cloud segmentation technology to process the original point cloud, and generate a high-precision solid BIM model through point cloud slicing and segmentation modeling; In S4.4, the specific steps involved in generating a solid BIM model by slicing and segmenting the point cloud are: S4.
41. Find the extreme values of the three dimensions of the point cloud: and , calculate the surface area of the point cloud bounding box, and calculate the average surface density of the point cloud according to the number of point clouds; S4.42, slice the point cloud in the selected direction, the number of slices Set as input parameter and calculate the point set on the tangent plane within the next threshold range; S4.43, project the upper and lower point sets onto the tangent plane to find the intersection, and obtain the result through discrete point fitting A cut boundary contour; S4.44, adjacent boundary contours are lofted and merged to create segmented entities; S4.45, segmented entity combination, family category setting, material setting and other instance attribute value settings; S4.
5. Use Dynamo plug-in in Revit to realize automatic modeling based on feature parameters, combine metamodel and surveying data, use vault modeling algorithm to model the vault, and introduce parameters of diagonal ribs and side ribs on the basis of vault modeling algorithm to complete the missing mortise and tenon joints; In S4.5, the vault modeling algorithm is specifically as follows: ; In the formula, Indicates the height of the vault; Indicates the height of the arch bottom; represents the inverse tangent of the slope; It represents the horizontal distance from the arch foot to any point on the arch top; Indicates span; Indicates slope; Indicates the vertical position of the vault profile; The modeling parameters of diagonal ribs and side ribs are introduced to optimize the vault modeling algorithm. The side ribs are a series of cross sections along the vault profile. The width and thickness of each cross section are fixed, but the height varies with the vault profile. If the width of the side rib is ,thickness , then the side rib at any point Cross-sectional area Expressed as: ; If the angle between the diagonal rib and the arch bottom , the projected length of the diagonal rib on the arch profile is , the actual length of the diagonal rib The width of the oblique rib is , thickness is , then the diagonal rib at any point Cross-sectional area Expressed as: ; In the formula, It represents the slope of the vault profile at that point; Represents a small horizontal step when considering the change in the length of the diagonal rib.
2. The HBIM-based data acquisition and database construction method according to claim 1, characterized in that: In S1, the metamodel framework includes meta-objects, meta-attributes, meta-relationships and meta-methods.
3. The method for data acquisition and database construction based on HBIM according to claim 1, characterized in that: The specific steps involved in S2 are: S2.
1. Use a 3D laser scanner to comprehensively scan traditional wooden buildings, obtain original point cloud data, and perform denoising, registration, and splicing on the original point cloud data; At the same time, photos and videos of building details are collected through photo scanning to capture complex details and hidden parts, and then exported to obtain original point cloud data; S2.2, extracting exposed features from the original point cloud data based on Alpha-Shapes, and obtaining the coordinate information of the feature points; At the same time, the cosine similarity algorithm is used in combination with the traditional construction knowledge of wooden buildings to determine the hidden features to be supplemented.
4. The method for data acquisition and database construction based on HBIM according to claim 3 is characterized in that: In S2.2, the specific steps involved in the feature extraction are: The original point cloud data is straightened along the vertical direction, and the main eigenvectors are retained through orthogonal transformation to achieve the effect of dimensionality reduction; The straightened point cloud data are projected along the vertical, side and horizontal planes to obtain the front view, side view and top view of the bracket respectively; Based on the two-dimensional point cloud, Alpha-Shapes is used to extract the edges of a group of scattered point sets and obtain the contour lines of discrete points.
5. The method for data acquisition and database construction based on HBIM according to claim 3, characterized in that: In S2.2, the cosine similarity algorithm is specifically: Assume that the identified feature point set in the point cloud is , each feature point There is a corresponding eigenvector , using the cosine similarity metric, match the unknown points in the point cloud with the known component feature point set to find potential hidden connection points: ; In the formula, Represents the first feature points; Represents each feature point The corresponding eigenvector; Represents the feature vector No. Quantity; Represents the feature vector No. Quantity; Representing feature points and The Euclidean distance between Indicates the number of characteristic attributes of each feature point; Represents an index variable.
6. The method for data acquisition and database construction based on HBIM according to claim 1, characterized in that: The specific steps involved in S3 are: S3.
1. Define meta-objects, meta-attributes, meta-relations and meta-methods respectively; S3.
2. Construct the spatial topological framework of all components in the timber structure system according to the construction logic of the timber structure system; S3.
3. Based on the spatial topology framework and meta-method, a meta-model is established using modeling software tools.
7. A data acquisition and database construction system based on HBIM, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that: The processor executes a computer program to implement the HBIM-based data acquisition and database construction method as described in any one of claims 1 to 6.
Citation Information
Patent Citations
Topology-aware type onboard building roof point cloud modeling method
CN107025685A
Building information model automatic modeling method based on meta-model and construction logic
CN112001016A
Finite element parameterization algorithm based on Dynamo high-pile beam plate type wharf structure
CN116894357A
Deviation and deformation correction-considered completion BIM (Building Information Modeling) automatic generation method
CN116975956A
Automated generation of finite element meshes from laser scanned data
US20230080380A1
