A parametric modeling method for high-precision railway fastener systems
Through the parametric modeling method for the railway fastener system, the problems of difficult information interaction and low model creation efficiency are solved, a lightweight and high-precision BIM model is achieved, and the production efficiency and engineering quality of the railway fastener system are improved.
Patent Information
- Application Number
- CN202310600955.X
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2023-05-26
- Publication Date
- 2024-09-24
- Estimated Expiration
- 2043-05-26
AI Technical Summary
Railway fastener systems have difficulties in information exchange during the production and construction process, low model creation and update efficiency, and lack of full life cycle management, resulting in high error rates, low efficiency, and lack of high-precision parametric modeling solutions.
A parametric modeling method for railway fastener systems is adopted, including classifying and processing parts, establishing preliminary models, performing multi-source model reconstruction and unified coordinate system processing, designing model assembly algorithms and lightweight rendering solutions, through the Three.js open graphics engine Implement parameterized configuration and optimization of the model.
A lightweight, high-precision, parameterized BIM model of the railway fastener system was realized, which improved production efficiency and project quality, and solved the problems of information islands and low efficiency in traditional methods.
Smart Images

Figure CN116611149B
Abstract
Description
Technical Field
[0001] The invention belongs to the field of civil engineering, and in particular relates to a parametric modeling method for a high-precision railway fastener system. Background Art
[0002] my country has a huge number of operating railway mileage, and the railway network is densely concentrated, with an average of nearly 10,000 fasteners per kilometer. As a connecting device between the track and the railway sleeper, the railway fastener system mainly fixes the track to the railway sleeper, provides a firm and flexible connection between the track and the supporting structure, and plays a role in fixing the geometric shape of the rail in the track structure, which is the basis for the smooth operation of the railway structure. The railway fastener system has a complex structure, various models, and flexible assembly. At the same time, the information transmission and work coordination efficiency of the traditional production management method are low. There are always problems of high error rate and low efficiency in the production and construction process of the railway fastener system.
[0003] Establishing a BIM model for railway fastener systems is an effective way to solve the above problems. The model uses BIM technology to perform three-dimensional digital design and management of various components of railway track structures. At present, BIM technology is still in the research and exploration stage at home and abroad, and has not yet formed a mature application solution. The problems of existing technologies are mainly in the following aspects: there are difficulties in information interaction and model conversion between different platforms and software; the lack of a professional track component library leads to low efficiency in model creation and updating, which makes it difficult to meet the high-precision requirements of the track; the lack of collaborative design capabilities with related professions and stages leads to information islands, frequent changes, and affects the quality and progress of the project; the lack of management and application of the entire life cycle of the track project leads to the value of the BIM model not being fully utilized. At the same time, the railway fastener system has the characteristics of many special-shaped structures, high precision requirements, large multi-body scale, and high parameterization requirements. How to establish a lightweight, high-precision, parameterized railway fastener system BIM model has always been a difficult problem in the field of railway BIM. Summary of the invention
[0004] The object of the present invention is to provide a parametric modeling method for a high-precision railway fastener system with improved accuracy, parameterizability and lightweight.
[0005] The parametric modeling method for a high-precision railway fastener system provided by the present invention comprises the following steps:
[0006] S1. Classify and process the components of the railway fastener system;
[0007] S2. Using the components processed in step S1, a preliminary model of the railway fastener system is established;
[0008] S3. Using the preliminary model established in step S2, reconstruct the multi-source model, and design a lightweight model fusion algorithm to unify the coordinate system for the reconstructed multi-source model;
[0009] S4. Using the model processed in step S3, design a model assembly algorithm to complete the parametric configuration processing of the model;
[0010] S5. Using the model processed in step S4, complete the spatial distribution of the railway fastener system;
[0011] S6. The spatially distributed model is completed in step S5, and the model is optimized through a lightweight rendering solution to obtain the final railway fastener system model.
[0012] The classification process of the components of the railway fastener system described in step S1 specifically includes:
[0013] Different types of railway fasteners are composed of several parts, which are divided into three types according to the following definitions:
[0014] Parts whose outer surface of the model will not change under any circumstances or parts that have no impact on the overall function are defined as "immutable parts";
[0015] Irregularly shaped parts that can use different models according to different situations and cause the outer surface of the model to change are defined as "complex variable parts"; complex variable parts have multiple models, each model corresponds to a specific outer surface shape;
[0016] A regular shape part that can use different models according to different situations and causes the outer surface of the model to change is defined as a "regular variable part"; the outer surface shape of the regular variable part can be determined by a relevant mathematical formula;
[0017] Step S2 uses the component parts processed in step S1 to establish a preliminary model of the railway fastener system, which specifically includes:
[0018] Use any modeling software to build preliminary models for "immutable parts" and "complex variable parts". For "immutable parts", preliminary modeling is done for one type of parts; for "complex variable parts", preliminary modeling is done for a series of types of parts;
[0019] Use the Three.js open graphics engine to build a preliminary model for "regular variable parts";
[0020] After preliminary modeling using the above method, the three-dimensional models of the Graphics Language Transmission Format (GLTF) data structure of different types of parts are obtained and exported;
[0021] Step S3 uses the preliminary model established in step S2 to reconstruct the multi-source model, and designs a lightweight model fusion algorithm to perform unified coordinate system processing on the reconstructed multi-source model, specifically including:
[0022] (1) Reconstruction processing part:
[0023] Using the preliminary model established in step S2, based on the GLTF lightweight transmission format obtained by exporting, the mesh vertex data in the multi-source model is extracted, and the model is reconstructed in Three.js;
[0024] (2) Unified coordinate system processing part:
[0025] Design a lightweight model fusion algorithm to unify the coordinate system of the multi-source model obtained after step (1) reconstruction, specifically including:
[0026] (2-1) Preset the three-axis length of the model:
[0027] By calling the computeBoundingBox(.) method in the buffer geometry, a THREE.Box3 object is calculated, including two attributes, min and max, which represent the minimum and maximum coordinates of the model respectively; the three-axis length of the bounding box of the model is obtained by calculating the difference between min and max;
[0028] (2-2) Calculate the simplest rotation of the model:
[0029] Define the initial pose of the model imported into WebGL as IP, and the standard pose of the model as SP. Use the following formula to express IP and SP:
[0030] IP=(X i ,Y i ,Z i )
[0031] SP=(X p ,Y p ,Z p )
[0032] Among them, X i is the x-axis length of the initial posture bounding box, Y i is the y-axis length of the initial posture bounding box, Z iis the z-axis length of the initial posture bounding box, X p is the x-axis length of the standard posture bounding box, Y p is the y-axis length of the standard posture bounding box, Z p is the z-axis length of the standard posture bounding box;
[0033] Simplified assignment based on comparison of the lengths of the three axes of the bounding box: i , X p Assign a value of -1 to Y i , Y p Assign a value of 0 to Z i , Z p Assign a value of 1, where -1 represents the smallest axis, 1 represents the largest axis, and 0 represents the middle axis. If any two axes are equal, they are both assigned a value of 0.
[0034] The simplest rotation is calculated using the following formula:
[0035]
[0036] Where R(·) represents the rotation matrix, r 1 represents a 90° clockwise rotation around the x-axis, r 2 represents a 90° clockwise rotation around the y-axis, r 3 Indicates a 90° clockwise rotation around the z-axis;
[0037] (2-3) Calculate the scaling relationship of the three axes of the model and then unify the size of the model;
[0038] Step S4 adopts the model processed in step S3, designs a model assembly algorithm to complete the parameterized configuration processing of the model, and specifically includes:
[0039] Step S3: The model obtained after reconstruction in Three.js is a mesh model, which loses its parametric nature. The model assembly algorithm is designed to complete the parametric configuration of the model, which specifically includes:
[0040] 1) Use feature assignment to describe the surface features of each part model. Feature assignment includes: feature points Featurepoints FP and feature values Feature number FN;
[0041] The feature point FP is a six-dimensional vector; the eigenvalue FN is a [n×7] matrix, where the value of n is the number of other models that contact the main model; by concatenating the FP and FN matrices, a [(n+1)×7] feature matrix Feature matrix FM is obtained, and the features of the model are described by FM;
[0042]
[0043] Among them, FM i represents the feature matrix of part i; R ij is the index indicating that part i controls part j, where j = 1, 2, ..., n; x p is the x coordinate of the feature point of part i; ij is the x-coordinate of the characteristic value of part i controlling part j; y p is the y coordinate of the feature point of part i; ij is the y coordinate of the characteristic value of part i controlling part j; z p is the z coordinate of the feature point of part i; ij is the z coordinate of the characteristic value of part i controlling part j; is the x direction of the characteristic point of part i; It is the x direction in which part i controls the eigenvalue of part j; is the y direction of the characteristic point of part i; It is the y direction of the characteristic value of part j controlled by part i; is the z direction of the characteristic point of part i; It is the z direction in which part i controls the characteristic value of part j;
[0044] 2) Constraint matrix:
[0045] Location constraints (LC) are three-dimensional coordinates, indicating the location of the model origin; attitude constraints (AC) are three-dimensional vectors, indicating the deflection angle of the model around three axes; the location constraints and attitude constraints are concatenated to obtain the constraint matrix (CM), and the calculation process is expressed by the following formula:
[0046]
[0047] Among them, CM i represents the constraint matrix of part i, x i is the x coordinate of the origin of part i in the world coordinate system, y i is the y coordinate of the origin of part i, z i is the z coordinate of the origin of part i, θ x is the deflection angle of part i around the x-axis, θ y is the deflection angle of part i around the y-axis, θ z is the deflection angle of part i around the z axis;
[0048] Assemble the model by applying correct positioning constraints and posture constraints to the part model;
[0049] 3) Model assembly algorithm based on feature matrix and constraint matrix:
[0050] The model adopts a bottom-up hierarchical constraint relationship, and defines the hierarchical constraint relationship as follows:
[0051] If model B is assembled before model A, and model B has a constraint relationship with model A, model B is called the superior model of model A, and model A is the subordinate model of model B. The constraint relationship is only transferred from model B to model A, and not in the reverse direction.
[0052] The contact relationship between models is simplified into surface full constraint, line partial constraint, and point positioning constraint, including:
[0053] ① Full surface constraint: refers to the full constraint between the surfaces of the models. The upper model can fully constrain the positioning and posture of the lower model.
[0054] The transfer formula of the complete surface constraint is as follows:
[0055] Define model B as the upper level surface contact model of model A;
[0056] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0057] Among them, LC A is the positioning constraint of model A or the three-dimensional coordinate of the origin of model A, LC B is the positioning constraint of model B or the 3D coordinate of the origin of model B, FN BA is the eigenvalue of model B controlling model A, x B is the x coordinate of the origin of model B, x BA is the x-coordinate of the eigenvalue of model B controlling model A, y B is the y coordinate of the origin of model B, y BA is the y coordinate of the eigenvalue of model B controlling model A, z B is the z coordinate of the origin of model B, z BA is the z coordinate of the eigenvalue of model A controlled by model B;
[0058]
[0059]
[0060]
[0061] Among them, θ Ax is the deflection angle of model A around the x-axis, θ Ay is the deflection angle of model A around the y-axis, θ Az is the deflection angle of model A around the z-axis, arccos(·) represents the inverse cosine, is the x direction of the feature point of model A, is the y direction of the feature point of model A, is the z direction of the feature point of model A, is the x direction of the feature point of model B, is the y direction of the feature point of model B, is the z direction of the feature point of model B, · represents the dot product, and |·| represents the modulus length;
[0062] The calculation result of the transfer formula indicates that the B model has fully constrained the A model. The surface of the A model needs to be completely aligned with the surface of the B model in terms of position and angle. The B model, as the upper model, determines the assembly of the lower model A.
[0063] ② Linear partial constraint: refers to the situation where there is only a linear contact relationship between the models. The contact relationship causes the upper model to only constrain the lower model, thus losing one-dimensional posture constraint.
[0064] The transfer formula of the line part constraint is as follows:
[0065] Define model B as the upper level line contact model of model A;
[0066] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0067]
[0068]
[0069] The calculation result of the transfer formula shows that the B model only has positioning constraints and partial angle constraints on the A model. The surface of the A model only needs to have a line that is completely aligned with the surface of the B model. The line partial constraint loses one-dimensional angle constraint compared to the surface full constraint. The A model is free for the rotation angle of the fully aligned line.
[0070] ③Point positioning constraint: refers to the existence of only a single-point contact relationship between models. The single-point contact relationship causes the upper-level model to only have positioning constraints on the lower-level model;
[0071] The transfer formula of point positioning constraint is as follows:
[0072] Define model B as the upper level point contact model of model A;
[0073] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0074] The calculation result of the transfer formula indicates that the B model only has a positioning constraint on the A model. The surface of the A model only needs to contact the surface of the B model at one point. The A model is free to rotate about any axis of the contacting point.
[0075] ④ Determination of constraint matrix:
[0076] The assembly of the model is completely determined by a single constraint matrix CM. If an over-constrained or over-static matrix is encountered, the over-constrained matrix is integrated into a single constraint matrix using the linear averaging method, thereby realizing the parametric assembly of the model.
[0077] Step S5 uses the model processed in step S4 to complete the spatial distribution of the railway fastener system, which specifically includes:
[0078] A1. Based on the second pair of fastener centers or world coordinates of the track plate, use the following formula to calculate the first pair of fastener center coordinates:
[0079] x 1 =x-24.8×sin(v)×cos(-p)+s 3 ×sin(-p)
[0080] y 1 =y+24.8×sin(v)×sin(-p)+s 3 ×cos(-p)
[0081] z 1 =z-24.8×cos(v)
[0082] Among them, (x, y, z) is the world coordinate of the track plate, v is the vertical rotation angle of the track plate, p is the horizontal rotation angle of the track plate, α is the height adjustment angle of the track plate, and s 3 is the horizontal spacing between the centers of adjacent fasteners. The distance between the bottom of the fastener and the top of the rail is 24.8 cm. (x 1 ,y 1 ,z 1) are the center coordinates of the first pair of fasteners;
[0083] A2. The positions of the fasteners on the track plate are distributed according to the set spacing. Based on the center coordinates of the paired fasteners, the following formula is used to calculate the spatial coordinates of all the fasteners on the track plate:
[0084]
[0085] y i =y 1 ±b 1 ×sin(-p)-i×s 3 ×cos(-p)
[0086] z i =z 1 ±b 1 ×sin(v)
[0087] Among them, (x i ,y i ,z i ) represents the coordinates of each pair of rail supports in the world coordinate system, i is the serial number of each pair of rail supports, b 1 It is the distance between the center of the fastener on the track plate and the center line of the track plate;
[0088] A3. The three-axis deflection angles of the track plate correspond to the three-axis deflection angles of the fasteners on the plate. Combined with the spatial coordinates of the fasteners, the spatial distribution matrix of the railway fasteners is obtained, which is expressed by the following formula:
[0089] θ x =v
[0090] θ y =α
[0091] θ z =p
[0092]
[0093] Among them, DM t represents the three-dimensional coordinates of fastener t, x t is the x coordinate of the three-dimensional coordinate of fastener number t, y t is the y coordinate of the three-dimensional coordinates of fastener t, z t is the z coordinate of the three-dimensional coordinates of fastener t;
[0094] The step S6 uses the model after the spatial distribution in step S5 to optimize the model through a lightweight rendering solution to obtain the final railway fastener system model, which specifically includes:
[0095] B1. Geometric object instantiation algorithm:
[0096] When implementing the distribution of the fastener model in the space along the railway, the part model is instantiated, and the location of the part model is determined according to the global coordinates transmitted by the group and the local coordinates provided by the assembly algorithm. The specific steps are as follows:
[0097] b1-1. Initialize the fastener model:
[0098] Get the fastener models included in the railway section in the scene, and establish the constraint matrix CM of each part based on the standard fastener model. The standard fastener model is a model without parameter changes. The established constraint matrix is called the standard constraint matrix, which is expressed by the following formula:
[0099]
[0100] Where i represents the number of each part in the fastener;
[0101] b1-2. Initialize group:
[0102] The spatial lines contained in the railway segment in the scene are obtained, and the coordinates and deflection angles of each fastener are obtained according to the spatial lines, and recorded in the form of a matrix. The recorded matrix is called the spatial distribution matrix (Distribution matrix, DM), which is expressed by the following formula:
[0103]
[0104] Where t represents the number of each group in the fastener;
[0105] b1-3. Calculation of world coordinates of parts:
[0106] The world coordinates of each part are calculated by matrix fusion, and the coordinates and deflection angles of CM and DM of each part are superimposed to calculate the world coordinates (World Positioning, WP) of the part, which are expressed by the following formula:
[0107] WP ti =DM t +CM i
[0108] Among them, WP ti represents the world coordinates of part i in fastener system t;
[0109] By calculating the world coordinates of each part, the part model is instantiated;
[0110] b1-4. Parametric adjustment of fasteners:
[0111] The parameter requirements of the fasteners in special sections are obtained through calculations, including: widened track gauges in curved sections, gradual height adjustments, or different bolt lengths at track joints; the fastener parameterization is reflected in the FM feature matrix of the part and then in the overall fastener model;
[0112] b1-5. Implement the instantiation process for the preliminary model:
[0113] The instantiated object of the immutable model can adjust its posture according to the changed constraint matrix of itself; the parameterization process of the complex variable model is the replacement between models of different specifications. The instantiated model before the parameter change will delete the constraint matrix information, and the instantiated model after the parameter change will add the constraint matrix information; the regular variable model can use the model copy to create a new instantiated object to achieve parameter adjustment;
[0114] B2. Railway LOD classification algorithm:
[0115] The LOD grading algorithms adapted to railway scenarios include:
[0116] b2-1. Determine the position of the track plate where the camera model is located, and define the track plate as track plate No. X;
[0117] b2-2. The track plate [X-5, X+5] adopts the original precision model to improve the performance of the near model in the computer window; [X-50, X-5]∪[X+5, X+50] adopts the level II precision model, and the remaining track plates adopt the level III precision model to appropriately reduce the precision of the far model in the computer window and the computer load, and improve the smoothness of computer operation;
[0118] b2-3. When the cumulative moving distance of the camera position |ΔX|≥3, the hierarchical LOD model is reset to ensure that the original precision model is always maintained near the camera position;
[0119] The parametric modeling method for a high-precision railway fastener system provided by the present invention realizes the establishment of a preliminary model based on the Three.js open graphics engine, is technically independent and controllable, breaks through various limitations of traditional BIM platforms, and designs a lightweight model fusion algorithm and a model assembly algorithm, performs training processing on the preliminary model, and further optimizes the trained model through a lightweight rendering scheme to obtain a final railway fastener system model. The method of the present invention takes into account the lightweight, refinement and parameterization of the railway fastener system model, is suitable for parametric modeling of a high-precision railway fastener system, has certain practicality, and can effectively realize lightweight deployment on the web page on the basis of ensuring high precision and parameterization. BRIEF DESCRIPTION OF THE DRAWINGS
[0120] Figure 1The figure is a schematic diagram of the method flow of the present invention.
[0121] Figure 2 Schematic diagram of the parametric modeling process of the rail pad in the method of the present invention.
[0122] Figure 3 Schematic diagram of the model fusion algorithm of the method of the present invention.
[0123] Figure 4 It is a schematic diagram of the specific constraint transfer process of the fastener model in the method of the present invention.
[0124] Figure 5 Schematic diagram of a model of a single fastener in the method of the present invention.
[0125] Figure 6 Schematic diagram of a railway fastener system in the method of the present invention. DETAILED DESCRIPTION
[0126] like Figure 1 The method flow diagram of the method of the present invention is shown as follows: The parametric modeling method for a high-precision railway fastener system provided by the present invention comprises the following steps:
[0127] S1. Classify and process the components of the railway fastener system; specifically include:
[0128] Railway fastener types include spring clip IV fasteners, spring clip V fasteners, WJ-7 fasteners, and WJ-8 fasteners. Different types of railway fasteners are composed of several parts. The parts are divided into three types according to the following definitions:
[0129] Parts whose outer surface of the model will not change under any circumstances or parts that have no effect on the overall function are defined as "immutable parts"; such as the iron pad in the WJ-8 fastener model;
[0130] Irregular parts that can use different models according to different situations and cause the outer surface of the model to change are defined as "complex variable parts". Complex variable parts have multiple models, each model corresponds to a specific outer surface shape; such as the gauge baffle in the WJ-8 fastener model;
[0131] The regular parts with different shapes that can be used in different situations and cause the outer surface of the model to change are defined as "regular variable parts". The outer surface shape of regular variable parts can be determined by relevant mathematical formulas; such as the rail pad in the WJ-8 fastener model;
[0132] The method of the present invention takes the WJ-8 type fastener as an example. The WJ-8 type fastener is composed of eleven parts: flat washers, insulating gauge blocks, iron pads, embedded casings, spiral spikes, spring bars, elastic pads under iron pads, gauge baffles, pads under rails, fine-tuning pads under rails, and height-adjusting pads under iron pads. The classification of parts obtained according to the above definition is shown in the following table:
[0133] Table 1 Parts classification
[0134]
[0135] S2. Using the components processed in step S1, a preliminary model of the railway fastener system is established; specifically comprising:
[0136] Use any modeling software to build preliminary models for "immutable parts" and "complex variable parts". For "immutable parts", preliminary modeling is done for one type of parts; for "complex variable parts", preliminary modeling is done for a series of types of parts;
[0137] Any modeling software includes Revit, Bently, and Solidworks. The method of the present invention takes Revit modeling software as an example. After the three-dimensional models of the parts are respectively established based on the standard part drawings, the three-dimensional models of the GLTF data structure are obtained by exporting using BimAngle Forge Engine ForRevit.
[0138] Use the Three.js open graphics engine to build a preliminary model for "regular variable parts";
[0139] The method of the present invention takes the rail pad as an example. Figure 2 As shown, the shape object in Three.js or a path with optional holes is used to define any 2D shape plane, and the geometric section of the rail pad is established through the Moveto() and absarc() operators. The positions of the feature points are located and connected according to the following formulas; the shape section is stretched into a geometric body through the Extrude Geometry() operator to realize the parametric modeling of the rail pad;
[0140] A(0,0)
[0141] B(87.5,0)
[0142] C(87.5,20)
[0143] D(80.5,20)
[0144] E(80.5,20-KJ.GXDB.z1)
[0145] F(0,20-KJ.GXDB.z1)
[0146] Among them, KJ.GXDB.z1 is the variable parameter of the rail pad, which is also the thickness of the rail pad. It can independently realize the parametric control of the thickness of the rail pad model.
[0147] After preliminary modeling using the above method, the three-dimensional models of the Graphics Language Transmission Format (GLTF) data structure of different types of parts are obtained and exported;
[0148] S3. Using the preliminary model established in step S2, reconstruct the multi-source model, and design a lightweight model fusion algorithm to unify the coordinate system for the reconstructed multi-source model; specifically including:
[0149] (1) Reconstruction processing part:
[0150] Using the preliminary model established in step S2, based on the GLTF lightweight transmission format obtained by exporting, the mesh vertex data in the multi-source model is extracted, and the model is reconstructed in Three.js;
[0151] (2) Unified coordinate system processing part:
[0152] Design a lightweight model fusion algorithm to unify the coordinate system of the multi-source model obtained after step (1), such as Figure 3 As shown, specifically including:
[0153] (2-1) Preset the three-axis length of the model:
[0154] By calling the computeBoundingBox(.) method in the buffer geometry, a THREE.Box3 object is calculated, including two attributes, min and max, which represent the minimum and maximum coordinates of the model respectively; the three-axis length of the bounding box of the model is obtained by calculating the difference between min and max;
[0155] (2-2) Calculate the simplest rotation of the model:
[0156] Define the initial pose of the model imported into WebGL as IP, and the standard pose of the model as SP. Use the following formula to express IP and SP:
[0157] IP=(X i ,Y i , Z i )
[0158] SP=(Xp ,Y p ,Z p )
[0159] Among them, X i is the x-axis length of the initial posture bounding box, Y i is the y-axis length of the initial posture bounding box, Z i is the z-axis length of the initial posture bounding box, X p is the x-axis length of the standard posture bounding box, Y p is the y-axis length of the standard posture bounding box, Z p is the z-axis length of the standard posture bounding box;
[0160] Simplified assignment based on comparison of the lengths of the three axes of the bounding box: i , X p Assign a value of -1 to Y i , Y p Assign a value of 0 to Z i , Z p Assign a value of 1, where -1 represents the smallest axis, 1 represents the largest axis, and 0 represents the middle axis. If any two axes are equal, they are both assigned a value of 0.
[0161] The simplest rotation is calculated using the following formula:
[0162]
[0163] Where R(·) represents the rotation matrix, r 1 represents a 90° clockwise rotation around the x-axis, r 2 represents a 90° clockwise rotation around the y-axis, r 3 Indicates a 90° clockwise rotation around the z-axis;
[0164] (2-3) Calculate the scaling relationship of the three axes of the model and then unify the size of the model;
[0165] S4. Using the model processed in step S3, designing a model assembly algorithm to complete the parametric configuration processing of the model; specifically including:
[0166] Step S3: The model obtained after reconstruction in Three.js is a mesh model, which loses its parametric nature. The model assembly algorithm is designed to complete the parametric configuration of the model, which specifically includes:
[0167] 1) Use feature assignment to describe the surface features of each part model. Feature assignment includes: feature points (FP) and feature values (FN);
[0168] The feature point FP is a six-dimensional vector, which is defined as the position of the representative point of the contact surface between the base model and the lower model in contact with the model relative to the model, and the normal vector of the surface where the representative point is located. It logically replaces the geometric center of the model and is called the origin position of the model movement.
[0169] The eigenvalue FN is a [n×7] matrix, which is defined as the relative coordinates of the representative points of the contact surfaces of other models in contact with the body model relative to the feature points or origin of the body model, and the normal vector of the surface where the feature points or origin of the body model are located. The value of n is the number of other models in contact with the body model, which logically represents the surface characteristics of the body model in three-dimensional space.
[0170] The eigenvalue FN also represents the parameterization of the part model itself; the regular variable model obtained by Three.js function modeling directly defines the variable parameters of the part model; the complex variable model obtained by external import, different eigenvalues represent different models of the same part model;
[0171] By concatenating the FP and FN matrices, we get a [(n+1)×7] feature matrix (FM), which describes the features of the model.
[0172]
[0173] Among them, FM i represents the feature matrix of part i; R ij is the index indicating that part i controls part j, where j = 1, 2, ..., n; x p is the x coordinate of the feature point of part i; ij is the x-coordinate of the characteristic value of part i controlling part j; y p is the y coordinate of the feature point of part i; ij is the y coordinate of the characteristic value of part i controlling part j; z p is the z coordinate of the feature point of part i; ij is the z coordinate of the characteristic value of part i controlling part j; is the x direction of the characteristic point of part i; It is the x direction in which part i controls the eigenvalue of part j; is the y direction of the characteristic point of part i; It is the y direction of the characteristic value of part j controlled by part i; is the z direction of the characteristic point of part i; It is the z direction in which part i controls the characteristic value of part j;
[0174] 2) Constraint matrix:
[0175] Location constraints (LC) are three-dimensional coordinates, indicating the location of the model origin; attitude constraints (AC) are three-dimensional vectors, indicating the deflection angle of the model around three axes; the location constraints and attitude constraints are concatenated to obtain the constraint matrix (CM), and the calculation process is expressed by the following formula:
[0176]
[0177] Among them, CM i represents the constraint matrix of part i, x i is the x coordinate of the origin of part i in the world coordinate system, y i is the y coordinate of the origin of part i, z i is the z coordinate of the origin of part i, θ x is the deflection angle of part i around the x-axis, θ y is the deflection angle of part i around the y-axis, θ z is the deflection angle of part i around the z axis;
[0178] Assemble the model by applying correct positioning constraints and posture constraints to the part model;
[0179] 3) Model assembly algorithm based on feature matrix and constraint matrix:
[0180] The constraint matrix is obtained by calculating the characteristic matrix of the model, and then the assembly processing of the model is realized; the positioning constraint and posture constraint of the model are calculated by using the bottom-up, one-way chain logic. The specific constraint transmission of the fastener model is as follows: Figure 4 As shown in the figure, the constraint relationship between models is transmitted to each part through the ground or base surface, and the contact relationship between models determines the way of constraint transmission.
[0181] The model adopts a bottom-up hierarchical constraint relationship, and defines the hierarchical constraint relationship as follows:
[0182] If model B is assembled before model A, and model B has a constraint relationship with model A, model B is called the superior model of model A, and model A is the subordinate model of model B. The constraint relationship is only transferred from model B to model A, and not in the reverse direction.
[0183] The contact relationship between models is simplified into surface full constraint, line partial constraint, and point positioning constraint, including:
[0184] ① Full surface constraint: refers to the full constraint between the surfaces of the models. The upper model can fully constrain the positioning and posture of the lower model.
[0185] The transfer formula of the complete surface constraint is as follows:
[0186] Define model B as the upper level surface contact model of model A;
[0187] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0188] Among them, LC A is the positioning constraint of model A or the three-dimensional coordinate of the origin of model A, LC B is the positioning constraint of model B or the 3D coordinate of the origin of model B, FN BA is the eigenvalue of model B controlling model A, x B is the x coordinate of the origin of model B, x BA is the x-coordinate of the eigenvalue of model B controlling model A, y B is the y coordinate of the origin of model B, y BA is the y coordinate of the eigenvalue of model B controlling model A, z B is the z coordinate of the origin of model B, z BA is the z coordinate of the eigenvalue of model A controlled by model B;
[0189]
[0190]
[0191]
[0192] Among them, θ Ax is the deflection angle of model A around the x-axis, θ Ay is the deflection angle of model A around the y-axis, θ Az is the deflection angle of model A around the z-axis, arccos(·) represents the inverse cosine, is the x direction of the feature point of model A, is the y direction of the feature point of model A, is the z direction of the feature point of model A, is the x direction of the feature point of model B, is the y direction of the feature point of model B, is the z direction of the feature point of model B, · represents the dot product, and |·| represents the modulus length;
[0193] The calculation result of the transfer formula indicates that the B model has fully constrained the A model. The surface of the A model needs to be completely aligned with the surface of the B model in terms of position and angle. The B model, as the upper model, determines the assembly of the lower model A.
[0194] ② Linear partial constraint: refers to the situation where there is only a linear contact relationship between the models. The contact relationship causes the upper model to only constrain the lower model, thus losing one-dimensional posture constraint.
[0195] The transfer formula of the line part constraint is as follows:
[0196] Define model B as the upper level line contact model of model A;
[0197] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0198]
[0199]
[0200] The calculation result of the transfer formula shows that the B model only has positioning constraints and partial angle constraints on the A model. The surface of the A model only needs to have a line that is completely aligned with the surface of the B model. The line partial constraint loses one-dimensional angle constraint compared to the surface full constraint. The A model is free for the rotation angle of the fully aligned line.
[0201] ③Point positioning constraint: refers to the existence of only a single-point contact relationship between models. The single-point contact relationship causes the upper-level model to only have positioning constraints on the lower-level model;
[0202] The transfer formula of point positioning constraint is as follows:
[0203] Define model B as the upper level point contact model of model A;
[0204] LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ]
[0205] The calculation result of the transfer formula indicates that the B model only has a positioning constraint on the A model. The surface of the A model only needs to contact the surface of the B model at one point. The A model is free to rotate about any axis of the contacting point.
[0206] ④ Determination of constraint matrix:
[0207] The assembly of the model is completely determined by a single constraint matrix CM, but the model will be affected by multiple constraints from multiple models, and thus there are multiple constraint matrices, which complement each other. If an over-constrained or over-static situation is encountered, the linear averaging method is used to integrate the over-constrained matrix into a single constraint matrix, thereby realizing the parametric assembly of the model.
[0208] S5. Using the model processed in step S4, complete the spatial distribution of the railway fastener system; specifically including:
[0209] A1. Based on the second pair of fastener centers or world coordinates of the track plate, use the following formula to calculate the first pair of fastener center coordinates:
[0210] x 1 =x-24.8×sin(v)×cos(-p)+s 3 ×sin(-p)
[0211] y 1 =y+24.8×sin(v)×sin(-p)+s 3 ×cos(-p)
[0212] z 1 =z-24.8×cos(v)
[0213] Among them, (x, y, z) is the world coordinate of the track plate, v is the vertical rotation angle of the track plate, p is the horizontal rotation angle of the track plate, α is the height adjustment angle of the track plate, and s 3 is the horizontal spacing between the centers of adjacent fasteners. The distance between the bottom of the fastener and the top of the rail is 24.8 cm. (x 1 ,y 1 ,z 1 ) are the center coordinates of the first pair of fasteners;
[0214] A2. The positions of the fasteners on the track plate are distributed according to the set spacing. Based on the center coordinates of the paired fasteners, the following formula is used to calculate the spatial coordinates of all the fasteners on the track plate:
[0215]
[0216] y i =y 1 ±b 1 ×sin(-p)-i×s3 ×cos(-p)
[0217] z i =z 1 ±b 1 ×sin(v)
[0218] Among them, (x i ,y i ,z i ) represents the coordinates of each pair of rail supports in the world coordinate system, i is the serial number of each pair of rail supports, b 1 It is the distance between the center of the fastener on the track plate and the center line of the track plate;
[0219] The standard track plate model used in the method of the present invention is P5600, which has 9 pairs of rail bearing platforms, and the value range of i is i=0, 1, ..., 8;
[0220] A3. The three-axis deflection angles of the track plate correspond to the three-axis deflection angles of the fasteners on the plate. Combined with the spatial coordinates of the fasteners, the spatial distribution matrix of the railway fasteners is obtained, which is expressed by the following formula:
[0221] θ x =v
[0222] θ y =α
[0223] θ z =p
[0224]
[0225] Among them, DM t represents the three-dimensional coordinates of fastener t, x t is the x coordinate of the three-dimensional coordinate of fastener number t, y t is the y coordinate of the three-dimensional coordinates of fastener t, z t is the z coordinate of the three-dimensional coordinates of fastener t;
[0226] S6. The spatially distributed model is completed by using step S5, and the model is optimized by a lightweight rendering solution to obtain a final railway fastener system model; specifically, the following steps are included:
[0227] B1. Geometric object instantiation algorithm:
[0228] When implementing the distribution of the fastener model in the space along the railway, the part model is instantiated, and the location of the part model is determined according to the global coordinates transmitted by the group and the local coordinates provided by the assembly algorithm. The specific steps are as follows:
[0229] b1-1. Initialize the fastener model:
[0230] Get the fastener models included in the railway section in the scene, and establish the constraint matrix CM of each part based on the standard fastener model. The standard fastener model is a model without parameter changes. The established constraint matrix is called the standard constraint matrix, which is expressed by the following formula:
[0231]
[0232] Where i represents the number of each part in the fastener;
[0233] b1-2. Initialize group:
[0234] The spatial lines contained in the railway segment in the scene are obtained, and the coordinates and deflection angles of each fastener are obtained according to the spatial lines, and recorded in the form of a matrix. The recorded matrix is called the spatial distribution matrix (Distribution matrix, DM), which is expressed by the following formula:
[0235]
[0236] Where t represents the number of each group in the fastener;
[0237] b1-3. Calculation of world coordinates of parts:
[0238] The world coordinates of each part are calculated by matrix fusion, and the coordinates and deflection angles of CM and DM of each part are superimposed to calculate the world coordinates (World Positioning, WP) of the part, which are expressed by the following formula:
[0239] WP ti =DM t +CM i
[0240] Among them, WP ti represents the world coordinates of part i in fastener system t;
[0241] By calculating the world coordinates of each part, the part model is instantiated;
[0242] b1-4. Parametric adjustment of fasteners:
[0243] The parameter requirements of the fasteners in special sections are obtained through calculations, including: widened track gauges in curved sections, gradual height adjustments, or different bolt lengths at track joints; the fastener parameterization is reflected in the FM feature matrix of the part and then in the overall fastener model;
[0244] b1-5. Implement the instantiation process for the preliminary model:
[0245] The instantiated object of the immutable model can adjust its posture according to the changed constraint matrix of itself; the parameterization process of the complex variable model is the replacement between models of different specifications. The instantiated model before the parameter change will delete the constraint matrix information, and the instantiated model after the parameter change will add the constraint matrix information; the regular variable model can use the model copy to create a new instantiated object to achieve parameter adjustment;
[0246] B2. Railway LOD classification algorithm:
[0247] The LOD grading algorithms adapted to railway scenarios include:
[0248] b2-1. Determine the position of the track plate where the camera model is located, and define the track plate as track plate No. X;
[0249] b2-2. The track plate [X-5, X+5] adopts the original precision model to improve the performance of the near model in the computer window; [X-50, X-5]∪[X+5, X+50] adopts the level II precision model, and the remaining track plates adopt the level III precision model to appropriately reduce the precision of the far model in the computer window and the computer load, and improve the smoothness of computer operation;
[0250] b2-3. When the cumulative moving distance of the camera position |ΔX|≥3, the hierarchical LOD model is reset to ensure that the original precision model is always maintained near the camera position;
[0251] like Figure 5 FIG. 1 is a schematic diagram of a model of a single fastener in the method of the present invention. Through the above steps S1-S3, a multi-source high-precision part model in a unified coordinate system is generated in Three.js, and feature-based model automatic assembly is realized; Figure 6 Shown is a schematic diagram of a railway fastening system in the method of the present invention.
Claims
1. A parametric modeling method for a high-precision railway fastener system, comprising the following steps: S1. Classify and process the components of the railway fastener system; S2. Using the components processed in step S1, a preliminary model of the railway fastener system is established; S3. Using the preliminary model established in step S2, reconstruct the multi-source model, and design a lightweight model fusion algorithm to unify the coordinate system for the reconstructed multi-source model; specifically including: (1) Reconstruction processing part: Using the preliminary model established in step S2, based on the GLTF lightweight transmission format obtained by exporting, the mesh vertex data in the multi-source model is extracted, and the model is reconstructed in Three.js; (2) Unified coordinate system processing part: Design a lightweight model fusion algorithm to unify the coordinate system of the multi-source model obtained after step (1) reconstruction, specifically including: (2-1) Preset the three-axis length of the model: By calling the computeBoundingBox(.) method in the buffer geometry, a THREE.Box3 object is calculated, including two attributes, min and max, which represent the minimum and maximum coordinates of the model respectively; the three-axis length of the bounding box of the model is obtained by calculating the difference between min and max; (2-2) Calculate the simplest rotation of the model: Define the initial posture of the model imported into WebGL as IP, and the standard posture of the model as SP. Use the following formula to express IP and SP: IP=(X i ,Y i ,Z i ) SP=(X p ,Y p ,Z p ) Among them, X i is the x-axis length of the initial posture bounding box, Y i is the y-axis length of the initial posture bounding box, Z i is the z-axis length of the initial posture bounding box, X p is the x-axis length of the standard posture bounding box, Y p is the y-axis length of the standard posture bounding box, Z p is the z-axis length of the standard posture bounding box; Simplified assignment processing is performed based on the comparison of the lengths of the three axes of the bounding box: i , X p Assign a value of -1 to Y i , Y p Assign a value of 0 to Z i , Z p Assign a value of 1, where -1 represents the smallest axis, 1 represents the largest axis, and 0 represents the middle axis. If any two axes are equal, they are both assigned a value of 0. The simplest rotation is calculated using the following formula: Where R(·) represents the rotation matrix, r1 represents a 90° clockwise rotation around the x-axis, r2 represents a 90° clockwise rotation around the y-axis, and r3 represents a 90° clockwise rotation around the z-axis; (2-3) Calculate the scaling relationship of the three axes of the model and then unify the size of the model; S4. Using the model processed in step S3, designing a model assembly algorithm to complete the parametric configuration processing of the model; specifically including: Step S3: The model obtained after reconstruction in Three.js is a mesh model, which loses its parametric nature. The model assembly algorithm is designed to complete the parametric configuration of the model, which specifically includes: 1) Use feature assignment to describe the surface features of each part model. Feature assignment includes: feature point FP and feature value FN; The feature point FP is a six-dimensional vector; the eigenvalue FN is a [n×7] matrix, where the value of n is the number of other models that contact the main model; by concatenating the FP and FN matrices, a [(n+1)×7] feature matrix Featurematrix FM is obtained, and the model characteristics are described by FM; Among them, FM i Represents the feature matrix of part i; R ij is the index indicating that part i controls part j, where j = 1, 2, ..., n; x p is the x coordinate of the feature point of part i; ij is the x-coordinate of the characteristic value of part i controlling part j; y p is the y coordinate of the feature point of part i; ij is the y coordinate of the characteristic value of part i controlling part j; z p is the z coordinate of the feature point of part i; ij is the z coordinate of the characteristic value of part i controlling part j; is the x direction of the feature point of part i; It is the x direction in which part i controls the eigenvalue of part j; is the y direction of the characteristic point of part i; It is the y direction of the characteristic value of part j controlled by part i; is the z direction of the characteristic point of part i; It is the z direction in which part i controls the characteristic value of part j; 2) Constraint matrix: The positioning constraint LC is a three-dimensional coordinate, which indicates the location of the model origin; the attitude constraint AC is a three-dimensional vector, which indicates the deflection angle of the model around three axes; the positioning constraint and the attitude constraint are concatenated to obtain the constraint matrix CM, and the calculation process is expressed by the following formula: Among them, CM i represents the constraint matrix of part i, x i is the x coordinate of the origin of part i in the world coordinate system, y i is the y coordinate of the origin of part i, z i is the z coordinate of the origin of part i, θ x is the deflection angle of part i around the x-axis, θ y is the deflection angle of part i around the y-axis, θ z is the deflection angle of part i around the z axis; Assemble the model by applying correct positioning constraints and posture constraints to the part model; 3) Model assembly algorithm based on feature matrix and constraint matrix: The model adopts a bottom-up hierarchical constraint relationship, and defines the hierarchical constraint relationship as follows: If model B is assembled before model A, and model B has a constraint relationship with model A, model B is called the superior model of model A, and model A is the subordinate model of model B. The constraint relationship is only transferred from model B to model A, and not in the reverse direction. The contact relationship between models is simplified into surface full constraint, line partial constraint, and point positioning constraint, including: ① Full surface constraint: refers to the full constraint between the surfaces of the models. The upper model can fully constrain the positioning and posture of the lower model. The transfer formula of the complete surface constraint is as follows: Define model B as the upper level surface contact model of model A; LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ] Among them, LC A is the positioning constraint of model A or the three-dimensional coordinate of the origin of model A, LC B is the positioning constraint of model B or the 3D coordinate of the origin of model B, FN BA is the eigenvalue of model B controlling model A, x B is the x coordinate of the origin of model B, x BA is the x-coordinate of the eigenvalue of model B controlling model A, y B is the y coordinate of the origin of model B, y BA is the y coordinate of the eigenvalue of model B controlling model A, z B is the z coordinate of the origin of model B, z BA is the z coordinate of the eigenvalue of model A controlled by model B; Among them, θ Ax is the deflection angle of model A around the x-axis, θ Ay is the deflection angle of model A around the y-axis, θ Az is the deflection angle of model A around the z-axis, arccos(·) represents the inverse cosine, is the x direction of the feature point of model A, is the y direction of the feature point of model A, is the z direction of the feature point of model A, is the x direction of the feature point of model B, is the y direction of the feature point of model B, is the z direction of the feature point of model B, · represents the dot product, and |·| represents the modulus length; The calculation result of the transfer formula indicates that the B model has fully constrained the A model. The surface of the A model needs to be completely aligned with the surface of the B model in terms of position and angle. The B model, as the upper model, determines the assembly of the lower model A. ② Linear partial constraint: refers to the situation where there is only a linear contact relationship between the models. The contact relationship causes the upper model to only constrain the lower model, thus losing one-dimensional posture constraint. The transfer formula of the line part constraint is as follows: Define model B as the upper level line contact model of model A; LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +z BA ] The calculation result of the transfer formula shows that the B model only has positioning constraints and partial angle constraints on the A model. The surface of the A model only needs to have a line that is completely aligned with the surface of the B model. The line partial constraint loses one-dimensional angle constraint compared to the surface full constraint. The A model is free for the rotation angle of the fully aligned line. ③Point positioning constraint: refers to the existence of only a single-point contact relationship between models. The single-point contact relationship causes the upper-level model to only have positioning constraints on the lower-level model; The transfer formula of point positioning constraint is as follows: Define model B as the upper level point contact model of model A; LC A =LC B +FN BA =[x B +x BA ,y B +y BA ,z B +x BA ] The calculation result of the transfer formula indicates that the B model only has a positioning constraint on the A model. The surface of the A model only needs to contact the surface of the B model at one point. The A model is free to rotate about any axis of the contacting point. ④ Determination of constraint matrix: The assembly of the model is completely determined by a single constraint matrix CM. If an over-constrained or over-static matrix is encountered, the over-constrained matrix is integrated into a single constraint matrix using the linear averaging method, thereby realizing the parametric assembly of the model. S5. Using the model processed in step S4, complete the spatial distribution of the railway fastener system; specifically including: A1. Based on the second pair of fastener centers or world coordinates of the track plate, use the following formula to calculate the first pair of fastener center coordinates: x1=x-24.8×sin(v)×cos(-p)+s3×sin(-p) y1=y+24.8×sin(v)×sin(-p)+s3×cos(-p) z1=z-24.8×cos(v) Where (x, y, z) is the world coordinate of the track plate, v is the vertical rotation angle of the track plate, p is the horizontal rotation angle of the track plate, s3 is the lateral spacing between the centers of adjacent fasteners, the distance between the bottom of the fastener and the top surface of the rail is 24.8 cm, and (x1, y1, z1) is the center coordinates of the first pair of fasteners; A2. The positions of the fasteners on the track plate are distributed according to the set spacing. Based on the center coordinates of the paired fasteners, the following formula is used to calculate the spatial coordinates of all the fasteners on the track plate: y i =y1±b1×sin(-p)-i×s3×cos(-p) with i =z1±b1×sin(v) Among them, (x i ,y i ,z i ) represents the coordinates of each pair of rail supports in the world coordinate system, i is the serial number of each pair of rail supports, and b1 is the distance between the center of the fastener on the track plate and the center line of the track plate; A3. The three-axis deflection angles of the track plate correspond to the three-axis deflection angles of the fasteners on the plate. Combined with the spatial coordinates of the fasteners, the spatial distribution matrix of the railway fasteners is obtained, which is expressed by the following formula: i x =v i y =a i z =p Among them, DM t represents the three-dimensional coordinates of fastener t, x t is the x coordinate of the three-dimensional coordinate of fastener number t, y t is the y coordinate of the three-dimensional coordinates of fastener t, z t is the z coordinate of the three-dimensional coordinates of fastener No. t; α is the height adjustment angle of the track plate; S6. The spatially distributed model is completed in step S5, and the model is optimized through a lightweight rendering solution to obtain the final railway fastener system model.
2. The parametric modeling method for a high-precision railway fastener system according to claim 1, characterized in that The classification process of the components of the railway fastener system described in step S1 specifically includes: Different types of railway fasteners are composed of several parts, which are divided into three types according to the following definitions: Parts whose outer surface of the model will not change under any circumstances or parts that have no impact on the overall function are defined as "immutable parts"; Irregularly shaped parts that can use different models according to different situations and cause the outer surface of the model to change are defined as "complex variable parts". Complex variable parts have multiple models, each model corresponds to a specific outer surface shape; Regular shape parts that can use different models according to different situations and cause the outer surface of the model to change are defined as "regular variable parts"; the outer surface shape of regular variable parts can be determined by relevant mathematical formulas.
3. The parametric modeling method for a high-precision railway fastener system according to claim 2, characterized in that Step S2 uses the component parts processed in step S1 to establish a preliminary model of the railway fastener system, which specifically includes: Use any modeling software to build preliminary models for "immutable parts" and "complex variable parts". For "immutable parts", conduct preliminary modeling for one type of parts; for "complex variable parts", conduct preliminary modeling for a series of types of parts; Use the Three.js open graphics engine to build a preliminary model for "regular variable parts"; After preliminary modeling using the above method, the GLTF data structure three-dimensional models of different types of parts are obtained and exported.
4. The parametric modeling method for a high-precision railway fastener system according to claim 3, characterized in that The step S6 uses the model after the spatial distribution in step S5 to optimize the model through a lightweight rendering solution to obtain the final railway fastener system model, which specifically includes: B1. Geometric object instantiation algorithm: When implementing the distribution of the fastener model in the space along the railway, the part model is instantiated, and the location of the part model is determined according to the global coordinates transmitted by the group and the local coordinates provided by the assembly algorithm. The specific steps are as follows: b1-1. Initialize the fastener model: Get the fastener models included in the railway section in the scene, and establish the constraint matrix CM of each part based on the standard fastener model. The standard fastener model is a model without parameter changes. The established constraint matrix is called the standard constraint matrix, which is expressed by the following formula: Where i represents the number of each part in the fastener; b1-2. Initialize group: The spatial lines contained in the railway segment in the scene are obtained, and the coordinates and deflection angles of each fastener are obtained according to the spatial lines, and recorded in the form of a matrix. The recorded matrix is called the spatial distribution matrix DM, which is expressed by the following formula: Where t represents the number of each group in the fastener; b1-3. Calculation of world coordinates of parts: The world coordinates of each part are calculated by matrix fusion, and the coordinates and deflection angles of CM and DM of each part are superimposed to calculate the world coordinates WP of the part, which is expressed by the following formula: WP ti =DM t +CM i Among them, WP ti represents the world coordinates of part i in fastener system t; By calculating the world coordinates of each part, the part model is instantiated; b1-4. Parametric adjustment of fasteners: The parameter requirements of the fasteners in special sections are obtained through calculations, including: widened track gauges in curved sections, gradual height adjustments, or different bolt lengths at track joints; the fastener parameterization is reflected in the FM feature matrix of the part and then in the overall fastener model; b1-5. Implement the instantiation process for the preliminary model: The instantiated object of the immutable model can adjust its posture according to the changed constraint matrix of itself; the parameterization process of the complex variable model is the replacement between models of different specifications. The instantiated model before the parameter change will delete the constraint matrix information, and the instantiated model after the parameter change will add the constraint matrix information; the regular variable model can use the model copy to create a new instantiated object to achieve parameter adjustment; B2. Railway LOD classification algorithm: The LOD grading algorithms adapted to railway scenarios include: b2-1. Determine the position of the track plate where the camera model is located, and define the track plate as track plate No. X; b2-2. The track plate [X-5, X+5] adopts the original accuracy model; [X-50, X-5]∪[X+5, X+50] adopts the level II accuracy model, and the remaining track plates adopt the level III accuracy model; b2-3. When the cumulative movement distance of the camera position |ΔX|≥3, the hierarchical LOD model is reset to ensure that the original precision model is always maintained near the camera position.
