CN118154753B - Material mapping processing method in urban rail engineering BIM model - Google Patents

Material mapping processing method in urban rail engineering BIM model Download PDF

Info

Publication number
CN118154753B
CN118154753B CN202410579653.3A CN202410579653A CN118154753B CN 118154753 B CN118154753 B CN 118154753B CN 202410579653 A CN202410579653 A CN 202410579653A CN 118154753 B CN118154753 B CN 118154753B
Authority
CN
China
Prior art keywords
mapped
value
coordinate
axis
elements
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202410579653.3A
Other languages
Chinese (zh)
Other versions
CN118154753A (en
Inventor
刘哲
庞亚西
张春雷
郭剑勇
杨炳晔
王正松
马振海
张振东
张鹏
刘昌�
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
China Railway Design Corp
Original Assignee
China Railway Design Corp
Filing date
Publication date
Application filed by China Railway Design Corp filed Critical China Railway Design Corp
Priority to CN202410579653.3A priority Critical patent/CN118154753B/en
Publication of CN118154753A publication Critical patent/CN118154753A/en
Application granted granted Critical
Publication of CN118154753B publication Critical patent/CN118154753B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a material mapping processing method in a BIM model of urban rail engineering, which belongs to the technical field of material mapping processing and comprises the following steps: acquiring coordinate values of point positions of all elements to be mapped and areas of the elements to be mapped in the urban rail engineering BIM; determining the positions of all the elements to be mapped in a standard coordinate system according to the coordinate values of the points of the elements to be mapped; obtaining the body shape ratio of the element to be mapped according to the coordinate value of the point position of the element to be mapped; obtaining a mapping picture according to the body shape ratio of the elements to be mapped; obtaining an area ratio by comparing the area of the three-dimensional model with the area of the corresponding mapping picture of the element to be mapped; taking the ratio with smaller numerical value of the body shape ratio and the area ratio as the stretching ratio of the picture of the map; and carrying out material mapping treatment on the element to be mapped by using the mapping picture according to the stretching ratio at the position of the element to be mapped in the standard coordinate system. Realize the batch processing of material mapping, the mapping is effectual.

Description

Material mapping processing method in urban rail engineering BIM model
Technical Field
The invention relates to the technical field of material mapping, in particular to a material mapping processing method in a BIM model of urban rail engineering.
Background
The characteristics of complicated design, multi-specialty collaboration, construction accurate control, equipment system integration, sustainable development and the like of urban rail engineering make the BIM model a powerful tool in the design and construction process. Through the application of the BIM model, the design quality, the construction efficiency and the management level of urban rail engineering can be improved.
Texture mapping is a technique used to specify the characteristics of an object surface or surfaces. It determines the characteristics of these planes in coloration, such as color, brightness, self-luminosity, and opacity. And carrying out material mapping treatment in the urban rail engineering BIM model, determining mapping positions, selecting proper mapping pictures from a material library, carrying out stretching treatment according to a specified stretching ratio, and then attaching the mapping pictures to the mapping positions.
From this, it can be seen that the following factors need to be considered when the texture mapping is performed in the urban rail engineering BIM model:
1. When the picture to be mapped is selected, the shape of the picture element to be mapped is attached, the number of the pictures is comprehensively considered, the number of the pictures is reduced on the premise of guaranteeing the mapping effect, and the pressure of model calculation force is reduced.
2. And the positions of the elements to be mapped are accurately obtained, and the accuracy of the material mapping is improved.
3. And optimizing the stretching proportion of the mapping pictures, and adding mapping pictures with proper sizes for the elements to be mapped so that the material parameters are more objective.
4. And the processing efficiency of the material mapping is improved, so that the calculation efficiency of the urban rail engineering BIM model is improved.
Therefore, there is a need for a method for mapping materials in a BIM model of urban rail engineering, which is used for meeting the above factors and improving the efficiency and mapping effect of the material mapping process in the BIM model of urban rail engineering.
Disclosure of Invention
In order to solve the technical problems, the invention provides a method for processing a texture map in a BIM model of urban rail engineering, which comprises the following steps:
step S1: acquiring coordinate values of point positions of all elements to be mapped in a three-dimensional model where all elements to be mapped are located in a BIM of urban rail engineering and the area of the elements to be mapped;
step S2: according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, calculating to obtain the coordinate values of the origin of the standard coordinate system, and further determining the coordinate values of the points of all the elements to be mapped in the standard coordinate system, so as to determine the positions of all the elements to be mapped in the standard coordinate system; the standard coordinate system is a unified coordinate system when mapping is carried out on all elements to be mapped;
Step S3: obtaining the body shape ratio of the element to be mapped according to the coordinate value of the point position of the element to be mapped, wherein the body shape ratio is used for representing the shape of the element to be mapped;
step S4: screening in a material library according to the body shape ratio of the elements to be mapped to obtain a mapped picture, and obtaining the area of the mapped picture;
step S5: obtaining an area ratio by comparing the area of the element to be mapped with the area of the picture corresponding to the element to be mapped;
step S6: taking the ratio with smaller numerical value of the body shape ratio and the area ratio as the stretching ratio of the chartlet picture;
Step S7: and carrying out material mapping treatment on the element to be mapped by using the mapping picture according to the stretching ratio of the mapping picture at the position of the element to be mapped in the standard coordinate system.
Further, in step S2, according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, the coordinate values of the origin of the standard coordinate system are calculated as follows:
Obtaining coordinate values of base points of each three-dimensional model by a method of screening maximum coordinate values according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model;
And respectively calculating the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates in the coordinate values of the base points of all the three-dimensional models, and taking the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates as the coordinate values of the origin of the standard coordinate system.
Further, in step S2, coordinate values of points of all elements to be mapped in the standard coordinate system are determined, and positions of all elements to be mapped in the standard coordinate system are determined as follows:
Determining the coordinate corresponding relation of each point position according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model;
And determining the coordinate values of the points of all the elements to be mapped in the standard coordinate system according to the coordinate corresponding relation of the points and the coordinate values of the origin of the standard coordinate system, so as to determine the positions of all the elements to be mapped in the standard coordinate system.
Further, according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, the coordinate values of the base points of each three-dimensional model are obtained by a method of screening the maximum coordinate values, which specifically comprises the following steps:
for each three-dimensional model, setting the point positions of all elements to be mapped in each three-dimensional model as a point position aggregation set A;
Screening out the maximum X-axis coordinate value, the maximum Y-axis coordinate value and the maximum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a maximum point set B max from the point where the maximum X-axis coordinate value is located, the point where the maximum Y-axis coordinate value is located and the point where the maximum Z-axis coordinate value is located in the collection A;
Screening out the minimum X-axis coordinate value, the minimum Y-axis coordinate value and the minimum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a minimum point set B min from the point where the minimum X-axis coordinate value is located, the point where the minimum Y-axis coordinate value is located and the point where the minimum Z-axis coordinate value is located in the collection A;
And respectively solving the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values for all the points in the maximum point position set B max and the minimum point position set B min, and taking the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values as the coordinate values of the base points of the three-dimensional model.
Further, in the step S3, the body shape ratio of the element to be mapped is obtained from the coordinate values of the point locations of the element to be mapped:
Setting the points except the point where the maximum value of the X-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-X-axis maximum point positions;
Setting the points except the point where the maximum value of the Y-axis coordinate is located in the maximum point set B max and the minimum point set B min as non-Y-axis maximum point positions;
Setting the points except the point where the maximum value of the Z-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-Z-axis maximum point positions;
Subtracting the X-axis coordinate values in all the non-X-axis maximum point positions from the X-axis coordinate maximum value to obtain an X-axis coordinate difference value, and obtaining an absolute value of the X-axis coordinate difference value;
subtracting Y-axis coordinate values in all the non-Y-axis maximum point positions from the Y-axis coordinate maximum value to obtain a Y-axis coordinate difference value, and obtaining an absolute value of the Y-axis coordinate difference value;
Subtracting the Z-axis coordinate values in all the non-Z-axis maximum point positions from the maximum value of the Z-axis coordinate to obtain a Z-axis coordinate difference value, and obtaining an absolute value of the Z-axis coordinate difference value;
And sequencing the absolute value of the X-axis coordinate difference value, the absolute value of the Y-axis coordinate difference value and the absolute value of the Z-axis coordinate difference value from big to small, and taking the ratio of the largest absolute value to the smallest absolute value after sequencing as the body shape ratio of the element to be mapped.
Further, in the step S2, the calculating to obtain the coordinate value of the origin of the standard coordinate system further includes setting the coordinate of the origin of the standard coordinate system to be (0, 0).
Further, in the step S4, according to the body shape ratio of the element to be mapped, screening is performed in a texture library to obtain a mapped image as follows:
Presetting a mapping floating threshold value, and performing up-down floating treatment on the body shape ratio of the elements to be mapped according to the mapping floating threshold value to obtain a body shape ratio range; and selecting pictures with the proportion of the map pictures in the body shape ratio range from a material library as the map pictures.
The embodiment of the invention has the following technical effects:
1. According to the coordinate values of the points of all the elements to be mapped in the three-dimensional model of the urban rail engineering BIM, the coordinate values of the origin of the standard coordinate system are calculated, so that the coordinate values of the points of all the elements to be mapped in the standard coordinate system are determined, and the positions of all the elements to be mapped in the standard coordinate system are further determined. The coordinate values of the points of the elements to be mapped in the three-dimensional model under different coordinate systems are converted into the same standard coordinate system, so that the positions of all the elements to be mapped are determined based on the unified coordinate system, the accuracy of the positions of the elements to be mapped is improved, and the accuracy of material mapping processing is improved.
2. And calculating coordinate values in the three-dimensional model of the element to be mapped to obtain a body shape ratio representing the shape of the element to be mapped, and screening in a material library according to the body shape ratio of the element to be mapped to obtain a mapping picture, so that the selected mapping picture has better matching effect with the element to be mapped.
3. When a map picture is selected, a map floating threshold value is preset, the figure ratio of a to-be-mapped element is subjected to up-down floating treatment according to the map floating threshold value, and pictures with the same figure ratio as the floating treated figure ratio are screened in a material library and used as the map pictures.
4. And comparing the area of the element to be mapped with the area of the picture corresponding to the element to be mapped to obtain the area ratio. The stretching ratio of the mapping picture obtained by the area ratio is more fit with the size of the element to be mapped, so that the material parameters are more objective.
5. And obtaining the position of the element to be mapped based on a unified coordinate system, and mapping the element to be mapped by using the mapping picture according to the stretching ratio of the objective mapping picture at the position. Therefore, batch processing of material mapping is realized on the elements to be mapped of each three-dimensional model in the urban rail engineering BIM model, and the processing efficiency of the urban rail engineering BIM model is greatly improved.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are needed in the description of the embodiments or the prior art will be briefly described, and it is obvious that the drawings in the description below are some embodiments of the present invention, and other drawings can be obtained according to the drawings without inventive effort for a person skilled in the art.
FIG. 1 is a flowchart of a method for processing a texture map in a BIM model of urban rail engineering according to an embodiment of the present invention.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the technical solutions of the present invention will be clearly and completely described below. It will be apparent that the described embodiments are only some, but not all, embodiments of the invention. All other embodiments, which can be made by one of ordinary skill in the art without undue burden from the invention, are within the scope of the invention.
The invention provides a method for processing material mapping in a BIM model of urban rail engineering, which aims to improve the efficiency and mapping effect of the material mapping in the BIM model of the urban rail engineering. Fig. 1 is a flowchart of a material mapping method in a urban rail engineering BIM model according to an embodiment of the present invention, referring to fig. 1, the material mapping method specifically includes the following steps:
Step S1: and acquiring coordinate values of points of all elements to be mapped in the three-dimensional model where all elements to be mapped are located in the urban rail engineering BIM and the area of the elements to be mapped.
The three-dimensional model where the elements to be mapped are located is in the fbx format, and coordinate values of all points in the three-dimensional model where all the elements to be mapped are located and the area of the three-dimensional model are obtained. Each three-dimensional model in the urban rail engineering BIM model is independent, and the used coordinate system is not uniform.
Step S2: according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, calculating to obtain the coordinate values of the origin of the standard coordinate system, so as to determine the coordinate values of the points of all the elements to be mapped in the standard coordinate system, and further determine the positions of all the elements to be mapped in the standard coordinate system; the standard coordinate system is a unified coordinate system when mapping is carried out on all elements to be mapped.
Further, according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, the coordinate values of the origin of the standard coordinate system are calculated as follows:
according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model, the coordinate values of the base points of each three-dimensional model are obtained by a method for screening the maximum coordinate values, and the method specifically comprises the following steps:
for each three-dimensional model, setting the point positions of all elements to be mapped in each three-dimensional model as a point position aggregation set A;
Screening out the maximum X-axis coordinate value, the maximum Y-axis coordinate value and the maximum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a maximum point set B max from the point where the maximum X-axis coordinate value is located, the point where the maximum Y-axis coordinate value is located and the point where the maximum Z-axis coordinate value is located in the collection A;
Illustratively, for a three-dimensional model, all points therein are set as set A, set A being { 、……、}, Wherein、……、Respectively point location 1, point location 2, point location 3, … … and point location n.
Sequentially acquiring coordinate information of all points, and extracting by way of exampleThe numerical value of the X-axis coordinate, the numerical value of the Y-axis coordinate, the numerical value of the Z-axis coordinate. And screening out the maximum X-axis coordinate value, the maximum Y-axis coordinate value and the maximum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a maximum point set B max from the points where the maximum X-axis coordinate value, the maximum Y-axis coordinate value and the maximum Z-axis coordinate value are located in the collection A. It is also possible that the coordinates of a point in two of the three directions have the largest value or that the coordinates of three directions have the largest value.
The maximum set of points B max can be expressed as:
Bmax={dxmax(xmax、ydxa、zdxa)、dymax(xdya、ymax、zdya)、dzmax(xdza、ydza、zmax)}
Wherein d xmax is the maximum point of the X-axis coordinate value, d ymax is the maximum point of the Y-axis coordinate value, d zmax is the maximum point of the Z-axis coordinate value, X max is the maximum point of the X-axis coordinate value, Y max is the maximum point of the Y-axis coordinate value, Z max is the maximum point of the Z-axis coordinate value, Y dxa is the maximum point of the Y-axis coordinate value, Z dxa is the maximum point of the Z-axis coordinate value, X dya is the maximum point of the X-axis coordinate value, Z dya is the maximum point of the Z-axis coordinate value, X dza is the maximum point of the Z-axis coordinate value, and Y dza is the maximum point of the Z-axis coordinate value.
And screening out the minimum X-axis coordinate values, the minimum Y-axis coordinate values and the minimum Z-axis coordinate values from the coordinate values of all the points in the set A, and forming a minimum point set B min from the point where the minimum X-axis coordinate values are located, the point where the minimum Y-axis coordinate values are located and the point where the minimum Z-axis coordinate values are located in the set A.
The maximum set of points B min can be expressed as:
Bmin={dxmin(xmin、ydxi、zdxi)、dymin(xdyi、ymin、zdyi)、dzmin(xdzi、ydzi、zmin)}
Wherein d xmin is the minimum point of the X-axis coordinate value, d ymin is the minimum point of the Y-axis coordinate value, d zmin is the minimum point of the Z-axis coordinate value, X min is the minimum point of the X-axis coordinate value, Y min is the minimum point of the Y-axis coordinate value, Z min is the minimum point of the Z-axis coordinate value, Y dxi is the minimum point of the Y-axis coordinate value, Z dxi is the minimum point of the X-axis coordinate value, X dyi is the minimum point of the X-axis coordinate value, Z dyi is the minimum point of the Z-axis coordinate value, X dzi is the minimum point of the X-axis coordinate value, and Y dzi is the minimum point of the Z-axis coordinate value.
And respectively solving the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values for all the points in the maximum point position set B max and the minimum point position set B min, and taking the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values as the coordinate values of the base points of each three-dimensional model.
Where X c is the X-axis coordinate value of the base point of the three-dimensional model, Y c is the Y-axis coordinate value of the base point of the three-dimensional model, and Z c is the Z-axis coordinate value of the base point of the three-dimensional model. Thus, the coordinate D c of the base point of the three-dimensional model is (x c,yc,zc).
And respectively calculating the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates in the coordinate values of the base points of all the three-dimensional models, and taking the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates as the coordinate values of the origin of the standard coordinate system.
When the base points of the three-dimensional model are obtained, the obtained base points can represent the characteristics of the three-dimensional model through coordinate extremum calculation on each coordinate axis of the three-dimensional model, and the origin of a standard coordinate system is obtained by utilizing the base points of all the three-dimensional models, so that the characteristics of the original coordinate system where each point position is located are considered, and the position of the element to be mapped can be obtained based on a unified coordinate system, thereby improving the accuracy of the position of the element to be mapped.
Further, in the step S2, the calculation to obtain the coordinate value of the origin of the standard coordinate system further includes setting the coordinate of the origin of the standard coordinate system to be (0, 0), so as to simplify the counting of the coordinate values of the point bit coordinates.
Further, in step S2, coordinate values of points of all elements to be mapped in the standard coordinate system are determined, and positions of all elements to be mapped in the standard coordinate system are determined as follows:
Determining the coordinate corresponding relation of each point position according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model;
And determining the coordinate values of the points of all the elements to be mapped in the standard coordinate system according to the coordinate corresponding relation of the points and the coordinate values of the origin of the standard coordinate system, so as to determine the positions of all the elements to be mapped in the standard coordinate system.
According to the coordinate values of the points of all the elements to be mapped in the three-dimensional model of the urban rail engineering BIM, the coordinate values of the origins of the standard coordinate system are obtained through calculation, so that the coordinate values of the points of all the elements to be mapped in the standard coordinate system are determined, and the positions of all the elements to be mapped in the standard coordinate system are further determined. The coordinate values of the points of the elements to be mapped in the three-dimensional model under different coordinate systems are converted into the same standard coordinate system, so that the positions of all the elements to be mapped are determined based on the unified coordinate system, the accuracy of the positions of the elements to be mapped is improved, and the accuracy of material mapping processing is improved.
Step S3: obtaining the body shape ratio of the element to be mapped according to the coordinate value of the point position of the element to be mapped, wherein the body shape ratio is used for representing the shape of the element to be mapped; the specific method for obtaining the body shape ratio of the elements to be mapped comprises the following steps:
Setting the points except the point where the maximum value of the X-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-X-axis maximum point positions;
Setting the points except the point where the maximum value of the Y-axis coordinate is located in the maximum point set B max and the minimum point set B min as non-Y-axis maximum point positions;
Setting the points except the point where the maximum value of the Z-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-Z-axis maximum point positions;
Subtracting the X-axis coordinate values in all the non-X-axis maximum point positions from the X-axis coordinate maximum value to obtain an X-axis coordinate difference value, and obtaining an absolute value of the X-axis coordinate difference value;
subtracting Y-axis coordinate values in all the non-Y-axis maximum point positions from the Y-axis coordinate maximum value to obtain a Y-axis coordinate difference value, and obtaining an absolute value of the Y-axis coordinate difference value;
Subtracting the Z-axis coordinate values in all the non-Z-axis maximum point positions from the maximum value of the Z-axis coordinate to obtain a Z-axis coordinate difference value, and obtaining an absolute value of the Z-axis coordinate difference value;
And sequencing the absolute value of the X-axis coordinate difference value, the absolute value of the Y-axis coordinate difference value and the absolute value of the Z-axis coordinate difference value from big to small, and taking the ratio of the largest absolute value to the smallest absolute value after sequencing as the body shape ratio of the element to be mapped.
By way of example only, and not by way of limitation,
Wherein, X Difference value is the X-axis coordinate difference, Y Difference value is the Y-axis coordinate difference, and Z Difference value is the Z-axis coordinate difference.
And calculating coordinate values in the three-dimensional model of the element to be mapped to obtain a body shape ratio representing the shape of the element to be mapped, and screening in a material library according to the body shape ratio of the element to be mapped to obtain a mapping picture, so that the selected mapping picture has better matching effect with the element to be mapped.
Step S4: screening in a material library according to the body shape ratio of the elements to be mapped to obtain a mapped picture, and obtaining the area of the mapped picture, specifically comprising:
Presetting a mapping floating threshold value, and performing up-down floating treatment on the body shape ratio of the elements to be mapped according to the mapping floating threshold value to obtain a body shape ratio range; and selecting pictures with the proportion of the map pictures in the body shape ratio range from a material library as the map pictures.
The mapping pictures are screened from the material library according to the body shape ratio, so that the mapping picture closest to the body shape of the element to be mapped can be selected, and the mapping picture can be maximally prevented from being stretched and deformed and distortion during the material mapping treatment.
The setting of the mapping floating threshold value can be defined according to practical situations, and the duration of material mapping processing and the selection range of mapping effect are comprehensively considered during setting. And (3) carrying out up-and-down floating treatment on the body shape ratio of the elements to be mapped according to the mapping floating threshold, and screening pictures with the same size as the body shape ratio after the floating treatment in a material library, wherein the pictures are used as the mapping pictures, and the number of the mapping pictures is limited by using the method, so that the calculation pressure of the model is reduced, and the calculation efficiency of the urban rail engineering BIM model is improved.
When the map picture is screened from the material library, the horizontal pixel number b, the vertical pixel number h and DPI (parameter multiplication) of the map picture can be obtained, and the calculation formula of the area g 2 of the map picture is as follows:
g2=(h÷DPI×2.54÷10)×(b÷DPI×2.54÷10)。
Step S5: and comparing the area of the element to be mapped with the area of the picture corresponding to the element to be mapped to obtain the area ratio.
The area of the element to be mapped, that is, the actual area of the element to be mapped in the three-dimensional model, can be directly obtained through the three-dimensional model.
The stretching ratio of the mapping picture obtained by the area ratio is more fit with the size of the element to be mapped, so that the material parameters are more objective.
Step S6: and taking the ratio with smaller numerical value of the body shape ratio and the area ratio as the stretching ratio of the mapping picture.
The stretch ratio is a parameter that must be set when performing texture mapping, and is used to adapt the original size of the mapping file to the size of the element to be mapped by scaling. The smaller ratio is selected as the stretching ratio, so that the definition of the processed mapping is better, and the mapping effect is further improved. Meanwhile, the volume of the model file can be further reduced, and the calculation efficiency is improved.
Step S7: and carrying out material mapping treatment on the element to be mapped by using the mapping picture according to the stretching ratio of the mapping picture at the position of the element to be mapped in the standard coordinate system.
Wherein, the texture mapping process specifically comprises: stretching the picture according to the stretching proportion, and tiling the stretched picture to make the picture full.
Because more than one picture is likely to be selected in step S4, the method performs texture mapping processing on each picture to be mapped screened by the element to be mapped, so as to obtain texture mapping effects of different pictures, and a user selects a required mapping effect from the mapping effects according to actual needs.
And obtaining the position of the element to be mapped based on a unified coordinate system, and mapping the element to be mapped by using the mapping picture according to the stretching ratio of the objective mapping picture at the position. Therefore, batch processing of material mapping is realized on the elements to be mapped of each three-dimensional model in the urban rail engineering BIM model, and the processing efficiency of the urban rail engineering BIM model is greatly improved.
It is noted that the terminology used herein is for the purpose of describing particular embodiments only and is not intended to limit the scope of the present application. As used in this specification, the terms "a," "an," "the," and/or "the" are not intended to be limiting, but rather are to be construed as covering the singular and the plural, unless the context clearly dictates otherwise. The terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, or apparatus. Without further limitation, an element defined by the phrase "comprising one … …" does not exclude the presence of other like elements in a process, method or apparatus that includes the element.
It should also be noted that the positional or positional relationship indicated by the terms "center", "upper", "lower", "left", "right", "vertical", "horizontal", "inner", "outer", etc. are based on the positional or positional relationship shown in the drawings, are merely for convenience of describing the present invention and simplifying the description, and do not indicate or imply that the apparatus or element in question must have a specific orientation, be constructed and operated in a specific orientation, and thus should not be construed as limiting the present invention. Unless specifically stated or limited otherwise, the terms "mounted," "connected," and the like are to be construed broadly and may be, for example, fixedly connected, detachably connected, or integrally connected; can be mechanically or electrically connected; can be directly connected or indirectly connected through an intermediate medium, and can be communication between two elements. The specific meaning of the above terms in the present invention will be understood in specific cases by those of ordinary skill in the art.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present invention, and not for limiting the same; although the invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical scheme described in the foregoing embodiments can be modified or some or all of the technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the essence of the corresponding technical solutions from the technical solutions of the embodiments of the present invention.

Claims (7)

1. The method for processing the texture mapping in the urban rail engineering BIM model is characterized by comprising the following steps of:
step S1: acquiring coordinate values of point positions of all elements to be mapped in a three-dimensional model where all elements to be mapped are located in a BIM of urban rail engineering and the area of the elements to be mapped;
step S2: according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, calculating to obtain the coordinate values of the origin of the standard coordinate system, and further determining the coordinate values of the points of all the elements to be mapped in the standard coordinate system, so as to determine the positions of all the elements to be mapped in the standard coordinate system; the standard coordinate system is a unified coordinate system when mapping is carried out on all elements to be mapped;
Step S3: obtaining the body shape ratio of the element to be mapped according to the coordinate value of the point position of the element to be mapped, wherein the body shape ratio is used for representing the shape of the element to be mapped;
step S4: screening in a material library according to the body shape ratio of the elements to be mapped to obtain a mapped picture, and obtaining the area of the mapped picture;
step S5: obtaining an area ratio by comparing the area of the element to be mapped with the area of the picture corresponding to the element to be mapped;
step S6: taking the ratio with smaller numerical value of the body shape ratio and the area ratio as the stretching ratio of the chartlet picture;
Step S7: and carrying out material mapping treatment on the element to be mapped by using the mapping picture according to the stretching ratio of the mapping picture at the position of the element to be mapped in the standard coordinate system.
2. The method for processing a texture map in a urban rail engineering BIM model according to claim 1, wherein in step S2, according to the coordinate values of the points of the elements to be mapped in each three-dimensional model, the coordinate values of the origin of a standard coordinate system are calculated as follows:
Obtaining coordinate values of base points of each three-dimensional model by a method of screening maximum coordinate values according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model;
And respectively calculating the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates in the coordinate values of the base points of all the three-dimensional models, and taking the mean value of X-axis coordinates, the mean value of Y-axis coordinates and the mean value of Z-axis coordinates as the coordinate values of the origin of the standard coordinate system.
3. The method for processing a texture map in a urban rail engineering BIM model according to claim 2, wherein in step S2, coordinate values of points of all elements to be mapped in a standard coordinate system are determined, and further positions of all elements to be mapped in the standard coordinate system are determined as follows:
Determining the coordinate corresponding relation of each point position according to the coordinate values of the point positions of the elements to be mapped in each three-dimensional model;
And determining coordinate values of the points of all the elements to be mapped in the standard coordinate system in the three-dimensional model of all the elements to be mapped according to the coordinate corresponding relation of the points and the coordinate values of the origin of the standard coordinate system, so as to determine the positions of all the elements to be mapped in the standard coordinate system.
4. The method for processing the texture map in the urban rail engineering BIM model according to claim 2, wherein the coordinate value of the base point of each three-dimensional model is obtained by screening the maximum coordinate value according to the coordinate value of the point position of the element to be mapped in each three-dimensional model, and the method specifically comprises the following steps:
for each three-dimensional model, setting the point positions of all elements to be mapped in each three-dimensional model as a point position aggregation set A;
Screening out the maximum X-axis coordinate value, the maximum Y-axis coordinate value and the maximum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a maximum point set B max from the point where the maximum X-axis coordinate value is located, the point where the maximum Y-axis coordinate value is located and the point where the maximum Z-axis coordinate value is located in the collection A;
Screening out the minimum X-axis coordinate value, the minimum Y-axis coordinate value and the minimum Z-axis coordinate value from the coordinate values of all the points in the collection A, and forming a minimum point set B min from the point where the minimum X-axis coordinate value is located, the point where the minimum Y-axis coordinate value is located and the point where the minimum Z-axis coordinate value is located in the collection A;
And respectively solving the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values for all the points in the maximum point position set B max and the minimum point position set B min, and taking the average value of the X-axis coordinate values, the average value of the Y-axis coordinate values and the average value of the Z-axis coordinate values as the coordinate values of the base points of each three-dimensional model.
5. The method for mass mapping in urban rail engineering BIM according to claim 4, wherein in the step S3, the body shape ratio of the elements to be mapped is obtained from the coordinate values of the points of the elements to be mapped:
Setting the points except the point where the maximum value of the X-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-X-axis maximum point positions;
Setting the points except the point where the maximum value of the Y-axis coordinate is located in the maximum point set B max and the minimum point set B min as non-Y-axis maximum point positions;
Setting the points except the point where the maximum value of the Z-axis coordinate is located in the maximum point position set B max and the minimum point position set B min as non-Z-axis maximum point positions;
Subtracting the X-axis coordinate values in all the non-X-axis maximum point positions from the X-axis coordinate maximum value to obtain an X-axis coordinate difference value, and obtaining an absolute value of the X-axis coordinate difference value;
subtracting Y-axis coordinate values in all the non-Y-axis maximum point positions from the Y-axis coordinate maximum value to obtain a Y-axis coordinate difference value, and obtaining an absolute value of the Y-axis coordinate difference value;
Subtracting the Z-axis coordinate values in all the non-Z-axis maximum point positions from the maximum value of the Z-axis coordinate to obtain a Z-axis coordinate difference value, and obtaining an absolute value of the Z-axis coordinate difference value;
And sequencing the absolute value of the X-axis coordinate difference value, the absolute value of the Y-axis coordinate difference value and the absolute value of the Z-axis coordinate difference value from big to small, and taking the ratio of the largest absolute value to the smallest absolute value after sequencing as the body shape ratio of the element to be mapped.
6. The method for processing a texture map in a urban rail engineering BIM model according to claim 1, wherein in the step S2, the coordinate value of the origin of the standard coordinate system is calculated, and then the coordinates of the origin of the standard coordinate system are set to (0, 0).
7. The method for processing the texture map in the urban rail engineering BIM model according to claim 1, wherein in the step S4, the texture library is screened according to the body shape ratio of the elements to be mapped to obtain the map picture as follows:
Presetting a mapping floating threshold value, and performing up-down floating treatment on the body shape ratio of the elements to be mapped according to the mapping floating threshold value to obtain a body shape ratio range; and selecting pictures with the proportion of the map pictures in the body shape ratio range from a material library as the map pictures.
CN202410579653.3A 2024-05-11 Material mapping processing method in urban rail engineering BIM model Active CN118154753B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202410579653.3A CN118154753B (en) 2024-05-11 Material mapping processing method in urban rail engineering BIM model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202410579653.3A CN118154753B (en) 2024-05-11 Material mapping processing method in urban rail engineering BIM model

Publications (2)

Publication Number Publication Date
CN118154753A CN118154753A (en) 2024-06-07
CN118154753B true CN118154753B (en) 2024-07-05

Family

ID=

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107122774A (en) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 A kind of adaptive chart pasting method moved with key point in image and system
CN108230430A (en) * 2016-12-21 2018-06-29 网易(杭州)网络有限公司 The processing method and processing device of cloud layer shade figure

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108230430A (en) * 2016-12-21 2018-06-29 网易(杭州)网络有限公司 The processing method and processing device of cloud layer shade figure
CN107122774A (en) * 2017-03-28 2017-09-01 武汉斗鱼网络科技有限公司 A kind of adaptive chart pasting method moved with key point in image and system

Similar Documents

Publication Publication Date Title
CN109859098B (en) Face image fusion method and device, computer equipment and readable storage medium
CN109510948B (en) Exposure adjusting method, exposure adjusting device, computer equipment and storage medium
CN112613097A (en) BIM rapid modeling method based on computer vision
CN112307553B (en) Method for extracting and simplifying three-dimensional road model
JPH08163434A (en) Image area extraction method
CN115937394A (en) Three-dimensional image rendering method and system based on nerve radiation field
KR20160020690A (en) Apparatus and method for generating 3D printing file using 2D image converting
CN106500626A (en) A kind of mobile phone stereoscopic imaging method and three-dimensional imaging mobile phone
CN118154753B (en) Material mapping processing method in urban rail engineering BIM model
CN116503462A (en) Method and system for quickly extracting circle center of circular spot
CN117496085A (en) Parameterized three-dimensional model generation method and system based on hand-drawn sketch
CN118154753A (en) Material mapping processing method in urban rail engineering BIM model
CN117474839A (en) Workpiece defect detection method and device, electronic equipment and storage medium
CN116758080A (en) Method and system for detecting screen printing defects of solar cell
CN116805356A (en) Building model construction method, building model construction equipment and computer readable storage medium
CN114119874A (en) Single image reconstruction high-definition 3D face texture method based on GAN
CN115049560A (en) Model training method and system, and face image dimming method and system
CN108760751A (en) A kind of textile flaw detection method
CN111932566B (en) Model contour diagram generation method, device and system
CN111754590B (en) Remote sensing image automatic color homogenizing method based on global color feature library
CN111627098B (en) Method and device for identifying water flow area in image and generating dynamic water flow video
CN112882666A (en) Three-dimensional modeling and model filling-based 3D printing system and method
CN113421203A (en) Image processing method, printing-related apparatus, and readable storage medium
CN113379899A (en) Automatic extraction method for regional images of construction engineering working face
CN113610951B (en) Automatic tracing method and device

Legal Events

Date Code Title Description
PB01 Publication
SE01 Entry into force of request for substantive examination
GR01 Patent grant