Control method, device, electronic device and storage medium of home decoration model

By using the method of aligning models with direction vectors in home decoration design, the problem of complex alignment operations of water, electricity and heating models is solved, fast and accurate model alignment is achieved, and the home decoration design process is simplified.

CN117371076BActive Publication Date: 2024-09-10HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

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

AI Technical Summary

Technical Problem

In home decoration design, the position alignment operation of water, electricity and heating models is complicated and difficult to meet design needs. In particular, the alignment of pipeline connections is difficult, which affects the rationality of pipeline direction design.

Method used

Provide a control method and device for a home decoration model. By selecting the reference interface of the target model and the docking interface of the model to be aligned, and using the first direction vector for alignment, the function of quickly aligning the model is realized, and the combined alignment mode and the single-axis alignment mode are supported. , simplifying user operations.

Benefits of technology

It enables users to quickly align models through visual operations, meeting more than 90% of alignment requirements, simplifying the home decoration design process, and improving alignment efficiency and accuracy.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN117371076B
    Figure CN117371076B
Patent Text Reader

Abstract

The present disclosure provides a control method, device, electronic device and storage medium for a home decoration model. It relates to the field of computer technology, and in particular to technical fields such as image processing and three-dimensional models. The method includes: in a home decoration model with a pipeline interface, a reference interface of a target model is determined in response to a first selection operation; the reference interface is associated with a first direction vector; and, in response to a second selection operation, a docking interface of a model to be aligned is determined; with reference to the first direction vector, the first position information of the docking interface of the model to be aligned is aligned with the second position information of the reference interface. In the embodiment of the present disclosure, based on a visual operation interface, the user can realize visual operation of the target model and the model to be aligned, and based on the first direction vector, the user does not need to know the specific method of alignment, and can quickly align the model.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, and in particular to technical fields such as image processing and three-dimensional models. Background Art

[0002] In the field of home decoration, home decoration design not only needs to pay attention to the home decoration style, furniture and the placement of electrical appliances, but also needs to build water, electricity and heating models and water, electricity and heating pipes to help users better decorate. Among them, it is necessary to align the position of the water, electricity and heating model, especially the position of the water, electricity and heating model pipe connection port, so as to make a more reasonable pipeline direction design. However, the model alignment function in the related technology is complicated to operate and difficult to meet the design requirements. Summary of the invention

[0003] The present disclosure provides a control method, device, electronic device and storage medium for a home decoration model to solve or alleviate one or more technical problems in related technologies.

[0004] In a first aspect, the present disclosure provides a control method for a home decoration model, comprising:

[0005] In a home improvement model with a pipeline interface, a reference interface of a target model is determined in response to a first selection operation; the reference interface is associated with a first direction vector; and,

[0006] In response to the second selection operation, determining a docking interface of the model to be aligned;

[0007] With reference to the first direction vector, the first position information of the docking interface of the model to be aligned is aligned with the second position information of the reference interface.

[0008] In a second aspect, the present disclosure provides a control device for a home decoration model, comprising:

[0009] A first determination module is used to determine a reference interface of a target model in a home decoration model with a pipeline interface in response to a first selection operation; the reference interface is associated with a first direction vector; and

[0010] A second determination module, configured to determine a docking interface of the model to be aligned in response to a second selection operation;

[0011] The first alignment module is used to align the first position information of the docking interface of the model to be aligned with the second position information of the reference interface with reference to the first direction vector.

[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] 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.

[0018] In the disclosed embodiment, based on a visual operation interface, the user can implement visual operations on the target model and the model to be aligned, and based on the first direction vector, the user can quickly align the models without the need for a specific method of relational alignment.

[0019] 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

[0020] 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.

[0021] Figure 1 is a flow chart of a method for controlling a home decoration model according to an embodiment of the present disclosure;

[0022] Figure 2a is a schematic diagram of a control method for a home decoration model according to an embodiment of the present disclosure;

[0023] Figure 2b is a schematic diagram of a control method for a home improvement model according to another embodiment of the present disclosure;

[0024] Figure 2c is a schematic diagram of a control method for a home improvement model according to another embodiment of the present disclosure;

[0025] Figure 2d is a schematic diagram of a control method for a home improvement model according to another embodiment of the present disclosure;

[0026] Figure 2e is a schematic diagram of a control method for a home improvement model according to another embodiment of the present disclosure;

[0027] Figure 3 is a schematic diagram of a pipeline path according to an embodiment of the present disclosure;

[0028] Figure 4 It is a schematic diagram of the overall process of a control method of a home decoration model according to an embodiment of the present disclosure;

[0029] Figure 5 is a schematic diagram of the structure of a control device for a home decoration model according to an embodiment of the present disclosure;

[0030] Figure 6 4 is a block diagram of an electronic device used to implement the control method of the home decoration model of the embodiment of the present disclosure. DETAILED DESCRIPTION

[0031] 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.

[0032] 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, means, components and circuits 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] In addition, the terms "first" and "second" are used for descriptive purposes only and should not be understood as indicating or implying relative importance or implicitly indicating the number of 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 present disclosure, the meaning of "plurality" is two or more, unless otherwise clearly and specifically defined.

[0034] In the field of home decoration, it is necessary to align the positions of water, electricity and heating models so that the pipes can be connected based on the connection ports of each model. In order to align the models, a control method for a home decoration model is provided in an embodiment of the present disclosure, such as Figure 1 As shown, including:

[0035] S101, in a home decoration model with a pipeline interface, determining a reference interface of a target model in response to a first selection operation; the reference interface is associated with a first direction vector.

[0036] like Figure 2a As shown, the target model is, for example, model A, and the target model has multiple candidate connection ports (such as Figure 2aBased on the first selection operation, a connection port is selected from multiple candidate connection ports to be determined as the reference interface of the target model. The interface diagram after selecting the reference interface is as follows: Figure 2b The user-selected base interface is displayed with a different display effect from other interfaces, for example, using Figure 2b The black circle in the figure shows the reference interface so that the user can confirm which interface is selected.

[0037] In order to facilitate fast and effective model alignment, each interface in the disclosed embodiment has its associated direction vector. Taking the reference interface as an example, the first direction vector of the reference interface is used to define the extension direction of the pipeline. No matter how the target model is placed, the extension direction of the reference interface relative to the target model is relatively unchanged. The interface can extend a section of the pipeline based on the first direction vector, and the occurrence of mold penetration can be avoided based on the first direction vector.

[0038] After the reference interface of the target model is selected, the model selected in the subsequent selection operation may be defaulted as the model to be aligned with the target model. For details, refer to the operation of S102.

[0039] S102: In response to the second selection operation, determining a docking interface of the model to be aligned.

[0040] like Figure 2c As shown in the figure, after selecting model A as the target model, assuming that the user selects model B, model B is set as the model to be aligned with model A by default. Of course, the user can select multiple models, and the selected multiple models are the models to be aligned that need to be docked with the target model A. For example Figure 2c As shown in FIG. 1 , in addition to selecting model B as the model to be aligned, model C is also selected as the model to be aligned. Each model to be aligned is similar to the target model and also has at least one candidate connection port. The user selects a candidate connection port from multiple candidate connection ports of each model to be aligned as the docking interface to be docked with the reference interface through the second selection operation. Figure 2c As shown, the interface to be connected in model B (such as Figure 2c The white circle in the middle) needs to be connected to the reference interface in model A (such as Figure 2c black circle) docking.

[0041] In order to facilitate rapid alignment of models, an embodiment of the present disclosure provides an operation menu for a model alignment function, wherein the operation menu includes a combined alignment mode for rapid alignment of models.

[0042] S103, referring to the first direction vector, aligning the first position information of the docking interface of the model to be aligned with the second position information of the reference interface.

[0043] In the embodiment of the present disclosure, through analysis, summary and induction, the combined alignment mode can meet the alignment requirements of more than 90% of the models with pipelines. Therefore, in the embodiment of the present disclosure, based on the visual operation interface, the user can realize the visual operation of the target model and the model to be aligned, and based on the first direction vector, the user does not need to have a specific method of relational alignment, so that the model can be quickly aligned.

[0044] Furthermore, in order to facilitate the user to understand the alignment situation, the embodiment of the present disclosure provides a preview function, which can be implemented as follows: previewing the alignment results of the reference interface of the target model and the docking interface of the model to be aligned; in response to a confirmation instruction triggered by the user based on the preview effect, aligning the first position information of the docking interface with the second position information of the reference interface. That is, when receiving the instruction, the alignment operation is performed on the two models according to the alignment mode selected by the user in the operation menu.

[0045] Combined alignment modes such as Figure 2d When the user hovers over this option with the mouse, the alignment results of the target model's base interface and the docking interface of the model to be aligned are displayed (i.e. Figure 2d ), if the user confirms that the design requirements are met based on the preview effect, the user can use the confirmation indication to align the first position information of the docking interface with the second position information of the reference interface, that is, Figure 2e As shown, move Model B and Model C to the previewed positions.

[0046] In the disclosed embodiment, a visualization interface is used to preview the alignment results of the reference interface of the target model and the docking interface of the model to be aligned. When the user is sure of the previewed alignment result, the first position information of the docking interface is aligned with the second position information of the reference interface to enable the user to visualize the alignment results of the target model and the model to be aligned.

[0047] It should be noted that the embodiment of the present disclosure not only provides a combined alignment mode, but also provides other alignment modes in the operation menu to meet the needs of different situations. The specific alignment methods of different alignment modes are described below.

[0048] 1) Combine alignment modes to achieve fast model alignment

[0049] In some embodiments, referring to the first direction vector, aligning the first position information of the docking interface of the model to be aligned with the second position information of the reference interface can be implemented as follows:

[0050] Step A1, in response to the combined alignment mode selected in the operation menu, based on the first direction vector of the reference interface, determining a first coordinate axis and a second coordinate axis perpendicular to the first direction vector.

[0051] like Figure 2b As shown, the first direction vector is the X axis, and the first coordinate axis and the second coordinate axis perpendicular to the first direction vector are the Y axis and the Z axis.

[0052] Step A2: adjusting the coordinate values ​​on the first coordinate axis and the second coordinate axis in the first position information of the docking interface to be the same as the second position information of the reference interface.

[0053] Step A3: keep unchanged the coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface of the model to be aligned.

[0054] To be aligned model (such as Figure 2b Take the first position information of the docking interface of model B) in (a, b, c) as an example, and the second position information of the reference interface as (d, e, f) as an example. The coordinate axis corresponding to the first direction vector is the X axis, and the coordinate axes corresponding to the first coordinate axis and the second coordinate axis are the Y axis and the Z axis. Adjust the coordinates belonging to the first coordinate axis and the second coordinate axis in the first position information to the same coordinates as the reference interface, and keep the coordinate values ​​of the coordinate axes corresponding to the first direction vector unchanged, that is, adjust the position information of the docking interface to (a, e, f).

[0055] In the embodiment of the present disclosure, the coordinate values ​​on the first coordinate axis and the second coordinate axis in the first position information of the docking interface are respectively adjusted to the same coordinates as the second position information of the reference interface; the coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface of the model to be aligned is kept unchanged, so that the docking interface and the reference interface are consistent in the direction of the first direction vector, so as to achieve rapid alignment between models.

[0056] 2) Multiple available single-axis alignment modes

[0057] As described above, in addition to the aforementioned combined alignment mode, the operation menu also includes a target single-axis alignment mode. Figure 2a-2e As shown, the single-axis alignment mode in the operation menu includes at least one of the following:

[0058] Height alignment mode, left-right alignment mode, and front-back alignment mode;

[0059] Among them, the default coordinate axis corresponding to the height alignment mode is the Z axis;

[0060] The default coordinate axis corresponding to the left and right alignment mode is the X axis;

[0061] The default coordinate axis corresponding to the front-to-back alignment mode is the Y axis.

[0062] In the disclosed embodiment, the single-axis alignment mode is to align based on any coordinate axis in the three-dimensional coordinate system to achieve alignment of the target model and the interface model to be docked on any coordinate axis.

[0063] The user can select one of the single-axis alignment modes as the target single-axis alignment mode according to their needs to achieve model alignment. Specifically, the model alignment can be achieved based on the target single-axis alignment mode in the following way:

[0064] Step B1, in response to the target single-axis alignment mode in the operation menu, adjusting the coordinate value of the default coordinate axis corresponding to the target single-axis alignment mode in the first position information of the docking interface of the model to be aligned to be the same as the second position information.

[0065] Step B2: Keep the coordinate values ​​of the two coordinate axes perpendicular to the default coordinate axis in the first position information unchanged.

[0066] During implementation, when the user selects the height alignment mode in the operation menu, the first position information of the docking interface is (a, b, c) and the second position information of the reference interface is (d, e, f) as an example. The coordinates belonging to the Z axis in the first position information are adjusted to the same coordinates as the reference interface, and the corresponding coordinate values ​​on the other two coordinate axes remain unchanged, that is, the position information of the docking interface is adjusted to (a, b, f).

[0067] During implementation, when the user selects the left-right alignment mode in the operation menu, the first position information of the docking interface is (a, b, c) and the second position information of the reference interface is (d, e, f) as an example. The coordinates belonging to the X axis in the first position information are adjusted to the same coordinates as the reference interface, and the corresponding coordinate values ​​on the other two coordinate axes remain unchanged, that is, the position information of the docking interface is adjusted to (d, b, c).

[0068] During implementation, when the user selects the front-to-back alignment mode in the operation menu, the first position information of the docking interface is (a, b, c) and the second position information of the reference interface is (d, e, f) as an example. The coordinates belonging to the Y axis in the first position information are adjusted to the same coordinates as the reference interface, and the corresponding coordinate values ​​on the other two coordinate axes remain unchanged, that is, the position information of the docking interface is adjusted to (a, e, c).

[0069] In the embodiment of the present disclosure, based on the target single-axis alignment mode in the operation menu, the target model and the interface model to be docked can be aligned in the direction of the default coordinate axis corresponding to the target single-axis alignment mode to meet user needs.

[0070] In the embodiment of the present disclosure, a variety of alignment modes are provided for users to choose from, wherein the combined alignment mode allows users to quickly align models, and the single-axis alignment mode provides the design requirements of single-axis alignment. Different alignment modes can be flexibly selected to meet different design requirements of users.

[0071] It should be noted that the preview function can be implemented in each alignment mode. For example, three variables can be stored in the memory, where the first variable is used to store the selected reference interface of the target model, the second variable is used to store the selected docking interface of the model to be aligned, and the third variable is used to store the selected alignment mode. These three variables can be collectively referred to as preview elements. During implementation, you can poll whether the preview elements are complete, that is, confirm whether the three variables have corresponding variable values; when the preview elements are complete, you can preview the effect after alignment for the user to make further decisions.

[0072] In some embodiments, in order to ensure that the model alignment function can be turned on and off according to user needs and avoid the need for constant activation of the model alignment function, the following operations may be performed in the embodiments of the present disclosure:

[0073] Step C1, in response to a trigger instruction for entering the alignment function, the model alignment function is started and an operation menu is displayed.

[0074] Therefore, after the operation menu is displayed, different model alignment modes are available for users to choose according to their needs.

[0075] Step C2, when an exit operation of the model alignment function is detected, the model alignment function is closed and the display of the operation menu ends.

[0076] When the user clicks on the control of the alignment function, the model alignment function is started and the operation menu is displayed. The user can select the reference interface of the target model and the docking interface of the model to be aligned. After determining the reference interface and the docking interface, the target model and the model to be aligned can be aligned based on the alignment mode selected in the operation menu to obtain the alignment result. If the user is not satisfied with the alignment result, the reference interface, the docking interface, and the alignment mode can be adjusted. For example, the alignment mode can be reselected, or the docking interface can be reselected, which can be selected based on user needs, and the embodiment of the present disclosure does not limit this. If the user obtains a satisfactory alignment result, the exit button of the model alignment function can be clicked to close the model alignment function and end the display of the operation menu.

[0077] In the disclosed embodiment, the user can adjust the alignment of the model based on a visual interface. The interface will only be exited when the user actively exits to avoid constantly activating the model alignment function, thereby simplifying user operations and saving computing resources.

[0078] In some embodiments, when interfaces of multiple home decoration models are selected in the second selection operation, the interface of each home decoration model selected in the second selection operation is respectively used as the docking interface of the model to be aligned.

[0079] like Figure 2c As shown, the model to be aligned can be model B or model C, or both models can be used as the models to be aligned. Each model has multiple candidate connection ports, and any connection port among the multiple candidate connection ports is determined as the docking interface of the model. The docking interface of each model to be aligned is aligned with the reference interface of the target model in the selected alignment mode.

[0080] In the disclosed embodiment, batch alignment between multiple models to be aligned and a target model can be achieved without aligning each model in turn.

[0081] In some embodiments, some models may be selected to be aligned using a combined alignment mode, and some models may be selected to be aligned using any single-axis alignment mode. The alignment mode of each model in a unit may be the same or different, and may be selected based on user needs, which is not limited in the embodiments of the present disclosure.

[0082] In some embodiments, in order to better help users generate a pipeline path, when the docking interface is aligned with the position of the reference interface, a first extension direction of the reference interface is determined based on a first direction vector of the reference interface, and a second extension direction of the docking interface is determined based on a second direction vector of the docking interface; and a pipeline path between the docking interface and the reference interface is generated based on the position of the reference interface after alignment, the position of the docking interface after alignment, the first extension direction, and the second extension direction.

[0083] like Figure 3 As shown, the first extension direction of the reference interface is determined to be along the positive direction of the X-axis based on the first direction vector of the reference interface, and the second extension direction of the docking interface is determined to be along the negative direction of the X-axis based on the second direction vector of the docking interface. The pipeline path between the docking interface and the reference interface is automatically generated based on the position of the reference interface after alignment, the position of the docking interface after alignment, the first extension direction, and the second extension direction.

[0084] Among them, the method of automatically generating the pipeline path can be to generate multiple paths from the reference interface to the docking interface based on the position of the reference interface, the position of the docking interface after alignment, and the first extension direction and the second extension direction. A shortest pipeline path can be selected from them. The shortest path close to the wall line can be selected, or the most convenient path from the ground can be selected. The specific path to be selected can be determined based on the actual situation of the model's attributes, and the embodiments of the present disclosure do not limit this.

[0085] Of course, the user may also draw a path from the reference interface to the docking interface by himself, which is not limited in the embodiment of the present disclosure.

[0086] In the disclosed embodiment, when the docking interface and the reference interface are aligned, the pipeline path is determined based on their positions and their extension directions, and the pipeline path is rendered in a visualization interface so that the user can view it.

[0087] In order to enhance the understanding of the embodiments of the present disclosure, the overall flow chart of the embodiments of the present disclosure is as follows: Figure 4 As shown, it can be implemented as:

[0088] S401, based on the trigger instruction of the alignment function, start the model alignment function and display the operation menu;

[0089] S402, determining a reference interface of the target model based on the first selection operation;

[0090] S403, determining a docking interface of the model to be aligned based on the second selection operation;

[0091] S404, aligning the docking interface of the model to be aligned with the reference interface of the target model based on the alignment mode in the operation menu;

[0092] The alignment modes include a combined alignment mode and a single-axis alignment mode.

[0093] In the combined alignment mode, the first direction vector of the reference interface is first determined, the coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface is kept unchanged, and the coordinates in the other two directions are adjusted to be the same as those in the second position information of the reference interface.

[0094] Among them, the single-axis alignment mode includes a height alignment mode, a left-right alignment mode, and a front-back alignment mode.

[0095] The height alignment mode adjusts the coordinates belonging to the Z axis in the first position information to the same coordinates as the reference interface, and keeps the corresponding coordinate values ​​on the other two coordinate axes unchanged.

[0096] The left-right alignment mode adjusts the coordinates belonging to the X axis in the first position information to the same coordinates as the reference interface, and keeps the corresponding coordinate values ​​on the other two coordinate axes unchanged.

[0097] The front-to-back alignment mode adjusts the coordinates belonging to the Y axis in the first position information to the same coordinates as the reference interface, and keeps the corresponding coordinate values ​​on the other two coordinate axes unchanged.

[0098] S405, based on the combined alignment mode selected in the operation menu, refer to the first direction vector, align the first position information of the docking interface of the model to be aligned with the second position information of the reference interface. If the alignment result meets the user's requirements, execute S406; if the alignment result does not meet the user's requirements, return to execute S402.

[0099] S406, turning off the model alignment function and ending the display of the operation menu.

[0100] Based on the same technical concept, the embodiment of the present disclosure also provides a control device 500 for a home decoration model, such as Figure 5 As shown, including:

[0101] The first determination module 501 is used to determine a reference interface of a target model in a home decoration model with a pipeline interface in response to a first selection operation; the reference interface is associated with a first direction vector; and

[0102] A second determination module 502, configured to determine a docking interface of the model to be aligned in response to a second selection operation;

[0103] The first alignment module 503 is used to align the first position information of the docking interface of the model to be aligned with the second position information of the reference interface with reference to the first direction vector.

[0104] In some embodiments, the first alignment module is used to:

[0105] In response to the combined alignment mode selected in the operation menu, determining a first coordinate axis and a second coordinate axis perpendicular to the first direction vector based on a first direction vector of the reference interface;

[0106] The coordinate values ​​on the first coordinate axis and the second coordinate axis in the first position information of the docking interface are respectively adjusted to be the same as the second position information of the reference interface; and

[0107] The coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface of the model to be aligned is kept unchanged.

[0108] In some embodiments, a second alignment module is further included, configured to:

[0109] In response to selecting a target single-axis alignment mode in the operation menu, determining a default coordinate axis corresponding to the target single-axis alignment mode;

[0110] The coordinate value of the default coordinate axis in the first position information of the docking interface of the model to be aligned is adjusted to be the same as the second position information; and

[0111] The coordinate values ​​of the two coordinate axes perpendicular to the default coordinate axis in the first position information are kept unchanged.

[0112] In some embodiments, the single-axis alignment mode in the operation menu includes at least one of the following:

[0113] Height alignment mode, left-right alignment mode, and front-back alignment mode;

[0114] Among them, the default coordinate axis corresponding to the height alignment mode is the Z axis;

[0115] The default coordinate axis corresponding to the left and right alignment mode is the X axis;

[0116] The default coordinate axis corresponding to the front-to-back alignment mode is the Y axis.

[0117] In some embodiments, a preview module is further included for:

[0118] Preview the alignment results of the reference interface of the target model and the docking interface of the model to be aligned;

[0119] In response to a confirmation indication triggered by the user based on the preview effect, the first position information of the docking interface is aligned with the second position information of the reference interface.

[0120] In some embodiments, when interfaces of multiple home decoration models are selected in the second selection operation, the interface of each home decoration model selected in the second selection operation is respectively used as the docking interface of the model to be aligned.

[0121] In some embodiments, a start-stop module is further included, which is used to:

[0122] In response to a trigger instruction for entering the alignment function, the model alignment function is started and an operation menu is displayed;

[0123] When an exit operation of exiting the model alignment function is detected, the model alignment function is turned off and the display of the operation menu ends.

[0124] In some embodiments, a pipeline generation module is further included, which is used to:

[0125] In the case where the docking interface is aligned with the position of the reference interface, determining a first extension direction of the reference interface based on a first direction vector of the reference interface, and determining a second extension direction of the docking interface based on a second direction vector of the docking interface;

[0126] A conduit path between the docking interface and the reference interface is generated based on the position of the aligned reference interface, the position of the aligned docking interface, the first extension direction, and the second extension direction.

[0127] 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.

[0128] 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.

[0129] Figure 6 FIG. 1 is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 6 As shown, the electronic device includes: a memory 610 and a processor 620, and the memory 610 stores a computer program that can be run on the processor 620. The number of the memory 610 and the processor 620 can be one or more. The memory 610 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 630, which is used to communicate with external devices and perform data exchange transmission.

[0130] If the memory 610, the processor 620 and the communication interface 630 are implemented independently, the memory 610, the processor 620 and the communication interface 630 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, Figure 6 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.

[0131] Optionally, in a specific implementation, if the memory 610, the processor 620 and the communication interface 630 are integrated on a chip, the memory 610, the processor 620 and the communication interface 630 can communicate with each other through an internal interface.

[0132] 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.

[0133] 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).

[0134] 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 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 a computer can access, 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.

[0135] 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 instructing related hardware through a program, 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.

[0136] 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.

[0137] 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.

[0138] 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.

[0139] 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 control method for a home decoration model, comprising: In a home improvement model with a pipeline interface, a reference interface of a target model is determined in response to a first selection operation; The reference interface is associated with a first direction vector; as well as, In response to the second selection operation, determining a docking interface of the model to be aligned; Referring to the first direction vector, aligning the first position information of the docking interface of the to-be-aligned model with the second position information of the reference interface; The step of aligning the first position information of the docking interface of the model to be aligned with the second position information of the reference interface with reference to the first direction vector includes: In response to the combined alignment mode selected in the operation menu, determining a first coordinate axis and a second coordinate axis perpendicular to the first direction vector based on the first direction vector of the reference interface; The coordinate values ​​on the first coordinate axis and the second coordinate axis in the first position information of the docking interface are respectively adjusted to be the same as the second position information of the reference interface; and The coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface of the model to be aligned is kept unchanged.

2. The method according to claim 1, further comprising: In response to selecting a target single-axis alignment mode in the operation menu, determining a default coordinate axis corresponding to the target single-axis alignment mode; The coordinate value of the default coordinate axis in the first position information of the docking interface of the model to be aligned is adjusted to be the same as the second position information; and The coordinate values ​​of the two coordinate axes perpendicular to the default coordinate axis in the first position information are kept unchanged.

3. The method according to claim 2, wherein the single-axis alignment mode in the operation menu comprises at least one of the following: Height alignment mode, left-right alignment mode, and front-back alignment mode; in, The default coordinate axis corresponding to the height alignment mode is the Z axis; The default coordinate axis corresponding to the left-right alignment mode is the X axis; The default coordinate axis corresponding to the front-to-back alignment mode is the Y axis.

4. The method according to any one of claims 1 to 3, further comprising: Previewing the alignment results of the reference interface of the target model and the docking interface of the model to be aligned; In response to a confirmation indication triggered by the user based on the preview effect, the first position information of the docking interface is aligned with the second position information of the reference interface.

5. According to the method described in any one of claims 1 to 3, when the second selection operation selects interfaces of multiple home decoration models, the interface of each home decoration model selected by the second selection operation is respectively used as the docking interface of the model to be aligned.

6. The method according to any one of claims 2 to 3, further comprising: In response to a trigger instruction for entering the alignment function, the model alignment function is started and the operation menu is displayed; When an exit operation of exiting the model alignment function is detected, the model alignment function is closed and the display of the operation menu ends.

7. The method according to any one of claims 1 to 3, further comprising: In the case where the docking interface is aligned with the position of the reference interface, determining a first extension direction of the reference interface based on a first direction vector of the reference interface, and determining a second extension direction of the docking interface based on a second direction vector of the docking interface; A conduit path between the docking interface and the reference interface is generated based on the aligned position of the reference interface, the aligned position of the docking interface, the first extension direction, and the second extension direction.

8. A control device for a home decoration model, comprising: A first determination module, configured to determine a reference interface of a target model in response to a first selection operation in a home improvement model with a pipeline interface; The reference interface is associated with a first direction vector; as well as, A second determination module, configured to determine a docking interface of the model to be aligned in response to a second selection operation; A first alignment module, configured to align first position information of the docking interface of the model to be aligned with second position information of the reference interface with reference to the first direction vector; The first alignment module is specifically used for: In response to the combined alignment mode selected in the operation menu, determining a first coordinate axis and a second coordinate axis perpendicular to the first direction vector based on the first direction vector of the reference interface; The coordinate values ​​on the first coordinate axis and the second coordinate axis in the first position information of the docking interface are respectively adjusted to be the same as the second position information of the reference interface; and The coordinate value of the coordinate axis corresponding to the first direction vector in the first position information of the docking interface of the model to be aligned is kept unchanged.

9. 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 7.

10. 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-7.