Curved surface generation method and device based on 3DE platform, equipment and storage medium

Through a method based on the 3DE platform, the dam axis segment is identified as an arc or a straight line segment, and a suitable surface generation method is used to generate an accurate target surface. This solves the problems of inaccurate and low-efficiency surface generation in traditional methods and achieves efficient surface design.

CN120707751APending Publication Date: 2025-09-26NORTHWEST ENGINEERING CORPORATION LIMITED
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510886657.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-30
Publication Date
2025-09-26

AI Technical Summary

Technical Problem

In dam design, traditional methods require manual recalculation after adjusting the dam axis, which may result in inaccurate surfaces and low processing efficiency, making it difficult to meet actual needs.

Method used

Through a method based on the 3DE platform, the dam axis segment is identified as an arc segment or a straight line segment, and the self-intersecting or non-intersecting surface generation method is used to generate the first surface and the second surface, which are then merged into the target surface to improve the generation accuracy and efficiency.

Benefits of technology

It achieves the goal of ensuring the accuracy of surface generation while improving processing efficiency, reducing human errors, and meeting the precision requirements of complex engineering designs.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120707751A_ABST
    Figure CN120707751A_ABST
Patent Text Reader

Abstract

The invention provides a curved surface generation method, device and equipment based on a 3DE platform, and a storage medium, and relates to the technical field of computer application, and the method comprises the steps: carrying out the recognition of a dam axis segment set, and obtaining an arc segment and a linear segment; when the dam axis section is an arc section, the radius of the arc section is obtained according to the arc section; judging whether the preset dam height is greater than the ratio of the arc section radius to the preset dam gradient; if yes, obtaining a first curved surface by using a self-intersecting curved surface generation method based on the arc section; if not, obtaining a first curved surface by using a disjoint curved surface generation method based on the arc section; when the dam axis section is a linear section, a second curved surface is obtained according to the preset dam height and the linear section; and obtaining a target curved surface according to all the first curved surfaces and the second curved surfaces. According to the invention, the generation efficiency is improved while the curved surface generation precision is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the field of computer application technology, and in particular to a surface generation method, device, equipment and storage medium based on a 3DE platform. Background Art

[0002] In water conservancy projects, dam design is a core component of the entire project. During the dam design process, the dam axis often needs to be adjusted multiple times to meet reservoir storage capacity requirements and earthwork balance requirements. However, due to the large number of design parameters involved in dam design, every adjustment to the dam axis requires redesigning the associated curved surface structure. Traditional methods require manual recalculation after each adjustment. Among the numerous design parameters, designers may overlook geometric conflicts in the sharp bends of the dam axis, resulting in inaccurate curved surfaces. Repeated revisions can also lead to processing efficiency issues that are insufficient to meet practical requirements. Summary of the Invention

[0003] The problem solved by the present invention is how to improve the generation efficiency while ensuring the accuracy of curved surface generation.

[0004] In order to solve the above problems, the present invention provides a surface generation method, device, equipment and storage medium based on a 3DE platform.

[0005] In a first aspect, the present invention provides a surface generation method based on a 3DE platform, comprising: Obtaining arc segments and straight line segments by identifying a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; When the dam axis segment is the arc segment, the arc segment radius is obtained according to the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface is obtained according to all the first curved surfaces and the second curved surfaces.

[0006] Optionally, obtaining the arc segment radius according to the arc segment includes: Obtaining the coordinates of the arc starting point and the arc end point according to the arc segment; Obtaining the coordinates of the center of the arc through the coordinates of the arc starting point and the coordinates of the arc end point; The arc segment radius is obtained according to the difference between the coordinates of the arc center and the coordinates of the arc starting point.

[0007] Optionally, obtaining the first curved surface based on the arc segment by using a self-intersecting curved surface generation method includes: Shifting the coordinates of the center of the arc in a first direction by the ratio of the radius of the arc segment to the preset dam slope to obtain the coordinates of the self-intersecting surface point, wherein the first direction is used to represent a direction away from the coordinates of the center of the arc in a vertical direction; Obtaining a self-intersecting line segment according to the coordinates of the self-intersecting surface point and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the self-intersecting line segment along the circular arc segment.

[0008] Optionally, obtaining the first curved surface based on the arc segment by using a non-intersecting curved surface generation method includes: Obtaining the product of the preset dam height and the preset dam slope; Moving the arc starting point coordinates along the first direction by the preset dam height to obtain first non-intersecting coordinates; Moving the first non-intersecting coordinate along a second direction by the product of the preset dam height and the preset dam slope to obtain a second non-intersecting coordinate, wherein the second direction is used to represent a direction from the arc starting point coordinate to the arc center coordinate; Obtaining a non-self-intersecting line segment according to the second non-intersecting coordinates and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the non-self-intersecting line segments along the circular arc segments.

[0009] Optionally, obtaining a target curved surface according to all the first curved surfaces and the second curved surfaces includes: Merging all the first curved surfaces and the second curved surfaces to obtain a primary curved surface; Wherein, the first-level surface is expressed as: Surface_Z=assemble(Surface_A, Surface_B), Wherein, Surface_Z is the first-level surface, assemble is the surface splicing function, Surface_A is all the first surfaces, and Surface_B is all the second surfaces; When the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope, a secondary curved surface is obtained through the primary curved surface; The target surface is obtained by merging the primary curved surface and the secondary curved surface.

[0010] Optionally, before obtaining arc segments and straight line segments by identifying the dam axis segment set, the method further includes: Obtain a plan sketch of the dam; Extracting dam axis data by performing image recognition on the dam plane sketch, wherein the dam axis data is used to represent a plane projection in the length direction of the dam body in a picture format; Digitally process the dam axis data to obtain a dam axis in vector format; Based on an adaptive discretization algorithm, the dam axis segment set is obtained by dynamically sampling the vector format dam axis.

[0011] Optionally, obtaining arc segments and straight line segments by identifying the dam axis segment set includes: The dam axis segments are sequentially identified to obtain arc determination line segments and line segment midpoint coordinates, wherein the arc determination line segments are used to represent line segments connecting the line segment start point coordinates and the line segment end point coordinates; Determine whether the distance between the coordinates of the midpoint of the line segment and the arc determination line segment is greater than a preset arc determination value; If so, the dam axis section is used as the arc section; If not, the dam axis segment is taken as the straight line segment.

[0012] In a second aspect, the present invention provides a surface generation device based on a 3DE platform, comprising: a line segment recognition module, configured to obtain arc segments and straight line segments by recognizing a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; A first curved surface generating module is configured to obtain a radius of an arc segment according to the arc segment when the dam axis segment is the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface generating module is configured to obtain a target curved surface based on all of the first curved surfaces and the second curved surfaces.

[0013] In a third aspect, the present invention provides an electronic device comprising a memory and a processor; The memory is used to store computer programs; The processor is configured to implement the surface generation method based on the 3DE platform as described in the first aspect when executing the computer program.

[0014] In a fourth aspect, the present invention provides a computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the surface generation method based on the 3DE platform as described in the first aspect is implemented.

[0015] The present invention has the following beneficial effects: by identifying arc segments and straight line segments and employing surface generation methods tailored to their respective characteristics, the actual terrain and design requirements can be more accurately reflected. When the dam axis segment is an arc segment, a self-intersecting or non-intersecting surface generation method is selected to generate the first surface based on the ratio of the preset dam height, the arc segment radius, and the preset dam slope. This avoids self-intersection of the surface after the dam axis is modified and improves surface generation accuracy. When the dam axis segment is a straight line segment, a second surface is generated based on the preset dam height and the straight line segment, simplifying the surface generation process and improving processing efficiency. The target surface is obtained based on all first and second surfaces, thereby improving both surface generation accuracy and generation efficiency. BRIEF DESCRIPTION OF THE DRAWINGS

[0016] Figure 1 Schematic diagram of a process of a surface generation method based on a 3DE platform according to an embodiment of the present invention; Figure 2 A schematic diagram of a dam axis according to an embodiment of the present invention; Figure 3 is a schematic diagram of a dam cross section according to an embodiment of the present invention; Figure 4 is a schematic diagram of a target curved surface according to an embodiment of the present invention; Figure 5 is a schematic diagram of a self-intersecting surface according to an embodiment of the present invention; Figure 6 is a schematic diagram of another self-intersecting surface according to an embodiment of the present invention; Figure 7 is a schematic diagram of a non-intersecting surface according to an embodiment of the present invention; Figure 8 is a schematic diagram of another target curved surface according to an embodiment of the present invention; Figure 9 Schematic diagram of the structure of a surface generation device based on a 3DE platform according to an embodiment of the present invention; Figure 10 The figure is a schematic structural diagram of an electronic device according to an embodiment of the present invention. DETAILED DESCRIPTION

[0017] To make the above-mentioned objects, features, and advantages of the present invention more clearly understood, specific embodiments of the present invention are described in detail below with reference to the accompanying drawings. Although certain embodiments of the present invention are shown in the accompanying drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as being limited to the embodiments described herein. Instead, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the drawings and embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of protection of the present invention.

[0018] It should be understood that the various steps described in the method embodiments of the present invention may be performed in different orders and / or in parallel. In addition, the method embodiments may include additional steps and / or omit the steps shown. The scope of the present invention is not limited in this respect.

[0019] The term "including" and its variations used in this document are open inclusions, that is, "including but not limited to"; the term "based on" means "based at least in part on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one other embodiment"; the term "some embodiments" means "at least some embodiments"; the term "optionally" means "optional embodiments". The relevant definitions of other terms will be given in the following description. It should be noted that the concepts of "first", "second", etc. mentioned in the present invention are only used to distinguish different devices, modules or units, and are not used to limit the order or interdependence of the functions performed by these devices, modules or units.

[0020] It should be noted that the modifications of "one" and "multiple" mentioned in the present invention are illustrative rather than restrictive. Those skilled in the art should understand that unless otherwise clearly indicated in the context, it should be understood as "one or more".

[0021] The X-axis in the accompanying drawings represents front-to-back positioning, with the positive direction of the X-axis representing the rear side and the reverse direction of the X-axis representing the front side. The Y-axis in the accompanying drawings represents left-to-right positioning, with the positive direction of the Y-axis representing the left side and the reverse direction of the Y-axis representing the right side. The Z-axis in the accompanying drawings represents up-to-down positioning, with the positive direction of the Z-axis representing the top side and the reverse direction of the Z-axis representing the bottom side. It should also be noted that the aforementioned X-axis, Y-axis, and Z-axis are merely for the purpose of facilitating the description of the present invention and simplifying the description. They do not indicate or imply that the devices or components referred to must have a specific orientation, be constructed, or operate in a specific orientation. Therefore, they should not be construed as limitations on the present invention.

[0022] The names of the messages or information exchanged between multiple devices in the embodiments of the present invention are only used for illustrative purposes and are not used to limit the scope of these messages or information.

[0023] like Figure 1As shown, an embodiment of the present invention provides a surface generation method based on a 3DE platform, comprising: Step 110 : Obtain arc segments and straight line segments by identifying a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments.

[0024] Specifically, the dam axis section includes at least one turning section and at least two straight sections, and the number of the straight sections is greater than the number of the turning sections. Figure 2 As shown, Figure 2 This is a schematic diagram of the dam axis. The dotted line represents the curve of the dam axis. The dam axis is obtained by projecting the centerline of the dam along its length. The sampling interval is dynamically adjusted based on the local characteristics of the dam axis to obtain multiple line segments, which are used as dam axis segments. Depending on the characteristics of the dam axis itself, it is often composed of arc segments and straight line segments. The dam axis refers to the position and direction of the centerline of the dam embankment and is the basis for the layout of the entire dam body. It not only determines the adaptability of the dam site to the topographic and geological conditions, but also affects multiple aspects such as the layout of upstream and downstream buildings, the extent of reservoir inundation, and construction organization.

[0025] Step 121: When the dam axis segment is the arc segment, obtain the arc segment radius according to the arc segment.

[0026] Specifically, straight lines perpendicular to the arc are drawn through the arc start point and the arc end point of the arc segment respectively, the two straight lines intersect at the arc center point, and the radius of the arc is obtained according to the arc center point.

[0027] Step 1210: Determine whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope.

[0028] Specifically, if Figure 3 As shown in the figure, the thick line represents the cross section of the dam. The vertical height (length) of the designed dam is set to h, which is the preset dam height. The ratio of the horizontal length of the cross section to the vertical height is m = b / a, which is the preset dam slope (a real number). The slope of a dam generally refers to the degree of inclination of the dam slope, which is crucial to the stability of the dam body. Different dam types (such as earth-rock dams and concrete gravity dams) have different suitable slopes. The height of the dam determines the reservoir's water storage capacity and its ability to regulate water flow. When determining the dam height, it is necessary to ensure that it can effectively intercept and store floodwaters and protect downstream areas. The ground conditions must be fully assessed to ensure the stability of the dam foundation.

[0029] Step 1211: If yes, then based on the arc segment, a self-intersecting surface generation method is used to obtain a first surface.

[0030] Step 1212: If not, obtain the first curved surface based on the arc segment using a non-intersecting curved surface generation method.

[0031] Specifically, the self-intersecting and non-intersecting surface generation methods utilize the Sweep function in the Surface Design module by selecting different cross-sectional profiles, using arc segments as guide curves, and the resulting trajectory surface as the surface. In CATIA V5 or 3DEXPERIENCE CATIA, the Swept function is a core and powerful tool in the Surface Design module. It allows users to "sweep" complex 3D surfaces or solids using one or more guide curves (GuideCurves) and a trajectory (Spine). Developed by Dassault Systèmes, CATIA is a multi-platform commercial CAD / CAM / CAE software suite widely used in industries such as aerospace, automotive, and shipbuilding. It provides comprehensive solutions from conceptual design to detailed engineering, simulation analysis, and manufacturing. CATIA's native EKL language leverages the parametric design capabilities of EKL and CATIA's surface modeling capabilities to detect guide curve turning radius in real time and automatically switch between surfacing modes.

[0032] Step 122: When the dam axis segment is the straight line segment, obtain a second curved surface according to the preset dam height and the straight line segment.

[0033] Specifically, if Figure 4 As shown, Figure 4 Figure 1 is a schematic diagram of a target surface, wherein the shaded portion represents a second surface derived from a straight line segment. Derivation of the second surface from the preset dam height and the straight line segment includes stretching the straight line segment along a predetermined vertical angle to the preset dam height to obtain the second surface. When the dam axis segment is a straight line segment, the straight line segment is stretched to a height h along a direction at an angle of arctan(1 / m) with respect to the normal plane of the line segment to obtain the second surface.

[0034] Step 130: Obtain a target curved surface according to all the first curved surfaces and the second curved surfaces.

[0035] Specifically, all first surfaces and second surfaces are spliced ​​together to obtain a target surface, and multiple independently generated surfaces are connected, merged, and trimmed through geometric operations to ultimately form a unified, continuous, and boundary-consistent composite surface.

[0036] This embodiment identifies arc segments and straight line segments and employs surface generation methods tailored to their respective characteristics, enabling a more accurate reflection of actual terrain and design requirements. When the dam axis segment is an arc segment, a self-intersecting or non-intersecting surface generation method is selected to generate the first surface based on the ratio of the preset dam height, the arc segment radius, and the preset dam slope. This avoids self-intersections after the dam axis is modified and improves surface generation accuracy. When the dam axis segment is a straight line segment, a second surface is generated based on the preset dam height and the straight line segment, simplifying the surface generation process and improving computational efficiency. The target surface is generated based on all first and second surfaces, thereby improving both surface generation accuracy and processing efficiency.

[0037] Optionally, obtaining the arc segment radius according to the arc segment includes: Obtaining the coordinates of the arc starting point and the arc end point according to the arc segment; Obtaining the coordinates of the center of the arc through the coordinates of the arc starting point and the coordinates of the arc end point; The arc segment radius is obtained according to the difference between the coordinates of the arc center and the coordinates of the arc starting point.

[0038] In some more specific embodiments, a line perpendicular to the arc is drawn through the arc's starting point coordinates and the arc's endpoint coordinates. The two lines intersect at the arc's center coordinates, which is the arc's center. A line perpendicular to the arc is drawn through the arc's starting point A and the arc's endpoint B. The two lines intersect at point O, which is the arc's center. The distance between point O and point A is the arc's radius R.

[0039] Optionally, obtaining the first curved surface based on the arc segment by using a self-intersecting curved surface generation method includes: Shifting the coordinates of the center of the arc in a first direction by the ratio of the radius of the arc segment to the preset dam slope to obtain the coordinates of the self-intersecting surface point, wherein the first direction is used to represent a direction away from the coordinates of the center of the arc in a vertical direction; Obtaining a self-intersecting line segment according to the coordinates of the self-intersecting surface point and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the self-intersecting line segment along the circular arc segment.

[0040] In some more specific embodiments, Figure 5 、 Figure 6 The figure shows a schematic diagram of a self-intersecting surface. The shaded area in the figure is the first surface obtained by sweeping the self-intersecting line segment along the arc segment. If h>R / m, the conic surface is self-intersecting. Passing through point O, moving a distance of R / m along the negative direction of the Z axis, the coordinates of the self-intersecting surface point are obtained, namely point OA. Through point OA, point A generates a self-intersecting line segment, and the self-intersecting line segment is swept along the arc segment. Sweep into a surface and use it as the first surface. In the surface design module of CATIA software, the sweep function is a very powerful and flexible tool for creating complex-shaped surfaces or solids. The guide curves and profiles to be used are: OA, the self-intersecting surface point coordinates, as the center of the circle, the self-intersecting line segments from A to OA as the profile, and the arc segments as the cross-sectional profile. As the guide curve, the trajectory surface formed after point A moves along the guide curve is used as the first curved surface.

[0041] Optionally, obtaining the first curved surface based on the arc segment by using a non-intersecting curved surface generation method includes: Obtaining the product of the preset dam height and the preset dam slope; Moving the arc starting point coordinates along the first direction by the preset dam height to obtain first non-intersecting coordinates; Moving the first non-intersecting coordinate along a second direction by the product of the preset dam height and the preset dam slope to obtain a second non-intersecting coordinate, wherein the second direction is used to represent a direction from the arc starting point coordinate to the arc center coordinate; Obtaining a non-self-intersecting line segment according to the second non-intersecting coordinates and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the non-self-intersecting line segments along the circular arc segments.

[0042] In some more specific embodiments, Figure 7 The figure shows a schematic diagram of a non-intersecting surface. The shaded area in the figure is the first surface obtained by sweeping a non-self-intersecting line segment along an arc segment. If h ≤ R / m, the conic surfaces do not intersect. Through point A, move a distance of h along the negative z-axis to obtain the first non-intersecting coordinate OA. Through point OA, move point OA a distance of h×m along the direction of line AO ​​(i.e., from point A to point O) to obtain the second non-intersecting coordinate OB. Generate a straight line through points A and OB, and the straight line is along the arc segment. Sweep to the first surface.

[0043] In this optional embodiment, by locating the points of the arc segments, a more realistic guide curve is selected, flexibly controlling the specific shape of the surface to adapt to different design requirements or site conditions. This surface generation improves work efficiency, reduces the time and effort required for manual design, and meets the precision requirements of complex engineering designs.

[0044] Optionally, obtaining a target curved surface according to all the first curved surfaces and the second curved surfaces includes: Merging all the first curved surfaces and the second curved surfaces to obtain a primary curved surface; Wherein, the first-level surface is expressed as: Surface_Z=assemble(Surface_A, Surface_B), Wherein, Surface_Z is the first-level surface, assemble is the surface splicing function, Surface_A is all the first surfaces, and Surface_B is all the second surfaces; When the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope, a secondary curved surface is obtained through the primary curved surface; The target surface is obtained by merging the primary curved surface and the secondary curved surface.

[0045] Specifically, if Figure 4 As shown, when the preset dam height is less than or equal to the ratio of the arc segment radius to the preset dam slope, the primary surface is used as the target surface. The assemble function is used to sequentially join two independent surfaces, Surface_A and Surface_B, into a single surface, Surface_Z, and achieve a smooth transition at the connection between them.

[0046] In some more specific embodiments, Figure 8 The figure below shows a schematic diagram of the target surface. The primary surface is a surface with a conical surface, named Surface_Z. The minimum value of Surface_Z in the normal direction of the guide line plane (the guide line plane is perpendicular to the Z axis, and the surface extends in the negative direction of the cross section) is a polyline composed of straight lines. This polyline is named Polyline_A. Polyline_A is stretched a distance hR / m in the normal direction of the guide line plane to generate the secondary surface Surface_ZZ. Surface_Z and Surface_ZZ are merged to form the target surface.

[0047] In this optional embodiment, by using an automated stitching function to stitch two surfaces together, workload and time costs are reduced, and work efficiency is improved. The automated stitching process reduces the possibility of human error, especially when dealing with complex geometries, and ensures higher accuracy and consistency.

[0048] Optionally, before obtaining arc segments and straight line segments by identifying the dam axis segment set, the method includes: Obtain a plan sketch of the dam; Extracting dam axis data by performing image recognition on the dam plane sketch, wherein the dam axis data is used to represent a plane projection in the length direction of the dam body in a picture format; Digitally process the dam axis data to obtain a dam axis in vector format; Based on an adaptive discretization algorithm, the dam axis segment set is obtained by dynamically sampling the vector format dam axis.

[0049] Specifically, the dam axis is the core reference line for dam structural design, representing the location and direction of the dam's centerline. Extracting the dam axis from a planar sketch using image recognition technology can be achieved by introducing AI models (such as Transformers and combined OCR and semantic segmentation models) to achieve drawing-level extraction.

[0050] In some more specific embodiments, the guide line is drawn using a planar sketch consisting of straight and arc segments. The guide line begins and ends with straight lines, and arcs are formed between the straight lines, with the arcs being tangent to the lines on either side. To obtain the dam axis, if the dam axis exists in the form of a paper drawing or image, it must first be digitized and saved in a vector format (e.g., DXF, DWG, etc.). Using an adaptive discretization algorithm, the sampling interval is dynamically adjusted based on the local characteristics of the curve, and multiple line segments are obtained by digitizing the dam axis. Starting from the starting point of the dam axis, an initial sampling point P0 is set. An initial step size Δs is selected, and the next sampling point P1 is calculated along the curve. The actual arc length s and the straight line distance d between P0 and P1 are calculated. If the difference between s and d is less than a threshold, the current step size is acceptable, and the next sampling point is calculated using the same step size. If the difference between s and d is greater than a threshold, the curve has significant curvature in this segment, and the step size needs to be reduced and resampled. The above steps are repeated until the entire curve is covered. After the drawing is completed, the number of straight line segments and arc segments in the sketch and the line segment object O can be identified, and the line segments can be placed in the list List_line. The list is: List_line = "Sketch".Query("2DLine","") Among them, List_line is a list, 2Dline is a 2D line segment, Query is a call to the query interface, and the query result is a list containing multiple line segment objects, which is assigned to the variable.

[0051] The number of line segments is determined by the number of objects in the list, and the expression is as follows: num = List_line.Size() Where num is the number of line segments and List_line.Size() is the number of objects in the list.

[0052] Optionally, obtaining arc segments and straight line segments by identifying the dam axis segment set includes: The dam axis segments are sequentially identified to obtain arc determination line segments and line segment midpoint coordinates, wherein the arc determination line segments are used to represent line segments connecting the line segment start point coordinates and the line segment end point coordinates; Determine whether the distance between the coordinates of the midpoint of the line segment and the arc determination line segment is greater than a preset arc determination value; If so, the dam axis section is used as the arc section; If not, the dam axis segment is taken as the straight line segment.

[0053] Specifically, sequentially select the dam axis segments in the list List_line and determine whether they are straight lines or circular arcs. Determine the starting point A, the end point B, and the midpoint C of each segment. Calculate the distance between point C and the line connecting points AB. If the distance is 0m, the segment is a straight line; if it is greater than 0m, it is an arc.

[0054] In some more specific embodiments, in the design of a pumped-storage full-reservoir anti-seepage rockfill dam, the dam axis is mostly a multi-segment line with a circular arc protruding downstream. When designing a pumped-storage dam structure, the dam axis needs to be adjusted multiple times to meet the reservoir storage capacity requirements and earthwork balance requirements. This method realizes the automatic generation of the upstream slope surface of the dam surface, successfully avoiding the self-intersection of the upstream surface of the dam after the dam axis is modified, and the word adjustment modification time is shortened from 5 minutes to 5 seconds in the traditional method. The more adjustments are made, the more significant the time savings. In the actual design process, the number of modifications is about 10-20 times, saving 1 hour of time. And the surface accuracy is 100%.

[0055] like Figure 9 As shown, an embodiment of the present invention provides a surface generation device based on a 3DE platform, comprising: a line segment recognition module 10, configured to obtain arc segments and straight line segments by recognizing a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; A first curved surface generating module 20 is configured to obtain a radius of an arc segment according to the arc segment when the dam axis segment is the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; A second curved surface generating module 30 is configured to obtain a second curved surface according to the preset dam height and the straight line segment when the dam axis segment is the straight line segment; The target curved surface generating module 40 is configured to obtain a target curved surface according to all the first curved surfaces and the second curved surfaces.

[0056] The surface generation device based on the 3DE platform of this embodiment is used to implement the surface generation method based on the 3DE platform as described above. Its advantages over the existing technology are the same as the advantages of the surface generation method based on the 3DE platform over the existing technology, and will not be repeated here.

[0057] Optionally, the first curved surface generating module 20 is specifically configured to: obtain the coordinates of the arc start point and the arc end point according to the arc segment; Obtaining the coordinates of the center of the arc through the coordinates of the arc starting point and the coordinates of the arc end point; The arc segment radius is obtained according to the difference between the coordinates of the arc center and the coordinates of the arc starting point.

[0058] Optionally, the first curved surface generating module 20 is specifically configured to: move the coordinates of the center of the arc in a first direction by a ratio of the radius of the arc segment to the preset dam slope to obtain the coordinates of the self-intersecting surface point, wherein the first direction is used to represent a direction away from the coordinates of the center of the arc in a vertical direction; Obtaining a self-intersecting line segment according to the coordinates of the self-intersecting surface point and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the self-intersecting line segment along the circular arc segment.

[0059] Optionally, the first curved surface generating module 20 is specifically configured to: obtain the product of the preset dam height and the preset dam slope; Moving the arc starting point coordinates along the first direction by the preset dam height to obtain first non-intersecting coordinates; Moving the first non-intersecting coordinate along a second direction by the product of the preset dam height and the preset dam slope to obtain a second non-intersecting coordinate, wherein the second direction is used to represent a direction from the arc starting point coordinate to the arc center coordinate; Obtaining a non-self-intersecting line segment according to the second non-intersecting coordinates and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the non-self-intersecting line segments along the circular arc segments.

[0060] Optionally, the target curved surface generating module 40 is specifically configured to: merge all the first curved surfaces and the second curved surfaces to obtain a primary curved surface; Wherein, the first-level surface is expressed as: Surface_Z=assemble(Surface_A, Surface_B), Wherein, Surface_Z is the first-level surface, assemble is the surface splicing function, Surface_A is all the first surfaces, and Surface_B is all the second surfaces; When the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope, a secondary curved surface is obtained through the primary curved surface; The target surface is obtained by merging the primary curved surface and the secondary curved surface.

[0061] Optionally, the surface generation device based on the 3DE platform further includes a pre-processing module, and the pre-processing module is used to: obtain a plane sketch of the dam; Extracting dam axis data by performing image recognition on the dam plane sketch, wherein the dam axis data is used to represent a plane projection in the length direction of the dam body in a picture format; Digitally process the dam axis data to obtain a dam axis in vector format; Based on an adaptive discretization algorithm, the dam axis segment set is obtained by dynamically sampling the vector format dam axis.

[0062] Optionally, the line segment recognition module 10 is specifically configured to: sequentially recognize the dam axis segments to obtain arc determination line segments and line segment midpoint coordinates, wherein the arc determination line segments are used to represent line segments connecting the line segment start point coordinates and the line segment end point coordinates; Determine whether the distance between the coordinates of the midpoint of the line segment and the arc determination line segment is greater than a preset arc determination value; If so, the dam axis section is used as the arc section; If not, the dam axis segment is taken as the straight line segment.

[0063] like Figure 10 As shown, an electronic device provided by an embodiment of the present invention includes a memory and a processor; the memory is used to store a computer program; the processor is used to implement the surface generation method based on the 3DE platform as described above when executing the computer program.

[0064] Alternatively, an electronic device includes a memory and a processor coupled to the memory; the memory is configured to store a computer program; and the processor is configured to perform the following operations when executing the computer program: Obtaining arc segments and straight line segments by identifying a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; When the dam axis segment is the arc segment, the arc segment radius is obtained according to the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface is obtained according to all the first curved surfaces and the second curved surfaces.

[0065] An embodiment of the present invention provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the surface generation method based on the 3DE platform as described above is implemented.

[0066] In other words, a non-volatile computer-readable storage medium stores a computer program, which, when executed by a processor, causes the processor to perform the following operations: Obtaining arc segments and straight line segments by identifying a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; When the dam axis segment is the arc segment, the arc segment radius is obtained according to the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface is obtained according to all the first curved surfaces and the second curved surfaces.

[0067] An electronic device that can serve as a server or client of the present invention will now be described, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic devices are intended to represent various forms of digital electronic computer devices, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. Electronic devices can also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present invention described and / or required herein.

[0068] Electronic devices include a computing unit that can perform various appropriate actions and processes based on computer programs stored in read-only memory (ROM) or loaded from a storage unit into random access memory (RAM). RAM can also store various programs and data required for device operation. The computing unit, ROM, and RAM are connected to each other via a bus. An input / output (I / O) interface is also connected to the bus.

[0069] Those skilled in the art will appreciate that all or part of the processes in the above-described method embodiments can be implemented by instructing the relevant hardware through a computer program. The program can be stored in a computer-readable storage medium. When executed, the program can include the processes in the above-described method embodiments. The storage medium can be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM). In this application, the units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network elements. Some or all of these units can be selected based on actual needs to achieve the objectives of the embodiments of the present invention. Furthermore, the functional units in the various embodiments of the present invention can be integrated into a single processing unit, each unit can exist physically separately, or two or more units can be integrated into a single unit. These integrated units can be implemented in either hardware or software functional units.

[0070] Although the present invention is disclosed as above, the protection scope of the present invention is not limited thereto. Those skilled in the art may make various changes and modifications without departing from the spirit and scope of the present invention, and these changes and modifications will fall within the protection scope of the present invention.

Claims

1. A surface generation method based on a 3DE platform, characterized in that: include: Obtaining arc segments and straight line segments by identifying a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; When the dam axis segment is the arc segment, the arc segment radius is obtained according to the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface is obtained according to all the first curved surfaces and the second curved surfaces.

2. The surface generation method based on the 3DE platform according to claim 1, characterized in that: The obtaining of the arc segment radius according to the arc segment includes: Obtaining the coordinates of the arc starting point and the arc end point according to the arc segment; Obtaining the coordinates of the center of the arc through the coordinates of the arc starting point and the coordinates of the arc end point; The arc segment radius is obtained according to the difference between the coordinates of the arc center and the coordinates of the arc starting point.

3. The surface generation method based on the 3DE platform according to claim 2, characterized in that: The method of obtaining a first curved surface based on the arc segment by using a self-intersecting curved surface generation method includes: Shifting the coordinates of the center of the arc in a first direction by the ratio of the radius of the arc segment to the preset dam slope to obtain the coordinates of the self-intersecting surface point, wherein the first direction is used to represent a direction away from the coordinates of the center of the arc in a vertical direction; Obtaining a self-intersecting line segment according to the coordinates of the self-intersecting surface point and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the self-intersecting line segment along the circular arc segment.

4. The surface generation method based on the 3DE platform according to claim 3, characterized in that: The step of obtaining the first curved surface based on the arc segment by using a non-intersecting curved surface generation method includes: Obtaining the product of the preset dam height and the preset dam slope; Moving the arc starting point coordinates along the first direction by the preset dam height to obtain first non-intersecting coordinates; Moving the first non-intersecting coordinate along a second direction by the product of the preset dam height and the preset dam slope to obtain a second non-intersecting coordinate, wherein the second direction is used to represent a direction from the arc starting point coordinate to the arc center coordinate; Obtaining a non-self-intersecting line segment according to the second non-intersecting coordinates and the coordinates of the arc starting point; The first curved surface is obtained by performing a curved surface sweeping on the non-self-intersecting line segments along the circular arc segments.

5. The surface generation method based on the 3DE platform according to claim 1, characterized in that: The obtaining of a target curved surface according to all the first curved surfaces and the second curved surfaces comprises: Merging all the first curved surfaces and the second curved surfaces to obtain a primary curved surface; Wherein, the first-level surface is expressed as: Surface_Z=assemble(Surface_A, Surface_B), Wherein, Surface_Z is the first-level surface, assemble is the surface splicing function, Surface_A is all the first surfaces, and Surface_B is all the second surfaces; When the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope, a secondary curved surface is obtained through the primary curved surface; The target surface is obtained by merging the primary curved surface and the secondary curved surface.

6. The surface generation method based on the 3DE platform according to claim 1, characterized in that: Before obtaining arc segments and straight line segments by identifying the dam axis segment set, the method further includes: Obtain a plan sketch of the dam; Extracting dam axis data by performing image recognition on the dam plane sketch, wherein the dam axis data is used to represent a plane projection in the length direction of the dam body in a picture format; Digitally process the dam axis data to obtain a dam axis in vector format; Based on an adaptive discretization algorithm, the dam axis segment set is obtained by dynamically sampling the vector format dam axis.

7. The surface generation method based on the 3DE platform according to claim 1, characterized in that: The arc segments and straight line segments are obtained by identifying the dam axis segment set, including: The dam axis segments are sequentially identified to obtain arc determination line segments and line segment midpoint coordinates, wherein the arc determination line segments are used to represent line segments connecting the line segment start point coordinates and the line segment end point coordinates; Determine whether the distance between the coordinates of the midpoint of the line segment and the arc determination line segment is greater than a preset arc determination value; If so, the dam axis section is used as the arc section; If not, the dam axis segment is taken as the straight line segment.

8. A surface generation device based on a 3DE platform, characterized in that: include: a line segment recognition module, configured to obtain arc segments and straight line segments by recognizing a dam axis segment set, wherein the dam axis segment set includes at least three dam axis segments; A first curved surface generating module is configured to obtain a radius of an arc segment according to the arc segment when the dam axis segment is the arc segment; Determining whether the preset dam height is greater than the ratio of the arc segment radius to the preset dam slope; If yes, then based on the arc segment, a first surface is obtained using a self-intersecting surface generation method; If not, obtaining the first curved surface based on the arc segment using a non-intersecting curved surface generation method; When the dam axis segment is the straight line segment, a second curved surface is obtained according to the preset dam height and the straight line segment; A target curved surface generating module is configured to obtain a target curved surface based on all of the first curved surfaces and the second curved surfaces.

9. An electronic device, characterized in that: including memory and processor; The memory is used to store computer programs; The processor is configured to implement the surface generation method based on the 3DE platform as described in any one of claims 1 to 7 when executing the computer program.

10. A computer-readable storage medium, characterized in that The storage medium stores a computer program, and when the computer program is executed by the processor, the surface generation method based on the 3DE platform as described in any one of claims 1 to 7 is implemented.