Path deformation method and device of three-dimensional model, equipment and storage medium

By displaying multi-segment curves and initial models in the three-dimensional modeling software, selecting the target curve to automatically generate deformation results of continuous paths, solving the problems of complex and inefficient operations in the existing technology, and achieving the effect of simplifying the operation process and improving the generation efficiency.

CN120495590APending Publication Date: 2025-08-15HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202510589992.4
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-05-07
Publication Date
2025-08-15

AI Technical Summary

Technical Problem

The path deformation function in the existing three-dimensional modeling software is complex and inefficient. Users need to select multiple curves one by one to generate complex three-dimensional models.

Method used

Display multi-segment curves and initial three-dimensional models in the model design interface. By selecting the target curve, the path deformation results of the continuous path are automatically generated, and the operation process is simplified.

Benefits of technology

Continuous paths can be generated without selecting curves one by one, simplifying the path deformation operation process and improving model generation efficiency and user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120495590A_ABST
    Figure CN120495590A_ABST
Patent Text Reader

Abstract

The invention provides a path deformation method and device of a three-dimensional model, equipment and a storage medium. The method comprises the following steps: displaying a multi-section curve and an initial three-dimensional model in a model design interface; under the condition that a first deformation result obtained after the initial three-dimensional model is subjected to path deformation along a selected curve in the multiple sections of curves is displayed, in response to a selection operation of a target curve in a selectable state in the multiple sections of curves, displaying a second deformation result obtained after the first deformation result is subjected to deformation along a target path; wherein the target path is a continuous path which is determined in the multiple sections of curves and takes the selected curve as a starting section and the target curve as an ending section; the target curve and the selected curve are non-adjacent curves in the multiple sections of curves.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of data processing technology, and in particular to a path deformation method, device, equipment and storage medium for a three-dimensional model. Background Art

[0002] The path deformation function in 3D modeling software stretches and deforms a 3D model along a curve to form a specific shape. However, when using path deformation to generate complex 3D shapes, the current method requires users to splice multiple curve segments into a single curve before selecting them one by one. This operation is complex and inefficient. Summary of the Invention

[0003] The present disclosure provides a path deformation method, apparatus, device and storage medium for a three-dimensional model to solve or alleviate one or more technical problems in the prior art.

[0004] In a first aspect, the present disclosure provides a path deformation method for a three-dimensional model, comprising:

[0005] Display multi-segment curves and initial 3D models in the model design interface;

[0006] In a case where a first deformation result of an initial three-dimensional model after path deformation along a selected curve in a multi-segment curve is displayed, in response to a selection operation of a target curve in an optional state in the multi-segment curve, a second deformation result after the first deformation result is deformed along the target path is displayed; wherein the target path is a continuous path determined in the multi-segment curve with the selected curve as the starting segment and the target curve as the end segment; the target curve and the selected curve are non-adjacent curves in the multi-segment curve.

[0007] In a second aspect, the present disclosure provides a path deformation device for a three-dimensional model, comprising:

[0008] A display unit, used to display multiple curves and an initial three-dimensional model in a model design interface;

[0009] a processing unit configured to, in response to a selection operation of a selectable target curve among the multiple curve segments, obtain a second deformation result of deforming the first deformation result along a target path, in response to a selection operation of a selectable target curve among the multiple curve segments, when displaying a first deformation result of the initial three-dimensional model after path deformation along a selected curve among the multiple curve segments; wherein the target path is a continuous path determined among the multiple curve segments, having the selected curve as a starting segment and the target curve as an ending segment; and the target curve and the selected curve are non-adjacent curves among the multiple curve segments;

[0010] The display unit is further configured to display a second deformation result after the first deformation result is deformed along a target path.

[0011] According to a third aspect, an electronic device is provided, including:

[0012] at least one processor; and

[0013] a memory communicatively connected to the at least one processor; wherein,

[0014] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform any method in the embodiments of the present disclosure.

[0015] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0016] In a fifth aspect, a computer program product is provided, comprising a computer program, which implements any method according to the embodiments of the present disclosure when executed by a processor.

[0017] In this way, the disclosed solution can quickly generate a new deformation result (i.e., the second deformation result) based on a deformation result (e.g., the first deformation result) by selecting a target curve that is discontinuous with the selected curve, with the selected curve as the starting segment and the target curve as the end segment. Therefore, compared with the prior art method that requires users to select curves one by one to generate a shape, the disclosed solution can automatically generate a continuous path when the target curve is selected, without the need for users to select them one by one. In this way, the operation process of path deformation is simplified, the model generation efficiency is improved, and thus the user experience is improved.

[0018] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0019] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the multiple drawings represent the same or similar components or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided in accordance with the present disclosure and should not be regarded as limiting the scope of the present disclosure.

[0020] Figure 1 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 1 ;

[0021] Figure 2 This is the front-end display effect of the path deformation method of the three-dimensional model in an example according to an embodiment of the present application Figure 1 ;

[0022] Figure 3 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 2 ;

[0023] FIG4( a ) and FIG4 ( b ) are front-end display effect diagrams of different display features when the target curve is in an optional state according to an embodiment of the present application;

[0024] Figure 5 This is an example diagram of a front-end display for determining a target path according to an embodiment of the present application;

[0025] Figure 6 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 3 ;

[0026] FIG7( a ) and FIG7 ( b ) are front-end display examples of path connectivity detection based on target detection direction according to an embodiment of the present application;

[0027] FIG8( a ) is a flow chart of a path deformation method for a three-dimensional model in a specific example according to an embodiment of the present application;

[0028] FIG8( b ) is a front-end display effect of a path deformation method of a three-dimensional model in an example according to an embodiment of the present application. Figure 2 ;

[0029] Figure 9 1 is a schematic structural diagram of a path deformation device for a three-dimensional model according to an embodiment of the present application;

[0030] Figure 10 It is a block diagram of an electronic device used to implement the path deformation method of a three-dimensional model according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] The present disclosure will be described in further detail below with reference to the accompanying drawings. The same reference numerals in the accompanying drawings represent elements with the same or similar functions. Although various aspects of the embodiments are shown in the accompanying drawings, the drawings are not necessarily drawn to scale unless otherwise indicated.

[0032] In addition, numerous specific details are provided in the following detailed description to better illustrate the present disclosure. Those skilled in the art will appreciate that the present disclosure can be practiced without certain specific details. In some instances, methods, means, components, circuits, etc. well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.

[0033] The disclosed solution provides a path deformation method for a three-dimensional model. When path deformation is required, a continuous multi-segment curved path can be quickly selected, and then a sculpted body of the three-dimensional model (also called a deformation result) can be generated on the continuous multi-segment curved path. The above process does not require the user to select curves one by one, avoiding tedious user operations. At the same time, it simplifies the operational process of path deformation, improves model generation efficiency, and enhances user experience.

[0034] Specifically, Figure 1 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 1 The method may be optionally applied to electronic devices, such as personal computers, servers, server clusters, and other electronic devices.

[0035] Furthermore, the method includes at least part of the following contents. Figure 1 As shown, including:

[0036] Step S101: Display multiple curves and an initial three-dimensional model in a model design interface.

[0037] Step S102: When displaying a first deformation result of an initial three-dimensional model after path deformation along a selected curve in a multi-segment curve, in response to a selection operation of an optional target curve in the multi-segment curve, display a second deformation result after the first deformation result is deformed along the target path.

[0038] Here, the target path is a continuous path determined among the multiple curve segments, with the selected curve as the starting segment and the target curve as the ending segment. Here, the selected curve has at least one segment.

[0039] Furthermore, the target curve and the selected curve are non-adjacent curves in the multiple curve segments. For example, in one example, when the selected curve includes multiple segments, the segment in the selected curve that is closest to the target curve is discontinuous with the target curve.

[0040] In this way, the disclosed solution can quickly generate a new deformation result (i.e., the second deformation result) based on a deformation result (e.g., the first deformation result) by selecting a target curve that is discontinuous with the selected curve, with the selected curve as the starting segment and the target curve as the end segment. Therefore, compared with the prior art method that requires users to select curves one by one to generate a shape, the disclosed solution can automatically generate a continuous path when the target curve is selected, without the need for users to select them one by one. In this way, the operation process of path deformation is simplified, the model generation efficiency is improved, and thus the user experience is improved.

[0041] It should be pointed out that before displaying the first deformation result of the initial three-dimensional model after path deformation along the selected curve in the multi-segment curve, the step of generating the first deformation result is also included; for example, before step S102, it also includes: responding to the selection operation of the first curve in the multi-segment curve, so as to use the selected first curve as the selected curve, and then displaying the first deformation result of the initial three-dimensional model after path deformation along the selected curve.

[0042] It should be noted that the first deformation result in the above example can be obtained when the first curve is the initially selected curve, or it can be obtained when other deformation results exist and the deformation result is generated along the first curve based on the other deformation results. In this case, the curves used in the other deformation results and the first curve are both the selected curves. The present disclosure does not impose any specific restrictions on the method for generating the first deformation result.

[0043] For example, if Figure 2 As shown, the model design interface displays an initial 3D model and multiple curves including Curve 1, Curve 2, and Curve 3. Furthermore, in response to a selection operation on Curve 1 among the multiple curves, Curve 1 is selected as the selected curve, and the initial 3D model is deformed along the selected curve, resulting in Deformation Result 1. In response to a selection operation on Curve 3 (corresponding to the target curve), which is selectable among the multiple curves, Deformation Result 1 is deformed along a continuous path starting with the selected curve and ending at the target curve, resulting in Deformation Result 2. This allows the user to quickly generate the desired deformation results of the initial 3D model along the continuous multiple curves without having to select each curve one by one, thereby improving the user experience.

[0044] Figure 3 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 2 The method can optionally be applied to electronic devices, such as personal computers, servers, server clusters and other electronic devices. It is understandable that the above Figure 1 and Figure 2 The relevant contents of the method shown can also be applied to this example, and this example will not elaborate on the relevant contents.

[0045] Furthermore, the method includes at least part of the following contents. Figure 3 As shown, including:

[0046] Step S301: Display multiple curves and an initial three-dimensional model in a model design interface.

[0047] Step S302: When a first deformation result of the initial three-dimensional model after path deformation along a selected curve in the multi-segment curve is displayed, a target curve is obtained in response to a hovering operation on a candidate curve in the multi-segment curve to perform path connectivity detection on the target curve.

[0048] Step S303: Based on the path connectivity detection result, determine whether the target curve is in an optional state; if so, proceed to step S304; otherwise, proceed to step S305.

[0049] For example, in one example, if the path connectivity test result indicates that the target curve is connected to the selected curve, the target curve is determined to be in a selectable state. Furthermore, the process proceeds to step S304. Otherwise, if the path connectivity test result indicates that the target curve is not connected to the selected curve, the target curve is determined to be in an unselectable state. In this case, the target curve cannot be selected, and the process proceeds to step S305.

[0050] Step S304: In response to a selection operation of a target curve in a selectable state among the multiple curves, a second deformation result after the first deformation result is deformed along the target path is displayed.

[0051] Step S305: End the process.

[0052] That is, when displaying the first deformation result, in response to a hover operation on a candidate curve in the multiple curve segments, the candidate curve on which the hover operation is performed is used as a target curve, and a path connectivity check is performed on the target curve to determine whether the target curve is in a state that can be selected.

[0053] In this way, since the disclosed solution can use the hovering operation to quickly detect whether the curve affected by the hovering operation can be selected, the disclosed solution can ensure that the deformation result required by the user is generated on a continuous path. In this way, the operation process of path deformation is simplified. That is, there is no need for the user to select the required curves one by one, and continuous multiple-segment curves can be quickly selected, and deformation results can be efficiently generated on the continuous multiple-segment curves, thereby improving the user experience.

[0054] Furthermore, in a specific example, after performing a path connectivity check on the target curve, the disclosed solution may determine a display feature of the target curve based on the path connectivity check result, and the display feature may indicate whether the target curve is in an optional state.

[0055] Here, the display feature may specifically include but is not limited to one of the following: prompt information such as the color and thickness of the curve.

[0056] That is, the disclosed solution can generate prompt information for the target curve based on the path connectivity detection result to indicate whether the target curve can be selected. This facilitates conveying relevant information about whether the target curve can be selected to the user, thereby improving the user experience.

[0057] For example, continue with Figure 2 Taking curve 3 in the figure as an example, in response to the hover operation on curve 3, a path connectivity check is performed on curve 3 (i.e., the target curve) to obtain a path connectivity check result. Furthermore, in one example, based on the path connectivity check result, it is determined that curve 3 is in an unselectable state. At this time, as shown in FIG4(a), the appearance of curve 3 quickly changes from a single dashed line to a double solid line to indicate to the user that curve 3 cannot be selected.

[0058] Alternatively, in another example, based on the path connectivity detection result, it is determined that curve 3 is in an optional state. At this time, as shown in Figure 4(b), the appearance of curve 3 quickly changes from a single dotted line to a thick solid line to indicate to the user that curve 3 can be selected.

[0059] It should be pointed out that in this example, in addition to using the display characteristics of the curve as prompt information, text can also be used as prompt information to prompt the user whether the target curve can be selected. The disclosed solution does not impose specific restrictions on the method of indicating whether the curve is in an optional state.

[0060] In a specific example, after determining that the target curve is in a selectable state, and in response to a selection operation on the target curve, a target path with the selected curve as a starting segment and the target curve as an ending segment may be determined.

[0061] Here, the target path is the shortest path among the candidate paths that can be determined based on the multiple curve segments. Here, the shortest path can specifically be a path with the shortest path length or a path with the least number of curve segments.

[0062] For example, in one example, Figure 5 As shown, if Curve 3 (the target curve) is determined to be connected to Curve 1 (the selected curve), multiple candidate paths are identified, starting with the selected curve and ending at the target curve. These candidate paths can be labeled "Curve 1 - Curve 2.a - Curve 3," "Curve 1 - Curve 2.b - Curve 3," and "Curve 1 - Curve 2.c - Curve 3." Based on their lengths, the shortest path among the candidate paths, "Curve 1 - Curve 2.b - Curve 3," can be selected as the target path. This lays the foundation for subsequently obtaining the deformation result of the initial 3D model after path deformation along the target path.

[0063] Figure 6 This is a schematic flow chart of a path deformation method for a three-dimensional model according to an embodiment of the present application. Figure 3 The method can optionally be applied to electronic devices, such as personal computers, servers, server clusters and other electronic devices. It is understandable that the above Figures 1 to 5 The relevant contents of the method shown can also be applied to this example, and this example will not elaborate on the relevant contents.

[0064] Furthermore, the method includes at least part of the following contents. Figure 6 As shown, including:

[0065] Step S601: Display multiple curve segments and an initial three-dimensional model in a model design interface.

[0066] Step S602: When a first deformation result of the initial three-dimensional model after path deformation along a selected curve among the multiple curves is displayed, a target curve is obtained in response to a hovering operation on a candidate curve among the multiple curves.

[0067] Step S603: Determine the target detection direction.

[0068] Step S604: along the target detection direction, determine whether the target curve can be connected to the selected curve; if so, the target curve is in an optional state and can enter step S605; otherwise, the target curve is in an unselectable state and enters step S606.

[0069] It should be noted that to quickly determine whether a target curve is connected to a selected curve, the disclosed solution can first determine a reasonable detection direction (i.e., a target detection direction), and then detect the connection between the target curve and the selected curve along this target detection direction. This effectively improves detection efficiency and facilitates the subsequent rapid and real-time communication of whether the target curve can be selected to the user, thereby improving the user experience.

[0070] In a specific example, the aforementioned determination of whether the target curve is connectable with the selected curve along the target detection direction may specifically include determining, along the target detection direction, whether the target curve is connectable with the selected curve via at least one of the multiple curve segments. In other words, the disclosed solution implements path connectivity detection by detecting whether the target curve and the selected curve are connectable via one or more curve segments, thereby laying the foundation for subsequently rapidly generating the desired deformation results.

[0071] In a specific example, the disclosed solution can quickly determine whether the target curve is connected to the selected curve by determining whether the target curve and the selected curve are coplanar. Specifically, the above-mentioned determination of whether the target curve can be connected to the selected curve along the target detection direction can specifically include: determining whether the target curve and the selected curve meet a preset coplanar condition along the target detection direction, for example, determining whether the target curve and the selected curve belong to the same surface model (or reference line segment model). If so, the target curve is determined to be connected to the selected curve; otherwise, the two are not connected. In this way, the detection efficiency of path connectivity detection can be quickly improved.

[0072] In one example, after determining that the target curve is connected to the selected curve, in addition to determining that the target curve is selectable, at least one connected path starting with the selected curve and ending at the target curve can also be determined. For example, after determining that the target curve is selectable, a depth-first traversal method can be used to directly obtain at least one connected path starting with the selected curve and ending at the target curve, thereby providing support for the subsequent determination of the target path.

[0073] Step S605: In response to a selection operation of a target curve in a selectable state among the multiple curves, a second deformation result after the first deformation result is deformed along the target path is displayed.

[0074] Step S606: End the process.

[0075] In this way, since the disclosed solution can quickly detect the connectivity between the target curve and the selected curve based on the target detection direction, and then after selecting the target curve in an optional state, it can quickly generate the deformation result required by the user along the target path, the above process does not require the user to select curves one by one, and can efficiently generate deformation results on multiple continuous curves, simplifying the operation process of path deformation, thereby improving the user experience.

[0076] Furthermore, in a specific example, determining the target detection direction includes one of the following methods:

[0077] When the number of selected curves used to form the first deformation result is one (ie, the selected curve is only one segment of a curve), the positive direction and / or negative direction of the selected curve is used as the target detection direction.

[0078] Alternatively, in another example, when there are multiple selected curves used to form the first deformation result (ie, there are multiple segments of the selected curves), the target detection direction is determined based on the order in which the curves are selected.

[0079] For example, as shown in Figure 7(a), the deformation result 1 is displayed in the model design interface, and a hover operation is performed on a curve that is not adjacent to the selected curve (such as curve 2). At this time, since the selected curve used by the current deformation result 1 is a section of the curve (i.e., curve 2), the positive direction of curve 2 (i.e., the first direction) and the negative direction of curve 2 (i.e., the second direction) can be used as the target detection directions, and then along the first direction and the second direction respectively, it is detected whether the curve affected by the hover operation can be connected with the selected curve.

[0080] Alternatively, in another example, as shown in FIG7(b), a deformation result 1 is displayed in the model design interface, and a hovering operation is performed on a curve that is not adjacent to the selected curve (for example, curve 2 and curve 3). At this time, since the selected curves used in the current deformation result 1 are curve 2 and curve 3, the target detection direction can be determined according to the selection order of curve 2 and curve 3 in the process of generating the deformation result 1. For example, if the selection order is to select curve 2 first and then curve 3, the positive direction of curve 2 (that is, the first direction) is used as the target detection direction, and then along the first direction, it is detected whether the curve affected by the hovering operation can be connected with the selected curve; if the selection order is to select curve 3 first and then curve 2, the negative direction of curve 2 (that is, the second direction) is used as the target detection direction, and then along the second direction, it is detected whether the curve affected by the hovering operation can be connected with the selected curve.

[0081] In this way, the disclosed solution can determine the target detection direction based on the number of selected curves used in the first deformation result and the order in which the curves are selected. This makes it easier to quickly determine whether the target curve is connected to the selected curve along the determined target detection direction, thereby improving detection efficiency.

[0082] The following is a further explanation of the disclosed solution with reference to specific examples. The disclosed solution provides an efficient three-dimensional modeling path deformation method, which can quickly select multiple continuous paths during the path deformation operation and generate a three-dimensional model body (corresponding to the above-mentioned deformation result) on the selected multiple continuous paths with one click. In this way, the operation process is simplified, the model generation efficiency is improved, and the user experience is improved.

[0083] Specifically, as shown in FIG8( a ) and FIG8( b ), the process steps of the disclosed solution include:

[0084] Step 1: In the model design interface, display multiple curves (such as curve 1, curve 2, and curve 3, etc.) and the required basic 3D model.

[0085] Here, in one example, as shown in FIG8( b ), a plurality of basic models (such as Model 1, Model 2, Model 3, and Model 4, etc.) are displayed in the model library included in the model design interface so that the user can quickly select the required three-dimensional model.

[0086] Furthermore, in one example, a variety of scenario-based models are displayed in the model library included in the model design interface. The present disclosure does not impose any specific restrictions on the model types in the model library.

[0087] Step 2: In response to the selection operation of the basic 3D model, the selected basic 3D model is used as the initial 3D model required for path deformation.

[0088] Step 3: In response to a selection operation on a curve among the multiple curves, such as curve 1, the selected curve 1 is used as the selected curve, and the initial three-dimensional model is deformed along the selected curve to obtain a deformation result corresponding to the selected curve.

[0089] It should be noted that, in this example, before selecting Curve 1, the target object needs to activate the path deformation function in the model design interface in order to perform efficient path deformation operations in this functional environment.

[0090] Here, the disclosed solution does not impose any specific limitation on the execution order of the selection operation on the basic three-dimensional model and the activation operation of the path deformation function.

[0091] Step 4: In response to a hovering operation on another curve in the multiple curves, such as curve 3, curve 3 on which the hovering operation is applied is used as a target curve, and a path connectivity detection is performed on the target curve to obtain a path connectivity detection result.

[0092] Here, in this example, since the number of selected curves is one and it is the starting curve, the first direction can be used as the detection direction to facilitate rapid path connectivity detection of the target curve along the detection direction.

[0093] It should be noted that if there are multiple selected curves, the detection direction of the path connectivity detection can be determined according to the selection order of the selected curves.

[0094] Furthermore, the path connectivity detection may specifically include: detecting whether the target curve and the selected curve belong to the same surface model or reference line segment model to determine the path connectivity between the target curve and the selected curve. For example, if the target curve and the selected curve belong to the same surface model or reference line segment model, the target curve and the selected curve are path-connected, otherwise the paths are not connected.

[0095] Step 5: Based on the path connectivity detection result, determine whether the target curve is connected to the selected curve path; if so, proceed to step 6; otherwise, proceed to step 8.

[0096] Step 6: If the target curve is determined to be connected to the selected curve path, obtain at least one connected path starting with the selected curve and ending at the target curve. For example, obtain the connected path of "curve 1 (i.e., the selected curve) - curve 2 - curve 3 (i.e., the target curve)." Proceed to Step 7.

[0097] Here, if multiple connected paths are obtained with the selected curve as the starting segment and the target curve as the ending segment, it is necessary to select the connected path with the shortest path length from the multiple connected paths as the target connected path based on the path length.

[0098] In addition, when it is determined that the target curve is connected to the selected curve path, the target curve is determined to be in an optional state. At this time, the line type of the target curve can be changed from a single dashed line to a thick solid line, or a prompt message for the target curve can be generated to indicate to the user that the target curve can be selected, thereby improving the user experience.

[0099] Step 7: In response to the target curve being selected, a target connected path (corresponding to the target path described above) is determined based on the at least one connected path determined in Step 6, and the deformation result corresponding to the selected curve is deformed along the target connected path to obtain a new deformation result. The operation ends, or the process returns to Step 4.

[0100] Step 8: If it is determined that the target curve is not connected to the selected curve path, a prompt message is generated for the target curve to indicate that the target curve cannot be selected. The operation ends or returns to step 4.

[0101] To sum up, compared with the existing technology, the disclosed solution supports the rapid selection of multiple continuous curve paths in generating the shape of a more complex three-dimensional model, and then can generate the shape of a three-dimensional model on the multiple continuous curve paths with one click. This simplifies the operation process and improves the efficiency of model generation, making it more efficient. Moreover, when selecting multiple continuous curve paths, it can also automatically select the appropriate continuous path without the user having to manually select them one by one, thereby improving the user experience.

[0102] The disclosed solution provides a path deformation device for a three-dimensional model, such as Figure 9 As shown, including:

[0103] Display unit 901, used to display multiple curves and the initial three-dimensional model in the model design interface;

[0104] The processing unit 902 is configured to, in response to a selection operation of a selectable target curve in the multi-segment curve, obtain a second deformation result of the first deformation result along the target path in response to a selection operation of a selectable target curve in the multi-segment curve, when displaying a first deformation result of the initial three-dimensional model after path deformation along a selected curve in the multi-segment curve; wherein the target path is a continuous path determined in the multi-segment curve that has the selected curve as a starting segment and the target curve as an ending segment; and the target curve and the selected curve are non-adjacent curves in the multi-segment curve.

[0105] The display unit 901 is further configured to display a second deformation result after the first deformation result is deformed along a target path.

[0106] In a specific example of the disclosed solution, the processing unit is further configured to:

[0107] In response to a hovering operation on a candidate curve among the plurality of curve segments, obtaining a target curve to perform a path connectivity check on the target curve;

[0108] Based on the path connectivity detection result, it is determined whether the target curve is in a selectable state.

[0109] In a specific example of the disclosed solution, the processing unit is further configured to:

[0110] Based on the path connectivity detection result, a display feature of the target curve is determined, wherein the display feature can indicate whether the target curve is in a selectable state.

[0111] In a specific example of the disclosed solution, the processing unit is further configured to:

[0112] When the path connectivity detection result indicates that the target curve can be connected to the selected curve, it is determined that the target curve is in a selectable state.

[0113] In a specific example of the disclosed solution, the processing unit is further configured to:

[0114] Determining a target path with the selected curve as a starting segment and the target curve as an ending segment;

[0115] The target path is the shortest path among the candidate paths that can be determined based on multiple curve segments.

[0116] In a specific example of the disclosed solution, the processing unit is specifically configured to:

[0117] Determine the target detection direction;

[0118] Along the target detection direction, it is determined whether the target curve can be connected to the selected curve.

[0119] In a specific example of the disclosed solution, the processing unit is specifically configured to:

[0120] Along the target detection direction, it is determined whether the target curve can be connected to the selected curve after passing through at least one curve among the multiple curves.

[0121] In a specific example of the disclosed solution, the processing unit is specifically configured to:

[0122] Along the target detection direction, it is determined whether the target curve and the selected curve meet a preset coplanar condition.

[0123] In a specific example of the disclosed solution, the processing unit is specifically configured to perform at least one of the following:

[0124] When the number of selected curves used to form the first deformation result is one, using the positive direction and / or the negative direction of the selected curve as the target detection direction;

[0125] In a case where a plurality of curves are selected to form the first deformation result, the target detection direction is determined based on the order in which the curves are selected.

[0126] For the description of specific functions and examples of each unit of the device in the embodiment of the present disclosure, please refer to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0127] In the technical solutions disclosed herein, the acquisition, storage, and application of user personal information involved comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0128] Figure 10 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 10 As shown, the electronic device includes: a memory 1010 and a processor 1020. The memory 1010 stores a computer program that can be executed on the processor 1020. The number of memories 1010 and processors 1020 can be one or more. The memory 1010 can store one or more computer programs. When the one or more computer programs are executed by the electronic device, the electronic device performs the method provided by the above method embodiment. The electronic device may also include: a communication interface 1030 for communicating with external devices and performing data exchange.

[0129] If the memory 1010, the processor 1020, and the communication interface 1030 are implemented independently, the memory 1010, the processor 1020, and the communication interface 1030 can be connected to each other via a bus and communicate with each other. The bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus. The bus can be divided into an address bus, a data bus, a control bus, etc. For ease of representation, Figure 10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or one type of bus.

[0130] Optionally, in a specific implementation, if the memory 1010, the processor 1020 and the communication interface 1030 are integrated on a chip, the memory 1010, the processor 1020 and the communication interface 1030 can communicate with each other through an internal interface.

[0131] It should be understood that the processor may be a central processing unit (CPU), or other general-purpose processors, digital signal processors (DSP), application-specific integrated circuits (ASIC), field-programmable gate arrays (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor that supports the Advanced RISC Machines (ARM) architecture.

[0132] Furthermore, optionally, the above-mentioned memory may include a read-only memory and a random access memory, and may also include a non-volatile random access memory. The memory may be a volatile memory or a non-volatile memory, or may include both volatile and non-volatile memories. Among them, the non-volatile memory may include a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may include a random access memory (RAM), which is used as an external cache. By way of example but not limitation, many forms of RAM are available. For example, static random access memory (SRAM), dynamic random access memory (DRAM), synchronous dynamic random access memory (SDRAM), double data rate synchronous dynamic random access memory (DDR SDRAM), enhanced synchronous dynamic random access memory (ESDRAM), synchronous link dynamic random access memory (SLDRAM) and direct memory bus random access memory (DR RAM).

[0133] In the above embodiments, it can be implemented in whole or in part by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, the process or function described in the embodiment of the present disclosure is generated in whole or in part. The computer can be a general-purpose computer, a special-purpose computer, a computer network or other programmable device. The computer instructions can be stored in a computer-readable storage medium, or transmitted from one computer-readable storage medium to another computer-readable storage medium. For example, the computer instructions can be transmitted from one website, computer, server or data center to another website, computer, server or data center via a wired (e.g., coaxial cable, optical fiber, data subscriber line (DSL)) or wireless (e.g., infrared, Bluetooth, microwave, etc.) method. The computer-readable storage medium can be any available medium that a computer can access, or a data storage device such as a server or data center that includes one or more available media integrated. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, or a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid-state drive (SSD)). It is worth noting that the computer-readable storage medium mentioned in the present disclosure may be a non-volatile storage medium, in other words, a non-transient storage medium.

[0134] Those skilled in the art will understand that all or part of the steps to implement the above embodiments may be accomplished by hardware, or by a program to instruct the relevant hardware, and the program may be stored in a computer-readable storage medium, which may be a read-only memory, a disk, or an optical disk, etc.

[0135] In the description of the embodiments of the present disclosure, the reference terms "one embodiment," "some embodiments," "example," "specific example," or "some examples" mean that the specific features, structures, materials, or characteristics described in conjunction with the embodiment or example are included in at least one embodiment or example of the present disclosure. Moreover, the specific features, structures, materials, or characteristics described may be combined in any appropriate manner in any one or more embodiments or examples. In addition, those skilled in the art may combine and combine different embodiments or examples described in this specification, as well as features of different embodiments or examples, unless they are mutually inconsistent.

[0136] In the description of the embodiments of the present disclosure, unless otherwise specified, " / " means or. For example, A / B can mean A or B. "And / or" in this document is only a description of the association relationship between related objects, indicating that three relationships can exist. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.

[0137] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be understood to indicate or imply relative importance or implicitly specify the number of the technical features indicated. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of the features. In the description of the embodiments of the present disclosure, unless otherwise specified, "plurality" means two or more.

[0138] The above description is merely an exemplary embodiment of the present disclosure and is not intended to limit the present disclosure. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present disclosure shall be included in the scope of protection of the present disclosure.

Claims

1. A path deformation method for a three-dimensional model, comprising: Display multi-segment curves and initial 3D models in the model design interface; In a case where a first deformation result of an initial three-dimensional model after path deformation along a selected curve in a multi-segment curve is displayed, in response to a selection operation of a target curve in an optional state in the multi-segment curve, a second deformation result after the first deformation result is deformed along the target path is displayed; wherein the target path is a continuous path determined in the multi-segment curve with the selected curve as the starting segment and the target curve as the end segment; the target curve and the selected curve are non-adjacent curves in the multi-segment curve.

2. The method according to claim 1, further comprising: In response to a hovering operation on a candidate curve among the plurality of curve segments, obtaining a target curve to perform a path connectivity check on the target curve; Based on the path connectivity detection result, it is determined whether the target curve is in a selectable state.

3. The method according to claim 2, further comprising: Based on the path connectivity detection result, a display feature of the target curve is determined, wherein the display feature can indicate whether the target curve is in a selectable state.

4. The method according to claim 2 or 3, further comprising: When the path connectivity detection result indicates that the target curve can be connected to the selected curve, it is determined that the target curve is in a selectable state.

5. The method according to claim 4, further comprising: Determining a target path with the selected curve as a starting segment and the target curve as an ending segment; The target path is the shortest path among the candidate paths that can be determined based on multiple curve segments.

6. The method according to any one of claims 2 to 5, wherein: The performing path connectivity detection on the target curve includes: Determine the target detection direction; Along the target detection direction, it is determined whether the target curve can be connected to the selected curve.

7. The method according to claim 6, wherein: Determining whether the target curve is connectable with the selected curve along the target detection direction includes: Along the target detection direction, it is determined whether the target curve can be connected to the selected curve after passing through at least one curve among the multiple curves.

8. The method according to claim 6, wherein: Determining whether the target curve is connectable with the selected curve along the target detection direction includes: Along the target detection direction, it is determined whether the target curve and the selected curve meet a preset coplanar condition.

9. The method according to claim 6, wherein: Determining the target detection direction includes one of the following methods: When the number of selected curves used to form the first deformation result is one, using the positive direction and / or the negative direction of the selected curve as the target detection direction; In a case where a plurality of curves are selected to form the first deformation result, the target detection direction is determined based on the order in which the curves are selected.

10. A path deformation device for a three-dimensional model, comprising: A display unit, used to display multiple curves and an initial three-dimensional model in a model design interface; a processing unit configured to, in response to a selection operation of a selectable target curve among the multiple curve segments, obtain a second deformation result of deforming the first deformation result along a target path, in response to a selection operation of a selectable target curve among the multiple curve segments, when displaying a first deformation result of the initial three-dimensional model after path deformation along a selected curve among the multiple curve segments; wherein the target path is a continuous path determined among the multiple curve segments, having the selected curve as a starting segment and the target curve as an ending segment; and the target curve and the selected curve are non-adjacent curves among the multiple curve segments; The display unit is further configured to display a second deformation result after the first deformation result is deformed along a target path.

11. The device according to claim 10, wherein The processing unit is further configured to: In response to a hovering operation on a candidate curve among the plurality of curve segments, obtaining a target curve to perform a path connectivity check on the target curve; Based on the path connectivity detection result, it is determined whether the target curve is in a selectable state.

12. An electronic device comprising: at least one processor; as well as a memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method according to any one of claims 1 to 9.

13. A non-transitory computer-readable storage medium storing computer instructions, wherein: The computer instructions are used to cause the computer to execute the method according to any one of claims 1 to 9.

14. A computer program product comprising a computer program, which, when executed by a processor, implements the method according to any one of claims 1 to 9.