Model operation control method and device, electronic equipment and storage medium
By detecting the relationship between the cursor position and the model's capture element relationship in the home decoration design tool platform, displaying type information and confirming the capture element, the problem of difficult to accurately arrange the model in the existing technology is solved, and precise capture and adsorption is achieved, which improves the accuracy of model layout.
Patent Information
- Application Number
- CN202411803600.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-12-09
- Publication Date
- 2025-04-01
AI Technical Summary
The existing home decoration design tool platform cannot meet users' needs for accurate layout of models, especially when it is difficult to accurately capture elements.
By detecting the relationship between the cursor position and the captured element of the model, displaying the type information of the captured element, assisting the user to confirm the captured element, and determining the relevant processing information and the layout information of the model based on the captured element confirmed by the user.
It realizes accurate capture and adsorption when there are many capture elements, supports setting up multiple types of capture elements, and improves the precise layout capability of the model.
Smart Images

Figure CN119739308A_ABST
Abstract
Description
Technical Field
[0001] The present disclosure relates to the field of computer technology, and in particular to a model operation control method, device, electronic device and storage medium. Background Art
[0002] With the development of the home decoration design industry, the user volume of the home decoration design tool platform is increasing. At the same time, the types of business that need to be covered are increasing, and the business scenarios are becoming more and more complex. Therefore, user needs are gradually becoming more refined. However, the existing home decoration design tool platform cannot meet users' needs for accurate layout of models. Summary of the invention
[0003] The present disclosure provides a model operation control method, device, electronic device and storage medium to solve or alleviate one or more technical problems in the prior art.
[0004] In a first aspect, the present disclosure provides a model operation control method, comprising:
[0005] In response to detecting that a capture condition is satisfied between the cursor position in the model arrangement space and any capture element of the first model, displaying type information of the capture element;
[0006] In response to detecting a confirmation operation for the type information, determining processing information related to the capture element based on the movement of the cursor position;
[0007] Arrangement information of the first model is determined based on processing information related to the capture element and a relative position between the capture element and the first model.
[0008] In a second aspect, the present disclosure provides a model operation control device, comprising:
[0009] a capture type display module, configured to display type information of a capture element in response to detecting that a capture condition is satisfied between a cursor position in the model arrangement space and any capture element of the first model;
[0010] a movement processing module, configured to determine, in response to detecting a confirmation operation for the type information, processing information related to the capture element based on the movement of the cursor position;
[0011] The arrangement information determination module is used to determine the arrangement information of the first model based on the processing information related to the capture element and the relative position between the capture element and the first model.
[0012] In a third aspect, an electronic device is provided, including:
[0013] at least one processor; and
[0014] a memory communicatively connected to the at least one processor; wherein,
[0015] 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 execute any method in the embodiments of the present disclosure.
[0016] In a fourth aspect, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to cause the computer to execute any method according to the embodiments of the present disclosure.
[0017] The beneficial effects of the technical solution provided by the present disclosure include at least: when the cursor position moves in the model layout space, if any capture element of the first model is captured, the user is assisted in confirming the capture element by displaying type information, so that the relevant processing information can be determined based on the capture element confirmed by the user, and the layout information of the first model can be determined based on the processing information to complete the layout of the first model. Therefore, the technical solution provided by the present disclosure can solve the problem of difficulty in accurate capture when there are many capture elements, thereby supporting the setting of a variety of rich capture elements to achieve accurate capture and adsorption, which is conducive to the accurate layout of the model.
[0018] It should be understood that the content described in this section is not intended to identify the key or important features of the embodiments of the present disclosure, nor is it intended to limit the scope of the present disclosure. Other features of the present disclosure will become easily 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 parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings only depict some embodiments provided according to the present disclosure and should not be regarded as limiting the scope of the present disclosure.
[0020] Figure 1 is a schematic diagram of a model operation control method provided by an embodiment of the present disclosure;
[0021] Figure 2 is a schematic diagram of a model operation control method provided by another embodiment of the present disclosure;
[0022] Figure 3A It is a schematic diagram showing the type information of the captured element Figure 1 ;
[0023] Figure 3B It is a schematic diagram showing the type information of the captured element Figure 2 ;
[0024] Figure 3C is a schematic diagram showing the type information of the capture element;
[0025] Figure 4A It is a schematic diagram of coaxial scaling;
[0026] Figure 4B It is a schematic diagram of non-uniform scaling;
[0027] Figure 4C It is a schematic diagram of geometric scaling;
[0028] Figure 5 is a schematic diagram of how the zoom mode operates;
[0029] Fig. 6A This is an illustration of how the rotation mode works. Figure 1 ;
[0030] Figure 6B This is an illustration of how the rotation mode works. Figure 2 ;
[0031] Figure 6C It is the third schematic diagram of the operation mode of the rotation mode;
[0032] Figure 7 It is a schematic diagram of the plane on the bounding box that intersects with the cursor position;
[0033] Figure 8 is a schematic block diagram of a model operation control device provided by an embodiment of the present disclosure;
[0034] Fig. 9 is a schematic block diagram of a model operation control device provided by another embodiment of the present disclosure;
[0035] Fig.10 It is a block diagram of an electronic device for implementing the model operation control method according to an embodiment of the present disclosure. DETAILED DESCRIPTION
[0036] The present disclosure will be further described in 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 specified.
[0037] In addition, in order to better illustrate the present disclosure, numerous specific details are given in the following specific embodiments. It should be understood by those skilled in the art that the present disclosure can also be implemented without certain specific details. In some examples, methods and means well known to those skilled in the art are not described in detail in order to highlight the main purpose of the present disclosure.
[0038] Figure 1FIG. 1 is a schematic diagram showing a model operation control method provided by an embodiment of the present disclosure. The method can be applied to electronic devices. Figure 1 As shown, the method may include:
[0039] S110, determining processing information related to the capture element based on a user operation on any capture element of at least one capture element of the first model;
[0040] S120: Determine layout information of the first model based on processing information related to the capture element and a relative position between the capture element and the first model.
[0041] The disclosed embodiments can be applied to a tool platform for home decoration design, and a user can operate on a visual interactive interface through an electronic device, and the electronic device can move and place the model in response to the user operation. The interactive interface can be an interactive interface displayed by a display device of the electronic device, or it can be an interactive interface displayed by a display device of another electronic device connected to the electronic device. Specifically, a model layout space (for example, a house design drawing) can be displayed on the interactive interface, and the user can arrange the first model at any position in the model layout space by operating on the interactive interface.
[0042] Optionally, the model layout space may be a space displayed on an interactive interface. Exemplarily, the model layout space may be presented in the form of a floor plan. Optionally, the model layout space may be a 2D (2 Dimensions, two-dimensional) space or a 3D (3 Dimensions, three-dimensional) space. Accordingly, the floor plan may be a 2D design or a 3D design. The 2D design may be a top-down image of the floor plan or a facade image.
[0043] Optionally, the first model is a model of an object to be operated. Exemplarily, the model layout space may include multiple models, including the first model, and the user can directly select the first model in the model layout space, for example, by moving the cursor position to the display area of the first model. In the case where the model layout space does not include the first model, the electronic device can use the model read from the specified path as the first model and display the first model in the apartment design drawing. For example, the user can select the first model from the pre-configured model styles displayed, or draw the first model in a third-party software (such as CAD) and store it in the specified path. The user can enter the path of the first model, and the electronic device can read the first model according to the input path.
[0044] Optionally, the capture element of the first model can be any point or line segment related to the first model in the model layout space, and the position of the capture element can be on the first model or not on the first model. The type, position and number of capture elements of different models may also be different. Optionally, a part of the capture elements can be some key points, line segments and other elements on the first model, and another part of the capture elements can be points, line segments and other elements pre-bound to the first model, and this part of the capture elements can be on the first model or not on the first model. There is a relative position between the capture element and the first model. For example, the capture element can be the center point of the first model, and the capture element is always at the center point position of the first model. The capture element and the first model can move synchronously, and the electronic device can obtain the relative position relationship between the capture element and the first model, and determine the position of the first model according to the position of the capture element. Optionally, there can be multiple capture elements.
[0045] In actual applications, the capture elements of the first model may be displayed on the interactive interface first, so that the user can perform user operations on the capture elements.
[0046] When the electronic device detects a user operation, the electronic device determines the processing information related to the capture element based on the user operation. Exemplarily, the user operation may include one or more operations such as confirmation operations (such as clicking, selecting, etc.) and drag operations (such as controlling cursor movement) related to the capture element. The electronic device can determine the processing information related to the movement position (or layout position) and movement trajectory of the capture element based on these user operations. The capture element has a relative position with the first model. After obtaining the processing information related to the capture element, the first model can be processed accordingly based on the relative position, for example, the position and movement trajectory of the first model can be determined based on the position and movement trajectory of the capture element. It can be seen that according to the embodiment of the present disclosure, the user can implement control / arrangement of the first model in the model layout space based on the capture element.
[0047] Figure 2 FIG. 1 is a schematic diagram of a model operation control method provided by another embodiment of the present disclosure. The method can be applied to an electronic device. In some possible implementations, the method can also be implemented by a processor calling a computer-readable instruction stored in a memory. Figure 2 As shown, the method may include the following steps S210 to S230.
[0048] S210, in response to detecting that a capture condition is satisfied between the cursor position in the model arrangement space and any capture element of the first model, displaying type information of the capture element;
[0049] S220, in response to detecting a confirmation operation on the type information, determining processing information related to the capture element based on movement of the cursor position;
[0050] S230: Determine layout information of the first model based on processing information related to the capture element and a relative position between the capture element and the first model.
[0051] The cursor position in the model layout space is the current input position that moves with the user operation, such as the mouse position. In the disclosed embodiment, the capture condition may be related to the distance between the cursor position and the position of the capture element. Exemplarily, the capture condition may be that the distance between the cursor position and the position of the capture element is less than a first value. The first value may be a pre-set threshold, or a value calculated based on the relevant size of the first model, such as one tenth or one fifth of the first model. Based on this, the capture condition may be met when the user controls the cursor position to be close to any capture element of the first model.
[0052] According to the above step S210, when the capture condition is satisfied between the cursor position and any capture element of the first model, the type information of the capture element is displayed. Figure 3A to Figure 3C Several schematic diagrams showing the display of the type information of the snap element are shown. For example, the type of the snap element may include the endpoints (vertices) of the model bounding box (or bounding box, outer box), points on the model surface, and the midpoints of the edges on the model bounding box. Figure 3A As shown in the figure, when the cursor position and the endpoint meet the snapping condition, the type information "endpoint" is displayed. Figure 3B As shown in the figure, when the cursor position and the point on the model surface meet the snapping conditions, the type information "On Object" is displayed. Figure 3C As shown, when the cursor position and the midpoint of the edge on the model bounding box meet the snapping conditions, the type information "midpoint" is displayed.
[0053] When the type information of any element is displayed, if a confirmation operation (such as a mouse click) input by the user is detected, the confirmation operation can be considered as a confirmation operation for the type information. In the embodiment of the present disclosure, the confirmation operation is used to confirm the capture element corresponding to the type information as the capture element to be operated. At this time, based on the movement of the cursor position, the processing information related to the capture element can be determined. In this way, the user can input the processing information related to the capture element by moving the cursor position.
[0054] Exemplarily, the processing information related to the capture element may include one or more of the following: the position of the capture element, the position of the point, line, or surface based on the capture element. For example, the user may drag the capture element by moving the cursor position, thereby moving the capture element to move the first model, or scaling the line or axis to which the capture element belongs to scale the first model. For another example, the user may determine the position of some points, lines, or surfaces based on the capture element by moving the cursor position, and input the positions of these points, lines, and surfaces.
[0055] When the electronic device obtains the processing information of the capture element, since the capture element has a fixed relative position with the first model (for example, the capture element is the endpoint of the 2D bounding box / 3D bounding box of the first model, or the capture element is an auxiliary line segment outside the first model and 20 mm away from the first model), the electronic device can determine the layout information of the first model based on the processing information and the relative position. For example, the electronic device can determine the layout position or scaling parameters of the first model based on the moving position of the capture element and the relative position. For another example, the electronic device can complete other layout operations on the first model based on the information of points, lines, and surfaces based on the capture element, the position of the capture element, and the relative position between the capture element and the first model.
[0056] According to the method of the embodiment of the present disclosure, when the cursor position moves in the model layout space, if any capture element of the first model is captured, the user is assisted in confirming the capture element by displaying type information, so that the relevant processing information can be determined based on the capture element confirmed by the user, and the layout information of the first model is determined based on the processing information, and the layout of the first model is completed. Therefore, the problem that it is difficult to accurately capture when there are many capture elements can be solved, so that it supports the setting of multiple types and a large number of capture elements to achieve accurate capture and adsorption in the model layout space, which is conducive to the accurate layout of the model. For example, for the first model, the points on its mesh surface (Mesh) and the bounding box endpoints close to the point can be used as capture elements. When the layout of the first model is triggered, the user can accurately select the point he wants to capture through the prompt of the type information, so that the position of the point can be aligned with the position of a specific point, line, or surface in the model layout space, thereby improving the accuracy of the layout.
[0057] In some embodiments, the model operation control method further includes: when the cursor position in the model layout space and a capture element that is invisible from the current camera perspective meet a capture condition, reducing the display transparency of the first model to display the capture element.
[0058] It can be understood that in the model layout space, the corresponding apartment space and model are displayed based on a certain perspective. For example, in a 2D space, the perspective can be a bird's-eye view or a perspective toward a facade. In a 3D space, the perspective can be associated with the parameters of a virtual camera. For example, the perspective is the shooting perspective of the virtual camera. By adjusting the distance between the virtual camera and the model layout space, the orientation angle, etc., or adjusting the external parameters of the virtual camera, the virtual camera's observation perspective of the model layout space can be changed, or the parameters and perspectives of the virtual camera can be changed by dragging the apartment space on the interactive interface. In the embodiment of the present disclosure, the current camera perspective can be understood as the perspective of the currently presented 3D space.
[0059] In actual applications, under certain viewing angles, some information of the model may be invisible, which may cause some capture elements to be invisible, so the user cannot accurately select or confirm the capture elements, and thus cannot achieve precise arrangement related to the capture elements. In the disclosed embodiment, when the cursor position and the invisible capture elements meet the capture conditions, by reducing the display transparency of the first model to display the capture elements that are invisible in the current camera viewing angle, the user can confirm whether the capture elements that are invisible in the current camera viewing angle are what he or she expects to select, thereby satisfying the user's precise arrangement needs.
[0060] Optionally, operations on each model in the model layout space can be performed in multiple modes, such as move mode, zoom mode, copy mode, rotation mode, etc. The electronic device can support switching modes in multiple ways, such as switching through shortcut keys, selecting switching in the right-click drop-down menu of any blank point in the model layout space, switching through a toolbar or tab, etc. In different modes, the same operation of the user may correspond to different processing information. For example, the cursor movement in the move, zoom, and copy modes may correspond to the movement of the capture element, and the cursor movement in other modes may be based on the capture element to determine other points, lines, or surfaces.
[0061] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the moving mode. Accordingly, the above step S230, based on the processing information related to the capture element and the relative position between the capture element and the first model, determines the layout information of the first model, includes: based on the moving position of the capture element and the relative position between the capture element and the first model, determines the moving position of the first model.
[0062] That is to say, in the moving mode, the movement of the cursor position is used to control the moving position of the capture element, that is, the capture element moves with the cursor position, and the first model moves relatively with the capture element, so that the moving position of the first model can be determined by moving the cursor position. Based on the above method, it supports setting multiple types of capture elements, so that it can support the use of various types of capture elements to drive the movement of the first model, and realize the precise movement of the first model in the model layout space.
[0063] Optionally, in the moving mode, if a confirmation operation for the moving position of the capture element is detected, the moving position of the capture element and the moving position of the first model are used as their placement positions, that is, the first model is placed at the position corresponding to the confirmation operation. Optionally, if the movement of the cursor position is implemented by long-pressing and dragging after clicking to confirm, the confirmation operation may be releasing the drag, such as releasing the mouse. If the movement of the cursor position is implemented by releasing after clicking to confirm, the confirmation operation may be clicking to confirm again.
[0064] As an application example, the movement of the first model can be achieved through the following process: the user moves the mouse, and the mouse captures and moves based on the user's confirmation operation, using a capture element (such as a point) adsorbed to the first model as the starting point or reference point. The first model and the reference point maintain relative positions and follow the mouse to move. Optionally, in the above-mentioned moving mode, the moving distance can be displayed on the moving trajectory of the capture element, and the straight-line distance of the movement can be modified by inputting parameters. When the user clicks the mouse, the moving first model is put down to complete the precise movement. When the movement is completed, the user can activate other functions / modes through the keyboard, mouse, etc. to terminate the moving mode. If the moving mode is not terminated, the user can move the mouse to the position of other models to move other models.
[0065] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the copy mode. Accordingly, the above step S230, based on the processing information related to the capture element and the relative position between the capture element and the first model, determines the layout information of the first model, including: in response to detecting a confirmation operation for the moving position of the capture element, determining the moving position of the capture element as the copy end point; based on the copy end point and the relative position between the capture element and the first model, determining the copy position of the first model.
[0066] That is, in the copy mode, the movement of the cursor position is used to control the moving position of the capture element, that is, the capture element moves with the cursor position, and the first model does not move relative to the capture element. When the cursor position moves to a position confirmed by the user through a confirmation operation (such as clicking), the moving position of the capture element is the copy end point (that is, the reference point of the copy). Based on the copy end point and the relative position between the capture element and the first model, the copy position of the first model can be determined. The model operation control method can also include: displaying the copy object of the first model at the copy position.
[0067] Based on the above method, it is supported to set multiple types of snap elements, so that it is possible to support the use of various types of snap elements to achieve accurate replication of the first model in the model layout space.
[0068] Optionally, if the cursor position is moved by long-pressing and dragging after clicking to confirm, the confirmation operation for the moving position of the capture element may be releasing the drag, such as releasing the mouse. If the cursor position is moved by releasing after clicking to confirm, the confirmation operation for the moving position of the capture element may be clicking to confirm again.
[0069] As an application example, the copying of the first model can be achieved through the following process: the user activates the copy mode, then moves the mouse to the first model to be copied, based on the user's confirmation operation, the capture element adsorbed to the first model is captured as the copy starting point, the user moves the mouse and selects the end point, and clicks to confirm to complete the accurate copying of the first model. When the copying is completed, the user can activate other functions / modes through the keyboard, mouse, etc. to terminate the copy mode.
[0070] Optionally, the model operation control method can support continuous copying. Specifically, in some embodiments, after displaying the copy object of the first model at the copy position, if the continuous copy preference is turned on, the moving position of the capture element is continued to be determined based on the movement of the cursor position, and when a confirmation operation for the moving position of the capture element is detected, the moving position of the capture element is determined as the next copy end point, and based on this, the next copy position of the first model is determined, and the next copy object of the first model is displayed at the copy position. Optionally, if the continuous copy preference is not turned on, the capture element of the next model can be captured and adsorbed by the movement of the cursor position to copy the next model.
[0071] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the zoom mode. Accordingly, the above step S230, based on the processing information related to the capture element and the relative position between the capture element and the first model, determines the layout information of the first model, includes: based on the moving position of the capture element and the relative position between the capture element and the first model, determines the zoom parameter of the first model.
[0072] That is, in the zoom mode, the movement of the cursor position is used to control the moving position of the capture element, that is, the capture element moves with the cursor position, and the first model is zoomed with the capture element. When the cursor position moves to a position confirmed by the user through the confirmation operation, the zoom parameter is determined based on the other points on the first model and the moving position of the capture element, and then the first model is zoomed according to the zoom parameter.
[0073] In some embodiments, the scaling parameter may include a scaling ratio. Optionally, the electronic device may determine the scaling ratio of the first model based on the ratio of the distance between other points on the first model and the capture element before and after the capture element moves (ie, before and after scaling).
[0074] In some embodiments, different types of capture elements may correspond to different zoom types. The model operation control method may further include: displaying the zoomed first model based on the zoom type and zoom parameter corresponding to the type information of the capture element.
[0075] Optionally, one type of information of the capture element may correspond to two or more zoom types, and the zoom type corresponding to the type information may be switched by a shortcut key.
[0076] Exemplarily, the scaling type may include coaxial scaling, geometric scaling, and non-uniform scaling. The type information of the capture element may include the vertices (endpoints) of the bounding box of the first model and the center points of each plane on the bounding box. Among them, the vertices of the model bounding box correspond to geometric scaling and non-uniform scaling; the center points of each plane on the model bounding box correspond to coaxial scaling and geometric scaling.
[0077] To facilitate understanding of the above-mentioned scaling types, specific application examples are provided below through accompanying drawings.
[0078] Figure 4A Schematic diagram of coaxial scaling is shown. When the type information of the capture element that meets the capture condition is the center point 41 on the plane (hereinafter referred to as "the plane") on the model bounding box, the first model can be coaxially scaled. Figure 4AAs shown, coaxial scaling is scaling in the normal direction of the plane, and the first model is scaled only in the normal direction of the plane as the capture element moves. In the case of coaxial scaling, the scaling ratio can be based on the ratio of the distance between the center point 41 on the plane and the center point 42 of another plane opposite to the plane on the model bounding box before and after scaling.
[0079] Figure 4B FIG. 4 shows a schematic diagram of non-uniform scaling. When the type of the capture element is the vertex 43 of the model bounding box, the first model can be non-uniformly scaled. Figure 4B As shown, non-proportional scaling is for different directions, and the scaling ratios in different directions are determined based on the position of the captured vertex 43 (including coordinates in different directions) and the position of another vertex 44 on the model bounding box opposite to the captured vertex 43 (also including coordinates in different directions), so that the first model can be scaled based on different scaling ratios in different directions.
[0080] Figure 4C A schematic diagram of geometric scaling is shown. When the type of the capture element is the vertex 43 of the model bounding box or the center point on the plane of the model bounding box, the first model can be scaled geometrically. Specifically, the same type of capture element can correspond to multiple scaling types by switching the scaling type (for example, pressing the shift key on the keyboard to switch). In the case of geometric scaling, the capture element can only be moved in the diagonal direction of the bounding box, and the size of the first model in all directions is scaled proportionally with the movement of the capture element.
[0081] In some embodiments, the above method also includes: in the zoom mode, in response to detecting in the model layout space that the capture condition is satisfied between the cursor position and any capture element of the first model, displaying a zoom handle based on the type information of the capture element; wherein the zoom handle is used to prompt the zoom type corresponding to the type information of the capture element.
[0082] Optionally, the scaling handle may be a line between the snap element and other points on the model bounding box.
[0083] For example, Figure 4A As shown, when the type information of the capture element is a center point 41 on a plane on the model bounding box, the scaling handle may be a line between the center point 41 and a center point 42 on another opposite plane on the model bounding box.
[0084] For example, Figure 4B As shown, when the type of the snap element is a vertex 43 of the model bounding box, the scaling handle may be a line connecting the vertex 43 and another vertex 44 on the diagonal line of the model bounding box.
[0085] By displaying the zoom handle, during the cursor movement, the size of the first model and the stretching change of the zoom handle can assist the user in confirming whether the zoom type is the type expected by the user, thereby facilitating the user to achieve accurate zooming.
[0086] As an application example, scaling of the first model can be achieved through the following process:
[0087] The user activates the zoom mode, then moves the mouse to the first model to be zoomed and approaches any capture object. When approaching the center point or vertex of the plane on the model bounding box, the state without confirmation operation can be regarded as a hovering state. The zoom handle is highlighted in the hovering state. When the user clicks to confirm, the zoom handle continues to be displayed (the display style can be adjusted, such as non-highlighting). The user moves the mouse and the capture element follows the movement. When the user confirms the moving position of the capture element, the zoom ratio is determined based on the moving position of the capture element, and the zoom of the first model is completed according to the zoom ratio and the zoom ratio corresponding to the type of the capture element. When the copying is completed, the user can activate other functions / modes through the keyboard, mouse, etc. to terminate the zoom mode.
[0088] Figure 5 FIG. 1 is a schematic diagram of an operation mode of a zoom mode in an application example of an embodiment of the present disclosure. Figure 5 As shown, the model operation control method may include:
[0089] S51. Select the first model.
[0090] S52, activating the zoom mode; for example, by clicking on the "Zoom" tab or by triggering a shortcut key.
[0091] In one implementation, the model operation control method further includes:
[0092] S531, long press and drag the zoom base point (capture element that meets the capture conditions);
[0093] S541. Release the left mouse button to select the end point (to confirm the moving position of the capture element).
[0094] In another implementation, the model operation control method further includes:
[0095] S532, click to select the zoom base point (the capture element that meets the capture conditions);
[0096] S542. Click the left button of the mouse to select the end point (to confirm the moving position of the capture element).
[0097] In addition, the model operation control method also includes:
[0098] S55 after S541 or S542, completing the scaling;
[0099] S56 in the execution process of S52 to S541 or S542: exit the process, and the first model returns to the state before scaling.
[0100] In some embodiments, the processing information related to the capture element includes: the angle of rotation with the capture element as the rotation center point in the rotation mode. Accordingly, the above step S230, based on the processing information related to the capture element and the relative position between the capture element and the first model, determines the layout position of the first model, including: determining the rotation plane based on the type information of the capture element; based on the relative position and angle between the capture element and the first model, rotating the first model with the normal of the rotation plane as the rotation axis to obtain the rotation position of the first model.
[0101] That is to say, in the rotation mode, the movement of the cursor position is used to determine the angle of rotation with the capture element as the rotation center point. As in the aforementioned embodiment, the movement of the cursor position can be used to determine the positions of other points, lines, and surfaces with the capture element as the reference point. Optionally, the movement of the cursor position can be used to determine the two edges connected to the capture element on the rotation plane, thereby determining the rotation angle with the capture element as the rotation center point based on the two edges. Among them, the rotation plane is determined based on the type information of the capture element. After obtaining the rotation plane and the rotation angle, the first model can be rotated with the normal of the rotation plane as the rotation axis based on the relative position between the capture element and the first model, and the angle, to obtain its rotation position (i.e., the position after rotation).
[0102] In some embodiments, determining processing information related to the capture element based on the movement of the cursor position includes:
[0103] In response to detecting a first confirmation operation during the movement of the cursor position, determining a rotation start edge; the rotation start edge passes through the capture element and the detection point corresponding to the first confirmation operation;
[0104] In response to a second confirmation operation detected during the movement of the cursor position, a rotation termination edge is determined; the rotation termination edge passes through the capture element and the detection point corresponding to the second confirmation operation;
[0105] Based on the start edge and end edge of rotation, determine the rotation angle with the snap element as the rotation center point.
[0106] Optionally, the rotation plane can be determined when it is confirmed that the capture element and the cursor position meet the capture conditions. When the rotation plane is determined, the movement of the cursor position is used to determine the rotation start edge and the rotation end edge. Specifically, when the user moves the cursor position to a certain point and performs a confirmation operation (such as clicking), the line between the point and the capture element is the rotation start edge; thereafter, the user can move the cursor position to another point and perform a confirmation operation, then the line between the point and the capture element is the rotation end edge, and based on the two edges, the rotation angle with the capture element as the center point can be determined. According to the above method, the rotation angle can be determined through visual user interaction, which is conducive to achieving precise rotation.
[0107] Figure 6A to Figure 6C Figure 1 is a schematic diagram of the operation of the rotation mode. Fig. 6A As shown in FIG. 1 , in the rotation mode, when the cursor position is close to any capture element of the first model, such as an endpoint 61, a rotation plane mark 64 (such as a circle) and the type information "endpoint" of the capture element will be displayed. At this time, if the user inputs a confirmation operation, such as clicking the mouse, the capture element and the rotation plane are confirmed. Afterwards, the user moves the mouse to move the cursor position. When the cursor position moves to the position shown in FIG. Figure 6B When the user clicks OK, the line connecting point 62 and end point 61 is used as the rotation start edge. After that, the user continues to move the mouse to move the cursor position. When the cursor position moves to Figure 6B When the user clicks to confirm again, the line connecting point 63 and endpoint 61 is used as the rotation end edge. At this time, the angle formed by the two edges is 45°, which is the rotation angle. Based on this angle, the first model is rotated with endpoint 61 as the rotation center point and the normal of the rotation plane passing through the rotation center point as the rotation axis. Figure 6B The first model after rotation can be seen in the figure. Afterwards, the user can exit the rotation mode by switching the mode. The interactive interface is shown as follows: Figure 6C In this example, in order to assist user operation and improve user experience, when selecting the start and end edges of the rotation, the line between the cursor position and the rotation center point is always displayed; when selecting the end edge of the rotation, the angle value can be always displayed according to the moving position of the capture element, so that the user can confirm the end edge of the rotation.
[0108] In some embodiments, the rotation plane may be a preconfigured plane corresponding to the type information of the capture element. For example, when the type information of the capture element is a vertex of a bounding box, the rotation plane may be one of the three planes in the bounding box that contain the vertex. When the type information of the capture element is the center point of a plane on the bounding box, the rotation plane may be the plane on the bounding box. When the type information of the capture element is an edge on the bounding box, the rotation plane may be one of the two planes on the bounding box that contain the edge.
[0109] In some embodiments, the model operation control method further includes:
[0110] In the rotation mode, in response to detecting in the model layout space that an adsorption condition is satisfied between the cursor position and any capture element of the first model, and the type information of the capture element is a vertex of the bounding box of the first model, a rotation plane identifier is displayed on the plane on the bounding box that intersects with the cursor position, and a confirmation operation for the type information is detected; wherein the confirmation operation for the type information is also used to confirm the plane that intersects with the cursor position as a rotation plane.
[0111] Specifically, in the aforementioned step S210, when in rotation mode, if the cursor position and any capture element meet the adsorption condition, and the type information of the capture element is the center point of the plane on the bounding box, the type information "center point" is displayed (optionally, the rotation plane logo can also be displayed on the plane), and when the user confirms the type information, the electronic device simultaneously determines that the plane is a rotation plane. If the cursor position and any capture element meet the adsorption condition, and the type information of the capture element is the vertex of the bounding box, the electronic device will select the plane intersecting with the cursor position in the three planes where the vertex is located as the rotation plane according to the cursor position and display the rotation plane logo to the user. At this time, if the user inputs a confirmation operation for the type information, the plane is also confirmed as a rotation plane. If the user moves the cursor position so that the cursor position still meets the capture condition with the vertex, but the plane intersecting with the cursor position changes, the electronic device will update the rotation plane and display the new rotation plane logo. In this way, through the rotation plane logo, the user can be assisted in selecting the rotation plane among the three faces where the vertex is located.
[0112] To facilitate understanding of the plane on the bounding box that intersects with the cursor position, the following is combined with Figure 7 Explain. Figure 7 As shown, the picture presented by the interactive interface 71 is a picture taken from the current camera perspective 72 (the perspective of the virtual camera) toward the first model, that is, the interactive interface 71 presents an image of a projection plane 73 on the path projected from the current camera perspective 72 to the model, and the cursor controlled by the user moves on the projection plane 73. In the embodiment of the present disclosure, the plane 74 intersecting with the cursor position refers to a plane intersecting with the projection ray where the cursor position is located, and the projection ray is a ray pointing from the current camera perspective to the cursor position. Figure 7 In the example shown, the plane is the upper surface of the bounding box.
[0113] When the type of the capture element is an edge on a bounding box, a rotation plane may be determined in two planes where the edge on the bounding box is located in a manner similar to the above embodiment.
[0114] In some embodiments, when the type information of the capture element is not a preset specific type, the rotation plane is a default plane; the specific type includes vertices of the bounding box, center points of each plane on the bounding box, and edges of the bounding box.
[0115] Exemplarily, the default plane may be an XY plane, an XZ plane, or a YZ plane in the model arrangement space.
[0116] For example, when the type information of the capture element is a point on an object, that is, a point on a surface of the first model (such as a grid surface, a mesh surface), the rotation plane is a default plane.
[0117] In actual applications, when the type information of the capture element is not a specific type, the plane where the capture element is located will have a lot of changes. If the rotation plane logo is displayed according to the cursor position, it will affect the background response speed. In addition, the various and complex plane inclination angles will also cause the user to be unable to select the precise rotation plane. The above embodiment restricts the way in which the rotation plane is determined by the capture element to a few types of capture elements, which can provide users with the freedom to select the rotation plane. Other types use the default plane as the rotation plane, which can avoid affecting the response speed and incorrectly selecting the rotation plane, thereby improving the effect of precise rotation.
[0118] In some embodiments, processing information related to the capture element is determined based on the movement of the cursor position, including: when the cursor position moves to a reference element in the model layout space that satisfies an adsorption condition, processing information related to the capture element is determined based on the position of the reference element.
[0119] Taking the moving position of the capture element as an example, the moving position of the capture element is determined based on the movement of the cursor position. Specifically, if the cursor position moves to a blank position in the model layout space, the moving position of the capture element is the cursor position; if the cursor position moves to a position that satisfies the adsorption conditions with certain reference elements in the model layout space, the moving position of the capture element is a position related to these reference elements. For example, the reference element may include a reference point, such as a vertex of another model, and the moving position of the capture element may be the position of the reference point (i.e., the capture element is adsorbed to the position of the reference point). For another example, the reference element may include a reference line, such as a reference line drawn by a user in the model layout space, or an edge of another model, and the moving position of the capture element may be the position of the projection point of the cursor position on the reference line or the position of the point on the reference line that is closest to the cursor position.
[0120] Exemplarily, the adsorption condition is related to the distance between the cursor position and the reference element. For example, the adsorption condition is that the distance is less than a second value. The second value may be a preset threshold or a value determined based on size information related to the reference element.
[0121] According to the above embodiment, determining the processing information related to the captured element by adsorbing the reference element in the model layout space can help the user accurately provide the processing information related to the captured element through interactive operations, thereby facilitating accurate layout.
[0122] Exemplarily, the reference element includes a straight line along the axial direction of the model layout space, such as a straight line along the X-axis, Y-axis or Z-axis direction of the model layout space.
[0123] The model operation control method of the disclosed embodiment can solve the problem of difficulty in accurate capture when there are many capture elements, thereby supporting the setting of a large number of capture elements of various types to achieve precise capture and adsorption, which is conducive to the precise layout of the model.
[0124] According to an embodiment of the present disclosure, the present disclosure also provides a model operation control device, Figure 8 A schematic block diagram of a model operation control device provided by an embodiment of the present disclosure is shown. Figure 8 As shown, the model operation control device includes:
[0125] A capture type display module 810, for displaying type information of a capture element in response to detecting that a capture condition is satisfied between the cursor position in the model arrangement space and any capture element of the first model;
[0126] A movement processing module 820, configured to determine, in response to detecting a confirmation operation on the type information, processing information related to the capture element based on the movement of the cursor position;
[0127] The arrangement information determination module 830 is used to determine the arrangement information of the first model based on the processing information related to the capture element and the relative position between the capture element and the first model.
[0128] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the moving mode. The arrangement information determination module 830 is specifically used to: determine the moving position of the first model based on the moving position of the capture element and the relative position between the capture element and the first model.
[0129] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the copy mode; the layout information determination module 830 is specifically used to: in response to detecting a confirmation operation for the moving position of the capture element, determine the moving position of the capture element as the copy end point; based on the copy end point and the relative position between the capture element and the first model, determine the copy position of the first model.
[0130] like Fig. 9 As shown, the model operation control device also includes:
[0131] The duplicate object display module 910 is used to display the duplicate object of the first model at the duplicate position.
[0132] In some embodiments, the processing information related to the capture element includes: the moving position of the capture element in the zoom mode. The arrangement information determination module 830 is specifically used to: determine the zoom parameter of the first model based on the moving position of the capture element and the relative position between the capture element and the first model.
[0133] In some embodiments, Fig. 9 As shown, the model operation control device also includes:
[0134] The scaling module 920 is used to display the scaled first model based on the scaling type and scaling parameters corresponding to the type information of the capture element.
[0135] In some embodiments, Fig. 9 As shown, the model operation control device also includes:
[0136] The zoom handle display module 930 is used to display the zoom handle in the zoom mode in response to detecting in the model layout space that the capture condition is met between the cursor position and any capture element of the first model, based on the type information of the capture element; wherein the zoom handle is used to prompt the zoom type corresponding to the type information of the capture element.
[0137] In some embodiments, the processing information related to the capture element includes: the angle of rotation with the capture element as the rotation center point in the rotation mode. The arrangement information determination module 830 is specifically used to:
[0138] Based on the type information of the snap element, the rotation plane is determined;
[0139] Based on the relative position and angle between the capture element and the first model, the first model is rotated with the normal of the rotation plane as the rotation axis to obtain the rotation position of the first model.
[0140] In some embodiments, the mobile processing module 820 is specifically used to:
[0141] In response to detecting a first confirmation operation during the movement of the cursor position, determining a rotation start edge; the rotation start edge passes through the capture element and the detection point corresponding to the first confirmation operation;
[0142] In response to a second confirmation operation detected during the movement of the cursor position, a rotation termination edge is determined; the rotation termination edge passes through the capture element and the detection point corresponding to the second confirmation operation;
[0143] Based on the start edge and end edge of rotation, determine the rotation angle with the snap element as the rotation center point.
[0144] In some embodiments, Fig. 9 As shown, the model operation control device also includes:
[0145] The rotation plane confirmation module 940 is used to display a rotation plane logo on the plane intersecting with the cursor position on the bounding box in response to detecting in the model layout space that an adsorption condition is satisfied between the cursor position and any capture element of the first model, and the type information of the capture element is a vertex of the bounding box of the first model, and detect a confirmation operation for the type information in the rotation mode; wherein the confirmation operation for the type information is also used to confirm the plane intersecting with the cursor position as a rotation plane.
[0146] In some embodiments, when the type information of the capture element is not a preset specific type, the rotation plane is a default plane; the specific type includes vertices of the bounding box, center points of each plane on the bounding box, and edges of the bounding box.
[0147] In some embodiments, the mobile processing module 820 is specifically used to:
[0148] When the cursor position moves to a point where the adsorption condition is satisfied with the reference element in the model layout space, processing information related to the capture element is determined based on the position of the reference element.
[0149] In some embodiments, the reference element comprises a straight line along an axial direction of the model arrangement space.
[0150] In some embodiments, Fig. 9 As shown, the model operation control device also includes:
[0151] The transparency adjustment module 950 is used to reduce the display transparency of the first model to display the capture element when the cursor position and the capture element that is invisible in the current camera viewing angle meet the capture condition.
[0152] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, reference can be made to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.
[0153] In the technical solution disclosed herein, the acquisition, storage and application of user personal information involved are in compliance with the provisions of relevant laws and regulations and do not violate public order and good morals.
[0154] Fig.10 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Fig.10 As shown, the electronic device includes: a memory 1010 and a processor 1020, and the memory 1010 stores a computer program that can be run 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 executes the method provided by the above method embodiment. The electronic device may also include: a communication interface 1030, which is used to communicate with external devices and perform data exchange transmission.
[0155] 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 through 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, Fig.10 Only one thick line is used in the diagram, but this does not mean that there is only one bus or only one type of bus.
[0156] 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.
[0157] 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. A general-purpose processor may be a microprocessor or any conventional processor, etc. It is worth noting that the processor may be a processor supporting the Advanced RISC Machines (ARM) architecture.
[0158] Further, 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).
[0159] 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 the computer, the process or function according to 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 a website site, computer, server or data center by wired (for example: coaxial cable, optical fiber, data subscriber line (Digital Subscriber Line, DSL)) or wireless (for example: infrared, Bluetooth, microwave, etc.) mode to another website site, computer, server or data center. The computer-readable storage medium can be any available medium that can be accessed by the computer, or a data storage device such as a server or data center that includes one or more available media integrations. The available medium may be a magnetic medium (e.g., a floppy disk, a hard disk, a magnetic tape), an optical medium (e.g., a digital versatile disc (DVD)), or a semiconductor medium (e.g., a solid state disk (SSD)), etc. 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.
[0160] A person 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, and the above-mentioned storage medium may be a read-only memory, a disk or an optical disk, etc.
[0161] In the description of the embodiments of the present disclosure, the description with reference to the terms "one embodiment", "some embodiments", "example", "specific example", or "some examples" means 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 one or more embodiments or examples in a suitable manner. In addition, those skilled in the art may combine and combine the different embodiments or examples described in this specification and the features of the different embodiments or examples, unless they are contradictory.
[0162] 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 article is only a way to describe the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone.
[0163] In the description of the embodiments of the present disclosure, the terms "first" and "second" are used for descriptive purposes only and are not to be understood as indicating or implying relative importance or implicitly indicating the number of the indicated technical features. Thus, 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.
[0164] The above description is only 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 protection scope of the present disclosure.
Claims
1. A model operation control method, characterized in that: include: In response to detecting that a capture condition is satisfied between the cursor position in the model arrangement space and any capture element of the first model, displaying type information of the capture element; In response to detecting a confirmation operation for the type information, determining processing information related to the capture element based on the movement of the cursor position; Arrangement information of the first model is determined based on processing information related to the capture element and a relative position between the capture element and the first model.
2. The method according to claim 1, characterized in that The processing information related to the capture element includes: the moving position of the capture element in the moving mode; The determining, based on the processing information related to the capture element and the relative position between the capture element and the first model, the layout information of the first model includes: The moving position of the first model is determined based on the moving position of the capture element and the relative position between the capture element and the first model.
3. The method according to claim 1, characterized in that The processing information related to the capture element includes: the moving position of the capture element in the copy mode; The determining, based on the processing information related to the capture element and the relative position between the capture element and the first model, the layout information of the first model includes: In response to detecting a confirmation operation on the moving position of the capture element, determining the moving position of the capture element as a copy end point; Determine a copy position of the first model based on the copy end point and a relative position between the capture element and the first model; The method further comprises: The copied object of the first model is displayed at the copied position.
4. The method according to claim 1, characterized in that: The processing information related to the capture element includes: the movement position of the capture element in the zoom mode; The determining, based on the processing information related to the capture element and the relative position between the capture element and the first model, the layout information of the first model includes: Determining a scaling parameter of the first model based on a moving position of the capture element and a relative position between the capture element and the first model; The method further comprises: Based on the scaling type corresponding to the type information of the capture element and the scaling parameter, the scaled first model is displayed.
5. The method according to claim 4, characterized in that The method further comprises: In zoom mode, in response to detecting in the model layout space that the capture condition is satisfied between the cursor position and any capture element of the first model, a zoom handle is displayed based on the type information of the capture element; wherein the zoom handle is used to prompt the zoom type corresponding to the type information of the capture element.
6. The method according to any one of claims 1 to 5, characterized in that The processing information related to the capture element includes: the angle of rotation with the capture element as the rotation center point in the rotation mode; The determining the arrangement position of the first model based on the processing information related to the capture element and the relative position between the capture element and the first model includes: Based on the type information of the snap element, the rotation plane is determined; Based on the relative position and the angle between the capture element and the first model, the first model is rotated with the normal of the rotation plane as the rotation axis to obtain the rotation position of the first model.
7. The method according to claim 6, characterized in that The determining, based on the movement of the cursor position, processing information related to the capture element comprises: In response to detecting a first confirmation operation during the movement of the cursor position, determining a rotation start edge; the rotation start edge passes through the capture element and a detection point corresponding to the first confirmation operation; In response to a second confirmation operation detected during the movement of the cursor position, determining a rotation termination edge; the rotation termination edge passes through the capture element and a detection point corresponding to the second confirmation operation; Based on the rotation start edge and the rotation end edge, an angle of rotation with the capture element as a rotation center point is determined.
8. The method according to claim 6, characterized in that The method further comprises: In the rotation mode, in response to detecting in the model layout space that an adsorption condition is satisfied between the cursor position and any capture element of the first model, and the type information of the capture element is a vertex of the bounding box of the first model, a rotation plane identifier is displayed on the plane on the bounding box that intersects with the cursor position, and a confirmation operation for the type information is detected; wherein the confirmation operation for the type information is also used to confirm the plane that intersects with the cursor position as the rotation plane.
9. The method according to claim 6, characterized in that When the type information of the capture element is not a preset specific type, the rotation plane is a default plane; the specific type includes the vertices of the first model bounding box, the center points of each plane on the bounding box, and the edges of the bounding box.
10. The method according to any one of claims 1 to 5, characterized in that The determining, based on the movement of the cursor position, processing information related to the capture element includes: When the cursor position moves to a position that satisfies an adsorption condition with respect to a reference element in the model layout space, processing information related to the capture element is determined based on the position of the reference element.
11. The method according to claim 10, characterized in that The reference element includes a straight line along an axial direction of the model arrangement space.
12. The method according to any one of claims 1 to 5, characterized in that The method further comprises: When the cursor position and the capture element that is invisible from the current camera viewing angle meet the capture condition, the display transparency of the first model is reduced to display the capture element.
13. A model operation control device, characterized in that: include: a capture type display module, configured to display type information of a capture element in response to detecting that a capture condition is satisfied between a cursor position in the model arrangement space and any capture element of the first model; a movement processing module, configured to determine, in response to detecting a confirmation operation for the type information, processing information related to the capture element based on the movement of the cursor position; The arrangement information determination module is used to determine the arrangement information of the first model based on the processing information related to the capture element and the relative position between the capture element and the first model.
14. An electronic device, characterized in that: include: 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 12.
15. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are used to cause the computer to execute the method according to any one of claims 1-12.