Toe plate line generation method and device based on CATIA software and electronic equipment
By extracting turning points and correcting geometric projections of the toe slab lines in the sketch using CATIA software, and generating toe slab lines with rounded elevations, the problem of frequent design adjustments of toe slab lines in water conservancy and hydropower projects is solved, and the generation accuracy and construction surveying convenience are improved.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- NORTHWEST ENGINEERING CORPORATION LIMITED
- Filing Date
- 2026-04-01
- Publication Date
- 2026-07-03
Smart Images

Figure CN122333587A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of water conservancy and hydropower engineering technology, and more specifically, to a method, apparatus, and electronic device for generating toe plate lines based on CATIA software. Background Technology
[0002] In water conservancy and hydropower projects, the toe slab is a core component of the seepage prevention system for concrete-faced rockfill dams, ensuring a tight bond between the dam body and the foundation and facilitating construction. Typically, the toe slab line is first drawn on a topographic map, and excavation is carried out using this line as a reference before pouring concrete to form the toe slab. However, currently, during the toe slab line design process, because the toe slab line is located at the intersection of the dam seepage prevention system, dam structure, foundation conditions, and construction organization, it requires continuous adjustments in the early design stages. Designers need to recalculate coordinates, redraw drawings, and recalculate quantities, increasing the probability of errors. Summary of the Invention
[0003] The problem addressed by this invention is how to improve the accuracy of toe plate line generation.
[0004] To address the above problems, this invention provides a method, apparatus, and electronic device for generating toe plates based on CATIA software.
[0005] In a first aspect, the present invention provides a method for generating toe plates based on CATIA software, comprising: The turning points of the toe line in the sketch were extracted using CATIA software to obtain a set of two-dimensional coordinate points; The two-dimensional coordinate point set is transformed to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinates are rounded according to the preset rounding precision to obtain the corresponding horizontal cross-sectional plane; The three-dimensional coordinate points are corrected using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points; The elevation rounding toe plate line is obtained from all the corrected three-dimensional coordinate points.
[0006] Optionally, the step of using CATIA software to extract the turning points of the sketch toe line to obtain a set of two-dimensional coordinate points includes: A two-dimensional planar sketch is obtained using the sketching tool of the CATIA software. The two-dimensional planar sketch includes the left endpoint of the dam axis, the right endpoint of the dam axis, and a third reference point. The third reference point is located on a plane that forms a fixed angle with the horizontal plane along the dam axis. The toe line of the sketch is obtained by performing preliminary toe line fitting on the two-dimensional planar sketch; The set of two-dimensional coordinate points is obtained by extracting the turning points of the toe line of the sketch.
[0007] Optionally, the step of rounding each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane includes: Each of the elevation coordinates is rounded according to the preset rounding precision to obtain the rounded elevation coordinates; The rounded elevation coordinates include: , Where paaz is the rounded elevation coordinate, paz is the elevation coordinate, jd is the preset rounding precision, and int() is the rounding function; The horizontal cross-sectional plane is obtained by using all the rounded elevation coordinates.
[0008] Optionally, the step of correcting the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain corrected three-dimensional coordinate points includes: Based on the intersection function, a spatial intersection line is obtained through the three-dimensional reference plane and the horizontal cross-sectional plane; The three-dimensional coordinate points are projected onto the spatial intersection line to obtain the corrected three-dimensional coordinate points.
[0009] Optionally, obtaining the elevation-rounded toe line through all the corrected three-dimensional coordinate points includes: By sequentially arranging all the corrected 3D coordinate points, a set of corrected 3D points is obtained; By sequentially connecting adjacent corrected three-dimensional coordinate points in the corrected three-dimensional point set, multiple straight line segments are obtained; The elevation rounding toe plate line is obtained from all the said straight line segments.
[0010] Optionally, obtaining the toe line of the sketch by performing preliminary toe line fitting on the two-dimensional planar sketch includes: Acquire dam cross-sectional image data; Feature extraction is performed on the dam cross-section image data to obtain discrete points of the toe plate line; The sketch toe plate line is obtained based on the discrete points of the toe plate line.
[0011] Optionally, after obtaining the sketch toe plate line based on the discrete points of the toe plate line, the method further includes: Based on image recognition algorithms, weakly weathered rock layers are obtained from the dam cross-section image data; When the sketch toe line is higher than the weakly weathered rock layer, return to the step of extracting features from the dam cross-section image data to obtain discrete points of the toe line.
[0012] Secondly, the present invention provides a toe line generation device based on CATIA software, comprising: a two-dimensional coordinate point set acquisition module, used to extract turning points of sketch toe lines using CATIA software to obtain a two-dimensional coordinate point set; A three-dimensional coordinate point set acquisition module is used to perform coordinate transformation on the two-dimensional coordinate point set to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinate rounding module is used to round each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane; A three-dimensional coordinate point correction module is used to correct the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain corrected three-dimensional coordinate points; The elevation rounding toe plate line acquisition module is used to obtain the elevation rounding toe plate line through all the corrected three-dimensional coordinate points.
[0013] Thirdly, the present invention provides an electronic device, including a memory and a processor; The memory is used to store computer programs; The processor is configured to, when executing the computer program, implement the toe line generation method based on CATIA software as described in the first aspect.
[0014] Fourthly, the present invention provides a computer-readable storage medium storing a computer program that, when executed by a processor, implements the toe line generation method based on CATIA software as described in the first aspect.
[0015] The beneficial effects of the toe slab line generation method, device, and electronic equipment based on CATIA software of the present invention are as follows: By using CATIA software to extract the turning points of the sketch toe slab line, a set of two-dimensional coordinate points is obtained. This allows for rapid response when adjustments to the toe slab line are needed due to changes in the foundation terrain. The process involves extracting turning points from the sketch toe slab line to obtain a set of two-dimensional coordinate points. These two-dimensional coordinate points are automatically mapped to a three-dimensional reference plane to obtain three-dimensional coordinate points, which are then automatically associated with their corresponding elevation coordinates. By forcibly rounding the elevation coordinates according to a preset rounding precision, the generated toe slab line node elevations are all integer values, resulting in the corresponding horizontal cross-sectional plane, facilitating subsequent construction measurements. The three-dimensional reference plane and the horizontal cross-sectional plane are used to correct the corresponding three-dimensional coordinate points. Through geometric projection correction, the spatial position of the three-dimensional coordinate points remains smoothly transitioned after rounding. The toe slab line with rounded elevations is obtained from all corrected three-dimensional coordinate points, thereby improving the accuracy of toe slab line generation. Attached Figure Description
[0016] Figure 1 This is a flowchart illustrating a method for generating toe lines based on CATIA software according to an embodiment of the present invention. Figure 2 This is a schematic diagram of a corrected three-dimensional coordinate point according to an embodiment of the present invention; Figure 3 This is a schematic diagram of a toe plate line generation device based on CATIA software according to an embodiment of the present invention. Figure 4 This is a schematic diagram of the structure of an electronic device according to an embodiment of the present invention. Detailed Implementation
[0017] To make the above-mentioned objects, features, and advantages of the present invention more apparent and understandable, specific embodiments of the present invention will be described in detail below with reference to the accompanying drawings. Although some embodiments of the present invention are shown in the drawings, it should be understood that the present invention can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of the present invention. It should be understood that the accompanying 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. Furthermore, 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 "comprising" and its variations as used herein are open-ended, meaning "including but not limited to"; the term "based on" means "at least partially based on"; the term "one embodiment" means "at least one embodiment"; the term "another embodiment" means "at least one additional embodiment"; the term "some embodiments" means "at least some embodiments"; and the term "optionally" means "optional embodiments". Definitions of other terms will be given in the following description. It should be noted that the concepts of "first," "second," etc., mentioned in this invention are used only to distinguish different devices, modules, or units, and are not intended to limit the order of functions performed by these devices, modules, or units or their interdependencies.
[0020] It should be noted that the terms "a" and "a plurality of" used in this invention are illustrative rather than restrictive. Those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0021] The names of the messages or information exchanged between the multiple devices in the embodiments of the present invention are for illustrative purposes only and are not intended to limit the scope of these messages or information.
[0022] In related technologies, many hydraulic structures in conventional hydropower, water conservancy, and pumped storage power station projects have complex and varied shapes. Taking the toe slab of a concrete-faced rockfill dam as an example, the toe slab line needs to be continuously adjusted in the early stages of design to adapt to the dam face, dam foundation, and other structures. The spatial distribution of the toe slab line has no obvious pattern and needs to be determined based on multiple factors such as topography and geology. However, during the modeling process, multiple control point coordinates are required for one toe slab line, and these control points are obtained through the intersection of straight lines. This makes it difficult to ensure that the final elevation coordinates of the toe slab line control points are obtained in integer form, causing difficulties for subsequent construction surveying.
[0023] To address the problems existing in the aforementioned related technologies, this embodiment provides a method, apparatus, and electronic device for generating toe plates based on CATIA software.
[0024] like Figure 1 As shown in the figure, an embodiment of the present invention provides a method for generating toe lines based on CATIA software, comprising: Step 110: Use CATIA software to extract the turning points of the sketch toe line to obtain a set of two-dimensional coordinate points.
[0025] Specifically, such as Figure 2 As shown, CATIA (Computer Aided Three-Dimensional Interactive Application) is an integrated CAD / CAE / CAM software. CATIA is renowned for its powerful surface modeling capabilities and sophisticated assembly management, covering not only drafting but also conceptual design, detailed design, and engineering analysis (CAE). CATIA software provides sketching tools, allowing users to create two-dimensional planar sketches, perform preliminary toe-plate line fitting to describe the sketch's toe-plate lines, extract turning points from the sketch's toe-plate lines, and obtain a set of two-dimensional coordinate points. Plane A is established using plane equations, defined by three points: A, B, and C. Point A is the left endpoint of the dam axis, point B is the right endpoint of the dam axis, and point C is any point on a plane oriented with the dam axis, dipping upstream at a fixed angle. A two-dimensional planar sketch is created on this plane A, and its abbreviation is defined as "ska".
[0026] Step 120: Perform coordinate transformation on the set of two-dimensional coordinate points to obtain a set of three-dimensional coordinate points, wherein the set of three-dimensional coordinate points includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates.
[0027] Specifically, such as Figure 2As shown, based on the 2D planar sketch ska, a 3D reference plane xpln is established based on the 2D planar sketch. The 3D reference plane xpln is consistent with plane A. To ensure that the elements generated in subsequent steps are only related to the sketch, the 3D reference plane xpln needs to be re-established. Any point is extracted from the set of 2D coordinate points cn, and the 2D point is transformed into a 3D point pa: , Here, `point2dto3d()` is a function that converts a 2D point object into its corresponding 3D point, and `GetItem(m)` retrieves the m-th element from the collection `cn`. The elevation coordinates `paz` (length value) are extracted from the z-value representing elevation in the 3D point `pa(x, y, z)`. , Here, coord(3) calls the coord() function of the point object, and passes in the parameter 3, which means to get the third coordinate component, namely the Z-axis coordinate.
[0028] Step 130: Round each of the elevation coordinates according to the preset rounding precision to obtain the corresponding horizontal cross-sectional plane.
[0029] Specifically, such as Figure 2 As shown, each elevation coordinate is rounded according to a preset rounding precision to obtain the rounded elevation coordinate paaz. A horizontal cross-sectional plane plna is generated from all the rounded elevation coordinates paaz. This plna is parallel to the vectors of the xy plane, but not overlapping. The horizontal cross-sectional plane plna represents a plane parallel to the global horizontal reference plane and whose elevation is equal to the standard elevation value. The function for creating the horizontal cross-sectional plane plna includes: , Among them, planeoffset() is a function to create a new plane, and True is a boolean parameter.
[0030] Step 140: Correct the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points.
[0031] In some more specific embodiments, such as Figure 2 As shown, the horizontal cross-section plane *plan* intersects with the 3D reference plane *xpln* formed by the sketch, creating a spatial intersection line. The 3D coordinate point *pa* is projected onto this spatial intersection line, and the vertex *pa* on the 2D plane sketch *ska* is calculated to be the point *paa* closest to the intersection line. Point *paa* is then used as the corrected 3D coordinate point. Here, xy represents the horizontal plane in the coordinate system.
[0032] Step 150: Obtain the elevation rounding toe plate line using all the corrected three-dimensional coordinate points.
[0033] Specifically, extract one point from all the corrected 3D coordinate points and define it as pb. Then extract the next point and define it as pc. Connect the two points with a straight line. Repeat this process to form an elevation-rounded toe plate line.
[0034] In this embodiment, CATIA software is used to extract the turning points of the sketch toe slab line, obtaining a set of two-dimensional coordinate points. This allows for rapid response when the toe slab line needs adjustment due to changes in the foundation terrain. The sketch toe slab line is extracted to obtain a set of two-dimensional coordinate points. This set of two-dimensional coordinate points is automatically mapped to a three-dimensional reference plane, obtaining three-dimensional coordinate points and automatically associating them with corresponding elevation coordinates. By forcibly rounding the elevation coordinates to a preset precision, the generated toe slab line node elevations are all integer values, resulting in the corresponding horizontal cross-sectional plane, facilitating subsequent construction measurements. The corresponding three-dimensional coordinate points are corrected using the three-dimensional reference plane and the horizontal cross-sectional plane. Through geometric projection correction, the spatial position of the three-dimensional coordinate points remains smoothly transitioned after rounding. The toe slab line with rounded elevations is obtained from all corrected three-dimensional coordinate points, thereby improving the accuracy of toe slab line generation.
[0035] Optionally, the step of using CATIA software to extract the turning points of the sketch toe line to obtain a set of two-dimensional coordinate points includes: A two-dimensional planar sketch is obtained using the sketching tool of the CATIA software. The two-dimensional planar sketch includes the left endpoint of the dam axis, the right endpoint of the dam axis, and a third reference point. The third reference point is located on a plane that forms a fixed angle with the horizontal plane along the dam axis. The toe line of the sketch is obtained by performing preliminary toe line fitting on the two-dimensional planar sketch; The set of two-dimensional coordinate points is obtained by extracting the turning points of the toe line of the sketch.
[0036] Specifically, the third reference point is any point on a plane oriented with the dam axis, dipping upstream of the river, and with a fixed dip angle. A preliminary toe slab line (a polyline composed of straight lines) is sketched in the draft, ensuring it lies below the weakly weathered rock layer. All turning points in the toe slab line (ska) are extracted to form a set of coordinate points (cn). , In this context, Query() is the function to call the object, and 2DPoint is the two-dimensional coordinate point.
[0037] Optionally, the step of rounding each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane includes: Each of the elevation coordinates is rounded according to the preset rounding precision to obtain the rounded elevation coordinates; The rounded elevation coordinates include: , Where paaz is the rounded elevation coordinate, paz is the elevation coordinate, jd is the preset rounding precision, and int() is the rounding function; The horizontal cross-sectional plane is obtained by using all the rounded elevation coordinates.
[0038] In some more specific embodiments, jd is 0.1m or 0.5m. A horizontal cross-sectional plane plna is generated by rounding the elevation coordinates paaz, which is consistent with the vector of the xy plane. The function for establishing the horizontal cross-sectional plane plan includes: , Among them, planeoffset() is a function used for geometric modeling, which means that an actual horizontal cross-sectional plane is generated by offsetting according to the specified elevation value based on the xy coordinate plane. true is a boolean control parameter.
[0039] Optionally, the step of correcting the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain corrected three-dimensional coordinate points includes: Based on the intersection function, a spatial intersection line is obtained through the three-dimensional reference plane and the horizontal cross-sectional plane; The three-dimensional coordinate points are projected onto the spatial intersection line to obtain the corrected three-dimensional coordinate points.
[0040] Specifically, to ensure that the elements generated in subsequent steps are only related to the sketch, the 3D reference plane xpln needs to be re-established, and the function is as follows: , Here, `plane()` represents a function that generates or retrieves the associated plane based on the input object. The spatial intersection line is obtained through the 3D reference plane `xpln` and the horizontal cross-section plane `plan`. The function `point-to-curve-nearest-point` is called, taking the 3D coordinate point `pa` as input and the spatial intersection line as the target, to calculate and return the point on the spatial intersection line with the shortest geometric distance to the 3D coordinate point, thus obtaining the corrected 3D coordinate point `pa`, including: , Among them, pointoncurve() is a function that finds the closest point on a curve and returns the projected point, intersect() is a function that calculates the intersection of two planes, and 0m is a tolerance parameter.
[0041] In this optional embodiment, the distance between the coordinates of the feature points and the elevations of the nearby integer coordinate points is detected. By controlling the tolerance between the two points, potential integer coordinate points are identified, and then the coordinates are converted into integer elevation spatial coordinate points smaller than the tolerance.
[0042] Optionally, obtaining the elevation-rounded toe line through all the corrected three-dimensional coordinate points includes: By sequentially arranging all the corrected 3D coordinate points, a set of corrected 3D points is obtained; By sequentially connecting adjacent corrected three-dimensional coordinate points in the corrected three-dimensional point set, multiple straight line segments are obtained; The elevation rounding toe plate line is obtained from all the said straight line segments.
[0043] Specifically, a loop counter is set up to sequentially extract the nth point from the modified 3D point set, defining it as the first endpoint, and the (n+1)th point as the second endpoint. A line construction function is called to connect the first endpoint and the second endpoint to generate a single straight line. This process is repeated until all adjacent point pairs in the set have been traversed. All generated single straight lines are then connected end-to-end to form a continuous polyline model.
[0044] In this optional embodiment, by establishing an ordered set of points, it is ensured that subsequent connection operations strictly follow the spatial orientation of the dam axis, thereby guaranteeing the geometric topological continuity and logical correctness of the generated toe plate line.
[0045] Optionally, obtaining the toe line of the sketch by performing preliminary toe line fitting on the two-dimensional planar sketch includes: Acquire dam cross-sectional image data; Feature extraction is performed on the dam cross-section image data to obtain discrete points of the toe plate line; The sketch toe plate line is obtained based on the discrete points of the toe plate line.
[0046] Specifically, image data of the dam cross-section is acquired. This image data originates from scanned copies of geological survey reports, orthophotos generated from on-site photogrammetry, or slice renderings of three-dimensional geological models. Image processing algorithms are used to extract features from the dam cross-section image data, identifying terrain contours and potential building structure boundaries, thereby calculating a set of discrete points representing the toe slab orientation. Finally, curve fitting algorithms (such as least squares or spline interpolation) are used to connect these discrete points, generating an initial polyline composed of straight line segments, i.e., the sketched toe slab line.
[0047] Optionally, after obtaining the sketch toe plate line based on the discrete points of the toe plate line, the method further includes: Based on image recognition algorithms, weakly weathered rock layers are obtained from the dam cross-section image data; When the sketch toe line is higher than the weakly weathered rock layer, return to the step of extracting features from the dam cross-section image data to obtain discrete points of the toe line.
[0048] Specifically, based on deep learning image recognition algorithms (such as convolutional neural networks CNN), the dam cross-section image data is analyzed again to automatically segment and extract the area of the weakly weathered rock layer and its upper interface contour. The generated sketch toe line is then spatially compared with the upper interface contour of the weakly weathered rock layer. If any part of the sketch toe line is detected to be located above the weakly weathered rock layer, the current fitting result is determined to not meet the geological constraints. A weight constraint factor is added, and the sketch toe line is regenerated until the generated sketch toe line is completely located below the weakly weathered rock layer.
[0049] In this optional embodiment, existing image data is directly parsed, key geometric features are automatically identified, and converted into a digitized discrete point sequence. This not only significantly shortens the preprocessing time from data collection to 3D modeling but also effectively avoids errors and ensures the accuracy of the initial data. When the sketch toe line is higher than the weakly weathered rock layer, the logical judgment of the feature extraction step is returned, establishing an automated negative feedback adjustment loop, which improves the accuracy of the sketch toe line generation.
[0050] like Figure 3 As shown, an embodiment of the present invention provides a toe line generation device based on CATIA software, comprising: The 2D coordinate point set acquisition module 10 is used to extract the turning points of the sketch toe plate line using CATIA software to obtain a 2D coordinate point set. The three-dimensional coordinate point set acquisition module 20 is used to perform coordinate transformation on the two-dimensional coordinate point set to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinate rounding module 30 is used to round each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane. The three-dimensional coordinate point correction module 40 is used to correct the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points. The elevation rounding toe plate line acquisition module 50 is used to obtain the elevation rounding toe plate line through all the corrected three-dimensional coordinate points.
[0051] The toe line generation device based on CATIA software in this embodiment is used to implement the toe line generation method based on CATIA software as described above. Its advantages over the prior art are the same as the advantages of the toe line generation method based on CATIA software compared to the prior art, and will not be repeated here.
[0052] like Figure 4 As shown, an electronic device 400 provided in this embodiment of the invention includes a memory 410 and a processor 420; the memory 410 is used to store a computer program; the processor 420 is used to implement the toe plate line generation method based on CATIA software as described above when the computer program is executed.
[0053] Alternatively, an electronic device 400 includes a memory 410 and a processor 420 coupled to the memory 410; the memory 410 is configured to store a computer program; and the processor 420 is configured to perform the following operations when the computer program is executed: The turning points of the toe line in the sketch were extracted using CATIA software to obtain a set of two-dimensional coordinate points; The two-dimensional coordinate point set is transformed to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinates are rounded according to the preset rounding precision to obtain the corresponding horizontal cross-sectional plane; The three-dimensional coordinate points are corrected using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points; The elevation rounding toe plate line is obtained from all the corrected three-dimensional coordinate points.
[0054] This invention provides a computer-readable storage medium storing a computer program. When the computer program is executed by a processor, it implements the toe line generation method based on CATIA software as described above.
[0055] Alternatively, a non-volatile computer-readable storage medium storing a computer program that, when executed by a processor, causes the processor to perform the following operations: The turning points of the toe line in the sketch were extracted using CATIA software to obtain a set of two-dimensional coordinate points; The two-dimensional coordinate point set is transformed to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinates are rounded according to the preset rounding precision to obtain the corresponding horizontal cross-sectional plane; The three-dimensional coordinate points are corrected using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points; The elevation rounding toe plate line is obtained from all the corrected three-dimensional coordinate points.
[0056] The present invention will now be described an electronic device 400 that can serve as a server or client of the present invention, which is an example of a hardware device that can be applied to various aspects of the present invention. Electronic device 400 is 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 device 400 can also represent various forms of mobile devices, such as personal digital processors, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely illustrative and are not intended to limit the implementation of the invention described and / or claimed herein.
[0057] Electronic device 400 includes a computing unit that can perform various appropriate actions and processes based on a computer program stored in read-only memory (ROM) or a computer program loaded from a storage unit into random access memory (RAM). The RAM may also store various programs and data required for device operation. The computing unit, ROM, and RAM are interconnected via a bus. Input / output (I / O) interfaces are also connected to the bus.
[0058] Those skilled in the art will understand that all or part of the processes in the above embodiments can be implemented by a computer program instructing related hardware. The program can be stored in a computer-readable storage medium, and when executed, it can include the processes of the embodiments of the above methods. The storage medium can be a magnetic disk, optical disk, read-only memory (ROM), or random access memory (RAM), etc. In this application, the units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the units can be selected to achieve the purpose of the embodiments of the present invention according to actual needs. Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated units can be implemented in hardware or as software functional units.
[0059] While the present invention has been disclosed above, its scope of protection is not limited thereto. Those skilled in the art can make various changes and modifications without departing from the spirit and scope of the present invention, and all such changes and modifications will fall within the scope of protection of the present invention.
Claims
1. A toe plate line generation method based on CATIA software, characterized in that, include: The turning points of the toe line in the sketch were extracted using CATIA software to obtain a set of two-dimensional coordinate points; The two-dimensional coordinate point set is transformed to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinates are rounded according to the preset rounding precision to obtain the corresponding horizontal cross-sectional plane; The three-dimensional coordinate points are corrected using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points; The elevation rounding toe plate line is obtained from all the corrected three-dimensional coordinate points.
2. The CATIA software based toe plate line generation method of claim 1, wherein, The method of using CATIA software to extract the turning points of the toe line in the sketch yields a set of two-dimensional coordinate points, including: A two-dimensional planar sketch is obtained using the sketching tool of the CATIA software. The two-dimensional planar sketch includes the left endpoint of the dam axis, the right endpoint of the dam axis, and a third reference point. The third reference point is located on a plane that forms a fixed angle with the horizontal plane along the dam axis. The toe line of the sketch is obtained by performing preliminary toe line fitting on the two-dimensional planar sketch; The set of two-dimensional coordinate points is obtained by extracting the turning points of the toe line of the sketch.
3. The CATIA software based toe plate line generation method of claim 1, wherein, The step of rounding each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane includes: Each of the elevation coordinates is rounded according to the preset rounding precision to obtain the rounded elevation coordinates; The rounded elevation coordinates include: , Where paaz is the rounded elevation coordinate, paz is the elevation coordinate, jd is the preset rounding precision, and int() is the rounding function; The horizontal cross-sectional plane is obtained by using all the rounded elevation coordinates.
4. The CATIA software based toe plate line generation method of claim 1, wherein, The step of correcting the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain the corrected three-dimensional coordinate points includes: Based on the intersection function, a spatial intersection line is obtained through the three-dimensional reference plane and the horizontal cross-sectional plane; The three-dimensional coordinate points are projected onto the spatial intersection line to obtain the corrected three-dimensional coordinate points.
5. The CATIA software based toe plate line generation method of claim 1, wherein, The process of obtaining the elevation rounding toe line from all the corrected three-dimensional coordinate points includes: By sequentially arranging all the corrected 3D coordinate points, a set of corrected 3D points is obtained; By sequentially connecting adjacent corrected three-dimensional coordinate points in the corrected three-dimensional point set, multiple straight line segments are obtained; The elevation rounding toe plate line is obtained from all the said straight line segments.
6. The CATIA software based toe plate line generation method of claim 2, wherein, The process of obtaining the toeboard line of the sketch by performing preliminary toeboard line fitting on the two-dimensional planar sketch includes: Acquire dam cross-sectional image data; Feature extraction is performed on the dam cross-section image data to obtain discrete points of the toe plate line; The sketch toe plate line is obtained based on the discrete points of the toe plate line.
7. The CATIA software based toe plate line generation method of claim 6, wherein, After obtaining the sketch toe plate line based on the discrete points of the toe plate line, the method further includes: Based on image recognition algorithms, weakly weathered rock layers are obtained from the dam cross-section image data; When the sketch toe line is higher than the weakly weathered rock layer, return to the step of extracting features from the dam cross-section image data to obtain discrete points of the toe line.
8. A toe line generation device based on CATIA software, characterized in that, include: The 2D coordinate point set acquisition module is used to extract the turning points of the toe line of the sketch using CATIA software to obtain a 2D coordinate point set. A three-dimensional coordinate point set acquisition module is used to perform coordinate transformation on the two-dimensional coordinate point set to obtain a three-dimensional coordinate point set, wherein the three-dimensional coordinate point set includes multiple three-dimensional coordinate points located on a three-dimensional reference plane and their corresponding elevation coordinates; The elevation coordinate rounding module is used to round each of the elevation coordinates according to a preset rounding precision to obtain the corresponding horizontal cross-sectional plane; A three-dimensional coordinate point correction module is used to correct the three-dimensional coordinate points using the three-dimensional reference plane and the horizontal cross-sectional plane to obtain corrected three-dimensional coordinate points; The elevation rounding toe plate line acquisition module is used to obtain the elevation rounding toe plate line through all the corrected three-dimensional coordinate points.
9. An electronic device, characterized in that, Including memory and processor; The memory is used to store computer programs; The processor is configured to, when executing the computer program, implement the toe plate line generation method based on CATIA software as described in any one of claims 1 to 7.
10. A computer-readable storage medium, characterized in that, The storage medium stores a computer program that, when executed by a processor, implements the toe line generation method based on CATIA software as described in any one of claims 1 to 7.