Method, device and computer equipment for generating slope facility model

By determining the slope path and selecting the platform generation method, the slope facility model is generated, which solves the problems of complex operations and design errors in traditional technology, and improves design efficiency and versatility.

CN117272482BActive Publication Date: 2024-09-20ZWCAD SOFTWARE CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202311315303.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2023-10-11
Publication Date
2024-09-20
Estimated Expiration
2043-10-11

AI Technical Summary

Technical Problem

Traditional CAD software has complex operations when generating slope facility models, requires high designer skills, is prone to design errors, and reduces generation efficiency.

Method used

By determining at least two slope paths, select a platform generation method based on the angle between any pair of slope paths, generate a platform path of connecting points, form a complete slope facility path, and generate a slope facility model based on this path.

Benefits of technology

It simplifies the generation process of slope facility models, improves design efficiency, supports the generation of various structures, and has strong versatility.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117272482B
    Figure CN117272482B
Patent Text Reader

Abstract

The present application provides a method, device and computer equipment for generating a slope facility model. The generation method includes: determining at least two slope paths; selecting a corresponding platform generation method as a target method according to the angle between any pair of first slope paths and second slope paths; generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target method to obtain a slope facility path; generating a slope facility model according to the slope facility path. The method enables the user to obtain a slope facility model with only a simple input operation when drawing a slope facility, thereby improving design efficiency, and the method supports the generation of slope facilities of various structures and has strong versatility.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the technical field of engineering modeling, and in particular to a method, device and computer equipment for generating a slope facility model. Background Art

[0002] There are many slope facilities in various buildings, such as stairs, car ramps, barrier-free ramps, etc. With the development of information technology, computer-aided design (CAD) software has been widely used in various industries, especially in the field of architectural design. CAD software can effectively help designers improve design efficiency. However, traditional CAD software mainly relies on manual drawing by designers, or simple automatic generation based on sketches drawn by designers. Therefore, the modeling of slope facilities in traditional technology has high operational complexity, high requirements on the skills of designers, and is prone to design errors, which reduces the generation efficiency of slope facility models. Summary of the invention

[0003] The purpose of this application is to solve at least one of the above-mentioned technical deficiencies, especially the problem that is difficult to generate efficiently in the prior art.

[0004] In the first aspect, the present application provides a method for generating a slope facility model, including: determining at least two slope paths; the slope path corresponds to a slope in the slope facility; according to the angle between any pair of first slope paths and second slope paths, selecting the corresponding platform generation method as the target method; according to the target method, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path to obtain the slope facility path; the slope facility path reflects the direction of the slope facility model from a bird's-eye view; according to the slope facility path, generating the slope facility model.

[0005] In one of the embodiments, according to the angle between any pair of first slope paths and second slope paths, the corresponding platform generation method is selected as the target method, including: if the angle is 0 degrees, the target method is the first platform generation method; if the angle is greater than 0 degrees and less than 90 degrees, the target method is the second platform generation method; if the angle is greater than 90 degrees and less than 180 degrees, the target method is the third platform generation method; if the angle is 180 degrees, the target method is the fourth platform generation method.

[0006] In one of the embodiments, when the target mode is the first platform generation mode, a platform path connecting the end point of the first slope path and the starting point of the second slope path is generated according to the target mode, including: when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is a first position relationship, a first double right-angle platform path is generated; when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is a second position relationship, it is determined that the first slope path and the drawing points corresponding to the first slope path do not meet the generation conditions.

[0007] In one embodiment, generating a first dual right-angle platform path includes: determining a first auxiliary line between an end point of a first inclined plane path and a starting point of a second inclined plane path; the first auxiliary line is perpendicular to the first inclined plane path and the second inclined plane path, and the distances from the first auxiliary line to the end point of the first inclined plane path and the starting point of the second inclined plane path are equal; extending the first inclined plane path to intersect with the first auxiliary line to obtain a first inflection point; extending the second inclined plane path to intersect with the first auxiliary line to obtain a second inflection point; and sequentially connecting the end point of the first inclined plane path, the first inflection point, the second inflection point, and the starting point of the second inclined plane path to obtain the first dual right-angle platform path.

[0008] In one of the embodiments, when the target mode is the second platform generation mode, a platform path connecting the end point of the first slope path and the starting point of the second slope path is generated according to the target mode, including: extending the first slope path and the second slope path and intersecting them to obtain a first auxiliary point; when the position of the first auxiliary point meets the single-corner platform generation condition, generating a first single-corner platform path; otherwise, generating a first double-corner platform path.

[0009] In one embodiment, generating the first single-corner platform path includes: sequentially connecting an end point of the first slope path, a first auxiliary point, and a starting point of the second slope path to obtain the first single-corner platform path.

[0010] In one embodiment, generating a first double-corner platform path includes: starting from the end point of the first slope path, perpendicular to the first slope path, moving the slope width in a direction away from the second slope path to locate the second auxiliary point; starting from the starting point of the second slope path, perpendicular to the second slope path, moving the slope width in a direction close to the first slope path to locate the third auxiliary point; determining the second auxiliary line according to the midpoint between the second auxiliary point and the third auxiliary point, the end point of the first slope path, and the midpoint between the starting point of the second slope path; extending the first slope path to intersect with the second auxiliary line to obtain the third inflection point; extending the second slope path to intersect with the second auxiliary line to obtain the fourth inflection point; sequentially connecting the end point of the first slope path, the third inflection point, the fourth inflection point, and the starting point of the second slope path to obtain the first double-corner platform path.

[0011] In one of the embodiments, when the target mode is the third platform generation mode, a platform path connecting the end point of the first slope path and the starting point of the second slope path is generated according to the target mode, including: when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the first position relationship, starting from the end point of the first slope path, the slope width is moved perpendicular to the first slope path and in a direction close to the second slope path to locate the fourth auxiliary point; perpendicular to the second slope path and passing through the fourth auxiliary point, the third auxiliary line is determined, and the intersection of the third auxiliary line and the second slope path is located as the fifth auxiliary point; when the relative position relationship between the fifth auxiliary point and the starting point of the second slope path is the third position relationship, a second double-corner platform path is generated; when the relative position relationship between the fifth auxiliary point and the starting point of the second slope path is the fourth position relationship, a third double-corner platform path is generated.

[0012] In one embodiment, generating a second double-corner platform path includes: moving the third auxiliary line along the opposite direction of the second inclined plane path by the inclined plane width to obtain a fourth auxiliary line; extending the first inclined plane path to intersect with the fourth auxiliary line to obtain a fifth turning point; extending the second inclined plane path to intersect with the fourth auxiliary line to obtain a sixth turning point; and sequentially connecting the end point of the first inclined plane path, the fifth turning point, the sixth turning point, and the starting point of the second inclined plane path to obtain a second double-corner platform path.

[0013] In one embodiment, generating a third double-corner platform path includes: starting from the starting point of the second inclined plane path, moving the inclined plane width in the opposite direction of the second inclined plane path to locate the sixth auxiliary point; translating the third auxiliary line to pass through the sixth auxiliary point to obtain the fifth auxiliary line; extending the first inclined plane path to intersect with the fifth auxiliary line to obtain the seventh turning point; taking the sixth auxiliary point as the eighth turning point; and sequentially connecting the end point of the first inclined plane path, the seventh turning point, the eighth turning point, and the starting point of the second inclined plane path to obtain the third double-corner platform path.

[0014] In one of the embodiments, when the target mode is the third platform generation mode, a platform path connecting the end point of the first slope path and the starting point of the second slope path is generated according to the target mode, including: when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the second position relationship, starting from the starting point of the second slope path, perpendicular to the second slope path, the slope width is moved in a direction close to the first slope path to locate the third auxiliary point; perpendicular to the second slope path and passing through the third auxiliary point, the sixth auxiliary line is determined, and the intersection of the sixth auxiliary line and the first slope path is located as the seventh auxiliary point; when the relative position relationship between the seventh auxiliary point and the end point of the first slope path is the fifth position relationship, a fourth double-corner platform path is generated; when the relative position relationship between the seventh auxiliary point and the end point of the first slope path is the sixth position relationship, a fifth double-corner platform path is generated.

[0015] In one embodiment, generating a fourth double-corner platform path includes: starting from the starting point of the second inclined plane path, moving the inclined plane width in the opposite direction of the second inclined plane path to locate the sixth auxiliary point; translating the sixth auxiliary line to pass through the sixth auxiliary point to obtain the seventh auxiliary line; extending the first inclined plane path to intersect with the seventh auxiliary line to obtain the ninth turning point; taking the sixth auxiliary point as the tenth turning point; and sequentially connecting the end point of the first inclined plane path, the ninth turning point, the tenth turning point, and the starting point of the second inclined plane path to obtain the fourth double-corner platform path.

[0016] In one embodiment, generating a fifth double-corner platform path includes: starting from the end point of the first slope path, moving the slope width along the positive direction of the first slope path to locate the eighth auxiliary point; being perpendicular to the first slope path and passing through the eighth auxiliary point to obtain an eighth auxiliary line; taking the eighth auxiliary point as the eleventh turning point; extending the second slope path to intersect with the eighth auxiliary line to obtain a twelfth turning point; and sequentially connecting the end point of the first slope path, the eleventh turning point, the twelfth turning point, and the starting point of the second slope path to obtain the fifth double-corner platform path.

[0017] In one embodiment, when the target mode is the fourth platform generation mode, a platform path connecting the end point of the first slope path and the starting point of the second slope path is generated according to the target mode, including: when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the first position relationship, generating a second double right-angle platform path; when the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the second position relationship, generating a third double right-angle platform path.

[0018] In one embodiment, generating a second dual right-angle platform path includes: starting from the starting point of the second inclined plane path, moving the inclined plane width in the opposite direction of the second inclined plane path to locate the sixth auxiliary point; being perpendicular to the first inclined plane path and the second inclined plane path and passing through the sixth auxiliary point to obtain a ninth auxiliary line; extending the first inclined plane path to intersect with the ninth auxiliary line to obtain a thirteenth turning point; taking the sixth auxiliary point as the fourteenth turning point; and sequentially connecting the end point of the first inclined plane path, the thirteenth turning point, the fourteenth turning point, and the starting point of the second inclined plane path to obtain a second dual right-angle platform path.

[0019] In one embodiment, generating a third dual right-angle platform path includes: starting from the end point of the first inclined plane path, moving the inclined plane width in the positive direction of the first inclined plane path to locate the eighth auxiliary point; being perpendicular to the first inclined plane path and the second inclined plane path and passing through the eighth auxiliary point to obtain the tenth auxiliary line; taking the eighth auxiliary point as the fifteenth turning point; extending the second inclined plane path to intersect with the tenth auxiliary line to obtain the sixteenth turning point; and sequentially connecting the end point of the first inclined plane path, the fifteenth turning point, the sixteenth turning point and the starting point of the second inclined plane path to obtain the third dual right-angle platform path.

[0020] In one of the embodiments, a slope facility model is generated according to the slope facility path, including: translating the slope facility path outward according to half the slope width, and obtaining the outer contour of the slope facility model according to the translation result; generating the slope facility model according to the outer contour.

[0021] In the second aspect, the present application provides a device for generating a slope facility model, including: a slope path generation module, used to determine at least two slope paths; the slope path corresponds to a slope in the slope facility; a platform generation method determination module, used to select the corresponding platform generation method as the target method according to the angle between any pair of first slope paths and second slope paths; the platform path generation module, used to generate a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target method to obtain the slope facility path; the slope facility path reflects the direction of the slope facility model from a bird's-eye view; the slope facility model generation module, used to generate a slope facility model according to the slope facility path.

[0022] In a third aspect, the present application provides a computer device comprising one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the method for generating a slope facility model in any of the above-mentioned embodiments are executed.

[0023] It can be seen from the above technical solutions that the embodiments of the present application have the following advantages:

[0024] Based on any of the above embodiments, after the software determines at least two inclined plane paths in the inclined plane facility, it can automatically select an appropriate platform generation method for the pair of inclined plane paths to be connected according to the angle between them, thereby generating a corresponding platform path for each pair of inclined plane paths, and all platform paths and inclined plane paths are connected to form a complete inclined plane facility path. Finally, based on the inclined plane facility path, the generation of the inclined plane facility model can be automatically completed. This method allows the user to obtain the inclined plane facility model with only simple operations when drawing the inclined plane facility model, thereby improving the design efficiency, and the method supports the generation of inclined plane facilities of various structures, and has strong versatility. BRIEF DESCRIPTION OF THE DRAWINGS

[0025] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative labor.

[0026] Figure 1 A schematic diagram of a flow chart of a method for generating a slope facility model provided in one embodiment of the present application;

[0027] Figure 2 A schematic diagram of generating a first dual right-angle platform path in one embodiment of the present application;

[0028] Figure 3 A schematic diagram of generating a first single-corner platform path in one embodiment of the present application;

[0029] Figure 4 A schematic diagram of generating a first double-corner platform path in one embodiment of the present application;

[0030] Figure 5 A schematic diagram of generating a second double-corner platform path in one embodiment of the present application;

[0031] Figure 6 A schematic diagram of generating a third double-corner platform path in one embodiment of the present application;

[0032] Figure 7 A schematic diagram of generating a fourth double-corner platform path in one embodiment of the present application;

[0033] Figure 8 A schematic diagram of generating a fifth double-corner platform path in one embodiment of the present application;

[0034] Fig. 9 A schematic diagram of generating a second dual right-angle platform path in one embodiment of the present application;

[0035] Fig.10 A schematic diagram of generating a third dual right-angle platform path in one embodiment of the present application;

[0036] Fig.11 A schematic diagram of generating the outer contour of a slope facility model in one embodiment of the present application;

[0037] Fig.12 An internal structure diagram of a computer device provided for one embodiment of the present application. DETAILED DESCRIPTION

[0038] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0039] This application provides a method for generating a slope facility model. The slope facility mentioned in this application is composed of two or more slopes and a platform connecting the slopes in series. The slope facility can be a staircase, an accessible ramp, a car ramp, etc. Taking the staircase as an example, the slope is the staircase and the platform is the stair platform. Figure 1 , including steps S102 to S108.

[0040] S102, determining at least two inclined paths.

[0041] It can be understood that each slope path corresponds to a slope in the slope facility, which is used to represent the structural properties of the corresponding slope, such as the direction, position, and length. Each slope facility will contain at least two slopes. Therefore, in order to generate a slope facility model, the software needs to first determine at least two slope paths. Generally speaking, the position of the slope path is input by the user to the software, for example, the user enters multiple drawing points in the software. The input method of the drawing point can be to enter the coordinates of the drawing point or to click directly on the canvas. Two drawing points can be used as the starting point and the end point of a slope path to determine a slope path. Therefore, the number of drawing points should be an even number and at least four. In order to facilitate the user's input operation, the drawing points can be paired in pairs according to the input order of the drawing points. The first drawing point in a pair of drawing points is the starting point of a slope, and the second drawing point is the end point of the slope. Therefore, in response to the multiple drawing points input by the user, according to the input order, the odd-numbered drawing points will all be used as the starting point, and the drawing points after the odd-numbered drawing points and adjacent to them will be used as the end point. The starting point and the end point are connected to form a slope path. Since there are at least four drawing points, at least two slope paths will be formed. There is no upper limit to the number of slope paths in this embodiment, and various forms of slope facility models can be generated. For example, if the user inputs six points ABCDEF in sequence, point A and point B will form slope path AB, point C and point D will form slope path CD, and point E and point F will form slope path EF.

[0042] S104: According to the angle between any pair of the first slope path and the second slope path, a corresponding platform generation mode is selected as a target mode.

[0043] It can be understood that at least two inclined plane paths generated in step S102 need to be connected by a platform path representing a platform. Therefore, in this embodiment, a pair of inclined plane paths whose starting point and end point need to be connected to each other are called the first inclined plane path and the second inclined plane path. The end point of the first inclined plane path will be connected to the starting point of the second inclined plane path. The way of pairing the inclined plane paths is not limited in this embodiment, and can be marked by the user when inputting. If the method of determining the inclined plane paths according to the input order in the above description is adopted, any pair of inclined plane paths can also be determined by the software according to the input order. Specifically: if the end point of the inclined plane path with a forward input order is adjacent to the starting point of the inclined plane path with a forward input order, then the two inclined plane paths need to be connected to each other, and the one with a forward input order in the pair of inclined plane paths is called the first inclined plane path, and the one with a backward input order is the second inclined plane path. Still taking the above six points ABCDEF as an example, the inclined plane path AB is paired with the inclined plane path CD, and the inclined plane path AB is the first inclined plane path, and the inclined plane path CD is the second inclined plane path. The inclined plane path CD is paired with the inclined plane path EF, the inclined plane path CD is a first inclined plane path, and the inclined plane path EF is a second inclined plane path.

[0044] For any pair of the first inclined path and the second inclined path, their directions can be represented by vectors respectively, and the change in direction between the two inclined paths to be connected will determine the structure, direction, etc. of the platform. The angle between the first inclined path and the second inclined path can reflect the change in direction between the two inclined paths, so that a platform generation method suitable for the change in direction can be found as a target method from a variety of platform generation methods for generating different platform structures. The angle here is not just for a specific angle, but there is a corresponding platform generation method for all possible angles (i.e., 0°-180°). Therefore, the generation method in this embodiment can support a variety of inclined facility solutions. Taking stairs as an example, parallel stairs, right-angle stairs, obtuse-angle stairs, and acute-angle stairs can all be supported.

[0045] S106, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target mode, so as to obtain a slope facility path.

[0046] It can be understood that each pair of the first slope path and the second slope path corresponds to a target mode, and a platform path will be generated. The platform path reflects the structural properties such as the direction, position, and length of the platform connected between the slope corresponding to the first slope path and the slope corresponding to the second slope path. After the platform path is generated, each slope path is connected in series to obtain a complete slope facility path. Still taking the above six points ABCDEF as an example, when the slope path AB is the first slope path and the slope path CD is the second slope path, the platform path BC will be generated according to the corresponding target mode. When the slope path CD is the first slope path and the slope path EF is the second slope path, the platform path DE will be generated according to the corresponding target mode. Thus, points ABCDEF are connected in series to obtain a complete slope facility path.

[0047] S108, generating a slope facility model according to the slope facility path.

[0048] The slope facility path reflects the direction of the entire slope facility model from a bird's-eye view. Based on this, combined with the width of the slope facility, the outer contour of the slope facility model from a bird's-eye view can be obtained by translation. Within the outer contour, according to the slope facility parameters, the slope segment can be generated with the first slope path and the second slope as the center, and the platform segment can be generated with the platform path as the center. The slope facility parameters here include size parameters, number of floors, etc. The specific structure of the slope segment and the platform segment is determined by the type of slope facility. If the slope facility is a staircase facility, the slope segment includes multiple continuous treads. If the slope facility is a car ramp, the slope segment is a continuous ramp surface. After the outer contour, the direction of the slope segment and the platform segment are delineated, the technology for automatically generating the slope segment and the platform segment is relatively mature, and can be implemented by referring to relevant specifications and existing technologies. After the slope facility model is generated, it can carry the slope facility annotation information. The slope facility annotation information can be the number of the slope facility in the entire building, which is convenient for designers to locate and index.

[0049] Based on the method for generating the slope facility model in this embodiment, the user only needs to input multiple drawing points, and at least two slope paths can be automatically derived by combining the multiple drawing points. According to the angle between a pair of slope paths to be connected, an appropriate platform generation method is selected for them, so that a corresponding platform path is generated for each pair of slope paths. All platform paths and slope paths are connected to form a complete slope facility path. Finally, based on the slope facility path, the generation of the slope facility model can be automatically completed. This method allows users to obtain the slope facility model with only simple input operations when drawing slope facilities, thereby improving design efficiency. In addition, this method supports the generation of slope facilities of various structures and has strong versatility.

[0050] In one embodiment, according to the angle between any pair of first inclined plane paths and second inclined plane paths, selecting the corresponding platform generation mode as the target mode includes:

[0051] (1) If the angle is 0 degrees, the target mode is the first platform generation mode.

[0052] (2) If the angle is greater than 0 degrees and less than 90 degrees, the target method is the second platform generation method.

[0053] (3) If the angle is greater than 90 degrees and less than 180 degrees, the target method is the third platform generation method.

[0054] (4) If the angle is 180 degrees, the target method is the fourth platform generation method.

[0055] It can be understood that in this embodiment, the angle between the first inclined plane path and the second inclined plane path is divided into four categories. Let a represent this angle, and the above four categories of angles are expressed using expressions, namely a = 0°, 0° < a ≤ 90°, 90° < a < 180°, and a = 180°. The software can select different platform generation methods according to the angle between the first inclined plane path and the second inclined plane path, so as to reasonably select the adapted platform structure. The inclined plane path can be represented by a vector pointing from the starting point to the ending point. Therefore, the angle between two inclined plane paths can be obtained by the method of obtaining the angle between vectors.

[0056] In one of the embodiments, when the target method is the first platform generation method, according to the target method, a platform path connecting the ending point of the first inclined plane path and the starting point of the second inclined plane path is generated, including:

[0057] (1) When the relative position relationship between the ending point of the first inclined plane path and the starting point of the second inclined plane path is the first position relationship, a first double right-angle platform path is generated.

[0058] It can be understood that when the angle between the first inclined plane path and the second inclined plane path is 0°, it means that their corresponding vectors are parallel and point in the same direction. In this case, a platform in the shape of a Z with two right angles, that is, the first double right-angle platform path, will be selected. The possible cases of the relative position relationship between the ending point of the first inclined plane path and the starting point of the second inclined plane path are the first position relationship and the second position relationship. When the relative position relationship between the ending point of the first inclined plane path and the starting point of the second inclined plane path is the first position relationship, there is enough space between these two points to form the first double right-angle platform path. Specifically, the first position relationship can be that the starting point of the second inclined plane path is in the positive direction of the ending point of the first inclined plane path, and the second position relationship can be that the starting point of the second inclined plane path is in the reverse direction of the ending point of the first inclined plane path. Here, the positive direction means passing through the ending point of the first inclined plane path and dividing the area into two halves with a straight line perpendicular to the first inclined plane path. The half area pointed to by the first inclined plane path is the first area, and the other area is the second area. If the starting point of the second inclined plane path is in the first area, then the starting point of the second inclined plane path is in the positive direction of the ending point of the first inclined plane path. Otherwise, it is in the reverse direction of the ending point of the first inclined plane path. The method of judging the positive or reverse direction can also be to obtain the vector from the ending point of the first inclined plane path to the starting point of the second inclined plane path, calculate the angle between this vector and the vector of the first inclined plane path, if it is less than 90°, it is the positive direction, otherwise it is the reverse direction. It is also possible to calculate the dot product of these two vectors, if it is greater than or equal to 0, it is the positive direction, otherwise it is the reverse direction.

[0059] (2) When the relative positional relationship between the end point of the first slope path and the starting point of the second slope path is the second positional relationship, it is determined that the first slope path and the drawing point corresponding to the first slope path do not meet the generation condition.

[0060] It can be understood that when the starting point of the second slope path is located in the second area, connecting the end point of the first slope path and the starting point of the second slope path through two inflection points will not form two right angles, and the first double right-angle platform path cannot be drawn. That is, in this case, it is impossible to generate a platform that conforms to the drawing habits between the first slope path and the second slope path. Therefore, it will be determined that the first slope path and the drawing points corresponding to the first slope path do not meet the generation conditions, and the drawing points should be re-entered.

[0061] In one embodiment, see Figure 2 , generate the first dual rectangular platform path, including:

[0062] (1) A first auxiliary line is determined between the end point of the first slope path and the starting point of the second slope path. The first auxiliary line is perpendicular to the first slope path and the second slope path, and the distances from the first auxiliary line to the end point of the first slope path and the starting point of the second slope path are equal.

[0063] (2) Extend the first inclined path to intersect the first auxiliary line to obtain the first inflection point.

[0064] (3) Extend the second inclined path to intersect with the first auxiliary line to obtain the second inflection point.

[0065] (4) The end point of the first inclined plane path, the first inflection point, the second inflection point, and the starting point of the second inclined plane path are sequentially connected to obtain a first dual right-angle platform path.

[0066] Figure 2 Taking the inclined plane path AB as the first inclined plane path and the inclined plane path CD as the second inclined plane path as an example, the end point of the first inclined plane path is point B, and the starting point of the second inclined plane path is point C. Since the angle between the first inclined plane path and the second inclined plane path is 0°, that is, the first inclined plane path and the second inclined plane path are parallel to each other and in the same direction. Therefore, the first auxiliary line L1 can be perpendicular to the first inclined plane path and the second inclined plane path at the same time. Extending the first inclined plane path and the second inclined plane path and intersecting with the first auxiliary line L1 will form a first inflection point T1 and a second inflection point T2 respectively. Connecting points B, T1, T2, and C can form a connection path including two right angles, angle BT1T2 and angle T1T2C, that is, the first double right-angle platform path. The distance from point B to the first auxiliary line L1 is equal to the distance from point C to the first auxiliary line L1, so that the distance when entering the platform and leaving the platform is equal, which can ensure that the platform formed based on this path has symmetry.

[0067] In one embodiment, when the target mode is the second platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes:

[0068] (1) Extend the first inclined plane path and the second inclined plane path and intersect them to obtain the first auxiliary point.

[0069] (2) When the position of the first auxiliary point meets the single-corner platform generation condition, a first single-corner platform path is generated; otherwise, a first double-corner platform path is generated.

[0070] It can be understood that when the angle between the first inclined plane path and the second inclined plane path is greater than 0° and less than or equal to 90°, their corresponding vectors are not parallel. In this case, according to the intersection of the first inclined plane path and the second inclined plane path, a first single-corner platform path with one corner or a first double-corner platform path with double corners and a Z-shape suitable for the angle condition will be selected. The double corners here will not be right angles at the same time.

[0071] Specifically, since the directions of the first slope path and the second slope path have been determined according to the input order of the corresponding drawing points, the end point of the first slope path must be connected to the end point of the second slope path. The two slope paths are extended and intersected. If the position of the first auxiliary point is appropriate, the first auxiliary point can be used as a turning point to connect the end point of the first slope path and the starting point of the second slope path through a corner path. Otherwise, a double corner path can only be formed between the end point of the first slope path and the starting point of the second slope path. Therefore, it is necessary to determine whether the position of the first auxiliary point meets the single corner platform generation condition. The condition can specifically be that the first auxiliary point is located on the positive extension line of the first slope path and on the reverse extension line of the second slope path. It can also be that the first auxiliary point S1 is located in the positive direction of the end point B of the first slope path and in the reverse direction of the starting point C of the second slope path.

[0072] In one embodiment, see Figure 3 , generating a first single-corner platform path, including: sequentially connecting the end point of the first inclined path, the first auxiliary point and the starting point of the second inclined path to obtain the first single-corner platform path.

[0073] Figure 3 For example, the slope path AB is used as the first slope path and the slope path CD is used as the second slope path. The end point of the first slope path is point B and the starting point of the second slope path is point C. The first slope path and the second slope path are extended to obtain the first auxiliary point S1. Figure 3In the example, the first auxiliary point S1 is located in the positive direction of the end point B of the first inclined plane path and in the negative direction of the starting point C of the second inclined plane path, which meets the generation condition of a single-corner platform. Then, points B, S1, and C can be directly connected to form the first single-corner platform path with corner BS1C as the only corner.

[0074] In one embodiment, see Figure 4 , generate the first double corner platform path, including:

[0075] (1) Starting from the end point of the first slope path, move the slope width perpendicular to the first slope path and away from the second slope path to locate the second auxiliary point.

[0076] Figure 4 For example, the slope path AB is used as the first slope path and the slope path CD is used as the second slope path. The end point of the first slope path is point B and the starting point of the second slope path is point C. The first slope path and the second slope path are extended to obtain the first auxiliary point S1. Figure 4 In the figure, the first auxiliary point S1 is located in the opposite direction of the end point B of the first inclined plane path, which does not meet the single-corner platform generation condition. And the starting point of the second inclined plane path is located in the positive direction of the end point of the first inclined plane path, which meets the generation condition of the first double-corner platform path in this embodiment. The inclined plane width here refers to the design width of the inclined plane contained in the inclined plane facility. Taking the inclined plane as a step as an example, the inclined plane width is the step width. The direction away from the second inclined plane path here refers to the angle between the direction and the direction of the second inclined plane path being greater than 90°, or the order of magnitude being less than 0. On the contrary, it is the direction close to the second inclined plane path. Figure 4 In this step, the second auxiliary point S2 is positioned.

[0077] (2) Starting from the starting point of the second slope path, move the slope width perpendicular to the second slope path in the direction close to the first slope path to locate the third auxiliary point.

[0078] Here, the direction close to the first inclined plane path means that the angle between the direction and the orientation of the first inclined plane path is less than or equal to 90°, or the magnitude is less than or equal to 0. Otherwise, it is the direction away from the first inclined plane path. Figure 4 In this step, the third auxiliary point S3 is positioned.

[0079] (3) Determine a second auxiliary line based on the midpoint between the second auxiliary point and the third auxiliary point and the midpoint between the end point of the first inclined path and the starting point of the second inclined path.

[0080] According to the positions of the second auxiliary point and the third auxiliary point, the position of the midpoint between the second auxiliary point and the third auxiliary point can be calculated. According to the positions of the end point of the first inclined plane path and the starting point of the second inclined plane path, the position of the midpoint between the end point of the first inclined plane path and the starting point of the second inclined plane path can be calculated. A straight line can be determined from these two midpoints, and the determined straight line is the second auxiliary line L2.

[0081] (4) Extend the first inclined path to intersect with the second auxiliary line to obtain the third inflection point.

[0082] Figure 4 According to this step, the first inclined path will intersect the second auxiliary line L2 at the third inflection point T3.

[0083] (5) Extend the second inclined path to intersect the second auxiliary line to obtain the fourth inflection point.

[0084] Figure 4 According to this step, the second inclined path will intersect the second auxiliary line L2 at the fourth inflection point T4.

[0085] (6) The end point of the first inclined plane path, the third turning point, the fourth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a first double-corner platform path.

[0086] Connect points B, T3, T3, and C to form a first double-corner platform path including two corners, corner BT3T4 and corner T3T4C. The path is Z-shaped, and the two corners will not be right angles at the same time.

[0087] In one embodiment, when the target mode is the third platform generation mode, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target mode includes:

[0088] (1) When the relative positional relationship between the end point of the first slope path and the starting point of the second slope path is the first positional relationship, starting from the end point of the first slope path, the slope width is moved perpendicularly to the first slope path and in a direction close to the second slope path to locate the fourth auxiliary point.

[0089] (2) A third auxiliary line is determined perpendicular to the second inclined plane path and passes through the fourth auxiliary point, and the intersection of the third auxiliary line and the second inclined plane path is located as the fifth auxiliary point.

[0090] (3) When the relative position relationship between the fifth auxiliary point and the starting point of the second inclined path is the third position relationship, a second double-corner platform path is generated.

[0091] (4) When the relative position relationship between the fifth auxiliary point and the starting point of the second inclined path is the fourth position relationship, a third double-corner platform path is generated.

[0092] It can be understood that when the angle between the first slope path and the second slope path is greater than 90° and less than 180°, if the relative positional relationship between the end point of the first slope path and the starting point of the second slope path is the first positional relationship, a second double-corner platform path or a third double-corner platform with two corners will be formed, where the corner close to the second slope path is a right angle and the other corner is a non-right angle. The difference between the second double-corner platform path and the third double-corner platform is that the short side of the platform is located on one side of the first slope path or on one side of the second slope path, and the factor that determines the position of the short side is the position of the fifth auxiliary point.

[0093] The possible situations of the relative position relationship between the fifth auxiliary point and the starting point of the second inclined plane path are the third position relationship and the fourth position relationship. The third position relationship can be that the fifth auxiliary point is located in the positive direction of the starting point of the second inclined plane path, and the fourth position relationship can be that the fifth auxiliary point is located in the reverse direction of the starting point of the second inclined plane path. The positive direction here refers to passing through the starting point of the second inclined plane path and being perpendicular to the second inclined plane path, dividing the area into two halves, and the half area not pointed to by the second inclined plane path is the third area, and the other area is the fourth area. If the fifth auxiliary point is located in the third area, then the fifth auxiliary point is located in the positive direction of the starting point of the second inclined plane path. Otherwise, it is located in the positive direction of the starting point of the second inclined plane path.

[0094] If the relative position relationship between the fifth auxiliary point and the starting point of the second inclined plane path is the third position relationship, the short side will be located on one side of the first inclined plane path, and thus the second double-corner platform path will be generated. Otherwise, the short side will be located on one side of the second inclined plane path, and thus the third double-corner platform path will be generated.

[0095] In one embodiment, see Figure 5 , generate the second double-corner platform path, including:

[0096] (1) Move the third auxiliary line in the opposite direction of the second inclined plane path by the inclined plane width to obtain the fourth auxiliary line.

[0097] Figure 5 For example, the inclined plane path AB is used as the first inclined plane path and the inclined plane path CD is used as the second inclined plane path. The end point of the first inclined plane path is point B, and the starting point of the second inclined plane path is point C. Figure 5 In the example, the starting point C of the second slope path is located in the positive direction of the end point B of the first slope path, which conforms to the first position relationship. Figure 5 The fourth auxiliary point S4 is found in the figure, and the third auxiliary line L3 is obtained based on the fourth auxiliary point S4. The fifth auxiliary point S5 is obtained according to the intersection of the third auxiliary line L3 and the second inclined path CD. Figure 5In the figure, S5 is located in the positive direction of the starting point of the second slope path, that is, the relative position relationship between the fifth auxiliary point and the starting point of the second slope path is the third position relationship. According to this step, the third auxiliary line L3 is moved along the reverse direction of the second slope path by the slope width to obtain the fourth auxiliary line L4.

[0098] (2) Extend the first inclined path to intersect with the fourth auxiliary line to obtain the fifth inflection point.

[0099] Figure 5 According to this step, the first inclined path will intersect the fourth auxiliary line L4 at the fifth inflection point T5.

[0100] (3) Extend the second inclined path to intersect with the fourth auxiliary line to obtain the sixth turning point.

[0101] Figure 5 According to this step, the second inclined path will intersect the fourth auxiliary line L4 at the sixth inflection point T6.

[0102] (4) The end point of the first inclined plane path, the fifth turning point, the sixth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a second double-corner platform path.

[0103] Connect points B, T5, T6, and C to form a second double-corner platform path including two corners, corner BT5T6 and corner T5T6C. The path is a rotary type, and the short side BT5 is located on one side of the first inclined path AB, and the long side CT6 is located on one side of the second inclined path CD.

[0104] In one embodiment, see Figure 6 , generate the third double corner platform path, including:

[0105] (1) Starting from the starting point of the second slope path, move the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point.

[0106] Figure 6 For example, the inclined plane path AB is used as the first inclined plane path and the inclined plane path CD is used as the second inclined plane path. The end point of the first inclined plane path is point B, and the starting point of the second inclined plane path is point C. Figure 6 In the example, the starting point C of the second slope path is located in the positive direction of the end point B of the first slope path, which conforms to the first position relationship. Figure 6 The fourth auxiliary point S4 is found in the figure, and the third auxiliary line L3 is obtained based on the fourth auxiliary point S4. The fifth auxiliary point S5 is obtained according to the intersection of the third auxiliary line L3 and the second inclined path CD. Figure 6 In the embodiment, S5 is located in the opposite direction of the starting point of the second inclined path, that is, the relative position relationship between the fifth auxiliary point and the starting point of the second inclined path is the fourth position relationship. According to this step, the sixth auxiliary point S6 is located.

[0107] (2) Translate the third auxiliary line to pass through the sixth auxiliary point to obtain the fifth auxiliary line.

[0108] Figure 6 In this step, the third auxiliary line L3 is moved to a position passing through the sixth auxiliary point S6 to obtain the fifth auxiliary line L5.

[0109] (3) Extend the first inclined path to intersect with the fifth auxiliary line to obtain the seventh turning point.

[0110] Figure 6 According to this step, the first inclined path AB will intersect the fifth auxiliary line L5 at the seventh inflection point T7.

[0111] (4) The sixth auxiliary point is the eighth turning point.

[0112] Since the sixth auxiliary point S6 is the intersection of the fifth auxiliary line L5 and the second inclined path CD, it can be directly used as the eighth inflection point T8.

[0113] (5) The end point of the first inclined plane path, the seventh turning point, the eighth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a third double-corner platform path.

[0114] Connect points B, T7, T8, and C to form a third double-corner platform path including two corners, corner BT7T8 and corner T7T8C. The path is a rotary type, and the short side CT8 is located on the second inclined path CD side, and the long side BT7 is located on the first inclined path AB side.

[0115] In one embodiment, when the target mode is the third platform generation mode, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target mode includes:

[0116] (1) When the relative positional relationship between the end point of the first slope path and the starting point of the second slope path is the second positional relationship, starting from the starting point of the second slope path, the slope width is moved perpendicularly to the second slope path in a direction close to the first slope path to locate the third auxiliary point.

[0117] (2) A sixth auxiliary line is determined perpendicular to the second inclined plane path and passes through the third auxiliary point, and the intersection of the sixth auxiliary line and the first inclined plane path is located as the seventh auxiliary point.

[0118] (3) When the relative position relationship between the seventh auxiliary point and the end point of the first inclined path is the fifth position relationship, a fourth double-corner platform path is generated.

[0119] (4) When the relative position relationship between the seventh auxiliary point and the end point of the first inclined path is the sixth position relationship, a fifth double-corner platform path is generated.

[0120] It can be understood that when the angle between the first slope path and the second slope path is greater than 90° and less than 180°, if the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the second position relationship, a fourth double-corner platform path or a fifth double-corner platform with a rotation shape and two corners will be formed, where one of the double corners is a right angle, and the right angle is located on the side of the short side. The difference between the fourth double-corner platform path and the fifth double-corner platform is that the short side of the platform is located on the side of the first slope path or on the side of the second slope path, and the factor determining the position of the short side is the position of the seventh auxiliary point.

[0121] The possible relative positional relationship between the seventh auxiliary point and the end point of the first inclined plane path is the fifth positional relationship and the sixth positional relationship. The fifth positional relationship can be that the fifth auxiliary point is located in the positive direction of the end point of the first inclined plane path, and the sixth positional relationship can be that the seventh auxiliary point is located in the reverse direction of the end point of the first inclined plane path. The seventh auxiliary point is located in the first area mentioned above, where the seventh auxiliary point is located in the positive direction of the end point of the first inclined plane path. Otherwise, it is located in the reverse direction of the end point of the first inclined plane path.

[0122] In one embodiment, see Figure 7 , generate the fourth double corner platform path, including:

[0123] (1) Starting from the starting point of the second slope path, move the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point.

[0124] Figure 7 For example, the inclined plane path AB is used as the first inclined plane path and the inclined plane path CD is used as the second inclined plane path. The end point of the first inclined plane path is point B, and the starting point of the second inclined plane path is point C. Figure 7 In the example, the starting point C of the second slope path is located in the opposite direction of the end point B of the first slope path, which conforms to the second position relationship. Figure 7 The third auxiliary point S3 is found in the figure, and the sixth auxiliary line L6 is obtained based on the third auxiliary point S3. Then, the seventh auxiliary point S7 is obtained according to the intersection of the sixth auxiliary line L6 and the first inclined path AB. Figure 7 In the embodiment, the seventh auxiliary point S7 is located in the positive direction of the end point of the first inclined plane path, that is, the relative position relationship between the seventh auxiliary point and the end point of the first inclined plane path is the fifth position relationship. According to this step, the sixth auxiliary point S6 is located.

[0125] (2) Translate the sixth auxiliary line to pass through the sixth auxiliary point to obtain the seventh auxiliary line.

[0126] Figure 7 In this step, the sixth auxiliary line L6 is moved to a position passing through the sixth auxiliary point S6 to obtain the seventh auxiliary line L7.

[0127] (3) Extend the first inclined path to intersect with the seventh auxiliary line to obtain the ninth turning point.

[0128] Figure 7 According to this step, the first inclined path AB will intersect the seventh auxiliary line L7 at the ninth inflection point T9.

[0129] (4) The sixth auxiliary point is the tenth turning point.

[0130] Since the sixth auxiliary point S6 is the intersection of the seventh auxiliary line L7 and the second inclined path CD, it can be directly used as the tenth inflection point T10.

[0131] (5) The end point of the first inclined plane path, the ninth turning point, the tenth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a fourth double-corner platform path.

[0132] Connect points B, T9, T10, and C to form a fourth double-corner platform path including two corners, corner BT9T10 and corner T9T10C. The path is a rotary type, corner T9T10C is a right angle, and the short side CT10 is located on the second inclined path CD side, and the long side BT9 is located on the first inclined path AB side.

[0133] In one embodiment, see Figure 8 , generate the fifth double corner platform path, including:

[0134] (1) Starting from the end point of the first slope path, move the slope width along the positive direction of the first slope path to locate the eighth auxiliary point.

[0135] Figure 8 For example, the inclined plane path AB is used as the first inclined plane path and the inclined plane path CD is used as the second inclined plane path. The end point of the first inclined plane path is point B, and the starting point of the second inclined plane path is point C. Figure 8 In the example, the starting point C of the second slope path is located in the opposite direction of the end point B of the first slope path, which conforms to the second position relationship. Figure 8 The third auxiliary point S3 is found in the figure, and the sixth auxiliary line L6 is obtained based on the third auxiliary point S3. Then, the seventh auxiliary point S7 is obtained according to the intersection of the sixth auxiliary line L6 and the first inclined path AB. Figure 8 In the embodiment, the seventh auxiliary point S7 is located in the opposite direction of the end point of the first inclined plane path, that is, the relative position relationship between the seventh auxiliary point and the end point of the first inclined plane path is the sixth position relationship. According to this step, the eighth auxiliary point S8 is located.

[0136] (2) The eighth auxiliary line is perpendicular to the first inclined plane path and passes through the eighth auxiliary point to obtain the eighth auxiliary line.

[0137] That is, a straight line is drawn through the eighth auxiliary point S8 in a direction perpendicular to the first inclined path AB to obtain the eighth auxiliary line L8.

[0138] (3) The eighth auxiliary point is the eleventh turning point.

[0139] Since the eighth auxiliary point S8 is the intersection of the eighth auxiliary line L8 and the first inclined path AB, it can be directly used as the eleventh inflection point T11.

[0140] (4) Extend the second inclined path to intersect with the eighth auxiliary line to obtain the twelfth turning point.

[0141] Figure 8 According to this step, the second inclined path CD will intersect the eighth auxiliary line L8 at the twelfth inflection point T12.

[0142] (5) The end point of the first inclined plane path, the eleventh turning point, the twelfth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a fifth double-corner platform path.

[0143] Connect points B, T11, T12, and C to form a fifth double-corner platform path including two corners, corner BT11T12 and corner T11T12C. The path is a rotary type, corner BT11T12 is a right angle, and the short side BT11 is located on one side of the first inclined path AB, and the long side CT12 is located on one side of the second inclined path CD.

[0144] In one embodiment, when the target mode is the fourth platform generation mode, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target mode includes:

[0145] (1) When the relative positional relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path is the first positional relationship, a second dual right-angle platform path is generated.

[0146] (2) When the relative positional relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path is the second positional relationship, a third dual right-angle platform path is generated.

[0147] It can be understood that when the angle between the first inclined plane path and the second inclined plane path is 180°, it means that their corresponding vectors are parallel to each other and point in opposite directions. In this case, a platform with two right angles will be selected, namely the second double right-angle platform path or the third double right-angle platform path. The difference between the second double right-angle platform path and the third double right-angle platform path is that the short side of the platform is located on one side of the first inclined plane path or on one side of the second inclined plane path, and the factor that determines the position of the short side is the relative position relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path.

[0148] In one embodiment, see Fig. 9 , generate the second dual rectangular platform path, including:

[0149] (1) Starting from the starting point of the second slope path, move the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point.

[0150] Fig. 9 For example, the slope path AB is used as the first slope path and the slope path CD is used as the second slope path. The end point of the first slope path is point B, and the starting point of the second slope path is point C. The angle between the first slope path and the second slope path is 180°, and the starting point of the second slope path is located in the positive direction of the end point of the first slope path, which meets the first position relationship. According to this step, the sixth auxiliary point S6 is located.

[0151] (2) A ninth auxiliary line is obtained which is perpendicular to the first inclined plane path and the second inclined plane path and passes through the sixth auxiliary point.

[0152] Since the first inclined plane path and the second inclined plane path are parallel to each other, a ninth auxiliary line L9 can be drawn through the sixth auxiliary point S6 and is perpendicular to both the first inclined plane path AB and the second inclined plane path CD.

[0153] (3) Extend the first inclined path to intersect with the ninth auxiliary line to obtain the thirteenth turning point.

[0154] Fig. 9 According to this step, the first inclined path will intersect the ninth auxiliary line L9 at the thirteenth turning point T13.

[0155] (4) The sixth auxiliary point is the fourteenth turning point.

[0156] Since the sixth auxiliary point S6 is the intersection of the ninth auxiliary line L9 and the second inclined path CD, it can be directly used as the fourteenth inflection point T14.

[0157] (5) The end point of the first inclined plane path, the thirteenth turning point, the fourteenth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a second dual right-angle platform path.

[0158] Connect points B, T13, T14, and C to form a second double right-angle platform path including two right angles, angle BT13T14 and angle T13T14C. The path is a rotary type, and the short side CT14 is located on the second inclined path CD side, and the long side BT13 is located on the first inclined path AB side.

[0159] In one embodiment, see Fig.10 , generate the third dual rectangular platform path, including:

[0160] (1) Starting from the end point of the first slope path, move the slope width along the positive direction of the first slope path to locate the eighth auxiliary point.

[0161] Fig.10 For example, the slope path AB is used as the first slope path and the slope path CD is used as the second slope path. The end point of the first slope path is point B, and the starting point of the second slope path is point C. The angle between the first slope path and the second slope path is 180°, and the starting point of the second slope path is located in the opposite direction of the end point of the first slope path, which meets the second position relationship. According to this step, the eighth auxiliary point S8 is located.

[0162] (2) A tenth auxiliary line is obtained which is perpendicular to the first inclined plane path and the second inclined plane path and passes through the eighth auxiliary point.

[0163] Since the first inclined plane path AB and the second inclined plane path CD are parallel to each other, a tenth auxiliary line L10 perpendicular to both the first inclined plane path AB and the second inclined plane path CD can be drawn through the eighth auxiliary point S8.

[0164] (3) The eighth auxiliary point is the fifteenth turning point.

[0165] Since the eighth auxiliary point S8 is the intersection of the tenth auxiliary line L10 and the first inclined path AB, it can be directly used as the fifteenth inflection point T15.

[0166] (4) Extend the second inclined path to intersect with the tenth auxiliary line to obtain the sixteenth turning point.

[0167] Fig.10 According to this step, the second inclined path CD will intersect the tenth auxiliary line L10 at the sixteenth inflection point T16.

[0168] (5) The end point of the first inclined plane path, the fifteenth turning point, the sixteenth turning point, and the starting point of the second inclined plane path are sequentially connected to obtain a third double right-angle platform path.

[0169] Connect points B, T15, T16, and C to form a third double right-angle platform path including two right angles, corners BT15T16 and corners T15T16C. The path is a rotary type, and the short side BT15 is located on one side of the first inclined path AB, and the long side CT16 is located on one side of the second inclined path CD.

[0170] In one embodiment, generating a slope facility model according to the slope facility path includes:

[0171] (1) According to half of the slope width, the slope facility path is translated outward, and the outer contour of the slope facility model is obtained based on the translation result.

[0172] by Figure 8 As an example, the generated slope facility path is taken as the center, and the first slope path AB, the second slope path CD, and the fifth double-corner platform path BT11T12C are offset to both sides by half of the slope width to obtain Fig.11 The translation result on the left. The translation lines on the same side of the inclined facility path are divided into a group. For the translation lines in the same group, if there is no intersection with the adjacent translation lines, extend them until they intersect with the adjacent translation lines, mark all the intersection points, and mark the starting point of the starting translation line (such as the translation line corresponding to the first inclined path AB) and the end point of the end translation line (such as the translation line corresponding to the second inclined path CD). Following the direction of the inclined facility path, connect each intersection point and the end point of the end translation line in sequence from the starting point of the starting translation line, and then connect the starting points of the starting translation lines and the end points of the end translation lines of the two groups respectively to form Fig.11 The result on the right shows that the dotted line is the outer contour of the slope facility model.

[0173] (2) Generate a slope facility model based on the outer contour.

[0174] A slope facility model can be generated based on the outer contour and slope facility parameters such as the height and number of layers of the slope facility.

[0175] The present application provides a device for generating a slope facility model, including: a slope path generation module, used to determine at least two slope paths; the slope path corresponds to a slope in the slope facility. A platform generation method determination module, used to select the corresponding platform generation method as the target method according to the angle between any pair of first slope paths and second slope paths. The end point of the first slope path is adjacent to the starting point of the second slope path. The platform path generation module is used to generate a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target method to obtain a slope facility path; the slope facility path reflects the direction of the slope facility model from a bird's-eye view. The slope facility model generation module is used to generate a slope facility model according to the slope facility path.

[0176] For the specific limitations of the device for generating the slope facility model, please refer to the limitations of the method for generating the slope facility model above, which will not be repeated here. The various modules in the above-mentioned device for generating the slope facility model can be implemented in whole or in part by software, hardware and a combination thereof. The above-mentioned modules can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the operations corresponding to the above modules. It should be noted that the division of modules in the embodiment of the present application is schematic and is only a logical function division. There may be other division methods in actual implementation.

[0177] The present application provides a computer device, including one or more processors and a memory, wherein the memory stores computer-readable instructions. When the computer-readable instructions are executed by the one or more processors, the steps of the method for generating a slope facility model in any of the above embodiments are executed.

[0178] Indicatively, Fig.12 , which is a schematic diagram of the internal structure of a computer device provided in an embodiment of the present application. The computer device 1200 includes a processing component 1202, which further includes one or more processors, and a memory resource represented by a memory 1201, which is used to store instructions that can be executed by the processing component 1202, such as an application. The application stored in the memory 1201 may include one or more modules, each corresponding to a set of instructions. In addition, the processing component 1202 is configured to execute instructions to execute the steps of the method for generating a slope facility model in any of the above embodiments.

[0179] The computer device 1200 may further include a power supply component 1203 configured to perform power management of the computer device 1200 , a wired or wireless network interface 1204 configured to connect the computer device 1200 to a network, and an input / output (I / O) interface 1205 .

[0180] Those skilled in the art will appreciate that the structure shown in the figure is merely a block diagram of a portion of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.

[0181] The various embodiments in this specification are described in a progressive manner, and each embodiment focuses on the differences from other embodiments. The various embodiments can be combined as needed, and the same or similar parts can refer to each other.

[0182] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for generating a slope facility model, characterized in that: include: Determine at least two inclined paths; According to the angle between any pair of first inclined plane paths and second inclined plane paths, the corresponding platform generation mode is selected as the target mode; the first inclined plane path and the second inclined plane path are a pair of inclined plane paths whose starting point and end point need to be connected to each other, and the end point of the first inclined plane path will be connected to the starting point of the second inclined plane path; the corresponding platform generation mode is selected as the target mode according to the angle between any pair of first inclined plane paths and second inclined plane paths, including: if the angle is 0 degrees, the target mode is the first platform generation mode to generate a first double right-angle platform path in a Z shape with two right angles or to determine that the generation condition is not met; if the angle is greater than 0 degrees and less than 90 degrees, the target mode is the second platform generation mode to generate a first single-corner platform path or a first double-corner platform path, the first single-corner platform path is a platform path with one corner, and the first double-corner platform path is a Z-shaped platform path with double corners, and the double corners are not right angles at the same time; if the angle is greater than 90 degrees and less than 180 degrees, the target mode is the third A platform generation method, to generate a second double-corner platform path, a third double-corner platform path, a fourth double-corner platform path or a fifth double-corner platform path of a rotary shape with double corners, wherein the corner close to the second inclined plane path in the first two is a right angle and the other corner is a non-right angle, the side close to the first inclined plane path in the second double-corner platform path is a short side of the platform, the side close to the second inclined plane path in the third double-corner platform path is a short side of the platform, one of the corners of the latter two is a right angle, and the right angle is located on the short side of the platform path, the side close to the second inclined plane path in the fourth double-corner platform path is a short side of the platform, and the side close to the first inclined plane path in the fifth double-corner platform path is a short side of the platform; if the angle is 180 degrees, then the target method is the fourth platform generation method, to generate a second double right-angle platform path or a third double right-angle platform path of a rotary shape with double right angles, the side close to the second inclined plane path in the second double right-angle platform path is a short side of the platform, and the side close to the first inclined plane path in the third double right-angle platform path is a short side of the platform; According to the target mode, generating a platform path connecting the end point of the first slope path and the starting point of the second slope path to obtain a slope facility path; A slope facility model is generated according to the slope facility path.

2. The method for generating a slope facility model according to claim 1, characterized in that: When the target mode is the first platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes: A first dual right-angle platform path is generated when the relative position relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path is a first position relationship; the first position relationship is that the starting point of the second inclined plane path is located in a half area pointed to by the first inclined plane path, bounded by a straight line passing through the end point of the first inclined plane path and perpendicular to the first inclined plane path; When the relative position relationship between the end point of the first slope path and the starting point of the second slope path is the second position relationship, it is determined that the first slope path and the drawing points corresponding to the first slope path do not meet the generation conditions; the second position relationship is that the starting point of the second slope path is located in the other half of the area not pointed to by the first slope path, bounded by a straight line passing through the end point of the first slope path and perpendicular to the first slope path.

3. The method for generating a slope facility model according to claim 2, characterized in that: The generating of the first dual right-angle platform path comprises: A first auxiliary line is determined between the end point of the first slope path and the starting point of the second slope path; the first auxiliary line is perpendicular to the first slope path and the second slope path, and the distances from the first auxiliary line to the end point of the first slope path and the starting point of the second slope path are equal; Extending the first inclined path to intersect the first auxiliary line to obtain a first inflection point; Extending the second inclined path to intersect the first auxiliary line to obtain a second inflection point; The end point of the first inclined plane path, the first inflection point, the second inflection point and the starting point of the second inclined plane path are sequentially connected to obtain the first dual right-angle platform path.

4. The method for generating a slope facility model according to claim 1, characterized in that: When the target mode is the second platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes: Extending the first slope path and the second slope path and intersecting them to obtain a first auxiliary point; When the position of the first auxiliary point meets the single-corner platform generation condition, a first single-corner platform path is generated; otherwise, a first double-corner platform path is generated.

5. The method for generating a slope facility model according to claim 4, characterized in that: The generating of the first single-corner platform path comprises: The end point of the first inclined plane path, the first auxiliary point and the starting point of the second inclined plane path are sequentially connected to obtain the first single-corner platform path.

6. The method for generating a slope facility model according to claim 4, characterized in that: The generating of the first double-corner platform path comprises: Starting from the end point of the first slope path, moving the slope width perpendicular to the first slope path and in a direction away from the second slope path to locate the second auxiliary point; Starting from the starting point of the second slope path, perpendicular to the second slope path, moving the slope width in a direction close to the first slope path to locate a third auxiliary point; Determine a second auxiliary line according to a midpoint between the second auxiliary point and the third auxiliary point and a midpoint between an end point of the first slope path and a starting point of the second slope path; Extending the first inclined path to intersect the second auxiliary line to obtain a third inflection point; Extending the second inclined path to intersect the second auxiliary line to obtain a fourth inflection point; The end point of the first inclined plane path, the third inflection point, the fourth inflection point and the starting point of the second inclined plane path are sequentially connected to obtain the first double-corner platform path.

7. The method for generating a slope facility model according to claim 1, characterized in that: When the target mode is the third platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes: In the case where the relative positional relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path is a first positional relationship, starting from the end point of the first inclined plane path, the inclined plane width is moved perpendicularly to the first inclined plane path and in a direction close to the second inclined plane path to locate the fourth auxiliary point; the first positional relationship is that the starting point of the second inclined plane path is located in a half area pointed to by the first inclined plane path, bounded by a straight line passing through the end point of the first inclined plane path and perpendicular to the first inclined plane path; A third auxiliary line is determined perpendicular to the second inclined plane path and passes through the fourth auxiliary point, and an intersection of the third auxiliary line and the second inclined plane path is located as a fifth auxiliary point; In the case where the relative position relationship between the fifth auxiliary point and the starting point of the second inclined plane path is a third position relationship, a second double-corner platform path is generated; the third position relationship is that the fifth auxiliary point is located in the half area not pointed to by the second inclined plane path, bounded by a straight line passing through the end point of the second inclined plane path and perpendicular to the second inclined plane path; When the relative position relationship between the fifth auxiliary point and the starting point of the second slope path is the fourth position relationship, a third double-corner platform path is generated; the fourth position relationship is that the fifth auxiliary point is located in the half area pointed to by the second slope path, bounded by a straight line passing through the starting point of the second slope path and perpendicular to the second slope path.

8. The method for generating a slope facility model according to claim 7, characterized in that: The generating of the second double-corner platform path comprises: Move the third auxiliary line in the opposite direction of the second inclined plane path by the inclined plane width to obtain a fourth auxiliary line; Extending the first inclined path to intersect the fourth auxiliary line to obtain a fifth inflection point; Extending the second inclined path to intersect the fourth auxiliary line to obtain a sixth inflection point; The end point of the first inclined plane path, the fifth inflection point, the sixth inflection point and the starting point of the second inclined plane path are sequentially connected to obtain the second double-corner platform path.

9. The method for generating a slope facility model according to claim 7, characterized in that: The generating of the third double-corner platform path comprises: Starting from the starting point of the second slope path, moving the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point; Translating the third auxiliary line to pass through the sixth auxiliary point to obtain a fifth auxiliary line; Extending the first inclined path to intersect the fifth auxiliary line to obtain a seventh inflection point; Taking the sixth auxiliary point as the eighth inflection point; The end point of the first inclined plane path, the seventh inflection point, the eighth inflection point and the starting point of the second inclined plane path are sequentially connected to obtain the third double-corner platform path.

10. The method for generating a slope facility model according to claim 1, characterized in that: When the target mode is the third platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes: When the relative position relationship between the end point of the first slope path and the starting point of the second slope path is a second position relationship, starting from the starting point of the second slope path, the slope width is moved perpendicularly to the second slope path in a direction close to the first slope path to locate the third auxiliary point; A sixth auxiliary line is determined perpendicular to the second inclined plane path and passes through the third auxiliary point, and an intersection of the sixth auxiliary line and the first inclined plane path is located as a seventh auxiliary point; A fourth double-corner platform path is generated when the relative position relationship between the seventh auxiliary point and the end point of the first inclined plane path is a fifth position relationship; the fifth position relationship is that the seventh auxiliary point is located in a half area pointed to by the first inclined plane path, bounded by a straight line passing through the end point of the first inclined plane path and perpendicular to the first inclined plane path; When the relative position relationship between the seventh auxiliary point and the end point of the first slope path is the sixth position relationship, a fifth double-corner platform path is generated; the sixth position relationship is that the seventh auxiliary point is located in the half area not pointed to by the first slope path, which is bounded by a straight line passing through the end point of the first slope path and perpendicular to the first slope path.

11. The method for generating a slope facility model according to claim 10, characterized in that: The generating of the fourth double-corner platform path comprises: Starting from the starting point of the second slope path, moving the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point; Translating the sixth auxiliary line to pass through the sixth auxiliary point to obtain a seventh auxiliary line; Extending the first inclined path to intersect the seventh auxiliary line to obtain a ninth inflection point; Taking the sixth auxiliary point as the tenth inflection point; The end point of the first inclined plane path, the ninth turning point, the tenth turning point and the starting point of the second inclined plane path are sequentially connected to obtain the fourth double-corner platform path.

12. The method for generating a slope facility model according to claim 10, characterized in that: The generating of the fifth double-corner platform path comprises: Starting from the end point of the first slope path, moving the slope width along the positive direction of the first slope path to locate an eighth auxiliary point; An eighth auxiliary line is obtained which is perpendicular to the first inclined plane path and passes through the eighth auxiliary point; The eighth auxiliary point is the eleventh turning point; Extending the second inclined path to intersect the eighth auxiliary line to obtain a twelfth inflection point; The end point of the first inclined plane path, the eleventh turning point, the twelfth turning point and the starting point of the second inclined plane path are sequentially connected to obtain the fifth double-corner platform path.

13. The method for generating a slope facility model according to claim 1, characterized in that: When the target mode is the fourth platform generation mode, generating a platform path connecting an end point of the first slope path and a starting point of the second slope path according to the target mode includes: A second dual right-angle platform path is generated when the relative position relationship between the end point of the first inclined plane path and the starting point of the second inclined plane path is a first position relationship; the first position relationship is that the starting point of the second inclined plane path is located in a half area pointed to by the first inclined plane path, bounded by a straight line passing through the end point of the first inclined plane path and perpendicular to the first inclined plane path; When the relative position relationship between the end point of the first slope path and the starting point of the second slope path is a second position relationship, a third dual right-angle platform path is generated; the second position relationship is that the starting point of the second slope path is located in the other half of the area not pointed to by the first slope path, bounded by a straight line passing through the end point of the first slope path and perpendicular to the first slope path.

14. The method for generating a slope facility model according to claim 13, characterized in that: The generating of the second dual right-angle platform path comprises: Starting from the starting point of the second slope path, moving the slope width in the reverse direction of the second slope path to locate the sixth auxiliary point; A ninth auxiliary line is perpendicular to the first inclined plane path and the second inclined plane path and passes through the sixth auxiliary point; Extending the first inclined path to intersect the ninth auxiliary line to obtain a thirteenth inflection point; Taking the sixth auxiliary point as the fourteenth inflection point; The end point of the first inclined plane path, the thirteenth turning point, the fourteenth turning point and the starting point of the second inclined plane path are sequentially connected to obtain the second dual right-angle platform path.

15. The method for generating a slope facility model according to claim 13, characterized in that: The generating of the third dual right-angle platform path comprises: Starting from the end point of the first slope path, moving the slope width along the positive direction of the first slope path to locate an eighth auxiliary point; A tenth auxiliary line is perpendicular to the first inclined plane path and the second inclined plane path and passes through the eighth auxiliary point; Taking the eighth auxiliary point as the fifteenth inflection point; Extending the second inclined path to intersect the tenth auxiliary line to obtain a sixteenth inflection point; The end point of the first inclined plane path, the fifteenth turning point, the sixteenth turning point and the starting point of the second inclined plane path are sequentially connected to obtain the third dual right-angle platform path.

16. The method for generating a slope facility model according to any one of claims 1 to 15, characterized in that: The step of generating a slope facility model according to the slope facility path comprises: According to half of the slope width, the slope facility path is translated outward, and the outer contour of the slope facility model is obtained according to the translation result; The slope facility model is generated according to the outer contour.

17. A device for generating a slope facility model, characterized in that: include: A slope path generation module, used to determine at least two slope paths; A platform generation mode determination module is used to select a corresponding platform generation mode as a target mode according to the angle between any pair of first inclined plane paths and second inclined plane paths; the first inclined plane path and the second inclined plane path are a pair of inclined plane paths whose starting point and end point need to be connected to each other, and the end point of the first inclined plane path will be connected to the starting point of the second inclined plane path; the corresponding platform generation mode is selected as the target mode according to the angle between any pair of first inclined plane paths and second inclined plane paths, including: if the angle is 0 degrees, the target mode is the first platform generation mode to generate a first double right-angle platform path in a Z shape with two right angles or to determine that the generation condition is not met; if the angle is greater than 0 degrees and less than 90 degrees, the target mode is the second platform generation mode to generate a first single-corner platform path or a first double-corner platform path, the first single-corner platform path is a platform path with one corner, and the first double-corner platform path is a Z-shaped platform path with double corners, and the double corners are not right angles at the same time; if the angle is greater than 90 degrees and less than 180 degrees, the target mode is the second platform generation mode to generate a first single-corner platform path or a first double-corner platform path, the first single-corner platform path is a platform path with one corner, and the first double-corner platform path is a Z-shaped platform path with double corners, and the double corners are not right angles at the same time; The target method is the third platform generation method to generate a second double-corner platform path, a third double-corner platform path, a fourth double-corner platform path or a fifth double-corner platform path of a rotary shape with double corners, wherein the corner close to the second inclined plane path in the first two is a right angle and the other corner is a non-right angle, the side close to the first inclined plane path in the second double-corner platform path is the short side of the platform, the side close to the second inclined plane path in the third double-corner platform path is the short side of the platform, and one of the corners of the latter two is a right angle, and the right angle is located on the short side of the platform path On one side, the side of the fourth double-corner platform path close to the second inclined plane path is the short side of the platform, and the side of the fifth double-corner platform path close to the first inclined plane path is the short side of the platform; if the angle is 180 degrees, the target mode is the fourth platform generation mode to generate a second double right-angle platform path or a third double right-angle platform path with double right angles, the side of the second double right-angle platform path close to the second inclined plane path is the short side of the platform, and the side of the third double right-angle platform path close to the first inclined plane path is the short side of the platform; A platform path generation module, used for generating a platform path connecting the end point of the first slope path and the starting point of the second slope path according to the target mode, so as to obtain a slope facility path; The slope facility model generation module is used to generate a slope facility model according to the slope facility path.

18. A computer device, characterized in that: It comprises one or more processors and a memory, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the one or more processors, the steps of the method for generating a slope facility model as described in any one of claims 1-16 are executed.