CN116778093A - Model construction method, device, computer equipment and medium for unit engineering - Google Patents

Model construction method, device, computer equipment and medium for unit engineering Download PDF

Info

Publication number
CN116778093A
CN116778093A CN202310810957.1A CN202310810957A CN116778093A CN 116778093 A CN116778093 A CN 116778093A CN 202310810957 A CN202310810957 A CN 202310810957A CN 116778093 A CN116778093 A CN 116778093A
Authority
CN
China
Prior art keywords
line group
model
horizontal line
target
lines
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.)
Pending
Application number
CN202310810957.1A
Other languages
Chinese (zh)
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 Three Gorges Corp
Original Assignee
China Three Gorges Corp
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by China Three Gorges Corp filed Critical China Three Gorges Corp
Priority to CN202310810957.1A priority Critical patent/CN116778093A/en
Publication of CN116778093A publication Critical patent/CN116778093A/en
Pending legal-status Critical Current

Links

Landscapes

  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The invention relates to the technical field of water conservancy and hydropower engineering, and discloses a method and a device for constructing a model of unit engineering, computer equipment and a medium. The model construction method of the unit engineering comprises the following steps: constructing an initial contour model of the target unit project according to construction process information of the dam project; classifying the features of the edges of the initial contour model to obtain multiple types of feature lines, wherein different feature line groups correspond to different line types; based on the multiple types of characteristic lines, segmenting the initial contour model to obtain a segmentation result; and obtaining a target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering. The automatic modeling can be realized, and the target model of the unit engineering is constructed based on the construction process information of the dam engineering, so that the obtained target model has higher universality and is more beneficial to improving the construction efficiency of the target model.

Description

Model construction method, device, computer equipment and medium for unit engineering
Technical Field
The invention relates to the technical field of water conservancy and hydropower engineering, in particular to a model construction method, a device, computer equipment and a medium for unit engineering.
Background
In the related art, the model construction for the dam project unit engineering is mainly obtained by adopting a manual construction mode based on the modeling level and modeling experience of modeling staff.
However, the modeling in this way is too dependent on modeling experience of modeling personnel, so that the deviation between the obtained model and the actual engineering quantity is large. Moreover, the modeling calculation amount of project related parties (such as owners, proctoring and construction units) is different, and the later time and labor are consumed because manpower and material resources are required to be repeatedly input for carrying out the calculation amount.
In view of this, for dam unit engineering, a model construction method capable of improving modeling efficiency is demanded.
Disclosure of Invention
In view of the above, the present invention provides a method, apparatus, computer device and medium for building a model of unit engineering, so as to solve the problem of low modeling efficiency.
In a first aspect, the present invention provides a method for constructing a model of a unit engineering, including:
constructing an initial contour model of the target unit project according to construction process information of the dam project;
classifying the features of the edges of the initial contour model to obtain multiple types of feature lines, wherein different feature line groups correspond to different line types;
Based on the multiple types of characteristic lines, segmenting the initial contour model to obtain a segmentation result;
and obtaining a target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering.
In the mode, automatic modeling can be realized, and the target model of the unit engineering is constructed based on the construction process information of the dam engineering, so that the obtained target model has universality and is more beneficial to improving the construction efficiency of the target model.
In an alternative embodiment, classifying the features of the edges of the initial contour model to obtain multiple types of feature lines includes:
identifying edges of the initial contour model to obtain a plurality of contour lines;
according to the midpoint z-direction coordinate of each contour line, carrying out direction division on a plurality of contour lines to obtain a horizontal direction line group and a vertical direction line group;
performing first classification processing on the horizontal line groups to obtain a plurality of groups of first characteristic lines;
performing second classification treatment on the vertical line group to obtain a second characteristic line group;
and taking the plurality of groups of first characteristic lines and the second characteristic lines as a plurality of types of characteristic lines.
In an alternative embodiment, performing a first classification process on the horizontal line groups to obtain multiple groups of first feature lines, where the first classification process includes:
Dividing horizontal line groups according to the positions of the horizontal lines in the initial contour model to obtain an upper surface horizontal line group and a lower surface horizontal line group;
dividing the upper surface horizontal line groups based on the included angle between every two upper surface horizontal lines in the upper surface horizontal line groups to obtain a first transverse seam line group, a first upstream horizontal line group and a first downstream horizontal line group;
dividing the lower surface horizontal line groups based on the included angle between every two lower surface horizontal lines in the lower surface horizontal line groups to obtain a second transverse seam line group, a second upstream horizontal line group and a second downstream horizontal line group;
and taking the first transverse seam line group, the first upstream horizontal line group, the first downstream horizontal line group, the second transverse seam line group, the second upstream horizontal line group and the second downstream horizontal line group as a plurality of groups of first characteristic lines.
In an alternative embodiment, the second classifying process is performed on the vertical line group to obtain a second feature line group, including:
respectively comparing the distance between each vertical line and the first upstream horizontal line group, the first downstream horizontal line group, the second upstream horizontal line group and the second downstream horizontal line group to obtain a comparison result;
Obtaining a second characteristic line group according to the comparison result;
the second characteristic line is a vertical line having a shortest distance from the target horizontal line group among the vertical line groups, and the target horizontal line group includes: the first upstream horizontal line group and the first downstream horizontal line group, or the second upstream horizontal line group and the second downstream horizontal line group.
In an alternative embodiment, based on the multiple types of feature lines, the initial contour model is segmented to obtain a segmentation result, including:
reading the segmentation parameters corresponding to each type of characteristic line from a preset configuration file respectively;
determining the position information of each type of characteristic line according to the attribute information;
and respectively segmenting the initial contour model according to the segmentation parameters of each type of characteristic line and the corresponding position information to obtain segmentation results.
In an alternative embodiment, the method includes that the initial contour model is segmented according to segmentation parameters of each type of feature line and corresponding position information to obtain segmentation results, and the method includes:
determining bias distances of various characteristic lines according to segmentation parameters of the various characteristic lines;
dividing the initial contour model according to the position information of various characteristic lines and the corresponding offset distance, and generating a cutting surface through stretching to obtain model bodies corresponding to various characteristic lines;
Modeling is carried out based on each model body, and an intermediate model is obtained;
and taking the intermediate model as a segmentation result.
In an alternative embodiment, the segmentation result includes a plurality of target models;
obtaining a target model of the target unit project according to the segmentation result and the attribute information of the target unit project, wherein the method comprises the following steps:
counting and identifying the volume of each target model body according to the attribute information of the target unit engineering;
determining the grading type of each target model body according to the attribute information;
according to the preset corresponding relation between the grading types and the colors and the grading type of each target model body, configuring the corresponding colors for each target model body respectively;
and responding to the completion of the corresponding color configuration of each target model body to obtain a target model of the target unit engineering.
In a second aspect, the present invention provides a model building apparatus for unit engineering, the apparatus comprising:
the acquisition module is used for constructing an initial contour model of the target unit project according to construction process information of the dam project;
the classification module is used for classifying the characteristics of the edges of the initial contour model to obtain multiple types of characteristic lines, and different characteristic line groups correspond to different line types;
The segmentation module is used for segmenting the initial contour model based on the multiple types of characteristic lines to obtain segmentation results;
and the processing module is used for obtaining a target model of the target unit project according to the segmentation result and the attribute information of the target unit project.
In a third aspect, the present invention provides a computer device comprising: the memory and the processor are in communication connection with each other, the memory stores computer instructions, and the processor executes the computer instructions, so as to execute the model construction method of the unit engineering according to the first aspect or any implementation mode corresponding to the first aspect.
In a fourth aspect, the present invention provides a computer-readable storage medium having stored thereon computer instructions for causing a computer to execute the model building method of the unit engineering of the first aspect or any of the embodiments corresponding thereto.
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 flow chart of a method of modeling a unit project according to an embodiment of the invention;
FIG. 2 is a model schematic of an initial contour model in accordance with an embodiment of the present invention;
FIG. 3 is a flow chart of a method of model building for another unit project according to an embodiment of the invention;
FIG. 4 is a schematic diagram of a feature line partitioning result according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method of model building for yet another unit project according to an embodiment of the invention;
FIG. 6 is a schematic view of a slicing effect according to an embodiment of the present invention;
FIG. 7 is a schematic diagram of another segmentation effect according to an embodiment of the present invention;
FIG. 8 is a schematic diagram of yet another split effect according to an embodiment of the present invention;
FIG. 9 is a schematic diagram of yet another split effect according to an embodiment of the present invention;
FIG. 10 is a schematic diagram of yet another split effect according to an embodiment of the present invention;
FIG. 11 is a schematic diagram of yet another split effect according to an embodiment of the present invention;
FIG. 12 is a schematic diagram of yet another split effect according to an embodiment of the present invention;
FIG. 13 is a schematic diagram of a target model according to an embodiment of the invention;
FIG. 14 is a flow chart of a method of model building for yet another unit project according to an embodiment of the invention;
FIG. 15 is a block diagram showing the construction of a model construction apparatus of a unit project according to an embodiment of the present invention;
Fig. 16 is a schematic diagram of a hardware structure of a computer device according to an embodiment of the present invention.
Detailed Description
For the purpose of making the objects, technical solutions and advantages of the embodiments of the present invention more apparent, the technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention, and it is apparent that the described embodiments are some embodiments of the present invention, but not all embodiments of the present invention. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For dam engineering, modeling and deepening design for unit engineering are needed for facilitating calculation. The unit engineering can comprise any one of the following engineering: earth and stone excavation, concrete engineering, drilling and grouting, foundation and foundation treatment and the like.
However, in the prior art, the model of the unit engineering is constructed in a manual mode, so that the modeling efficiency is low, and the modeling personnel experience is limited, and the calculation amount of the project related party to the model is inconsistent, so that the obtained model has no universality and the calculation accuracy is affected.
In view of this, the present invention provides a model construction method of unit engineering, including: constructing an initial contour model of the target unit project according to construction process information of the dam project; classifying the features of the edges of the initial contour model to obtain multiple types of feature lines, wherein different feature line groups correspond to different line types; based on the multiple types of characteristic lines, segmenting the initial contour model to obtain a segmentation result; and obtaining a target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering. By the method for constructing the model of the unit engineering, the automatic modeling can be realized, and the target model of the unit engineering is constructed based on the construction process information of the dam engineering, so that the obtained target model has higher universality and is more beneficial to improving the construction efficiency of the target model.
According to an embodiment of the present invention, there is provided a model building method embodiment of unit engineering, it should be noted that the steps shown in the flowchart of the drawings may be performed in a computer system such as a set of computer executable instructions, and that although a logical order is shown in the flowchart, in some cases, the steps shown or described may be performed in an order different from that herein.
In this embodiment, a method for building a model of a unit project is provided, which may be used for the above terminal, such as a notebook computer, a desktop computer, etc., and fig. 1 is a flowchart of a method for building a model of a unit project according to an embodiment of the present invention, as shown in fig. 1, where the flowchart includes the following steps:
and step S101, constructing an initial contour model of the target unit project according to construction process information of the dam project.
In the embodiment of the invention, in order to improve the modeling effectiveness, an initial contour model of a target unit project is constructed according to the construction process information of a dam project, and the attribute information of the initial contour model is determined. The construction process information is information shared by related parties of each project of the dam project. Through the construction process information, the calculation standard of each project related party can be clarified, and timeliness, authority and accuracy of the construction of the target model are guaranteed. For example: through the construction process information, the elevation, specific size, measurement unit and other data of the actual building can be determined, and then the initial contour model of the target unit engineering can be constructed by adopting unified standards.
In one example, the initial contour model constructed may be as shown in FIG. 2.
And S102, classifying the features of the edges of the initial contour model to obtain multi-class feature lines.
In the embodiment of the invention, different characteristic line groups correspond to different line categories. The edges of the initial contour model are subjected to feature classification, so that different modes can be adopted for subsequent segmentation aiming at different feature lines, and the segmentation accuracy is improved.
Step S103, based on the multi-class feature lines, the initial contour model is segmented, and a segmentation result is obtained.
In the embodiment of the invention, the initial contour model is segmented based on multiple types of characteristic lines so as to define different partitions related to the initial contour model and further obtain a segmentation result.
Step S104, obtaining a target model of the target unit project according to the segmentation result and the attribute information of the target unit project.
According to the method and the device, the attribute information for each region pair in the segmentation result can be definitely obtained according to the segmentation result and the attribute information of the target unit engineering, so that a target model of the target unit engineering is obtained, and the same standard can be adopted for calculation when the related parties of the subsequent items calculate according to the target model.
The model construction method of the unit engineering can realize automatic modeling, and the target model of the unit engineering is constructed based on construction process information of the dam engineering, so that the obtained target model has universality and is more beneficial to improving the construction efficiency of the target model.
In this embodiment, a method for building a model of a unit project is provided, which may be used for a terminal, such as a notebook computer, a desktop computer, etc., and fig. 3 is a flowchart of a method for building a model of a unit project according to an embodiment of the present invention, as shown in fig. 3, where the flowchart includes the following steps:
step S301, constructing an initial contour model of the target unit project according to construction process information of the dam project. Please refer to step S101 in the embodiment shown in fig. 1 in detail, which is not described herein.
And step S302, classifying the features of the edges of the initial contour model to obtain multi-class feature lines.
Specifically, the step S302 includes:
in step S3021, edges of the initial contour model are identified, and a plurality of contour lines are obtained.
In the embodiment of the invention, the initial contour model is horizontally placed so as to improve the segmentation efficiency. And identifying edges of the initial contour model to obtain a plurality of contour lines so that the target segmentation can be performed based on the category of each contour line.
In step S3022, the directions of the plurality of contour lines are divided according to the z-direction coordinates of the middle point of each contour line, so as to obtain a horizontal direction line group and a vertical direction line group.
In the embodiment of the invention, in order to improve the dividing efficiency, the directions of the plurality of contour lines are divided according to the midpoint z-direction coordinate of each contour line, so as to obtain a horizontal direction line group and a vertical direction line group.
In step S3023, a first classification process is performed on the horizontal line groups to obtain a plurality of groups of first feature lines.
In the embodiment of the invention, for refining classification, the horizontal line group is subjected to first classification processing to obtain a plurality of groups of first characteristic lines.
In some alternative embodiments, step S3023 includes:
and a1, dividing the horizontal line groups according to the positions of the horizontal lines in the initial contour model to obtain an upper surface horizontal line group and a lower surface horizontal line group.
And a2, dividing the upper surface horizontal line groups based on the included angle between every two upper surface horizontal lines in the upper surface horizontal line groups to obtain a first transverse seam line group, a first upstream horizontal line group and a first downstream horizontal line group.
And a3, dividing the lower surface horizontal line groups based on the included angle between every two lower surface horizontal lines in the lower surface horizontal line groups to obtain a second transverse seam line group, a second upstream horizontal line group and a second downstream horizontal line group.
And a4, dividing the lower surface horizontal line groups based on the included angle between every two lower surface horizontal lines in the lower surface horizontal line groups to obtain a second transverse seam line group, a second upstream horizontal line group and a second downstream horizontal line group.
And a step a5, wherein the first transverse seam line group, the first upstream horizontal line group, the first downstream horizontal line group, the second transverse seam line group, the second upstream horizontal line group and the second downstream horizontal line group are used as the plurality of groups of first characteristic lines.
Specifically, since the upstream horizontal line group and the downstream horizontal line group are large in number and approximately tangential, the upstream horizontal line group and the lower surface horizontal line group are divided in the same manner, respectively.
Taking the upstream horizontal line set as an example: for convenience of distinguishing, the judgment is performed based on the included angle between every two upper surface horizontal lines. If the included angle is smaller than the specified angle, dividing the two into the same group. The specified angle is the maximum threshold that determines the intersection of the upper surface horizontal lines. After traversing all the upper surface horizontal lines, obtaining a plurality of middle groups, and connecting the upper surface horizontal lines in the middle groups with the largest number. Since there is only one left and right lateral suture. Therefore, the respective intermediate groups are classified based on the number. If there is only one upper surface horizontal line in the middle group, the middle group is determined to be a first transverse line group, and if there is a plurality of upper surface horizontal lines in the middle group, each middle group is determined to be a first upstream horizontal line group or a first downstream horizontal line group according to the distribution of each upper surface horizontal line in the middle group on the y axis.
Similarly, the downstream horizontal line group is divided in the same manner to obtain a second transverse line group, a second upstream horizontal line group and a second downstream horizontal line group.
And taking the first transverse seam line group, the first upstream horizontal line group, the first downstream horizontal line group, the second transverse seam line group, the second upstream horizontal line group and the second downstream horizontal line group as the plurality of groups of first characteristic lines.
The horizontal line groups are divided by adopting the mode, so that the division efficiency is improved, and the occurrence of the situation of wrong division is avoided.
In step S3024, a second classification process is performed on the vertical line group to obtain a second feature line group.
In some alternative embodiments, step S3024 includes:
and b1, respectively comparing the distance between each vertical line and the first upstream horizontal line group, the first downstream horizontal line group, the second upstream horizontal line group and the second downstream horizontal line group to obtain a comparison result.
And b2, obtaining a second characteristic line group according to the comparison result, wherein the second characteristic line is a vertical line with the shortest distance compared with the target horizontal line group in the vertical line group. The target horizontal line group includes: the first upstream horizontal line group and the first downstream horizontal line group, or the second upstream horizontal line group and the second downstream horizontal line group.
Specifically, for the vertical line group, respectively comparing the distance between each vertical line and the first upstream horizontal line group, the distance between each vertical line and the first downstream horizontal line group, the distance between each vertical line and the second upstream horizontal line group, and the distance between each vertical line and the second downstream horizontal line group are respectively reserved, and the vertical line which is shortest in distance between each vertical line and the first upstream horizontal line group and the vertical line which is shortest in distance between each vertical line and the vertical line are reserved, so that the second characteristic line group is obtained. And deleting other vertical lines which are not shortest distances, so that the subsequent model segmentation is easy to avoid.
In step S3025, a plurality of sets of first feature lines and second feature lines are used as the plurality of types of feature lines.
In an implementation scenario, the resulting multi-class feature line may include multiple feature line sets as shown in fig. 4 by feature classification of the edges of the initial contour model. The upstream horizontal line, the downstream horizontal line, the left side transverse seam and the right side transverse seam are obtained by classifying the horizontal line groups. The vertical lines are based on a classification of the vertical line groups.
Step S303, based on the multi-class feature lines, the initial contour model is segmented, and a segmentation result is obtained. Please refer to step S103 in the embodiment shown in fig. 1 in detail, which is not described herein.
And step S304, obtaining a target model of the target unit project according to the segmentation result and the attribute information of the target unit project. Please refer to step S104 in the embodiment shown in fig. 1 in detail, which is not described herein.
According to the model construction method for the unit engineering, the edges of the initial contour model are subjected to feature classification, and then the target model is constructed by segmentation based on the classification result, so that the model construction efficiency is improved, and the time cost is reduced.
In this embodiment, a method for building a model of a unit project is provided, which may be used for a terminal, such as a notebook computer, a desktop computer, etc., and fig. 5 is a flowchart of a method for building a model of a unit project according to an embodiment of the present invention, as shown in fig. 5, where the flowchart includes the following steps:
step S501, an initial contour model of the target unit project is constructed according to construction process information of the dam project.
And step S502, classifying the features of the edges of the initial contour model to obtain multi-class feature lines. Please refer to step S202 in the embodiment shown in fig. 2, which is not described herein.
Step S503, based on the multi-class feature lines, segmenting the initial contour model to obtain a segmentation result.
Specifically, the step S503 includes:
Step S5031, respectively reading the segmentation parameters corresponding to each type of feature line from the preset configuration file.
In the embodiment of the invention, in order to facilitate the definition of the segmentation parameters corresponding to various characteristic lines, the segmentation parameters are acquired from a preset configuration file.
In step S5032, the location information of each type of feature line is determined according to the attribute information.
In the embodiment of the invention, in order to facilitate accurate segmentation, the position information of each type of characteristic line is determined according to the attribute information of the target model.
Step S5033, the initial contour model is segmented according to the segmentation parameters of each type of characteristic line and the corresponding position information, and a segmentation result is obtained.
In some alternative embodiments, step S5033 includes:
and step c1, determining the offset distances of various characteristic lines according to the segmentation parameters of the various characteristic lines.
And c2, cutting the initial contour model according to the position information of various characteristic lines and the corresponding offset distances, and generating a cutting surface through stretching to obtain model bodies corresponding to various characteristic lines.
And c3, modeling based on each model body to obtain an intermediate model.
And c4, taking the intermediate model as a segmentation result.
Specifically, when the initial contour model is cut, the initial contour model is cut according to the position of each type of characteristic line and the corresponding offset distance of the characteristic line, and then a cutting surface is generated through stretching, so that model bodies corresponding to the various types of characteristic lines are obtained. For example: in combination with the initial contour model shown in fig. 2, the initial contour model is segmented according to the position information and the offset distance of the lower transverse seam, and an effect diagram after the cutting surface is generated by stretching can be shown in fig. 6, so that a corresponding model body is obtained as a model body 1.
And modeling based on each model body to obtain an intermediate model, so as to carry out depth division on the initial contour model, and further taking the intermediate model as a segmentation result.
In an implementation scenario, in combination with the division result shown in fig. 6, the division is performed for the downstream upper surface horizontal line and the downstream upper surface horizontal line, and the model body 2 and the model body 3 shown in fig. 7 can be obtained.
The upstream upper surface level and the upstream upper surface level are cut to obtain a model body 4 as shown in fig. 8.
The right side transverse seam is cut to obtain a model body 5 as shown in fig. 9. In combination with the segmentation of the upstream level, a model body 6 is obtained as shown in fig. 9.
In the cutting process, the mold body 5 is combined back to the mold body 1, the mold body 6 is combined back to the mold body 4, and a cutting schematic diagram as shown in fig. 10 is obtained.
In combination with the initial intermediate model shown in fig. 10, the upstream transverse seam is split to obtain an intermediate portion shown in fig. 11, which is modeled to obtain models of the respective model bodies shown in fig. 12. The models of the model bodies are combined to obtain a target model as shown in fig. 13, and the target model is used as a segmentation result.
Step S504, obtaining a target model of the target unit project according to the segmentation result and the attribute information of the target unit project.
The model construction method of the unit engineering can automatically complete the deepened design of the target unit engineering, and further enable project related parties to determine the structural details of the target unit engineering through the obtained target model.
In some optional embodiments, in order to facilitate the project related party to quickly determine the structural details of the target unit engineering and the distribution situation of each grading, obtaining the target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering includes: and counting and identifying the volume of each target model body according to the attribute information of the target unit engineering. Wherein the segmentation result comprises a plurality of target model bodies. And respectively determining the grading type of each target model body according to the attribute information, and respectively configuring the corresponding color for each target model body according to the preset corresponding relation between the grading types and the colors and the grading type of each target model body. And responding to the completion of the corresponding color configuration of each target model body to obtain a target model of the target unit engineering. For example: as shown in fig. 13, the target model includes 3 target model bodies corresponding to the gradations a, b, and c, respectively. Wherein, gradation a, gradation b and gradation c respectively represent different gradation types, and the different gradation types correspond to different colors.
In an implementation scenario, taking the cutting of a whiteboard bin as an example, the method for constructing a model of unit engineering provided by the present invention may be executed by a building information model (Building Information Modeling) simulation tool, as shown in fig. 14, and includes:
a preparation stage of segmentation: the modeling personnel opens the cad template and calls the sat format file of the initial contour model of the target unit project. If so, executing a segmentation initialization link. If not, an error is prompted.
An initialization stage: and reading the segmentation parameter file from the preset configuration file, and storing the segmentation parameter file. And importing the sat format file of the called initial contour model into the current template file to obtain the initial contour model. And determining the total volume of the initial contour model according to the attribute information of the target unit engineering. And classifying the characteristics of the edges of the initial contour model to obtain multiple types of characteristic lines.
And (3) a segmentation stage: and cutting the initial contour model based on the multi-class feature lines to obtain a cutting result.
The treatment stage comprises the following steps: corresponding colors are configured for different target model bodies, the volume of each target model body is counted and marked according to construction process information of dam engineering, and text is adopted for storage. And respectively storing the text of each target model body in an independent txt format, and identifying the volume and the corresponding grading of each target model body.
The model construction method of the unit engineering can realize automatic construction of the model, so that personnel who master different modeling experiences can obtain the model of LOD400 according to set parameters, automation and standardization are realized, and further the problems of the traditional unit deepened design, such as inaccurate engineering quantity calculation, modeling repeatability verification and the like, caused by the dependence of modeling personnel experience are overcome, the design is simplified, the design is not different from person to person, and the practical value and the popularization value are high.
The embodiment also provides a model construction device for unit engineering, which is used for realizing the embodiment and the preferred implementation manner, and the description is omitted. As used below, the term "module" may be a combination of software and/or hardware that implements a predetermined function. While the means described in the following embodiments are preferably implemented in software, implementation in hardware, or a combination of software and hardware, is also possible and contemplated.
The present embodiment provides a model construction apparatus for unit engineering, as shown in fig. 15, including:
an acquisition module 1501, configured to construct an initial contour model of a target unit project according to construction process information of a dam project;
The classification module 1502 is configured to perform feature classification on edges of the initial contour model to obtain multiple types of feature lines, where different feature line groups correspond to different line types;
a segmentation module 1503, configured to segment the initial contour model based on multiple types of feature lines, to obtain a segmentation result;
and the processing module 1504 is configured to obtain a target model of the target unit project according to the segmentation result and attribute information of the target unit project.
In some alternative embodiments, classification module 1502 includes:
the identification unit is used for identifying edges of the initial contour model to obtain a plurality of contour lines;
the dividing unit is used for dividing the directions of the plurality of contour lines according to the midpoint z-direction coordinate of each contour line to obtain a horizontal direction line group and a vertical direction line group;
the first classification unit is used for carrying out first classification treatment on the horizontal line groups to obtain a plurality of groups of first characteristic lines;
the second classification unit is used for performing second classification treatment on the vertical line group to obtain a second characteristic line group;
the first execution unit is used for taking a plurality of groups of first characteristic lines and second characteristic lines as a plurality of types of characteristic lines.
In some alternative embodiments, the first classification unit comprises:
The first processing unit is used for dividing the horizontal line groups according to the positions of the horizontal lines in the initial contour model to obtain an upper surface horizontal line group and a lower surface horizontal line group;
the second processing unit is used for dividing the upper surface horizontal line groups based on the included angle between every two upper surface horizontal lines in the upper surface horizontal line groups to obtain a first transverse seam line group, a first upstream horizontal line group and a first downstream horizontal line group;
the third processing unit is used for dividing the lower surface horizontal line groups based on the included angle between every two lower surface horizontal lines in the lower surface horizontal line groups to obtain a second transverse seam line group, a second upstream horizontal line group and a second downstream horizontal line group;
the second execution unit is used for taking the first transverse seam line group, the first upstream horizontal line group, the first downstream horizontal line group, the second transverse seam line group, the second upstream horizontal line group and the second downstream horizontal line group as a plurality of groups of first characteristic lines.
In some alternative embodiments, the second classification unit includes:
the fourth processing unit is used for respectively comparing the distance between each vertical line and the first upstream horizontal line group, the first downstream horizontal line group, the second upstream horizontal line group and the second downstream horizontal line group to obtain a comparison result;
The fifth processing unit is used for obtaining a second characteristic line group according to the comparison result;
and a third execution unit, configured to, in the vertical line group, the second feature line being a vertical line having a shortest distance compared to the target horizontal line group, where the target horizontal line group includes: the first upstream horizontal line group and the first downstream horizontal line group, or the second upstream horizontal line group and the second downstream horizontal line group.
In some alternative embodiments, the segmentation module includes:
the reading unit is used for respectively reading the segmentation parameters corresponding to each type of characteristic line from a preset configuration file;
the determining unit is used for determining the position information of each type of characteristic line according to the attribute information;
the segmentation unit is used for segmenting the initial contour model according to the segmentation parameters of each type of characteristic line and the corresponding position information respectively to obtain segmentation results.
In some alternative embodiments, the slicing unit includes:
the distance determining unit is used for determining the offset distance of each type of characteristic line according to the segmentation parameters of each type of characteristic line;
the first segmentation processing unit is used for segmenting the initial contour model according to the position information of various characteristic lines and corresponding offset distances, and generating a cutting surface through stretching to obtain model bodies corresponding to various characteristic lines;
The building unit is used for modeling based on each model body to obtain an intermediate model;
and the second segmentation processing unit is used for taking the intermediate model as a segmentation result.
In some alternative embodiments, the segmentation result includes a plurality of target models;
the processing module comprises:
the statistics unit is used for counting and identifying the volume of each target model body according to the attribute information of the target unit engineering;
the type determining unit is used for determining the grading type of each target model body according to the attribute information;
the rendering unit is used for configuring corresponding colors for each target model body according to the preset corresponding relation between the multiple grading types and colors and the grading type of each target model body;
and the fourth execution unit is used for responding to the completion of the corresponding color configuration of each target model body to obtain a target model of the target unit engineering.
The model building means of the unit engineering in this embodiment are presented in the form of functional units, where a unit refers to an ASIC circuit, a processor and a memory executing one or more software or fixed programs, and/or other devices that can provide the above described functions.
Further functional descriptions of the above respective modules and units are the same as those of the above corresponding embodiments, and are not repeated here.
The embodiment of the invention also provides computer equipment, which is provided with the model construction device of the unit engineering shown in the figure 15.
Referring to fig. 16, fig. 16 is a schematic structural diagram of a computer device according to an alternative embodiment of the present invention, as shown in fig. 16, the computer device includes: one or more processors 10, memory 20, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are communicatively coupled to each other using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions executing within the computer device, including instructions stored in or on memory to display graphical information of the GUI on an external input/output device, such as a display device coupled to the interface. In some alternative embodiments, multiple processors and/or multiple buses may be used, if desired, along with multiple memories and multiple memories. Also, multiple computer devices may be connected, each providing a portion of the necessary operations (e.g., as a server array, a set of blade servers, or a multiprocessor system). One processor 10 is illustrated in fig. 16.
The processor 10 may be a central processor, a network processor, or a combination thereof. The processor 10 may further include a hardware chip, among others. The hardware chip may be an application specific integrated circuit, a programmable logic device, or a combination thereof. The programmable logic device may be a complex programmable logic device, a field programmable gate array, a general-purpose array logic, or any combination thereof.
Wherein the memory 20 stores instructions executable by the at least one processor 10 to cause the at least one processor 10 to perform the methods shown in implementing the above embodiments.
The memory 20 may include a storage program area that may store an operating system, at least one application program required for functions, and a storage data area; the storage data area may store data created from the use of the computer device of the presentation of a sort of applet landing page, and the like. In addition, the memory 20 may include high-speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid-state storage device. In some alternative embodiments, memory 20 may optionally include memory located remotely from processor 10, which may be connected to the computer device via a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
Memory 20 may include volatile memory, such as random access memory; the memory may also include non-volatile memory, such as flash memory, hard disk, or solid state disk; the memory 20 may also comprise a combination of the above types of memories.
The computer device further comprises input means 30 and output means 40. The processor 10, memory 20, input device 30, and output device 40 may be connected by a bus or other means, for example in fig. 14.
The input device 30 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the computer apparatus, such as a touch screen, a keypad, a mouse, a trackpad, a touchpad, a pointer stick, one or more mouse buttons, a trackball, a joystick, and the like. The output means 40 may include a display device, auxiliary lighting means (e.g., LEDs), tactile feedback means (e.g., vibration motors), and the like. Such display devices include, but are not limited to, liquid crystal displays, light emitting diodes, displays and plasma displays. In some alternative implementations, the display device may be a touch screen.
The embodiments of the present invention also provide a computer readable storage medium, and the method according to the embodiments of the present invention described above may be implemented in hardware, firmware, or as a computer code which may be recorded on a storage medium, or as original stored in a remote storage medium or a non-transitory machine readable storage medium downloaded through a network and to be stored in a local storage medium, so that the method described herein may be stored on such software process on a storage medium using a general purpose computer, a special purpose processor, or programmable or special purpose hardware. The storage medium can be a magnetic disk, an optical disk, a read-only memory, a random access memory, a flash memory, a hard disk, a solid state disk or the like; further, the storage medium may also comprise a combination of memories of the kind described above. It will be appreciated that a computer, processor, microprocessor controller or programmable hardware includes a storage element that can store or receive software or computer code that, when accessed and executed by the computer, processor or hardware, implements the methods illustrated by the above embodiments.
Although embodiments of the present invention have been described in connection with the accompanying drawings, various modifications and variations may be made by those skilled in the art without departing from the spirit and scope of the invention, and such modifications and variations fall within the scope of the invention as defined by the appended claims.

Claims (10)

1. A method of modeling a unit project, the method comprising:
constructing an initial contour model of the target unit project according to construction process information of the dam project;
performing feature classification on the edges of the initial contour model to obtain multiple types of feature lines, wherein different feature line groups correspond to different line types;
based on the multi-class feature lines, segmenting the initial contour model to obtain segmentation results;
and obtaining a target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering.
2. The method of claim 1, wherein classifying the features of the edges of the initial contour model to obtain a plurality of classes of feature lines, comprises:
identifying edges of the initial contour model to obtain a plurality of contour lines;
according to the midpoint z-direction coordinate of each contour line, carrying out direction division on the contour lines to obtain a horizontal direction line group and a vertical direction line group;
performing first classification processing on the horizontal line groups to obtain a plurality of groups of first characteristic lines;
performing second classification processing on the vertical line group to obtain a second characteristic line group;
and taking the plurality of groups of first characteristic lines and the second characteristic lines as the plurality of types of characteristic lines.
3. The method according to claim 2, wherein the performing a first classification process on the horizontal line group to obtain a plurality of groups of first feature lines includes:
dividing the horizontal line groups according to the positions of the horizontal lines in the initial contour model to obtain an upper surface horizontal line group and a lower surface horizontal line group;
dividing the upper surface horizontal line groups based on the included angle between every two upper surface horizontal lines in the upper surface horizontal line groups to obtain a first transverse seam line group, a first upstream horizontal line group and a first downstream horizontal line group;
dividing the lower surface horizontal line groups based on the included angle between every two lower surface horizontal lines in the lower surface horizontal line groups to obtain a second transverse line group, a second upstream horizontal line group and a second downstream horizontal line group;
and taking the first transverse seam line group, the first upstream horizontal line group, the first downstream horizontal line group, the second transverse seam line group, the second upstream horizontal line group and the second downstream horizontal line group as the plurality of groups of first characteristic lines.
4. A method according to claim 3, wherein said performing a second classification of said set of vertical lines to obtain a second set of feature lines comprises:
Respectively comparing the distance between each vertical line and the first upstream horizontal line group, the first downstream horizontal line group, the second upstream horizontal line group and the second downstream horizontal line group to obtain a comparison result;
obtaining a second characteristic line group according to the comparison result;
the second characteristic line is a vertical line with a shortest distance compared with a target horizontal line group in the vertical line group, and the target horizontal line group comprises: the first upstream horizontal line group and the first downstream horizontal line group, or the second upstream horizontal line group and the second downstream horizontal line group.
5. The method according to claim 1, wherein the segmenting the initial contour model based on the multiple classes of feature lines to obtain segmentation results comprises:
reading the segmentation parameters corresponding to each type of characteristic line from a preset configuration file respectively;
determining the position information of each type of characteristic line according to the attribute information;
and respectively segmenting the initial contour model according to the segmentation parameters of each type of characteristic line and the corresponding position information to obtain segmentation results.
6. The method according to claim 5, wherein the segmenting the initial contour model according to the segmentation parameters of each type of feature line and the corresponding position information to obtain the segmentation result includes:
Determining the offset distance of each characteristic line group according to the segmentation parameters of each characteristic line group;
cutting the initial contour model according to the position information of each characteristic line group and the corresponding offset distance, and generating a cutting surface through stretching to obtain a model body corresponding to each characteristic line group;
modeling is carried out based on each model body, and an intermediate model is obtained;
and taking the intermediate model as a segmentation result.
7. The method of claim 1, wherein the step of determining the position of the substrate comprises,
the segmentation result comprises a plurality of target model bodies;
the obtaining the target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering comprises the following steps:
counting and identifying the volume of each target model body according to the attribute information of the target unit engineering;
determining the grading type of each target model body according to the attribute information;
according to the preset corresponding relation between the grading types and the colors and the grading type of each target model body, configuring the corresponding colors for each target model body respectively;
and responding to the completion of the corresponding color configuration of each target model body to obtain a target model of the target unit engineering.
8. A model construction device for unit engineering, characterized in that the device comprises:
the acquisition module is used for constructing an initial contour model of the target unit project according to construction process information of the dam project;
the classification module is used for classifying the characteristics of the edges of the initial contour model to obtain multiple types of characteristic lines, and different characteristic line groups correspond to different line types;
the segmentation module is used for segmenting the initial contour model based on the multi-class characteristic lines to obtain segmentation results;
and the processing module is used for obtaining a target model of the target unit engineering according to the segmentation result and the attribute information of the target unit engineering.
9. A computer device, comprising:
a memory and a processor, the memory and the processor being communicatively connected to each other, the memory having stored therein computer instructions, the processor executing the computer instructions to perform the model building method of unit engineering according to any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that the computer-readable storage medium has stored thereon computer instructions for causing a computer to execute the model building method of the unit engineering according to any one of claims 1 to 7.
CN202310810957.1A 2023-07-03 2023-07-03 Model construction method, device, computer equipment and medium for unit engineering Pending CN116778093A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310810957.1A CN116778093A (en) 2023-07-03 2023-07-03 Model construction method, device, computer equipment and medium for unit engineering

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310810957.1A CN116778093A (en) 2023-07-03 2023-07-03 Model construction method, device, computer equipment and medium for unit engineering

Publications (1)

Publication Number Publication Date
CN116778093A true CN116778093A (en) 2023-09-19

Family

ID=87989331

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310810957.1A Pending CN116778093A (en) 2023-07-03 2023-07-03 Model construction method, device, computer equipment and medium for unit engineering

Country Status (1)

Country Link
CN (1) CN116778093A (en)

Similar Documents

Publication Publication Date Title
CN109857451B (en) Method, device, equipment and medium for generating IP core file
CN104408269B (en) Design drawing method for splitting
US20230229704A1 (en) Graph processing method and apparatus
CN111488640A (en) Bridge engineering design file generation device, computer equipment and storage medium
CN114880337B (en) Map data integrated updating method, device, equipment and storage medium
CN109271697A (en) Based on profile data processing system and method, computer program in VBA processing AutoCAD
CN113849581A (en) Alarm information processing method, device, equipment and storage medium
CN109934894B (en) CAD (computer-aided design) drawing method and device and computer-readable storage medium
CN116778093A (en) Model construction method, device, computer equipment and medium for unit engineering
CN116303461A (en) Component library creation method and device, electronic equipment and storage medium
CN103530436B (en) Tooling layout drawing parameterization generation method based on AUTOCAD. NET API
US20230048643A1 (en) High-Precision Map Construction Method, Apparatus and Electronic Device
CN116011955A (en) Robot flow automation demand realization method, device, equipment and storage medium
CN110321596A (en) A kind of rolling stock structure simulation method based on finite element analysis
CN115374499A (en) Dimension marking method and device, electronic equipment and storage medium
CN114444185A (en) In-situ labeling identification method and device and electronic equipment
US20230409531A1 (en) Method for real-time extraction of on-chip simulation information
CN115249303A (en) Layout drawing method, device, equipment and storage medium based on drawing segmentation
CN114564268A (en) Equipment management method and device, electronic equipment and storage medium
CN113609237A (en) Data processing method, device, equipment and medium for construction land change
CN117540474B (en) BIM-based whole process management method and related device
CN112464319A (en) Method for rapidly drawing urban rail transit wiring diagram
CN115659900B (en) Method, apparatus and medium for presenting an integrated circuit layout
CN114741072B (en) Page generation method, device, equipment and storage medium
WO2024045090A1 (en) Product model simulation method and device

Legal Events

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