A method and system for generating a solid model from a foundation pit slope two-dimensional drawing

By preprocessing and performing area calculations on the two-dimensional drawings of the foundation pit slope, a solid model of the foundation pit is generated, which solves the problems of cumbersome calculations and low accuracy in the existing technology and realizes automated and high-precision foundation pit solid model generation.

CN120781573BActive Publication Date: 2025-12-26CHINA CONSTR FIFTH ENG DIV CORP LTD +1
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202511252701.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2025-09-03
Publication Date
2025-12-26
Estimated Expiration
2045-09-03

AI Technical Summary

Technical Problem

In existing technologies, the calculation process for two-dimensional drawings of foundation pit slopes is cumbersome, complex, and prone to errors. Furthermore, it cannot automatically generate foundation pit entities, resulting in long calculation times and low accuracy for designers.

Method used

By preprocessing the two-dimensional drawings of the foundation pit slope, a set of surface regions is generated, including the slope bottom surface region and the slope extension surface region. The elevation value of the slope bottom surface and the slope extension value are calculated, and the foundation pit solid model is automatically generated.

Benefits of technology

It reduces computational complexity and time, improves computational accuracy, avoids errors in manual calculation, and realizes the automated generation of foundation pit entities.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120781573B_ABST
    Figure CN120781573B_ABST
Patent Text Reader

Abstract

The application discloses a method and system for generating a solid model from a foundation pit slope two-dimensional drawing, and the method comprises the following steps: obtaining a foundation pit slope two-dimensional drawing, preprocessing the foundation pit slope two-dimensional drawing to obtain drawing information; cutting a site according to the drawing information to obtain a surface domain set, wherein the surface domain set comprises a slope bottom surface domain and a sloping surface domain; determining a sloping surface adjacent to each slope bottom surface according to the slope bottom surface domain and the sloping surface domain, obtaining an elevation value of each slope bottom surface and a sloping gradient value of an edge of each slope bottom surface; and generating a foundation pit solid based on the elevation value of all the slope bottom surfaces and the sloping gradient value. After preprocessing the foundation pit slope two-dimensional drawing, the gradient is calculated according to the surface domain of the site cutting, so that the foundation pit solid is generated based on the elevation value of all the slope bottom surfaces and the sloping gradient value, manual calculation of designers is not needed, the complexity and time are reduced, and the calculation accuracy is improved.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The application belongs to the technical field of building drawing generation, and particularly relates to a method and system for generating an entity model from a foundation pit slope two-dimensional drawing. BACKGROUND

[0002] At present, the coordinates and elevations of excavation control points of a building foundation pit need to be calculated by an engineering survey personnel according to the control point coordinates given in a CAD drawing, the structure size in the CAD drawing, and the coordinates and elevations of each excavation control point, so as to form a two-dimensional drawing. This method is time-consuming and complicated, and is prone to errors. It requires high calculation and spatial imagination ability of the designer. Moreover, the foundation pit entity cannot be automatically generated based on the two-dimensional drawing. SUMMARY

[0003] The application provides a method and system for generating an entity model from a foundation pit slope two-dimensional drawing. The two-dimensional drawing is preprocessed, and then the slope is calculated according to the surface area of site cutting. Based on the elevation values and slope gradient values of all slope bottom surfaces, the foundation pit entity is generated. The method does not require manual calculation by the designer, reduces the complexity and time, and improves the calculation accuracy.

[0004] To solve the above technical problems, the application adopts the following technical solutions:

[0005] In a first aspect, a method for generating an entity model from a foundation pit slope two-dimensional drawing is provided, including:

[0006] obtaining a foundation pit slope two-dimensional drawing, preprocessing the foundation pit slope two-dimensional drawing, and obtaining drawing information;

[0007] performing site cutting according to the drawing information to obtain a surface area set, the surface area set including slope bottom surface areas and slope surface areas;

[0008] determining the slope surface adjacent to each slope bottom surface according to the slope bottom surface areas and the slope surface areas, obtaining the elevation value of each slope bottom surface, and obtaining the slope gradient value of each slope bottom surface edge;

[0009] generating a foundation pit entity based on the elevation values and the slope gradient values of all slope bottom surfaces.

[0010] Further, the method for generating an entity model from a foundation pit slope two-dimensional drawing includes:

[0011] obtaining a foundation pit slope two-dimensional drawing, and performing de-duplication processing and curve straightening processing on all lines in the foundation pit slope two-dimensional drawing;

[0012] The projection line is obtained based on layers of the processed two-dimensional foundation pit slope drawing, and the projection line is a projection line in a vertical direction of each slope bottom surface and a sloping surface;

[0013] All digital characters in the two-dimensional foundation pit slope drawing within a preset legal range are obtained to obtain elevation information, and the elevation information includes a slope bottom elevation value and a slope bottom elevation coordinate;

[0014] A slope surface line block in the two-dimensional foundation pit slope drawing is obtained to obtain slope surface information, and the slope surface information includes the slope surface line block and a slope surface line block coordinate;

[0015] The drawing information is formed based on the processed drawing lines, the projection line, the elevation information and the slope surface information in the two-dimensional foundation pit slope drawing.

[0016] Further, a face domain set is obtained by site cutting according to the drawing information, including:

[0017] A plurality of face domains are obtained by region segmentation according to all drawing lines in the drawing information, and one face domain is represented by one or more planar closed polylines;

[0018] The face domain type of a target face domain is determined by judging whether the target face domain contains a slope bottom elevation coordinate and / or a slope surface line block coordinate;

[0019] The face domain set is obtained according to the face domain types of all face domains.

[0020] Further, the face domain type of a target face domain is determined by judging whether the target face domain contains a slope bottom elevation coordinate and / or a slope surface line block coordinate, including:

[0021] It is judged whether the target face domain contains a slope bottom elevation coordinate and / or a slope surface line block coordinate;

[0022] If the target face domain contains one slope bottom elevation coordinate, the face domain type of the target face domain is determined as a slope bottom domain;

[0023] If the target face domain contains a plurality of slope bottom elevation coordinates, it is judged whether slope bottom elevation values corresponding to all slope bottom elevation coordinates are consistent, if consistent, the face domain type of the target face domain is determined as a slope bottom domain, and if inconsistent, the face domain type of the target face domain is determined as an error domain;

[0024] If the target face domain contains one or more slope surface line block coordinates, the face domain type of the target face domain is determined as a sloping surface domain;

[0025] If the target face domain contains a slope bottom elevation coordinate and a slope surface line block coordinate, the face domain type of the target face domain is determined as an error domain;

[0026] If the target face domain does not contain a slope bottom elevation coordinate and a slope surface line block coordinate, the face domain type of the target face domain is determined as an error domain.

[0027] Further, the method further comprises:

[0028] analyzing the error type of the error face domain;

[0029] when the error type is that the error face domain contains a slope bottom elevation coordinate and a slope surface line tile coordinate, modifying the error face domain into a slope bottom face domain;

[0030] when the error type is that the error face domain contains multiple inconsistent slope bottom elevation values, selecting the highest slope bottom elevation value as the elevation value, or selecting the lowest slope bottom elevation value as the elevation value, or obtaining an externally input default elevation value as the elevation value, and modifying the error face domain into a slope bottom face domain;

[0031] when the error type is that the error face domain does not contain a slope bottom elevation coordinate and a slope surface line tile coordinate, obtaining an externally input default elevation value as the elevation value, and modifying the error face domain into a slope bottom face domain;

[0032] when the error type is that the error face domain contains multiple slope bottom elevation coordinates and slope surface line tile coordinates, and the slope bottom elevation values corresponding to the multiple slope bottom elevation coordinates are consistent, modifying the error face domain into a slope bottom face domain;

[0033] when the error type is that the area value of the error face domain is less than a preset area value, modifying the error face domain into a region not to be calculated.

[0034] Further, according to the slope bottom face domain and the slope surface line tile coordinate, the slope surface adjacent to each slope bottom face is determined, and the elevation value of each slope bottom face and the slope gradient value of each slope bottom face edge are obtained, comprising:

[0035] according to all the slope bottom face domains and the slope surface line tile coordinates;

[0036] taking the current slope bottom face domain as a basic unit, obtaining the elevation value, and obtaining the adjacent face domain condition by traversing all edge line segments of the current slope bottom face domain and the face domains adjacent thereto;

[0037] calculating the slope gradient value of each slope bottom face edge according to the adjacent face domain condition.

[0038] Further, the adjacent face domain condition comprises a first adjacent face domain condition, a second adjacent face domain condition, a third adjacent face domain condition, a fourth adjacent face domain condition and a fifth adjacent face domain condition;

[0039] the first adjacent face domain condition is that the adjacent face domain is another slope bottom face domain;

[0040] the second adjacent face domain condition is that the adjacent face domain is a slope surface line tile coordinate and is not adjacent to any other slope bottom face domain;

[0041] The third adjacent surface area condition is that the adjacent surface area is a sloping surface area and is adjacent to another slope bottom surface area, and the adjacent slope bottom surface area has a larger elevation value;

[0042] The fourth adjacent surface area condition is that the adjacent surface area is a sloping surface area and is adjacent to another slope bottom surface area, and the adjacent slope bottom surface area has a smaller elevation value;

[0043] The fifth adjacent surface area condition is that the adjacent surface area does not exist.

[0044] Further, the sloping slope value of each slope bottom surface edge is calculated according to the adjacent surface area condition, including:

[0045] When the adjacent surface area condition is the first adjacent surface area condition, the fourth adjacent surface area condition and the fifth adjacent surface area condition, the sloping slope value of the corresponding slope bottom surface edge is set to 90 degrees;

[0046] When the adjacent surface area condition is the third adjacent surface area condition, the elevation value of another slope bottom surface area and the elevation value of the current slope bottom surface area are obtained to obtain a slope height difference, the farthest distance of the adjacent sloping surface area to the straight line where the edge line segment is located is obtained as a slope horizontal distance, and the slope height difference and the slope horizontal distance are divided to obtain the sloping slope value;

[0047] When the adjacent surface area condition is the second adjacent surface area condition, a preset default slope value is obtained as the sloping slope value, or the slope of the adjacent slope bottom surface edge is obtained as the sloping slope value.

[0048] In a second aspect, a system for generating an entity model of a foundation pit slope two-dimensional drawing is provided, including:

[0049] A drawing preprocessing module is configured to obtain a foundation pit slope two-dimensional drawing, pre-process the foundation pit slope two-dimensional drawing, and obtain drawing information.

[0050] A site cutting module is configured to perform site cutting according to the drawing information to obtain a surface area set, and the surface area set includes slope bottom surface areas and sloping surface areas.

[0051] A slope calculation module is configured to determine, according to the slope bottom surface areas and the sloping surface areas, a sloping surface adjacent to each slope bottom surface, obtain an elevation value of each slope bottom surface and a sloping slope value of each slope bottom surface edge.

[0052] A foundation pit entity generation module is configured to generate a foundation pit entity based on the elevation values and the sloping slope values of all the slope bottom surfaces.

[0053] The present application has the following beneficial effects:

[0054] The two-dimensional drawing of the foundation pit slope is acquired, the two-dimensional drawing of the foundation pit slope is preprocessed, and drawing information is obtained; a site cutting is performed according to the drawing information to obtain a surface domain set, the surface domain set including a slope bottom surface domain and a sloping surface domain; according to the slope bottom surface domain and the sloping surface domain, a sloping surface adjacent to each slope bottom surface is determined, and the elevation value of each slope bottom surface and the sloping gradient value of each slope bottom surface edge are obtained; and a foundation pit entity is generated based on the elevation value of all the slope bottom surfaces and the sloping gradient value. After the two-dimensional drawing of the foundation pit slope is preprocessed, the gradient is calculated according to the surface domain of the site cutting, so that the foundation pit entity is generated based on the elevation value of all the slope bottom surfaces and the sloping gradient value, without manual calculation by the measurement personnel, thereby reducing the complexity and time and improving the calculation accuracy. BRIEF DESCRIPTION OF DRAWINGS

[0055] Figure 1 A flowchart of the method for generating an entity model from a two-dimensional drawing of a foundation pit slope according to the present application;

[0056] Figure 2 A flowchart of the site cutting according to the present application;

[0057] Figure 3 A structural diagram of the system for generating an entity model from a two-dimensional drawing of a foundation pit slope according to the present application. DETAILED DESCRIPTION

[0058] The present application will be further described below with reference to the drawings. The following examples are only used to more clearly illustrate the technical solutions of the present application, and cannot be used to limit the protection scope of the present application.

[0059] As shown in Figure 1 , the present application provides a method for generating an entity model from a two-dimensional drawing of a foundation pit slope, including the following steps:

[0060] 101, acquiring a two-dimensional drawing of a foundation pit slope, pre-processing the two-dimensional drawing of the foundation pit slope, and obtaining drawing information;

[0061] In this embodiment, the two-dimensional drawing of the foundation pit slope is acquired, and all the drawing lines in the two-dimensional drawing of the foundation pit slope are subjected to de-duplication processing and curve straightening processing. Since the current algorithm does not allow curve sloping shapes, curve straightening processing is required. The purpose of de-duplication is to prevent the occurrence of extremely small areas that affect the normal judgment of the program during region identification. The drawing lines are generally stored together. All the slope bottom text is extracted, and the text coordinates and slope bottom elevation information are saved in pairs. The values of illegal intervals are separately marked by an exception handling program. The coordinates of the block instance base points of all the slope surface lines are obtained.

[0062] A projection line is obtained based on the layers of the processed two-dimensional drawing of the foundation pit slope, the projection line being a projection line in the vertical direction of each slope bottom surface and sloping surface; the projection line is used to identify the position and range of different regions in the plane;

[0063] Obtaining all digital characters in the preset legal range in the two-dimensional drawing of the foundation pit slope to obtain elevation information, the elevation information including a slope bottom elevation value and a slope bottom elevation coordinate; used to confirm the actual elevation of the slope bottom;

[0064] Obtaining the slope surface line block in the two-dimensional drawing of the foundation pit slope to obtain slope surface information, the slope surface information including the slope surface line block and the slope surface line block coordinate; used to confirm which area is a sloping area;

[0065] Based on the processed drawing lines, projection lines, elevation information and slope surface information in the two-dimensional drawing of the foundation pit slope, forming drawing information, and the drawing lines in the drawing information have the range of framing processing and calculation.

[0066] 102, obtaining a face domain set by site cutting according to the drawing information;

[0067] 201, performing area segmentation according to all drawing lines in the drawing information to obtain a plurality of face domains;

[0068] A face domain is represented by one or more planar closed multi-segment lines; a plurality of multi-segment lines represent a face domain with holes;

[0069] Calculating the face domain area value of each face domain, comparing the face domain area value of each face domain with a preset area value; taking the face domain area value smaller than the preset area value as an error face domain; the essence of the area judgment is to judge whether there is a “0 area” face, because of the tolerance calculation limitation of the computer, it is limited to be an error face domain below the smaller preset area value;

[0070] 202, determining the face domain type of the target face domain by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line block coordinate;

[0071] Judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line block coordinate;

[0072] If the target face domain contains one slope bottom elevation coordinate, determining that the face domain type of the target face domain is a slope bottom face domain;

[0073] If the target face domain contains a plurality of slope bottom elevation coordinates, judging whether the slope bottom elevation values corresponding to all the slope bottom elevation coordinates are consistent, if consistent, determining that the face domain type of the target face domain is a slope bottom face domain; if not consistent, determining that the face domain type of the target face domain is an error face domain;

[0074] If the target face domain contains one or more slope surface line block coordinates, determining that the face domain type of the target face domain is a sloping face domain;

[0075] If the target face domain contains the slope bottom elevation coordinate and the slope surface line block coordinate, determining that the face domain type of the target face domain is an error face domain;

[0076] If the target surface area does not contain the slope bottom elevation coordinate and the slope surface line tile coordinate, it is determined that the surface area type of the target surface area is an error surface area;

[0077] An error type of the error surface area is analyzed;

[0078] When the error type is that one slope bottom elevation coordinate and slope surface line tile coordinate are contained, the error surface area is modified as a slope surface area;

[0079] When the error type is that multiple inconsistent slope bottom elevation values are contained, the highest slope bottom elevation value is selected as the elevation value, or the lowest slope bottom elevation value is selected as the elevation value, or an externally input default elevation value is obtained as the elevation value, and the error surface area is modified as a slope bottom surface area;

[0080] When the error type is that the slope bottom elevation coordinate and the slope surface line tile coordinate are not contained, an externally input default elevation value is obtained as the elevation value, and the error surface area is modified as a slope surface area;

[0081] When the error type is that multiple slope bottom elevation coordinates and slope surface line tile coordinates are contained, and the slope bottom elevation values corresponding to the multiple slope bottom elevation coordinates are consistent, the error surface area is modified as a slope bottom surface area;

[0082] When the error type is that the surface area value is less than a preset area value, the error surface area is modified as a region not to be calculated.

[0083] 203, a surface area set is obtained according to the surface area types of all surface areas.

[0084] All surface areas after site segmentation and exception processing constitute a surface area set, a slope bottom surface area contains unique elevation information, and a slope surface area is an auxiliary surface area for calculating the slope angle of the edge of the slope bottom surface area.

[0085] 103, according to the slope bottom surface area and the slope surface area, a slope surface adjacent to each slope bottom surface is determined, and the elevation value of each slope bottom surface and the slope gradient value of each slope bottom surface edge are obtained;

[0086] According to all slope bottom surface areas and slope surface areas;

[0087] A current slope bottom surface area is taken as a basic unit, an elevation value is obtained, adjacent surface area conditions are obtained by traversing all edge line segments of the current slope bottom surface area and the surface areas adjacent thereto, and the adjacent surface area conditions include a first adjacent surface area condition, a second adjacent surface area condition, a third adjacent surface area condition, a fourth adjacent surface area condition, and a fifth adjacent surface area condition;

[0088] The first adjacent surface area condition is that the adjacent surface area is another slope bottom surface area;

[0089] The second adjacent surface area condition is that the adjacent surface area is a sloping surface area and is not adjacent to any other slope bottom surface area;

[0090] The third adjacent surface area condition is that the adjacent surface area is a sloping surface area and is adjacent to another slope bottom surface area, and the adjacent slope bottom surface area has a larger elevation value;

[0091] The fourth adjacent surface area condition is that the adjacent surface area is a sloping surface area and is adjacent to another slope bottom surface area, and the adjacent slope bottom surface area has a smaller elevation value;

[0092] The fifth adjacent surface area condition is that the adjacent surface area does not exist.

[0093] When the adjacent surface area condition is the first adjacent surface area condition, the fourth adjacent surface area condition, and the fifth adjacent surface area condition, the sloping slope value of the corresponding slope bottom surface edge is set to 90 degrees;

[0094] When the adjacent surface area condition is the third adjacent surface area condition, the difference between the elevation value of the other slope bottom surface area and the elevation value of the current slope bottom surface area is obtained to obtain the slope height difference, and the farthest distance of the adjacent sloping surface area to the straight line where the edge line segment is located is obtained as the slope horizontal distance. The slope grade value is obtained by dividing the slope height difference by the slope horizontal distance;

[0095] When the adjacent surface area condition is the second adjacent surface area condition, the second adjacent surface area condition occurs when the adjacent sloping cutting of the edge slope causes the edge slope to be unable to reach another slope bottom. A preset default slope value is obtained as the sloping slope value, or the slope of the adjacent slope bottom surface edge is obtained as the sloping slope value. There can be multiple adjacent edge line segments that are cut, and the meaning of adjacent is to take the nearest slope value as the slope of the slope.

[0096] It should be noted that after each edge line segment of each slope bottom surface has obtained a corresponding sloping slope value, some abnormal processing needs to be performed as follows:

[0097] Slope angle legal range verification: the calculated slope range should be within a reasonable value range, and for a slow slope angle, a possible drawing error should be identified and prompted to the user;

[0098] Slope surface line missing error: in theory, the pit bottom edge line segment does not share a sloping surface area, and if this situation occurs, a possible drawing error should be identified and prompted to the user. In theory, the adjacent sloping surface areas of the pit bottom edge should not be on both sides of the edge straight line, and if this situation occurs, a possible drawing error should be identified and prompted to the user;

[0099] Fractional tolerance error: if the main sloping slope value may have a small deviation due to inaccurate drawing, the slope value should be merged into the same slope value near the main sloping slope value.

[0100] 104, generating the foundation pit entity based on the elevation values of all slope bottom surfaces and the slope gradient values.

[0101] All slope bottom surfaces and their corresponding elevation values, all edges also have a slope gradient value corresponding to them; the foundation pit entity can be obtained by the hole surface domain weighted direct skeleton algorithm; the final foundation pit result can be obtained by performing Boolean operation on all foundation pit entities and deleting part of the surface at a specific elevation;

[0102] Some abnormal processing needs to be done as follows:

[0103] Slope self-intersection processing: single slope bottom surface slope may self-intersect to cause entity calculation error, which needs to be processed separately;

[0104] Boolean error processing: multiple entity Boolean combination may appear error, which needs to be optimized for the foundation pit scene.

[0105] The implementation principle of the embodiment of the application is:

[0106] Obtain the foundation pit slope two-dimensional drawing, preprocess the foundation pit slope two-dimensional drawing to obtain drawing information; cut the site according to the drawing information to obtain a surface domain set, the surface domain set including a slope bottom surface domain and a slope surface domain; determine the slope surface adjacent to each slope bottom surface according to the slope bottom surface domain and the slope surface domain, obtain the elevation value of each slope bottom surface and the slope gradient value of each slope bottom surface edge; generate the foundation pit entity based on the elevation values of all slope bottom surfaces and the slope gradient values. By preprocessing the foundation pit slope two-dimensional drawing, then calculating the slope according to the surface domain of the site cutting, the foundation pit entity is generated based on the elevation values of all slope bottom surfaces and the slope gradient values, without manual calculation by the measurement personnel, the complexity and time are reduced, and the calculation accuracy is improved.

[0107] Based on the method of generating the entity model of the foundation pit slope two-dimensional drawing described in the above embodiment, the system of generating the entity model of the foundation pit slope two-dimensional drawing is described through an embodiment.

[0108] As shown in Figure 3 The embodiment of the application provides a system for generating an entity model of a foundation pit slope two-dimensional drawing, which comprises:

[0109] The drawing preprocessing module 301 is used for obtaining the foundation pit slope two-dimensional drawing, preprocessing the foundation pit slope two-dimensional drawing to obtain drawing information;

[0110] The site cutting module 302 is used for cutting the site according to the drawing information to obtain a surface domain set, the surface domain set including a slope bottom surface domain and a slope surface domain;

[0111] The slope calculation module 303 is configured to determine the sloping surface adjacent to each slope bottom surface according to the slope bottom surface domain and the sloping surface domain, and obtain the elevation value of each slope bottom surface and the sloping gradient value of the edge of each slope bottom surface.

[0112] The foundation pit entity generation module 304 is configured to generate the foundation pit entity based on the elevation value and the sloping gradient value of all the slope bottom surfaces.

[0113] The implementation principle of the embodiment of the present application is as follows:

[0114] The drawing preprocessing module 301 obtains the foundation pit slope two-dimensional drawing, pre-processes the foundation pit slope two-dimensional drawing, and obtains drawing information; the site cutting module 302 cuts the site according to the drawing information to obtain a surface domain set, and the surface domain set includes a slope bottom surface domain and a sloping surface domain; the slope calculation module 303 determines the sloping surface adjacent to each slope bottom surface according to the slope bottom surface domain and the sloping surface domain, and obtains the elevation value of each slope bottom surface and the sloping gradient value of the edge of each slope bottom surface; and the foundation pit entity generation module 304 generates the foundation pit entity based on the elevation value and the sloping gradient value of all the slope bottom surfaces. After the pre-processing of the foundation pit slope two-dimensional drawing, the slope calculation is performed according to the surface domain of the site cutting, so that the foundation pit entity is generated based on the elevation value and the sloping gradient value of all the slope bottom surfaces, without manual calculation by the measurement personnel, the complexity and the time are reduced, and the calculation accuracy is improved.

[0115] The above is only an embodiment of the present application, and is not used to limit the present application. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application is included in the scope of the claims of the application to be approved.

Claims

1. A method for generating a solid model from a two-dimensional drawing of a foundation pit slope, characterized in that, The method comprises the following steps: obtaining a two-dimensional drawing of a foundation pit slope, preprocessing the two-dimensional drawing of the foundation pit slope to obtain drawing information; cutting a site according to the drawing information to obtain a surface domain set, the surface domain set comprising a slope bottom surface domain and a sloping surface domain; according to all the slope bottom surface domains and the sloping surface domains, taking a current slope bottom surface domain as a basic unit and obtaining an elevation value, and by traversing all edge lines of the current slope bottom surface domain and the surface domains adjacent thereto, obtaining adjacent surface domain conditions; the adjacent surface domain conditions comprising a first adjacent surface domain condition, a second adjacent surface domain condition, a third adjacent surface domain condition, a fourth adjacent surface domain condition and a fifth adjacent surface domain condition; the first adjacent surface domain condition being that the adjacent surface domain is another slope bottom surface domain; the second adjacent surface domain condition being that the adjacent surface domain is a sloping surface domain and is not adjacent to any other slope bottom surface domain; the third adjacent surface domain condition being that the adjacent surface domain is a sloping surface domain and is adjacent to another slope bottom surface domain, and the adjacent slope bottom surface domain has a larger elevation value; the fourth adjacent surface domain condition being that the adjacent surface domain is a sloping surface domain and is adjacent to another slope bottom surface domain, and the adjacent slope bottom surface domain has a smaller elevation value; and the fifth adjacent surface domain condition being that the adjacent surface domain does not exist; calculating a sloping gradient value of each slope bottom surface edge according to the adjacent surface domain conditions; generating a foundation pit entity based on the elevation values and the sloping gradient values of all slope bottom surfaces; the step of calculating a sloping gradient value of each slope bottom surface edge according to the adjacent surface domain conditions comprises: when the adjacent surface domain conditions are the first adjacent surface domain condition, the fourth adjacent surface domain condition and the fifth adjacent surface domain condition, setting the sloping gradient value of the corresponding slope bottom surface edge to 90 degrees; when the adjacent surface domain condition is the third adjacent surface domain condition, obtaining a difference between the elevation value of another slope bottom surface domain and the elevation value of the current slope bottom surface domain to obtain a gradient height difference, obtaining the farthest distance from the adjacent sloping surface domain to the straight line on which the edge line segment is located as a gradient horizontal distance, and dividing the gradient height difference by the gradient horizontal distance to obtain the sloping gradient value; when the adjacent surface domain condition is the second adjacent surface domain condition, obtaining a preset default gradient value as the sloping gradient value, or obtaining the gradient of the adjacent slope bottom surface edge as the sloping gradient value.

2. The method for generating a solid model from a two-dimensional foundation pit slope drawing according to claim 1, wherein, The step of obtaining a two-dimensional drawing of a foundation pit slope and preprocessing the two-dimensional drawing of the foundation pit slope to obtain drawing information comprises: obtaining a two-dimensional drawing of a foundation pit slope, and performing de-duplication processing and curve straightening processing on all drawing lines in the two-dimensional drawing of the foundation pit slope; obtaining a projection line based on the layers of the two-dimensional drawing of the foundation pit slope after processing, the projection line being a projection line in the vertical direction of each slope bottom surface and sloping surface; obtaining all digital characters in the two-dimensional drawing of the foundation pit slope within a preset legal range to obtain elevation information, the elevation information comprising a slope bottom elevation value and a slope bottom elevation coordinate; obtaining a slope surface line block in the two-dimensional drawing of the foundation pit slope to obtain slope surface information, the slope surface information comprising the slope surface line block and a slope surface line block coordinate; Forming drawing information based on the graph lines, the projection lines, the elevation information and the slope surface information in the processed two-dimensional drawing of the foundation pit slope.

3. The method for generating a solid model from a two-dimensional foundation pit slope drawing according to claim 2, wherein, The site cutting according to the drawing information obtains a face domain set, which includes: Region segmentation is performed according to all the graph lines in the drawing information to obtain a plurality of face domains, and one face domain is represented by one or more planar closed polylines; The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate; The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate.

4. The method for generating an entity model from a two-dimensional drawing of a foundation pit slope according to claim 3, characterized in that, The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate. The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate. The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate. The face domain type of the target face domain is determined by judging whether the target face domain contains the slope bottom elevation coordinate and / or the slope surface line tile coordinate. The method further includes: Analyzing the error type of the error face domain; When the error type is that one slope bottom elevation coordinate and one slope surface line tile coordinate are contained, the error face domain is modified as a slope face domain; 5. The method for generating a solid model from a two-dimensional drawing of a foundation pit slope according to claim 4, wherein, When the error type is that a plurality of inconsistent slope bottom elevation values are contained, the highest slope bottom elevation value is selected as an elevation value, or the lowest slope bottom elevation value is selected as an elevation value, or an externally input default elevation value is obtained as an elevation value, and the error face domain is modified as a slope bottom face domain; When the error type is that the slope bottom elevation coordinate and the slope surface line tile coordinate are not contained, an externally input default elevation value is obtained as an elevation value, and the error face domain is modified as a slope face domain; When the error type is that a plurality of slope bottom elevation coordinates and a plurality of slope surface line tile coordinates are contained, and the slope bottom elevation values corresponding to the plurality of slope bottom elevation coordinates are consistent, the error face domain is modified as a slope bottom face domain; When the error type is that the area value of the error face domain is less than a preset area value, the error face domain is modified as a region that is not calculated. It includes: A drawing preprocessing module is configured to obtain a two-dimensional drawing of a foundation pit slope, and perform preprocessing on the two-dimensional drawing of the foundation pit slope to obtain drawing information; A site cutting module is configured to perform site cutting according to the drawing information to obtain a face domain set, and the face domain set includes a slope bottom face domain and a slope face domain.

6. A system for generating a solid model from a two-dimensional foundation pit slope drawing, characterized in that, ​ ​ ​ The slope calculation module is configured to take a current slope bottom surface domain as a basic unit and obtain an elevation value according to all of the slope bottom surface domains and the bench cut surface domains, and to obtain an adjacent surface domain condition by traversing all edge line segments of the current slope bottom surface domain and the surface domains adjacent thereto; the adjacent surface domain condition includes a first adjacent surface domain condition, a second adjacent surface domain condition, a third adjacent surface domain condition, a fourth adjacent surface domain condition, and a fifth adjacent surface domain condition; the first adjacent surface domain condition is that the adjacent surface domain is another slope bottom surface domain; the second adjacent surface domain condition is that the adjacent surface domain is a bench cut surface domain and is not adjacent to any other slope bottom surface domain; the third adjacent surface domain condition is that the adjacent surface domain is a bench cut surface domain and is adjacent to another slope bottom surface domain, and the elevation value of the adjacent slope bottom surface domain is greater; the fourth adjacent surface domain condition is that the adjacent surface domain is a bench cut surface domain and is adjacent to another slope bottom surface domain, and the elevation value of the adjacent slope bottom surface domain is smaller; and the fifth adjacent surface domain condition is that the adjacent surface domain does not exist; when the adjacent surface domain condition is the first adjacent surface domain condition, the fourth adjacent surface domain condition, and the fifth adjacent surface domain condition, the bench cut slope value of the corresponding slope bottom surface edge is set to 90 degrees; when the adjacent surface domain condition is the third adjacent surface domain condition, the elevation value of another slope bottom surface domain and the elevation value of the current slope bottom surface domain are obtained to perform a difference operation, to obtain a slope height difference, the farthest distance from the adjacent bench cut surface domain to a straight line on which the edge line segment is located is obtained as a slope horizontal distance, and the slope height difference and the slope horizontal distance are divided to obtain a bench cut slope value; when the adjacent surface domain condition is the second adjacent surface domain condition, a preset default slope value is obtained as the bench cut slope value, or the slope of the adjacent slope bottom surface edge is obtained as the bench cut slope value; The foundation pit entity generation module is configured to generate a foundation pit entity based on the elevation values of all slope bottom surfaces and the bench cut slope values.

Citation Information

Patent Citations

  • Basic sloping line automatic generation method based on region cutting method

    CN115147440A

  • Seabed sand excavation pit slope change monitoring method, system, equipment and medium

    CN119273158A