Method, device and electronic device for obtaining vehicle cross-section
By acquiring and utilizing multiple cutting starting points and curves of vehicle parts, the problem of low cross-section generation efficiency in the prior art is solved, and the effect of efficient generation of multiple cross-sections is achieved.
Patent Information
- Application Number
- CN202210728000.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-06-23
- Publication Date
- 2025-05-27
- Estimated Expiration
- 2042-06-23
AI Technical Summary
The prior art is less efficient when acquiring vehicle sections, and requires manual selection of tangent points and tangent lines, and only one section can be generated at a time.
By obtaining M cutting starting points and M cutting curves of vehicle parts, these starting points and curves are used to cut the vehicle parts to generate M part sections.
It realizes the efficient generation of multiple vehicle sections through machine selection of cutting starting points and curves, and improves the efficiency of section generation.
Smart Images

Figure CN115130213B_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of automotive cross-section design, and particularly to a method, device and electronic device for obtaining a vehicle cross-section. Background Art
[0002] In the prior art, when obtaining a vehicle cross-section, usually after obtaining an automotive model, for a certain part in the automotive model, tangent points and tangents are manually selected on the part, and then the part is cut based on the tangent points and tangents to generate the cross-section corresponding to the part. Since the tangent points and tangents need to be manually selected and only one cross-section can be generated each time, the problem of low efficiency in generating cross-sections occurs. Summary of the Invention
[0003] Embodiments of the present invention provide a method, device and electronic device for obtaining a vehicle cross-section, which can effectively improve the efficiency of generating vehicle cross-sections.
[0004] In a first aspect of an embodiment of the present invention, a method for obtaining a vehicle cross-section is provided, and the method includes:
[0005] Obtain a vehicle part to be cut;
[0006] Obtain M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points correspond to the M cutting curves one by one, and M is an integer greater than 1;
[0007] Use the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part.
[0008] Optionally, the obtaining of the vehicle part to be cut includes:
[0009] Obtain a selection operation for selecting a part in the vehicle;
[0010] According to the selection operation, use the selected part corresponding to the selection operation as the vehicle part.
[0011] Optionally, the obtaining of the M cutting starting points and the M cutting curves of the vehicle part includes:
[0012] Obtain M continuous curves for cutting the vehicle part, and use the M continuous curves as the M cutting curves;
[0013] Select a starting point from each of the M continuous curves, and use the selected M starting points as the M cutting starting points.
[0014] Optionally, the step of using the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part includes:
[0015] For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve to obtain the part cross-section corresponding to each cutting curve;
[0016] Execute the above steps for each cutting curve to obtain the M part cross-sections.
[0017] Optionally, the step of, for each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent line of the cutting curve to obtain the part cross-section corresponding to each cutting curve includes:
[0018] For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve and set a position spacing to obtain the part cross-section corresponding to the cutting curve.
[0019] Optionally, the step of, for each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent line of the cutting curve and setting a position spacing to obtain the part cross-section corresponding to the cutting curve includes:
[0020] For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve, and use the distance input by the user to set the position spacing to obtain the part cross-section corresponding to the cutting curve.
[0021] In a second aspect, the present invention further provides a device for obtaining a vehicle cross-section, the device includes:
[0022] A cutting part acquisition unit, configured to acquire a vehicle part to be cut;
[0023] A cutting parameter acquisition unit, configured to acquire M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points and the M cutting curves are in one-to-one correspondence, and M is an integer greater than 1;
[0024] A cross-section acquisition unit, configured to use the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part.
[0025] Optionally, the cutting part acquisition unit is configured to acquire a selection operation for selecting a part in a vehicle; according to the selection operation, use the selected part corresponding to the selection operation as the vehicle part.
[0026] Optionally, the cross-section obtaining unit is configured to obtain M continuous curves for cutting the vehicle part, and use the M continuous curves as the M cutting curves; select a starting point from each of the M continuous curves, and use the selected M starting points as the M cutting starting points.
[0027] In a third aspect, the present invention also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor. When the processor executes the program, the steps of the vehicle cross-section obtaining method provided in the first aspect are implemented.
[0028] One or at least one of the above technical solutions in the embodiments of the present application has at least the following technical effects:
[0029] Based on the above technical solution, a vehicle part to be cut is obtained; M cutting starting points and M cutting curves of the vehicle part are obtained; the vehicle part is cut by using the M cutting starting points and the M cutting curves to obtain M part cross-sections of the vehicle part; thus, it can be seen that the M part cross-sections can be obtained by cutting the vehicle part with the M cutting starting points and the M cutting curves selected by the machine. Since M is an integer greater than 1, multiple cross-sections can be cut at one time, thereby effectively improving the generation efficiency of vehicle cross-sections. Description of the Drawings
[0030] Figure 1 It is a flowchart of the method for obtaining a vehicle cross-section provided by the embodiment of the present application;
[0031] Figure 2 It is a schematic structural diagram of the vehicle cross-section obtaining device provided by the embodiment of the present application;
[0032] Figure 3 It is a schematic structural diagram of the electronic device provided by the embodiment of the present application. Detailed Embodiments
[0033] The main implementation principle, specific implementation manners and corresponding beneficial effects that can be achieved of the technical solutions in the embodiments of the present application are elaborated in detail below with reference to the drawings.
[0034] Embodiment
[0035] Please refer to Figure 1 , the embodiment of the present application provides a method for obtaining a vehicle cross-section, and the method includes:
[0036] S101. Obtain a vehicle part to be cut;
[0037] S102. Obtain M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points correspond to the M cutting curves one by one, and M is an integer greater than 1;
[0038] S103. Use the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part.
[0039] The method for obtaining the vehicle cross-section in the embodiments of this specification can be applied to a server or a user terminal. The server can be, for example, a notebook computer, a desktop computer, an all-in-one computer, etc. The user terminal can be, for example, a smart phone, a notebook computer, a desktop computer, an all-in-one computer, etc. Hereinafter, the server is taken as an example specifically.
[0040] Among them, in step S101, a selection operation for selecting a part in the vehicle can be obtained; then, according to the selection operation, the selected part corresponding to the selection operation is used as the vehicle part.
[0041] In the embodiments of this specification, the vehicle parts can be one or more. When there are multiple vehicle parts, steps S102 and S103 are executed for each vehicle part.
[0042] Specifically, when a batch generation cross-section interface is displayed on the server, it can be detected whether there is a selection operation for a certain part in the vehicle model. If it is detected that there is a selection operation, the selected part corresponding to the selection operation is used as the vehicle part; if it is not detected that there is a selection operation, all the currently displayed parts of the vehicle model are used as the vehicle parts.
[0043] For example, taking server A as an example, a batch generation cross-section interface can be displayed on server A, and a part object selection box is displayed on the batch generation cross-section interface. Then, a selection operation for the part object selection box is obtained, and the selected part corresponding to the selection operation is used as the vehicle part.
[0044] After the vehicle part is obtained, step S102 is executed.
[0045] In step S102, M continuous curves for cutting the vehicle part can be obtained, and the M continuous curves are used as the M cutting curves; then, a starting point is selected from each of the M continuous curves, and the selected M starting points are used as the M cutting starting points.
[0046] Specifically, when obtaining M continuous curves for cutting vehicle parts, multiple continuous curves can be pre-set for each part in the vehicle, and a starting point can be set on each continuous curve. In this way, after obtaining the vehicle parts, at least two continuous curves of the vehicle parts can be selected from the multiple continuous curves corresponding to each part stored in advance as the M continuous curves, and then the starting points on each of the at least two continuous curves can be used as the M cutting starting points.
[0047] For example, taking Server A as an example, the parts in the vehicle include A1, A2, A3, and A4, and the database of Server A stores 4 continuous curves B1 of A1 and 4 starting points B11 represented as A1 - B1 - B11. Correspondingly, the database of Server A stores A2 - B2 - B21, A3 - B3 - B31, and A4 - B4 - B41. If the vehicle part corresponding to the detection and selection operation is A1, and B1 includes continuous curves B100, B101, B102, and B103, and B11 includes starting points B110, B111, B112, and B113 set in sequence on B100, B101, B102, and B103, then at least two continuous curves are selected from B100, B101, B102, and B103 as the M cutting curves. If the M cutting curves are B102 and B103, then B112 and B113 are obtained as the M cutting starting points.
[0048] In this way, since the database of the server stores multiple continuous curves of each part and the starting points on each continuous curve, when obtaining the M cutting curves and the M cutting starting points, the M cutting curves and the M cutting starting points can be directly selected from the database in the server, without the need for manual setting of the cutting starting points and cutting curves, but through machine selection. Compared with manual selection, machine selection is more efficient, thus making the efficiency of obtaining the M cutting curves and the M cutting starting points higher. Moreover, since M is an integer greater than 1, multiple cutting curves and multiple cutting starting points can be selected at one time. Compared with the prior art where only one cutting curve and one cutting starting point can be selected at a time, the efficiency of obtaining the M cutting curves and the M cutting starting points is further improved.
[0049] After obtaining the M cutting starting points and the M cutting curves, step S103 is executed.
[0050] In step S103, for each cutting curve, starting from the cutting starting point corresponding to the cutting curve, the vehicle part is cut along the default direction of the tangent of the cutting curve to obtain the part cross-section corresponding to each cutting curve; the above steps are executed for each cutting curve to obtain M part cross-sections.
[0051] Specifically, for each cutting curve, starting from the cutting start point corresponding to the cutting curve, the vehicle part can be cut along the default direction of the tangent of the cutting curve, and a position spacing is set to obtain the part cross-section corresponding to the cutting curve. Of course, for each cutting curve, starting from the cutting start point corresponding to the cutting curve, the vehicle part can be cut along the reverse direction of the default direction of the tangent of the cutting curve, and a position spacing is set to obtain the part cross-section corresponding to the cutting curve. Additionally, when cutting the vehicle part along the reverse direction of the default direction of the tangent of the cutting curve, the vehicle part can also be cut along other directions of the cutting curve, which is not specifically limited in this specification.
[0052] Specifically, for each cutting curve, starting from the cutting start point corresponding to the cutting curve, the vehicle part is cut along the default direction of the tangent of the cutting curve, and the position spacing is set by using the distance input by the user to obtain the part cross-section corresponding to the cutting curve. Moreover, when setting the position spacing by using the distance input by the user, the distance input by the user is used as the position spacing and set.
[0053] In the embodiments of this specification, the position distance is the distance between the current part cross-section and the previous part cross-section.
[0054] For example, still taking server A as an example, if the vehicle part is A1, and the M cutting curves are B102 and B103, and the M cutting start points are B112 and B113, then for B102, B112 is used as the starting point, and cutting is performed along the default direction of the tangent of B102, and the distance input by the user, such as 50 millimeters (mm), is obtained as the position spacing, and the cross-section position is set by using the position spacing to obtain the part cross-section C1 corresponding to B102. Similarly, for B103, B113 is used as the starting point, and cutting is performed along the default direction of the tangent of B103, and the distance input by the user, such as 50 mm, is obtained as the position spacing, and the cross-section position is set by using the position spacing to obtain the part cross-section C2 corresponding to B103. In this way, the obtained C1 and C2 are used as the M part cross-sections.
[0055] It can be seen from this that after obtaining the M cutting curves and the M cutting start points, the vehicle part can be cut by using the M cutting curves and the M cutting start points to obtain M part cross-sections. Since M is an integer greater than 1, multiple cutting curves and multiple cutting start points can be selected at one time, or multiple part cross-sections can be obtained by cutting at one time. Compared with the prior art where only one cross-section can be generated at a time, the efficiency of obtaining the M cutting curves and the M cutting start points can be effectively improved.
[0056] In another embodiment, after obtaining the M part cross-sections, the M part cross-sections can also be displayed so that the user can visually view the M part cross-sections.
[0057] In the actual application process, after the server receives the click operation on the "Batch Generate Sections" button, the batch generate sections interface is displayed on the server. At this time, a part object selection control is displayed on the batch generate sections interface, and the selection operation for the part object selection control can be obtained to get the part to be cut currently as a vehicle part; if no selection operation is obtained, all the displayed parts are used as vehicle parts.
[0058] Among them, a curve selection control is also displayed on the batch generate sections interface, and the curve selection operation for the curve selection control can be obtained to select M cutting curves; and a cutting point selection control is also displayed on the batch generate sections interface, and the cutting point selection operation for the cutting point selection control can be obtained to select a point from each of the selected cutting curves as the cutting starting point of the cutting curve.
[0059] In addition, a position distance control is also displayed on the batch generate sections interface, and the user input distance for the position distance control can be obtained as the position distance. The section position is set with the position distance, and the part section is generated through the cutting plane.
[0060] One or at least one of the above technical solutions in the embodiments of the present application has at least the following technical effects:
[0061] Based on the above technical solution, the vehicle part to be cut is obtained; M cutting starting points and M cutting curves of the vehicle part are obtained; the vehicle part is cut by using the M cutting starting points and the M cutting curves to obtain M part sections of the vehicle part; thus, it can be seen that the vehicle part can be cut by the M cutting starting points and the M cutting curves selected by the machine to obtain M part sections. Since M is an integer greater than 1, multiple sections can be cut at one time, thereby effectively improving the generation efficiency of vehicle sections.
[0062] For the method for obtaining a vehicle section provided in the above embodiment, the embodiments of the present application also correspondingly provide a device for obtaining a vehicle section, as Figure 2 shown, the device includes:
[0063] A cutting part obtaining unit 201 for obtaining the vehicle part to be cut;
[0064] A cutting parameter obtaining unit 202 for obtaining M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points and the M cutting curves correspond one by one, and M is an integer greater than 1;
[0065] A section obtaining unit 203 for cutting the vehicle part by using the M cutting starting points and the M cutting curves to obtain M part sections of the vehicle part.
[0066] In an alternative embodiment, a cutting part acquisition unit 201 is configured to obtain a selection operation for selecting a part in a vehicle; and according to the selection operation, use the selected part corresponding to the selection operation as the vehicle part.
[0067] In an alternative embodiment, a section acquisition unit 203 is configured to obtain M continuous curves for cutting the vehicle part, use the M continuous curves as the M cutting curves; select a starting point from each of the M continuous curves, and use the selected M starting points as the M cutting starting points.
[0068] In an alternative embodiment, for each cutting curve, the section acquisition unit 203 is configured to start from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve, and obtain a part section corresponding to each cutting curve; perform the above steps for each cutting curve to obtain the M part sections.
[0069] In an alternative embodiment, for each cutting curve, the section acquisition unit 203 is configured to start from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve, and set a position spacing to obtain a part section corresponding to the cutting curve.
[0070] In an alternative embodiment, for each cutting curve, the section acquisition unit 203 is configured to start from the cutting starting point corresponding to the cutting curve, cut the vehicle part along the default direction of the tangent line of the cutting curve, and use the distance input by the user to set the position spacing to obtain a part section corresponding to the cutting curve.
[0071] Regarding the device in the above embodiments, the specific manners in which each unit performs operations have been described in detail in the embodiments related to the method, and will not be elaborated herein.
[0072] Based on the same inventive concept, as Figure 3 shown, this embodiment provides an electronic device 300, including a memory 310, a processor 320, and a computer program 311 stored in the memory 310 and executable on the processor 320. When the processor 320 executes the program 311, the following method steps can be implemented:
[0073] Obtain a vehicle part to be cut;
[0074] Obtain M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points and the M cutting curves correspond one by one, and M is an integer greater than 1;
[0075] Using the M cutting starting points and the M cutting curves, cut the vehicle part to obtain M part cross-sections of the vehicle part.
[0076] In a specific implementation process, when the processor 320 executes the program 311, any method steps in the above method for obtaining the vehicle cross-section can also be implemented.
[0077] Those skilled in the art will readily conceive of other embodiments of the present invention after considering the specification and practicing the invention disclosed herein. This application is intended to cover any variations, uses, or adaptations of the present invention, which follow the general principles of the present invention and include known common knowledge or conventional technical means in the technical field not disclosed in this disclosure. The specification and examples are only considered exemplary, and the true scope and spirit of the present invention are pointed out by the following claims.
[0078] It should be understood that the present invention is not limited to the exact structures described above and shown in the drawings, and various modifications and changes can be made without departing from its scope. The scope of the present invention is only limited by the appended claims.
[0079] The above are only the preferred embodiments of the present invention and are not intended to limit the present invention. Any modifications, equivalent replacements, improvements, etc. made within the spirit and principles of the present invention shall be included within the protection scope of the present invention.
Claims
1. A method for obtaining a vehicle cross-section, characterized in that, the method includes: Obtaining one or more vehicle parts to be cut; For each vehicle part, obtaining M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points correspond one-to-one to the M cutting curves, and M is an integer greater than 1; Using the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part; The obtaining of the vehicle parts to be cut includes: Obtaining a selection operation for selecting parts in the vehicle; according to the selection operation, taking the selected parts corresponding to the selection operation as the vehicle parts; The obtaining of the M cutting starting points and M cutting curves of the vehicle part includes: Obtaining M continuous curves for cutting the vehicle part, taking the M continuous curves as the M cutting curves; selecting a starting point from each of the M continuous curves, and taking the selected M starting points as the M cutting starting points.
2. The obtaining method according to claim 1, characterized in that, the using the M cutting starting points and the M cutting curves to cut the vehicle part to obtain M part cross-sections of the vehicle part includes: For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent of the cutting curve to obtain the part cross-section corresponding to each cutting curve; Performing the above steps for each cutting curve to obtain the M part cross-sections.
3. The obtaining method according to claim 2, characterized in that, the for each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent of the cutting curve to obtain the part cross-section corresponding to each cutting curve includes: For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent of the cutting curve and setting a position spacing to obtain the part cross-section corresponding to the cutting curve.
4. The obtaining method according to claim 2, characterized in that, the for each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent of the cutting curve and setting a position spacing to obtain the part cross-section corresponding to the cutting curve includes: For each cutting curve, starting from the cutting starting point corresponding to the cutting curve, cutting the vehicle part along the default direction of the tangent of the cutting curve, and using the distance input by the user to set the position spacing to obtain the part cross-section corresponding to the cutting curve.
5. A device for obtaining a vehicle cross-section, characterized in that, the device includes: A cutting part obtaining unit for obtaining one or more vehicle parts to be cut; A cutting parameter obtaining unit for obtaining, for each vehicle part, M cutting starting points and M cutting curves of the vehicle part, where the M cutting starting points correspond one-to-one to the M cutting curves, and M is an integer greater than 1; A cross-section obtaining unit, configured to cut the vehicle part by using the M cutting starting points and the M cutting curves, so as to obtain M part cross-sections of the vehicle part; The cutting part obtaining unit is configured to obtain a selection operation for selecting a part in the vehicle; according to the selection operation, use the selected part corresponding to the selection operation as the vehicle part; The cross-section obtaining unit is configured to obtain M continuous curves for cutting the vehicle part, use the M continuous curves as the M cutting curves; select a starting point from each of the M continuous curves, and use the selected M starting points as the M cutting starting points.
6. An electronic device, characterized in that, it includes a memory, a processor, and a computer program stored on the memory and executable on the processor, and when the processor executes the program, it implements the steps of the vehicle cross-section obtaining method described in any one of claims 1-4.
Citation Information
Patent Citations
Vehicle body manufacturability analysis system for cross section analysis and RPS positioning
CN112199825A