Home model generation method, device, equipment and storage medium

By responding to user operations, determining the framework model of the home model and installing target components, it solves the problem that users find it difficult to quickly adjust the parameters of the home model, and achieves convenient component addition and design flexibility.

CN119047015BActive Publication Date: 2025-02-11HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411515925.X
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-10-28
Publication Date
2025-02-11
Estimated Expiration
2044-10-28

AI Technical Summary

Technical Problem

During the home model design process, it is difficult for users to quickly and conveniently adjust the size, layout and laminate parameters of the home model.

Method used

By responding to user actions, determine the frame model of the home model and create drawing planes and drawing types based on the coordinate system of the framework model. Using the operation trajectory in the screen coordinate system, determine the target components corresponding to the operation trajectory, and install the target components into the framework model based on the model structure of the framework model.

Benefits of technology

It realizes that the components that users expect can be added through a simple operation trajectory, lowers the operation threshold, improves the flexibility and scalability of design, simplifies the process of component addition, and uses a more intuitive and fast interaction method.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119047015B_ABST
    Figure CN119047015B_ABST
Patent Text Reader

Abstract

The present disclosure provides a method, device, equipment and storage medium for generating a home model. The present disclosure relates to the field of computer technology, and in particular to technical fields such as 3D home model generation and intelligent interaction. The method includes: in response to a first user operation, determining a framework model of the home model; in response to a second user operation, determining a drawing plane and a drawing type created based on a coordinate system of the framework model; in response to an operation track in a screen coordinate system, determining a target component corresponding to the operation track in the drawing type based on the drawing plane; using the model structure of the framework model as a constraint, installing the target component into the framework model with reference to the structural process requirements of the target component. The solution proposed based on the embodiment of the present disclosure can simplify the process of adding components, and use a more intuitive and fast interaction method, so that users can generate home models more quickly.
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 the technical fields of 3D (3 Dimensions) home model generation, intelligent interaction, etc. Background Art

[0002] In the process of decoration, the user may design an indoor home model. For example, the home model includes a wardrobe, a tatami, etc. In the process of designing the home model, there is a need to adjust the size, pattern, and layer boards. Therefore, how to adjust the size, pattern, and layer boards of the home model conveniently and quickly is a problem currently faced. Summary of the invention

[0003] The present disclosure provides a method, device, equipment and storage medium for generating a home model to solve or alleviate one or more technical problems in the prior art.

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

[0005] In response to a first user operation, determining a framework model of a home model;

[0006] In response to a second user operation, determining a drawing plane created based on a coordinate system of the framework model and a drawing type;

[0007] In response to the operation track in the screen coordinate system, determining a target component corresponding to the operation track in the drawing type based on the drawing plane;

[0008] Taking the model structure of the framework model as a constraint, the target component is installed into the framework model with reference to the structural process requirements of the target component.

[0009] In a second aspect, the present disclosure provides a device for generating a home model, comprising:

[0010] A first processing module, configured to determine a framework model of a home model in response to a first user operation;

[0011] A second processing module, configured to determine, in response to a second user operation, a drawing plane created based on a coordinate system of the framework model and a drawing type;

[0012] A third processing module, configured to respond to the operation track in the screen coordinate system and determine a target component corresponding to the operation track in the drawing type based on the drawing plane;

[0013] The installation module is used to install the target component into the framework model with reference to the structural process requirements of the target component and taking the model structure of the framework model as a constraint.

[0014] In a third aspect, an electronic device is provided, including:

[0015] at least one processor; and

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

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

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

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

[0020] The beneficial effects of the technical solution provided by the present disclosure include at least: the target component desired by the user can be obtained based on a simple operation trajectory, which can reduce the operation threshold, so that the user can add components based on simple operations. At the same time, combined with the visual drawing plane, the user can intuitively observe the placement of the components in the home model, which improves the flexibility and scalability of the design. Based on the solution proposed in the embodiment of the present disclosure, there is no need to preset the specific parameters of all components in advance or manually calculate the specific parameters of the components (such as position and size), which simplifies the process of adding components and uses a more intuitive and fast interaction method, so that users can complete the component addition process more quickly.

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

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

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

[0024] Figure 2 is a first schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0025] Figure 3 is another flowchart of a method for generating a home model according to an embodiment of the present disclosure;

[0026] Figure 4 is a second schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0027] Figure 5 is a third schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0028] Figure 6 is a fourth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0029] Figure 7 is a fifth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0030] Figure 8 is a sixth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0031] Fig. 9 is a seventh schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0032] Fig.10 is an eighth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0033] Fig.11 is a ninth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0034] Fig.12 is a tenth schematic diagram of a visualization interface according to an embodiment of the present disclosure;

[0035] Fig.13 is a schematic diagram of the overall process of a method for generating a home model according to an embodiment of the present disclosure;

[0036] Fig.14 is a structural schematic diagram of a device for generating a home model according to an embodiment of the present disclosure;

[0037] Fig.15 It is a block diagram of an electronic device used to implement the method for generating a home model according to an embodiment of the present disclosure. DETAILED DESCRIPTION

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

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

[0040] The terms "first", "second", etc. in this disclosure are used to distinguish similar objects, and are not necessarily used to describe a specific order or precedence. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, including a series of steps or units. The method, system, product or device is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0041] There are roughly two types of home design software on the market. One type requires all components in the home model to be preset in advance, which can be understood as the need to preset in advance which components the home model consists of, and the need to use parameter expressions or specify specific values ​​based on the size parameters of the home model to obtain the geometric expression of each component in the home model. Then, through the geometric expression of each component, the construction of the entire home model is completed. After the home model is built, if you want to continue adding components, you need to readjust the overall modeling of the home model and update each component of the home model to complete the addition of new components. The other type supports dynamic addition of components, but the user needs to calculate the geometric data such as the size and position of the component, and when adjusting the cabinet geometry data, the geometric data of the component cannot be automatically recalculated.

[0042] In view of this, a method for generating a home model is proposed in the embodiment of the present disclosure, which can make the process of adding components more convenient. Figure 1 As shown, including:

[0043] S101, in response to a first user operation, determining a framework model of a home model.

[0044] Exemplarily, the first user operation may be as follows: Figure 2 As shown in , clicking "Create Empty Cabinet" means that the user customizes the length, depth, and height of the home model, and can also obtain the corresponding finished model from the material library, thereby automatically extracting the length, depth, and height of the finished model to construct a frame model. It can be understood that any operation that can determine the length, depth, height, and other information of the home model can be operated by the first user.

[0045] The frame model can be understood as the smallest cube that can surround the home model. For example, when the home model is a wardrobe, the frame model can be the outer frame of the wardrobe.

[0046] S102: In response to a second user operation, determine a drawing plane and a drawing type created based on a coordinate system of a framework model.

[0047] When implemented, the drawing plane represents the reference plane selected by the user, and the coordinate system and the reference plane are combined to provide a visual display to the user, such as Figure 2 As shown, the drawing plane can be exemplarily any one of the front view, left view, top view, rear view, right view, and bottom view. Among them, the front view can be understood as the visual effect of the home model observed by the user from the front perspective of the home model; the left view can be understood as the visual effect of the home model observed by the user from the left perspective of the home model; the top view can be understood as the visual effect of the home model observed by the user from the top perspective of the home model; other drawing planes are similar to the above content, and the embodiments of the present disclosure will not explain them one by one. Based on the drawing plane, it is displayed to the user so that the user can generate a home model through simple and intuitive visualization operations.

[0048] The drawing type indicates the component type included in the home model. Exemplary drawing types include cabinet panels, skirting boards, drawers, wardrobe ducts, end panels, pull strips, and door panels. Drawing types can be adaptively increased or decreased based on subsequent usage.

[0049] In addition to the above two operations, since each user may have different requirements for components, each user can customize the component material, component color, texture, component thickness and other information based on actual conditions. For example, the component thickness can be set to 18mm, and the component texture can be walnut grain. Each information can be preset based on the visual interface for component-related content in the home model, so that the home model is closer to the user's expectations.

[0050] S103 , in response to the operation track in the screen coordinate system, determining a target component corresponding to the operation track in the drawing type based on the drawing plane.

[0051] During implementation, the operation trajectory is the trajectory from the starting point to the end point drawn by the user.

[0052] When the user uses a computer mouse, the operation track can be understood as the user pressing the left mouse button and starting to drag continuously until the user completes the drawing and releases the left mouse button to obtain the corresponding operation track.

[0053] In addition, when the user uses a touch screen, the operation track can be understood as the user using a stylus to start dragging continuously until the user completes drawing and lifts the stylus to obtain the corresponding operation track.

[0054] It should be noted that no matter what kind of drawing tool is used, any method that can express the user's drawing intention can be applied to the embodiments of the present disclosure, and the embodiments of the present disclosure are not limited to this.

[0055] S104, using the model structure of the framework model as a constraint and referring to the structural process requirements of the target component, installing the target component into the framework model.

[0056] During implementation, the size information of the model structure of the framework model is used as a constraint. The structural process requirements of each target component may be different, so the target component needs to be installed into the framework model based on the structural process requirements corresponding to the target component.

[0057] It should be noted that S101-S104 is the installation process of any target component in the home model. Each home model may include multiple components. When multiple components are installed, a further improved home model is obtained.

[0058] In the disclosed embodiment, the target component desired by the user can be obtained based on a simple operation trajectory, which can lower the operation threshold, so that the user can complete the component adding process based on simple operations. At the same time, combined with the visual drawing plane, the user can intuitively observe the placement of the components in the home model, which improves the flexibility and scalability of the design. Based on the solution proposed in the disclosed embodiment, there is no need to preset the specific parameters of all components in advance or manually calculate the specific parameters of the components (such as position and size), which simplifies the process of adding components and uses a more intuitive and fast interaction method, so that the user can complete the component adding process more quickly.

[0059] In some embodiments, the target component corresponding to the operation trajectory in the drawing type is determined based on the drawing plane, such as Figure 3 As shown, it can be implemented as:

[0060] S301, extracting the starting point and the ending point of the operation trajectory.

[0061] The starting point is the position where the user presses the left mouse button, and the ending point is the position where the user releases the left mouse button.

[0062] It should be noted that the mouse is only used for exemplary description, and gesture touch and stylus touch are both within the protection scope of the embodiments of the present disclosure.

[0063] S302, mapping the starting point and the end point from the screen coordinate system to the coordinate system of the framework model to obtain a 3D line.

[0064] During implementation, the coordinates of the starting point and the ending point need to be mapped from the screen coordinate system to the coordinate system of the frame model first, and the coordinates of the starting point and the ending point in the coordinate system of the frame model are obtained, which can be understood as the starting coordinates and the ending coordinates. By connecting the starting coordinates and the ending coordinates, the 3D line can be determined.

[0065] In addition, for the convenience of users, the starting point and the ending point can be mapped from the screen coordinate system to the coordinate system of the framework model to obtain the starting coordinates and the ending coordinates respectively through Unity (game engine), Unreal Engine (Unreal Engine), OpenGL (Open Graphics Library), etc.

[0066] S303, projecting the 3D line onto the drawing plane to obtain a drawing line.

[0067] For example, Figure 4 As shown, when the user selects the front view as the drawing plane, the black solid line on the right is the drawing line, and the black spheres at both ends are the starting point and the ending point.

[0068] Among them, due to the limited precision of manual operation, the operation trajectory may have jitter or deviation. For the user's intuitive experience, the starting point and the end point can be extracted, and then based on the mapping method, the user can get what he sees, and intuitively feel the drawing line obtained based on the operation trajectory. Figure 4 As shown, the drawn line appears in the form of a line segment.

[0069] S304, identifying the direction attribute and / or position attribute of the drawn line.

[0070] The direction attribute may include horizontal line, vertical line, oblique line, etc.

[0071] In some embodiments, identifying the direction attribute of the drawing line may be implemented as follows: when the angle between the drawing line and the horizontal axis in the drawing plane is less than a first preset angle, determining that the direction attribute of the drawing line is a horizontal line.

[0072] During implementation, the coordinate system in which the drawing line is located is a two-dimensional coordinate system, the horizontal axis is exemplarily the x-axis, the vertical axis is the y-axis, and the first preset angle can be exemplarily 15°. In this case, Figure 4 As shown by the plotted line, assuming Figure 4 When the angle between the drawn line and the x-axis is 10°, since the angle between the drawn line and the x-axis is less than 15°, the direction attribute of the drawn line is determined to be a horizontal line.

[0073] It should be noted that the aforementioned numerical values ​​are only used for illustrative purposes and can be adjusted based on actual conditions.

[0074] In the embodiment of the present disclosure, since manual operation may cause deviations in the angle of the drawn line, a method of using an angle less than a first preset angle with the horizontal axis in the drawing plane is used to achieve recognition of the direction attribute of the drawn line as a horizontal line, thereby ensuring the user's fault tolerance to a large extent. Based on this method, the accuracy is guaranteed while reducing the complexity of the operation.

[0075] In some embodiments, identifying the direction attribute of the drawing line may be implemented as follows: when the angle between the drawing line and the vertical axis in the drawing plane is less than a second preset angle, determining that the direction attribute of the drawing line is a vertical line.

[0076] Based on the foregoing knowledge, the vertical axis is the y-axis, and the second preset angle can be 15° for example. In this case, when the angle between the drawn line and the y-axis is 10°, since the angle between the drawn line and the y-axis is less than 15°, the direction attribute of the drawn line is determined to be a vertical line.

[0077] In the embodiment of the present disclosure, based on the difference information between the angle of the drawing line and the vertical axis, the deviation caused by the user in the drawing process is guaranteed to a large extent. When the difference information is less than the second preset angle, the direction attribute of the drawing line is identified as a vertical line. While ensuring the accuracy, the whole operation is simple and easy to implement.

[0078] In some embodiments, identifying the direction attribute of a drawing line can be implemented as follows: calculating the angle between the drawing line and each coordinate axis in the drawing plane, and determining the coordinate axis with the smallest angle as the first coordinate axis; when the angle between the drawing line and the first coordinate axis is not less than a third preset angle, determining the direction attribute of the drawing line to be a diagonal line.

[0079] During implementation, when the third preset angle is exemplarily 15°, the angle between the drawn line and each coordinate axis is calculated. When the angle between the drawn line and the x-axis is 30° and the angle between the drawn line and the y-axis is 60°, the x-axis is determined to be the first coordinate axis. In addition, if it is determined that the angle between the drawn line and the x-axis is greater than the third preset angle, it is determined to be a diagonal line.

[0080] It should be noted that the first preset angle, the second preset angle, and the third preset angle may be the same or different, and may be adjusted based on actual conditions, which is not limited in this embodiment of the present disclosure.

[0081] In the embodiment of the present disclosure, the direction attribute of the drawn line is identified as a diagonal line based on the angle, and a relatively simple method can be used to ensure the user's error tolerance.

[0082] In some embodiments, identifying the position attribute of the drawing line can be implemented as follows: projecting the drawing line and the frame model of the home model onto the drawing plane; and determining the position attribute of the drawing line based on the positional relationship between the projection of the drawing line and the projection of the frame model.

[0083] The position attribute of the drawing line includes that the drawing line is located inside the frame model of the home model or the drawing line is located on the facade of the frame model of the home model.

[0084] In the disclosed embodiment, the projection-based method can enable the user to draw in a flexible manner so that what the user sees is what the user gets. Guided by the user's operation trajectory, in order to accurately understand the drawing intention, the position attributes of the drawing line can be accurately identified based on the projection method, thereby laying the foundation for accurately identifying the location of the target component.

[0085] In some embodiments, the position attribute of the drawing line is determined based on the positional relationship between the projection of the drawing line and the projection of the frame model. This can be implemented as follows: when the projection of the drawing line does not cross the projection of the frame model and the projection of the drawing line all falls within the projection of the frame model, the position attribute of the drawing line is determined to be inside the frame model of the home model.

[0086] Specific as Figure 5 As shown, when all the drawing lines are located within the projection of the framework model, the position attribute of the drawing lines is determined to be inside the framework model of the home model.

[0087] It can be understood that the components that need to be drawn by the drawing line are shelves, drawers, clothes hangers and other components.

[0088] In the disclosed embodiment, based on the visualization interface, the user can flexibly draw the home model to obtain the drawing line, and then further identify the position of the drawing line based on the projection method, and identify that the position attribute of the drawing line is that the drawing line is inside the frame model of the home model.

[0089] In some embodiments, the position attribute of the drawing line is determined based on the positional relationship between the projection of the drawing line and the projection of the frame model. This can be implemented as follows: when the projection of the drawing line does not cross the projection of the frame model and the projection of the drawing line all falls outside the projection of the frame model, the position attribute of the drawing line is determined to be on the facade of the frame model of the home model.

[0090] Specific as Figure 6 As shown, when all the drawing lines are located outside the projection of the frame model, the position attribute of the drawing lines is determined to be on the facade of the frame model of the home model.

[0091] It can be understood that the target component to be drawn by the drawing line may be a side panel, a finishing strip, or other components.

[0092] In the disclosed embodiment, based on a visualization interface, the user can flexibly and dynamically draw the home model, so that the user can visually obtain the drawing lines, and then further identify the position of the drawing lines based on projection, and identify the position attribute of the drawing lines as being located on the facade of the frame model of the home model.

[0093] In some embodiments, determining the position attribute of the drawing line based on the positional relationship between the projection of the drawing line and the projection of the framework model may be implemented as follows:

[0094] Step A1, when the projection of the drawing line crosses the projection of the framework model, determine the first ratio and the second ratio; wherein the first ratio represents the ratio of the line segment of the drawing line projection falling within the projection of the framework model to the overall line segment of the drawing line; the second ratio represents the ratio of the line segment of the drawing line projection falling outside the projection of the framework model to the overall line segment of the drawing line.

[0095] Step A2: when the first proportion is greater than the second proportion, determine the position attribute of the drawing line to be inside the frame model of the home model.

[0096] Specific as Figure 7 As shown on the left, the projection part of the drawing line falling within the frame is larger than the projection part falling outside the frame. In this case, the position attribute of the drawing line is determined to be inside the frame model of the home model.

[0097] Step A3, when the first proportion is not greater than the second proportion, determining the position attribute of the drawing line to be on the facade of the frame model of the home model.

[0098] Specific as Figure 7 As shown on the right, the projection part of the drawing line falling within the frame is smaller than the projection part falling outside the frame. In this case, the position attribute of the drawing line is determined to be inside the frame model of the home model.

[0099] In the disclosed embodiment, taking into account the user's operating habits and the possible errors in gesture drawing, the position attribute of the drawing line can be determined based on the position ratio of the projection of the drawing line and the projection of the framework model to ensure the accuracy of the position attribute of the drawing line.

[0100] S305 , determining a target component corresponding to the drawing line based on different direction attributes and / or position attributes and the corresponding relationship between different component types in the drawing type.

[0101] In some embodiments, based on different direction attributes and the correspondence between different component types in the drawing type, determining the target component corresponding to the drawing line may exemplarily include:

[0102] When the drawing type is drawer and the direction attribute is horizontal line, the target component is determined to be a horizontal drawer.

[0103] In some embodiments, when the drawing type is a drawer and the direction attribute is a horizontal line, the attribute parameters of the drawer can be customized by the user, and its visual interface is exemplarily as follows: Figure 8 As shown in the figure, the left half is the preset operation of the attribute parameters of the drawer, and the right half is the real-time preview effect of the drawer. The attribute parameters of the drawer may include alignment, drawer height, drawer style, masking method, baffle parameters, etc.

[0104] When the drawing type is a drawer and the direction attribute is a vertical line, the target component is determined to be a vertical drawer.

[0105] When the drawing type is cabinet panel and the direction attribute is oblique line, the target component is determined to be the back panel.

[0106] Other drawing types can have corresponding preset operations of attribute parameters, and the embodiment of the present disclosure does not explain each interface one by one. The attribute parameters corresponding to each drawing type can be set based on actual conditions. For example, the attribute parameters of the cabinet panel can include component thickness, the attribute parameters of the door panel can include door panel style, door panel material, etc., and the attribute parameters of the closing strip can include information such as the width of the closing strip. The specific attribute parameters included in each drawing type can be determined based on actual conditions, and the embodiment of the present disclosure does not limit them here.

[0107] It should be noted that the above is only an exemplary description, and there may be other corresponding relationships, which will not be described one by one in the embodiments of the present disclosure.

[0108] In some embodiments, based on the correspondence between different position attributes and different component types in the drawing type, determining the target component corresponding to the drawing line may exemplarily include:

[0109] When the drawing type is a drawer and the location attribute is inside the frame model of the home model, the target component is determined to be a drawer.

[0110] It should be noted that the above is only an exemplary description, and there may be other corresponding relationships, which are not limited in the embodiments of the present disclosure.

[0111] In some embodiments, based on the correspondence between different direction attributes and position attributes and different component types in the drawing type, determining the target component corresponding to the drawing line may exemplarily include:

[0112] When the drawing type is cabinet panel, the direction attribute is horizontal line, and the position attribute is inside the frame model of the home model, the target component is determined to be the shelf.

[0113] When the drawing type is a cabinet panel, the direction attribute is a horizontal line, and the position attribute is the facade of a frame model of a home model, the distance between the drawing line and the top and bottom surfaces of the frame model can be calculated. When it is determined that the distance between the drawing line and the top surface is closer than the distance to the bottom surface, the target component is determined to be the top panel; when it is determined that the distance between the drawing line and the top surface is farther than the distance to the bottom surface, the target component is determined to be the bottom panel.

[0114] When the drawing type is cabinet panel, the direction attribute is vertical line, and the location attribute is inside the frame model of the home model, the target component is determined to be the middle vertical board, which can be understood as the longitudinal partition in the cabinet.

[0115] When the drawing type is a cabinet panel, the direction attribute is a vertical line, and the position attribute is the facade of a frame model of a home model, the distance between the drawing line and the left and right sides of the frame model can be calculated. When it is determined that the distance between the drawing line and the right side is closer than the distance to the left side, the target component is determined to be the right panel; when it is determined that the distance between the drawing line and the right side is farther than the distance to the left side, the target component is determined to be the left panel.

[0116] It should be noted that the above description is only for illustrative purposes, and there may be other corresponding relationships, which are not limited in the embodiments of the present disclosure.

[0117] In the disclosed embodiment, the starting point and the end point of the operation trajectory are extracted and mapped to obtain an accurate drawing line, and then based on the direction attribute and / or position attribute of the drawing line combined with the correspondence between different component types in the drawing type, an accurate target component is obtained. In addition, considering the errors in the user's drawing process, the positional relationship between the component and the framework model can be automatically adjusted based on the projection of the drawing line and the framework model, avoiding the tedious steps of manual recalculation and adjustment by the user, so that the user can complete the component addition process more quickly. Therefore, on the basis of facilitating user operation, the accuracy of the component installation into the framework model can also be taken into account.

[0118] In some embodiments, the target component is installed into the framework model with reference to the structural process requirements of the target component, which can be implemented as follows:

[0119] Step A1, projecting the panels in the frame model that are perpendicular to the drawing plane onto the drawing plane to obtain a home mapping plane.

[0120] The framework model here may exemplarily be a framework model initially set by the user, or may be a home model in which the user has placed at least one component.

[0121] like Fig. 9As shown, when the drawing plane is a front view, the frame model is projected onto the drawing plane, and the resulting home mapping plane is a rectangular frame.

[0122] Step A2: project the drawing line onto the home mapping plane to determine at least one target sub-component into which the target component is divided by the home mapping plane.

[0123] In some embodiments, when the location attribute of the drawn line is inside the framework model of the home model and there is no intersection with the home mapping plane, the number of target components is determined to be one.

[0124] Specific as Fig. 9 As shown, if there is no intersection between the projection of the drawn line and the projection of the framework model, the number of target subcomponents is determined to be one.

[0125] In some embodiments, when the location attribute of the drawn line is inside the framework model of the home model and there is an intersection with the home mapping plane, the number of target components is determined to be multiple.

[0126] Specific as Fig.10 As shown, the drawn line intersects with the middle vertical board of the home model and is divided into two target subcomponents, which are located on the left and right sides of the middle vertical board respectively.

[0127] Step A3: Install at least one target subassembly into the framework model with reference to the corresponding structural process requirements.

[0128] In the disclosed embodiment, the structural condition of the framework model is taken into consideration, and the drawing lines obtained in a user-visualized manner are combined so that the user can see what he gets, and the free placement of components is realized, making the components more adaptable. In addition, each component has corresponding structural process requirements, and the components are placed based on the corresponding structural process requirements, so that the components are closer to the user's expectations.

[0129] In some embodiments, when the target component is a closing strip, the target component is installed into the frame model with reference to the structural process requirements of the target component, which can be implemented as follows:

[0130] Step B1, determining the center position based on the starting point and the ending point of the operation trajectory.

[0131] During implementation, the center coordinates of the starting point and the end point can be taken and the center coordinates can be determined as the center position. For example, the coordinates of the starting point and the end point on the x-axis are added and then the average is taken as the x-axis coordinate of the center position, and the coordinates of other coordinate axes are determined in the same way to finally obtain the coordinates of the center position.

[0132] Step B2: based on the center position, select the board surface to be adsorbed from the framework model.

[0133] Among them, the distance between the center position and each component in the framework model can be calculated, and the component closest to it is determined as the board to be adsorbed. Among them, the distance between the center position and the center point of each component can be calculated, and the distance between the vertices can also be calculated. It should be noted that the method for calculating the position of each component must be the same. For example, the distance between the center position and the upper left vertex of each component can be calculated, and the embodiments of the present disclosure are not limited to this.

[0134] Step B3, determining the size coordinates of the target component based on the vertex coordinates of the board surface to be adsorbed.

[0135] In some embodiments, when the reference information is the vertex coordinates of each face, determining the size coordinates of the target component in the direction of the second coordinate axis based on the reference information, wherein the second coordinate axis is at least one of the x-axis, the y-axis, and the z-axis, can be implemented as follows:

[0136] Step B31, when the structural process requirements require that the preset distance of the target component is less than or equal to the default value, the candidate coordinates are determined as the size coordinates of the target component in the direction of the second coordinate axis, wherein the preset distance is the distance between the target component and the candidate coordinates, and the candidate coordinates are the coordinates of the reference information on the second coordinate axis.

[0137] Among them, the width of the closing strip can be customized.

[0138] The default value may be 0.

[0139] When implemented, the directions of the x, y, and z axes are as follows Fig.11 As shown, when the closing strip is the left closing strip, the board to be adsorbed is the left board. In this visualization interface, the visualized part of the target component is the front surface, and the visualized part of the left board is also the front surface. When the front surface of the target component and the front surface of the left board are required to be in the same plane. For example, the width of the front surface of the left board is n, and the height is m, then the coordinates of O1 and O2 are (-n, 0, m), (-n, 0, 0), as shown in FIG. Fig.11 The upper right corner and lower right corner of the target component are O1 and O2, and their vertex coordinates are (-n, 0, m) and (-n, 0, 0). Assuming that the custom width of the closing strip is r, the vertex coordinates of the upper left corner O4 and the lower left corner O3 of the target component are (-nr, 0, m) and (-nr, 0, 0), respectively, and the size information of the front surface of the target component is obtained. When the thickness of the custom closing strip is h, the coordinates of the four vertices O1', O2', O3', and O4' on the back surface of the target component are ( Fig.11The vertex coordinates of the front and rear surfaces are (-n, h, m), (-n, h, 0), (-nr, h, 0), and (-nr, h, m). By combining the vertex coordinates of the front and rear surfaces, the size coordinates of the target component can be obtained.

[0140] It should be noted that n, m, r, and h are all numbers greater than or equal to 0.

[0141] Step B32, when the preset distance of the target component is required to be a specified distance in the structural process requirements, the coordinates of the candidate coordinates at the specified distance are determined as the size coordinates of the target component in the direction of the second coordinate axis.

[0142] For example, if the specified distance is 20 mm, Fig.11 For example, the target component is the left closing strip, and the board to be adsorbed is the left board. Then the distance between the target component and the left board needs to be 20mm.

[0143] It should be noted that the aforementioned numerical values ​​are only used for illustrative purposes and are not limited to the embodiments of the present disclosure.

[0144] In the embodiment of the present disclosure, whether there is a requirement for a preset distance of the target component in the structural process requirements can be determined by combining the vertex coordinates of the plate surface to be adsorbed, and this method ensures accuracy while being simple to operate.

[0145] Step B4, filling the target component into the framework model based on the size coordinates.

[0146] In the disclosed embodiment, the board surface to be adsorbed is first screened based on the drawn lines, and then the size coordinates of the target component are determined based on the vertex coordinates of the board surface to be adsorbed. Based on this method, a high degree of adaptability between the target component and the framework model can be achieved.

[0147] In some embodiments, when the target component is a cabinet component other than a closing strip, the target component is installed into the frame model with reference to the structural process requirements of the target component, which can be implemented as follows:

[0148] Step C1, determining the center position based on the starting point and the ending point of the operation trajectory.

[0149] The method of determining the center position has been described above, and the embodiments of the present disclosure will not be described in detail here.

[0150] In step C2, the target space is filtered out from the framework model based on the center position.

[0151] During implementation, searches are performed from the center position in six directions (positive x-axis, negative x-axis, positive y-axis, negative y-axis, positive z-axis, negative z-axis), and when boundaries are found, the target space consisting of the six boundaries is determined. Fig.12 As shown in the figure, the upper part of the frame model where the line is drawn is the target space.

[0152] Step C3, determining the vertex coordinates of each face in the target space.

[0153] Step C4, determining the size coordinates of the target component based on the vertex coordinates of each face.

[0154] In some embodiments, when the reference information is the vertex coordinates of the board to be adsorbed, the size coordinates of the target component in the direction of the second coordinate axis are determined based on the reference information, wherein the second coordinate axis is at least one of the x-axis, the y-axis, and the z-axis, which can be implemented as follows:

[0155] Step C41, when the structural process requirements require that the preset distance of the target component is less than or equal to the default value, the candidate coordinates are determined as the size coordinates of the target component in the direction of the second coordinate axis, wherein the preset distance is the distance between the target component and the candidate coordinates, and the candidate coordinates are the coordinates of the reference information on the second coordinate axis.

[0156] When implemented, the directions of the x, y, and z axes are as follows Fig.12 As shown, when the target component is a layer board, the thickness of the layer board can be customized by the user. If the user does not customize it, the thickness can be determined as the default thickness. An exemplary target thickness is 18 mm. Specifically, the center position determined based on the operation trajectory can be determined as the height of the center point of the layer board, and the z-axis coordinate of the layer board can be obtained by moving the center position determined based on the operation trajectory on the z-axis to obtain the coordinates of the layer board on the z-axis. Exemplarily, the center position determined based on the operation trajectory is amm, and the thickness of the layer board is 18mm, then the coordinates of the upper surface of the target component in the z-axis direction are (a+9) mm, and the coordinates of the lower surface in the z-axis direction are (a-9) mm. In the x-axis direction and the y-axis direction, the coordinates of the top plate or the bottom plate can be determined as the coordinates of the layer board in the x-axis direction and the y-axis direction. Exemplarily, the coordinates of the upper surface of the base plate are A1 (0, 0, 0), A2 (0, b, 0), A3 (c, b, 0), and A4 (c, 0, 0). Therefore, the coordinates of the upper surface of the target component can be, in clockwise order, (0, 0, a+9), (0, b, a+9), (c, b, a+9), (c, 0, a+9), and the same is true for the lower surface. Therefore, the size information of the target component is obtained.

[0157] Among them, a, b, and c are all numbers greater than or equal to 0.

[0158] Step C42, when the preset distance of the target component is required to be a specified distance in the structural process requirements, the coordinates of the candidate coordinates that are the specified distance are determined as the size coordinates of the target component in the direction of the second coordinate axis.

[0159] During implementation, taking the drawer as the target component as an example, when the structural process requirements require that the preset distance of the target component be a specified distance, since the height of the drawer is preset, except for the coordinate axis where the drawer is located, the coordinates in the directions of other coordinate axes need to be away from the corresponding surface in the target space by a specified distance. If there are no other requirements, the coordinate point where the drawer is at a specified distance from the left and right panels can be determined as the size coordinate.

[0160] In the embodiment of the present disclosure, whether there is a requirement for a preset distance of the target component in the structural process requirements can be determined by combining the vertex coordinates of each face in the target space to determine the size coordinates of the target type. This method is simple to operate and ensures accuracy.

[0161] Step C5, filling the target component into the framework model based on the size coordinates.

[0162] In the disclosed embodiment, a target space is obtained by screening based on the center position of a drawn line, so that the target component is fixed within the target space, thereby reducing the calculation range and improving the fit between the target component and the framework.

[0163] In addition, after the user completes the placement of the target component, the user can also modify the component by dragging the component to make the target component closer to the user's expectations.

[0164] In order to facilitate understanding of the method for generating a home model proposed in the embodiment of the present disclosure, the overall flow chart of the method is as follows: Fig.13 As shown, specifically including:

[0165] S1301, in response to a first user operation, determining a framework model of a home model;

[0166] S1302, in response to a second user operation, determining a drawing plane and a drawing type created based on a coordinate system of the framework model;

[0167] S1303, obtaining a drawing line based on the operation trajectory;

[0168] S1304, identifying the direction attribute and / or position attribute of the drawn line;

[0169] S1305, determining a target component corresponding to the drawing line based on the correspondence between different direction attributes and / or position attributes and different component types in the drawing type;

[0170] S1306, using the model structure of the framework model as a constraint and referring to the structural process requirements of the target component, installing the target component into the framework model.

[0171] In summary, the method for generating a home model proposed in the embodiments of the present disclosure can have the following effects:

[0172] 1. Dynamically add components:

[0173] Through the user's gesture drawing process, users can add components flexibly and dynamically, which improves the flexibility and scalability of the design. At the same time, there is no need to preset all components in advance or manually calculate component information, which simplifies the process of adding components.

[0174] 2. Reduce user workload:

[0175] Combined with the spatial structure of the home model, it can automatically identify and adapt to the layout of the home model, reducing the workload of users to input and calculate. At the same time, users can intuitively complete the placement of components through the process of gesture drawing, reducing the complexity of operation and time cost.

[0176] 3. Improve design efficiency:

[0177] A more intuitive and faster interaction method is achieved, allowing users to complete the component adding process more quickly. In addition, the system can automatically adjust the position and size of components according to the gesture drawing process, avoiding the tedious steps of users needing to manually recalculate and adjust.

[0178] 4. Reduce errors:

[0179] Since users draw directly through gestures, errors caused by human factors can be reduced and the accuracy and consistency of design results can be improved.

[0180] Based on the same technical concept, a device 1400 for generating a home model is proposed in the embodiment of the present disclosure. Fig.14 As shown, including:

[0181] The first processing module 1401 is used to determine a framework model of a home model in response to a first user operation;

[0182] The second processing module 1402 is used to determine the drawing plane and the drawing type created based on the coordinate system of the framework model in response to the second user operation;

[0183] The third processing module 1403 is used to determine, in response to the operation track in the screen coordinate system, a target component corresponding to the operation track in the drawing type based on the drawing plane;

[0184] The installation module 1404 is used to install the target component into the framework model with reference to the structural process requirements of the target component, taking the model structure of the framework model as a constraint.

[0185] In some embodiments, the third processing module includes:

[0186] An extraction unit, used for extracting a starting point and an ending point of the operation trajectory;

[0187] A mapping unit, used for mapping the starting point and the ending point from the screen coordinate system to the coordinate system of the frame model to obtain a 3D line;

[0188] A projection unit, used for projecting the 3D line onto a drawing plane to obtain a drawing line;

[0189] An identification unit, used for identifying a direction attribute and / or a position attribute of a drawn line;

[0190] The determination unit is used to determine the target component corresponding to the drawing line based on different direction attributes and / or position attributes and the corresponding relationship between different component types in the drawing type.

[0191] In some embodiments, the identification unit is specifically configured to:

[0192] When the angle between the drawing line and the horizontal axis in the drawing plane is smaller than the first preset angle, the direction attribute of the drawing line is determined to be a horizontal line.

[0193] In some embodiments, the identification unit is specifically configured to:

[0194] When the angle between the drawing line and the vertical axis in the drawing plane is smaller than the second preset angle, the direction attribute of the drawing line is determined to be a vertical line.

[0195] In some embodiments, the identification unit is specifically configured to:

[0196] Calculate the angles between the drawing line and each coordinate axis in the drawing plane, and determine the coordinate axis with the smallest angle as the first coordinate axis;

[0197] When the angle between the drawing line and the first coordinate axis is not less than a third preset angle, the direction attribute of the drawing line is determined to be an oblique line.

[0198] In some embodiments, the identification unit is used to:

[0199] Project the drawing lines and the frame model of the home model onto the drawing plane;

[0200] Based on the positional relationship between the projection of the drawing line and the projection of the framework model, a positional attribute of the drawing line is determined.

[0201] In some embodiments, the identification unit is specifically configured to:

[0202] When the projection of the drawing line does not cross the projection of the frame model and the projection of the drawing line all falls within the projection of the frame model, the position attribute of the drawing line is determined to be inside the frame model of the home model.

[0203] In some embodiments, the identification unit is specifically configured to:

[0204] When the projection of the drawing line does not cross the projection of the frame model and the projection of the drawing line all falls outside the projection of the frame model, the position attribute of the drawing line is determined to be on the facade of the frame model of the home model.

[0205] In some embodiments, the identification unit is specifically configured to:

[0206] In the case where the projection of the drawing line crosses the projection of the framework model, a first proportion and a second proportion are determined; wherein the first proportion represents the ratio of the line segment of the drawing line whose projection falls within the projection of the framework model to the entire line segment of the drawing line; and the second proportion represents the ratio of the line segment of the drawing line whose projection falls outside the projection of the framework model to the entire line segment of the drawing line;

[0207] When the first proportion is greater than the second proportion, determining the position attribute of the drawing line to be inside the frame model of the home model;

[0208] When the first proportion is not greater than the second proportion, the position attribute of the drawing line is determined to be on the facade of the frame model of the home model.

[0209] In some embodiments, installing a module includes:

[0210] A home mapping unit, used for projecting the panels in the frame model that are perpendicular to the drawing plane onto the drawing plane to obtain a home mapping plane;

[0211] A subcomponent determining unit, configured to project the drawing line onto the home mapping plane, and determine at least one target subcomponent into which the target component is divided by the home mapping plane;

[0212] The generation unit is used to install at least one target subassembly into the framework model with reference to the corresponding structural process requirements.

[0213] In some embodiments, when the target component is a banding strip, the installation module is specifically used to:

[0214] Determine the center position based on the starting point and the ending point of the operation trajectory;

[0215] Based on the center position, the board surface to be adsorbed is selected from the framework model;

[0216] Based on the vertex coordinates of the board surface to be adsorbed, the size coordinates of the target component are determined;

[0217] Populate the target component into the frame model based on the size coordinates.

[0218] In some embodiments, when the target component is a cabinet component other than a closing strip, the installation module is specifically used to:

[0219] Determine the center position based on the starting point and the ending point of the operation trajectory;

[0220] Filtering the target space from the framework model based on the center position;

[0221] Determine the vertex coordinates of each face in the target space;

[0222] Based on the vertex coordinates of each face, determine the size coordinates of the target component;

[0223] Populate the target component into the frame model based on the size coordinates.

[0224] In some embodiments, when the reference information is the vertex coordinates of each face or the vertex coordinates of the board to be adsorbed, wherein the second coordinate axis is at least one of the x-axis, the y-axis, and the z-axis, a coordinate determination module is further included for:

[0225] In the case where the preset distance of the target component is required to be less than or equal to a default value in the structural process requirements, the candidate coordinates are determined as the size coordinates of the target component in the direction of the second coordinate axis, wherein the preset distance is the distance between the target component and the candidate coordinates, and the candidate coordinates are the coordinates of the reference information on the second coordinate axis;

[0226] When the preset distance of the target component is required to be a specified distance in the structural process requirements, the coordinates of the candidate coordinates at the specified distance are determined as the size coordinates of the target component in the direction of the second coordinate axis.

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

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

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

[0230] If the memory 1510, the processor 1520 and the communication interface 1530 are implemented independently, the memory 1510, the processor 1520 and the communication interface 1530 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.15 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.

[0231] Optionally, in a specific implementation, if the memory 1510, the processor 1520 and the communication interface 1530 are integrated on a chip, the memory 1510, the processor 1520 and the communication interface 1530 can communicate with each other through an internal interface.

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

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

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

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

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

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

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

[0239] 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 method for generating a home model, comprising: In response to a first user operation, determining a framework model of a home model; In response to a second user operation, determining a drawing plane created based on the coordinate system of the framework model and a drawing type; In response to the operation track in the screen coordinate system, determining a target component corresponding to the operation track in the drawing type based on the drawing plane; Taking the model structure of the framework model as a constraint and referring to the structural process requirements of the target component, the target component is installed into the framework model; The step of determining the target component corresponding to the operation track in the drawing type based on the drawing plane includes: Extracting the starting point and the ending point of the operation trajectory; Mapping the starting point and the ending point from the screen coordinate system to the coordinate system of the framework model to obtain a 3D line; Projecting the 3D line onto the drawing plane to obtain a drawing line; Identifying a direction attribute and / or a position attribute of the drawn line; Based on the different direction attributes and / or the position attributes, and the corresponding relationship between different component types in the drawing type, determining the target component corresponding to the drawing line; Wherein, the identifying the position attribute of the drawing line includes: Projecting the drawing line and the frame model of the home model onto the drawing plane; Based on the positional relationship between the projection of the drawing line and the projection of the framework model, a positional attribute of the drawing line is determined.

2. The method according to claim 1, wherein: The identifying the direction attribute of the drawn line includes: When the angle between the drawing line and the horizontal axis in the drawing plane is smaller than a first preset angle, the direction attribute of the drawing line is determined to be a horizontal line.

3. The method according to claim 1, wherein: The identifying the direction attribute of the drawn line includes: When the angle between the drawing line and the vertical axis in the drawing plane is smaller than a second preset angle, the direction attribute of the drawing line is determined to be a vertical line.

4. The method according to claim 1, wherein: The identifying the direction attribute of the drawn line includes: Calculating the angles between the drawing line and each coordinate axis in the drawing plane, and determining the coordinate axis with the smallest angle as the first coordinate axis; When the angle between the drawing line and the first coordinate axis is not less than a third preset angle, the direction attribute of the drawing line is determined to be an oblique line.

5. The method according to claim 1, wherein: The determining the position attribute of the drawing line based on the positional relationship between the projection of the drawing line and the projection of the framework model includes: When the projection of the drawing line does not cross the projection of the framework model and the projection of the drawing line all falls within the projection of the framework model, the position attribute of the drawing line is determined to be inside the framework model of the home model.

6. The method according to claim 1, wherein: The determining the position attribute of the drawing line based on the positional relationship between the projection of the drawing line and the projection of the framework model includes: When the projection of the drawing line does not cross the projection of the frame model and the projection of the drawing line all falls outside the projection of the frame model, the position attribute of the drawing line is determined to be on the facade of the frame model of the home model.

7. The method according to claim 1, wherein: The determining the position attribute of the drawing line based on the positional relationship between the projection of the drawing line and the projection of the framework model includes: In the case where the projection of the drawing line crosses the projection of the framework model, a first proportion and a second proportion are determined; wherein the first proportion represents the ratio of the line segment of the drawing line projection falling within the projection of the framework model to the entire line segment of the drawing line; and the second proportion represents the ratio of the line segment of the drawing line projection falling outside the projection of the framework model to the entire line segment of the drawing line; When the first proportion is greater than the second proportion, determining the position attribute of the drawing line to be inside the frame model of the home model; When the first proportion is not greater than the second proportion, the position attribute of the drawing line is determined to be on the facade of the frame model of the home model.

8. The method according to any one of claims 1 to 7, wherein: The step of installing the target component into the framework model with reference to the structural process requirements of the target component includes: Projecting the panels in the frame model that are perpendicular to the drawing plane onto the drawing plane to obtain a home mapping plane; Projecting the drawing line onto the home mapping plane to determine at least one target subcomponent into which the target component is divided by the home mapping plane; At least one of the target subassemblies is installed into the framework model with reference to the corresponding structural process requirements.

9. The method according to claim 1, wherein: In the case where the target component is a closing strip, the step of installing the target component into the frame model with reference to the structural process requirements of the target component includes: Determining a center position based on a starting point and an ending point of the operation trajectory; Based on the center position, selecting the board surface to be adsorbed from the framework model; Determining the size coordinates of the target component based on the vertex coordinates of the surface to be adsorbed; The target component is filled into the frame model based on the size coordinates.

10. The method according to claim 1, wherein: In the case where the target component is a cabinet component other than the closing strip, the step of installing the target component into the frame model with reference to the structural process requirements of the target component includes: Determining a center position based on a starting point and an ending point of the operation trajectory; Filtering a target space from the framework model based on the center position; Determining the vertex coordinates of each face in the target space; Determining the size coordinates of the target component based on the vertex coordinates of each face; The target component is filled into the frame model based on the size coordinates.

11. The method according to claim 9 or 10, wherein: In the case where the reference information is the vertex coordinates of each face or the vertex coordinates of the board to be adsorbed, the size coordinates of the target component in the direction of the second coordinate axis are determined based on the reference information, wherein the second coordinate axis is at least one of the x-axis, the y-axis, and the z-axis, including: In the case where the preset distance of the target component is required to be less than or equal to a default value in the structural process requirements, the candidate coordinates are determined as the size coordinates of the target component in the direction of the second coordinate axis, wherein the preset distance is the distance between the target component and the candidate coordinates, and the candidate coordinates are the coordinates of the reference information on the second coordinate axis; In the case where the preset distance of the target component is required to be a specified distance in the structural process requirements, the coordinates at the specified distance from the candidate coordinates are determined as the size coordinates of the target component in the direction of the second coordinate axis.

12. A device for generating a home model, comprising: A first processing module, configured to determine a framework model of a home model in response to a first user operation; A second processing module, configured to determine, in response to a second user operation, a drawing plane created based on the coordinate system of the framework model and a drawing type; A third processing module, configured to determine, in response to the operation track in the screen coordinate system, a target component corresponding to the operation track in the drawing type based on the drawing plane; An installation module, used to install the target component into the framework model with reference to the structural process requirements of the target component, taking the model structure of the framework model as a constraint; Wherein, the third processing module is used for: Extracting the starting point and the ending point of the operation trajectory; Mapping the starting point and the ending point from the screen coordinate system to the coordinate system of the framework model to obtain a 3D line; Projecting the 3D line onto the drawing plane to obtain a drawing line; Identifying a direction attribute and / or a position attribute of the drawn line; Based on the different direction attributes and / or the position attributes, and the corresponding relationship between different component types in the drawing type, determining the target component corresponding to the drawing line; Wherein, the identifying the position attribute of the drawing line includes: Projecting the drawing line and the frame model of the home model onto the drawing plane; Based on the positional relationship between the projection of the drawing line and the projection of the framework model, a positional attribute of the drawing line is determined.

13. 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 11.

14. 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-11.

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

Citation Information

Patent Citations

  • Portable furniture model exhibiting device customized for smart home

    AU2020103073A4

  • Furniture active customization method and active customization device

    CN111400960A