A three-dimensional model generation method, device, equipment and storage medium

By acquiring the outline information and line laying parameters of the wall panel, generating and editing the line preview path, the problem of inconvenient generation of 3D models of wall panel lines in the existing technology is solved, and the rapid generation and editing of 3D models of wall panel lines is realized.

CN114004930BActive Publication Date: 2025-12-12GUANGDONG SANWEIJIA INFORMATION TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202111267483.8
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2021-10-28
Publication Date
2025-12-12
Estimated Expiration
2041-10-28

AI Technical Summary

Technical Problem

Existing 3D home design software cannot generate 3D models of wainscoting lines and does not support three-axis lofting, making it inconvenient to generate wainscoting lines.

Method used

By acquiring the outline information and line laying parameters of the wall panel in the preset mode, a line preview path is generated, and a 3D model of the wall panel lines is generated based on the line preview path and laying parameters, allowing users to edit and loft the lines.

Benefits of technology

It enables rapid generation and editing of 3D models of wall panel lines, allowing for real-time display and adjustment within a 3D scene, facilitating user viewing and editing.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114004930B_ABST
    Figure CN114004930B_ABST
Patent Text Reader

Abstract

Embodiments of the present application relate to a kind of generation method, device, equipment and storage medium of three-dimensional model, comprising: in preset mode, the contour information of target wainscot in display interface is acquired, and the line laying parameter of the target wainscot is acquired, the line laying parameter includes: line category information;According to the contour information and the line category information, the line preview path of the target wainscot is generated;According to the line preview path and the line laying parameter, wainscot line three-dimensional model is generated.Thereby, it can be realized according to wainscot and user demand generation wainscot line three-dimensional model, and can be edited by user to wainscot line, it is simple to operate, can be conveniently and quickly in three-dimensional scene Real-time generation corresponding wainscot line.
Need to check novelty before this filing date? Find Prior Art

Description

TECHNICAL FIELD

[0001] The embodiment of the present application relates to the technical field of three-dimensional home decoration, and particularly relates to a three-dimensional model generation method, device, equipment and storage medium. BACKGROUND

[0002] Three-dimensional home decoration design software is widely used in the decoration industry, which helps designers to intuitively display the design scheme. At present, the three-dimensional home decoration design software on the market cannot generate wainscot lines in the front-end design, and cannot support three-axis lofting. Specifically, there is no three-dimensional home decoration design software on the market that is specially designed for full-category line process of real wood wainscot in the front end, and it is very inconvenient to generate a three-dimensional model of wainscot lines. SUMMARY

[0003] In view of this, in order to solve the technical problem of inconvenient generation of a three-dimensional model of wainscot lines, the embodiment of the present application provides a three-dimensional model generation method, device, equipment and storage medium.

[0004] In a first aspect, the embodiment of the present application provides a three-dimensional model generation method, comprising:

[0005] In a preset mode, the contour information of a target wainscot in a display interface is acquired, and the line paving parameters of the target wainscot are acquired, the line paving parameters comprising: line category information;

[0006] A line preview path of the target wainscot is generated according to the contour information and the line category information;

[0007] A three-dimensional model of wainscot lines is generated according to the line preview path and the line paving parameters.

[0008] In a possible implementation, the preset mode is a wainscot line drawing mode.

[0009] The line paving parameters of the target wainscot are acquired, comprising:

[0010] The line height information, line material information and line category information corresponding to the target wainscot are acquired as the line paving parameters.

[0011] In a possible implementation, the method further comprises:

[0012] When a trigger operation on a target object in the display interface is detected, the preset mode is entered according to the trigger operation, and the target wainscot is determined from the display interface according to the trigger operation.

[0013] In a possible implementation, the determining the target wainscot according to the trigger operation from the display interface comprises:

[0014] After performing the selection operation on the at least one wainscot in the display interface, the at least one wainscot is determined as the target wainscot according to the trigger operation;

[0015] Or,

[0016] When no selection operation is performed on the wainscot in the display interface, all the wainscots in the display interface are determined as the target wainscot according to the trigger operation.

[0017] In a possible implementation, the method further comprises:

[0018] displaying the line preview path in the display interface;

[0019] receiving an editing operation on the line preview path;

[0020] performing an updating operation on the line preview path according to the editing operation.

[0021] In a possible implementation, the performing the updating operation on the line preview path according to the editing operation comprises:

[0022] when a line that has generated the line preview path is selected, performing a deleting operation on the line that has generated the line preview path;

[0023] when a line that has not generated the line preview path is selected, performing an adding operation on the line that has not generated the line preview path.

[0024] In a possible implementation, the method further comprises:

[0025] obtaining first coordinate information of the target wainscot in the display interface and second coordinate information of other objects in the display interface;

[0026] generating a line preview path of the target wainscot according to the first coordinate information and the second coordinate information;

[0027] performing lofting according to the line preview path to generate a wainscot line three-dimensional model.

[0028] In a second aspect, an embodiment of the present application provides a three-dimensional model generation device, comprising:

[0029] an obtaining module, configured to, in a preset mode, obtain contour information of a target wainscot in a display interface, and obtain line paving parameters of the target wainscot, the line paving parameters comprising: line category information;

[0030] generating a line preview path of the target wainscot according to the contour information and the line category information;

[0031] The generating module is further configured to generate a wainscot line three-dimensional model according to the line preview path and the line paving parameter.

[0032] In a third aspect, an apparatus is provided, including a processor and a memory, the processor being configured to execute a three-dimensional model generation program stored in the memory to implement the three-dimensional model generation method of any one of the first aspect.

[0033] In a fourth aspect, a storage medium is provided, characterized in that the storage medium stores one or more programs, and the one or more programs are executable by one or more processors to implement the three-dimensional model generation method of any one of the first aspect.

[0034] The three-dimensional model generation scheme provided by the embodiments of the present application can realize the generation of the three-dimensional model of the wainscot line according to the wainscot and the user demand, and can edit the wainscot line by the user, quickly edit the worktop mask, and generate the corresponding special-shaped worktop in real time in the three-dimensional scene, so that the user can view and edit conveniently. BRIEF DESCRIPTION OF DRAWINGS

[0035] Figure 1 A flowchart of a three-dimensional model generation method provided by the embodiments of the present application;

[0036] Figure 2 A structural schematic diagram of a three-dimensional model generation device provided by the embodiments of the present application;

[0037] Figure 3 A structural schematic diagram of an apparatus provided by the embodiments of the present application;

[0038] Figure 4 A schematic diagram of a first three-dimensional model generation method provided by the embodiments of the present application;

[0039] Figure 5 A schematic diagram of a second three-dimensional model generation method provided by the embodiments of the present application;

[0040] Figure 6A third three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0041] Figure 7 A fourth three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0042] Figure 8 A fifth three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0043] Figure 9 A sixth three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0044] Figure 10 A seventh three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0045] Figure 11 An eighth three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram.

[0046] Figure 12 A ninth three-dimensional model generation method provided by an embodiment of the present application is shown in the schematic diagram. DETAILED DESCRIPTION

[0047] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in connection with the drawings of the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of the present application.

[0048] To make the objectives, technical solutions and advantages of the embodiments of the present application clearer, the technical solutions in the embodiments of the present application will be described below in connection with the drawings of the embodiments of the present application. Obviously, the described embodiments are some but not all of the embodiments of the present application. Based on the embodiments of the present application, all other embodiments obtained by those of ordinary skill in the art without creative efforts belong to the scope of the present application.

[0049] Figure 1 A flowchart of a three-dimensional model generation method provided by an embodiment of the present application is shown in FIG. 1, which specifically includes the following steps. Figure 1

[0050] S11, in a preset mode, obtaining contour information of a target wainscot in a display interface, and obtaining line height information, line material information and line category information corresponding to the target wainscot as the line paving parameters.

[0051] The three-dimensional model generation method provided by the embodiments of the present application is applied to a home decoration design software, which can be a three-dimensional home design software, a drawing software, etc., and specifically generates corresponding wainscot lines by obtaining wainscot information and paving parameter information.​

[0052] In the embodiment, the preset mode can be a wainscot line drawing mode, in which a three-dimensional model of a wainscot line can be generated and displayed. The display interface can include a three-dimensional scene for displaying a pre-generated three-dimensional model of a room, a three-dimensional model of an object in the room, and a three-dimensional model of a wainscot that has been tiled in the room. The target wainscot is a wainscot that needs to be tiled with a line, and the target wainscot can be selected by a user. The contour information is a contour corresponding to an area of the target wainscot that needs to be tiled with a line. The line height information is used to indicate the tiling width of the line. The line material information is used to indicate the material used to generate the line, and can include but is not limited to style information, material information, color information, etc. The line category information is used to indicate the position of the generated line in the wainscot, and can include a top line, a waist line, a foot line, a closing line, a connecting line, a background line, a house top corner line, and a house skirting line, etc.

[0053] In an optional solution of the embodiment, the tiling of the wainscot in the three-dimensional scene is first completed, and when a trigger operation on a target object in the display interface is detected, the preset mode is entered according to the trigger operation. The target object can be a trigger key in the display interface for entering the line installation. The method for entering the preset mode according to the trigger operation can include the following modes: mode one, entering the three-dimensional home software, selecting the wainscot, clicking the right mouse button, moving the cursor to the line, and clicking the line installation; mode two, entering the three-dimensional home software, selecting the wainscot, moving the cursor to the installation in the header menu, and clicking the line installation; mode three, also entering the three-dimensional home software, clicking the right mouse button in the blank, moving the cursor to the line, and clicking the line installation; mode four, also entering the three-dimensional home software, and directly moving the cursor to the installation in the header menu and clicking the line installation to enter the wainscot line drawing mode.

[0054] Further, the method for determining the target wainscot from the display interface according to the trigger operation can include: if mode one or mode two is used to enter the preset mode, the selected wainscot is the target wainscot; and if mode three or mode four is used to enter the preset mode, all the wainscots in the display interface are the target wainscots.

[0055] In an optional solution provided in the embodiment, a schematic diagram of a three-dimensional model generation method of a wainscot line includes:

[0056] Figure 4 First, the wainscot is tiled according to the requirements of the process design;

[0057] Figure 5 Through the menu bar at the top, click installation, and select the line;

[0058] Figure 6 Or, right-click in the non-wainscot area, select all lines, and perform line category selection;

[0059] Figure 7 Select the target wainscot, right-click the wainscot, select lines, and perform line category selection.

[0060] S12, generating a line preview path of the target wainscot according to the contour information and the line category information; and displaying the line preview path on the display interface.

[0061] In the embodiment, the contour information is the contour corresponding to the area of the target wainscot where the line is to be laid, the line category information can determine the position of the to-be-generated line in the contour information (for example, the line category information is a top line, and the position in the contour information is the top of the target wainscot), the line preview path is the path of the positions of all the to-be-generated wainscot lines on the target wainscot, which is used to show the positions of the to-be-generated lines to the user, and the display method can include: drawing the path of the to-be-generated line in a conspicuous color, and displaying the line preview path on the display interface, so as to facilitate the user to preview and adjust the to-be-generated line.

[0062] S13, receiving an editing operation on the line preview path, and performing an updating operation on the line preview path according to the editing operation.

[0063] In the embodiment, the editing operation can include a line deletion operation and a line addition operation. The updating operation can include deleting or adding the line preview path according to the editing operation, generating a new line preview path, and displaying the new line preview path on the display interface. The user triggers the editing operation on the line preview path, deletes or adds the line in the line preview path according to the editing operation, and generates a new line preview path.

[0064] Further, when a line of the generated line preview path is selected, a deletion operation is performed on the line of the generated line preview path; and when a line of the line preview path is selected, an addition operation is performed on the line of the line preview path.

[0065] Specifically, the editing operation on the preview path of the wainscot line can include the following two modes: Mode 1: a selected point is clicked by a mouse, and a line segment generation or non-generation option is popped up on the right side; the selected line segment preview path is changed to dark blue, the selected line segment preview path is set to a non-generation state according to a preset program, and the selected line segment is deleted; the line segment generation option is selected, the preview path is changed to green, the selected line segment preview path is set to a generation state according to the preset program, and the selected line segment is added; Mode 2: a selected line is clicked by the mouse, and the line segment generation or non-generation option is popped up on the right side; the selected line segment preview path is changed to dark blue, the selected line segment preview path is set to a non-generation state according to the preset program, and the selected line segment is deleted; the line segment generation option is selected, the preview path is changed to green, the selected line segment preview path is set to a generation state according to the preset program, and the selected line segment is added.

[0066] In an optional scheme provided in the embodiment of the application, a schematic diagram of a three-dimensional model generation method of a wainscot line includes the following steps.

[0067] Figure 8 : a waist line is selected, a waist line drawing mode is entered, a path line segment is clicked, and the line segment generation is clicked, so that the path is set to support the installation of the line segment (red represents selection, green represents support for installation, and blue represents non-support for installation) ;

[0068] Figure 9 : a cross section style of the line is selected, a material of the line is set, and the size of the cross section of the line is adjusted to change the original style.

[0069] S14: a wainscot line three-dimensional model is generated according to the line preview path and the line laying parameter.

[0070] In the embodiment, the wainscot line three-dimensional model refers to a three-dimensional model of a target wainscot line displayed in a three-dimensional scene in a display interface. The generation method can include the following steps: after entering a wainscot line drawing mode, a preset generation panel of a Tianjiantian installation is popped up on the right side of the display interface, a specified line lofting cross section and a material are selected to obtain line material information; a cross section height value is filled, and a line height information is obtained by clicking a confirm button; a right mouse button is clicked in a non-wainscot area of the display interface to select all lines, a type of the wainscot line is selected from the all lines to obtain line category information. The wainscot line is generated according to the data of the wainscot line preview path set just now.

[0071] In an optional solution of the first embodiment of the present application, the first coordinate information of the target wainscot in the display interface and the second coordinate information of other objects in the display interface can be acquired; the line preview path of the target wainscot is generated according to the first coordinate information and the second coordinate information; lofting is performed according to the line preview path to generate a wainscot line three-dimensional model.

[0072] Specifically, a preset algorithm is preset, which is used to calculate the wainscot line laying area according to the coordinate information of the wainscot line to be generated and the coordinate information of other objects. The first coordinate information can be two-dimensional coordinate information of the target wainscot in the wall, and the second coordinate information can be two-dimensional coordinate information of the surface of other objects close to the wall. The other objects can include doors, windows, columns and the like in the wainscot, and the other objects will affect the path of the wainscot line generation. For the line path not affected by other objects, lofting is directly performed according to the wainscot line preview path, that is, the line preview path is swept to generate a line three-dimensional model. For the path affected by other objects, the coordinate information of the wainscot line is determined according to the first coordinate information and the line height information, the coordinate information of the wainscot line is combined with the second coordinate information of the other objects, and the combined processing is performed on the coordinate information of the wainscot line by using the preset algorithm to obtain the processed line preview path. Lofting is performed on the line preview path, and finally the wainscot line three-dimensional model generated according to the lofting path is generated, and the wainscot line drawing mode is exited.

[0073] Further, the lofting according to the wainscot line preview path can include: presetting wainscot size data and a conversion rule. The size data includes the length, width, thickness of each wainscot line corresponding to different wainscot material information, and two-dimensional coordinate data in each wall. The conversion rule is used to convert the two-dimensional coordinate data in each wall into three-dimensional coordinate data in the target scene. The line preview path obtained in the above step is divided into laying data of the line in a single wainscot, the two-dimensional coordinate data in the target scene is converted into three-dimensional coordinate data according to the preset conversion rule, and a three-dimensional model of the wainscot in the three-dimensional scene is obtained.

[0074] In an optional solution provided by the embodiment of the present application, a schematic diagram of a three-dimensional model generation method of a wainscot line includes:

[0075] Figure 10 : waist line process installation effect display;

[0076] Figure 11 : enter the foot line drawing mode in the same way, select the line cross-section style, set the line material, and confirm generation;

[0077] Figure 12 : half-wall solid wood wainscot line overall process laying effect display.

[0078] Figure 2 A structural schematic diagram of a three-dimensional model generation device provided by an embodiment of the present application is shown in FIG. 1. As shown in the figure, the device specifically includes: Figure 2

[0079] An acquisition module 21 is configured to acquire contour information of a target wainscot in a display interface and acquire line paving parameters of the target wainscot in a preset mode, the line paving parameters including line category information.

[0080] A generation module 22 is configured to generate a line preview path of the target wainscot according to the contour information and the line category information.

[0081] The generation module 22 is further configured to generate a wainscot line three-dimensional model according to the line preview path and the line paving parameters.

[0082] In a possible implementation, the preset mode is a wainscot line drawing mode.

[0083] The acquisition module 21 is specifically configured to acquire line height information, line material information and the line category information corresponding to the target wainscot as the line paving parameters.

[0084] In a possible implementation, a determination module 23 is configured to enter the preset mode according to a trigger operation when detecting the trigger operation on a target object in the display interface, and determine the target wainscot from the display interface according to the trigger operation.

[0085] In a possible implementation, the determination module 23 is specifically configured to determine at least one wainscot in the display interface as the target wainscot according to the trigger operation after performing a selection operation on the at least one wainscot.

[0086] Or,

[0087] When no selection operation is performed on the wainscot in the display interface, determine all wainscots in the display interface as the target wainscot according to the trigger operation.

[0088] In a possible implementation, the generation module 22 is specifically configured to display the line preview path in the display interface.

[0089] Receive an editing operation on the line preview path.

[0090] Perform an updating operation on the line preview path according to the editing operation.

[0091] ​In a possible implementation, the generation module 22 is specifically configured to perform a deletion operation on the line that has generated the line preview path when the line that has generated the line preview path is selected;

[0092] perform an addition operation on the line that has not generated the line preview path when the line that has not generated the line preview path is selected.

[0093] In a possible implementation, the acquisition module 21 is specifically configured to acquire first coordinate information of the target guard plate in the display interface and second coordinate information of other objects in the display interface;

[0094] The generation module 22 is specifically configured to generate a line preview path of the target guard plate according to the first coordinate information and the second coordinate information.

[0095] According to the line preview path, lofting is performed to generate a guard plate line three-dimensional model.

[0096] The three-dimensional model generation apparatus provided in the embodiment can be an apparatus as shown in Figure 2 , can perform all steps of the three-dimensional model generation method in Figure 1 , and further realize the technical effects of the three-dimensional model generation method in Figure 1 . For brevity and conciseness, details are not described herein. Figure 1

[0097] Figure 3 A structural schematic diagram of a device provided in the embodiment of the present application is shown in Figure 3 The device 300 shown in the figure includes at least one processor 301, a memory 302, at least one network interface 304 and other user interfaces 303. The various components in the device 300 are coupled together through a bus system 305. It can be understood that the bus system 305 is used to realize the connection and communication between the components. The bus system 305 includes a data bus in addition to a power bus, a control bus and a status signal bus. However, for the sake of clarity, all kinds of buses are marked as the bus system 305 in the figure. Figure 3

[0098] The user interface 303 can include a display, a keyboard or a clicking device (for example, a mouse, a trackball, a touchpad or a touch screen, etc.).

[0099] ​​It is to be appreciated that the memory 302 in the embodiments of the present application can be a volatile memory or a nonvolatile memory, or can include both volatile and nonvolatile memory. Among them, the nonvolatile memory can be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically EPROM (EEPROM), or a flash memory. The volatile memory can be a Random Access Memory (RAM) used as an external cache. By way of example, and not limitation, many forms of RAM can be used, such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synch link DRAM (SLDRAM), and Direct Rambus RAM (DRRAM). The memory 302 described herein is intended to include, without being limited to, these and any other suitable types of memory.

[0100] In some embodiments, the memory 302 stores the following elements, executable units or data structures, or a subset of them, or an extended set of them: an operating system 3021 and an application program 3022.

[0101] Among them, the operating system 3021 contains various system programs, such as a framework layer, a core library layer, a driver layer, etc., for implementing various basic services and processing hardware-based tasks. The application program 3022 contains various application programs, such as a media player (Media Player), a browser (Browser), etc., for implementing various application services. The program for implementing the method embodiments of the present application can be contained in the application program 3022.

[0102] In the embodiments of the present application, by calling the programs or instructions stored in the memory 302, specifically, the programs or instructions stored in the application program 3022, the processor 301 is used to execute the method steps provided by each method embodiment, for example, including:

[0103] In a preset mode, profile information of a target wainscot in a display interface is acquired, and line laying parameters of the target wainscot are acquired, the line laying parameters comprising line category information;

[0104] A line preview path of the target wainscot is generated according to the profile information and the line category information;

[0105] A three-dimensional model of a wainscot line is generated according to the line preview path and the line laying parameters.

[0106] In a possible implementation, the preset mode is a wainscot line drawing mode;

[0107] The line height information, line material information and line category information corresponding to the target wainscot are acquired as the line laying parameters.

[0108] In a possible implementation, when a triggering operation on a target object in the display interface is detected, the preset mode is entered according to the triggering operation, and the target wainscot is determined from the display interface according to the triggering operation.

[0109] In a possible implementation, after a selection operation is performed on at least one wainscot in the display interface, the at least one wainscot is determined as the target wainscot according to the triggering operation;

[0110] Or,

[0111] When no selection operation is performed on the wainscot in the display interface, all the wainscots in the display interface are determined as the target wainscot according to the triggering operation.

[0112] In a possible implementation, the line preview path is displayed in the display interface;

[0113] An editing operation on the line preview path is received;

[0114] An updating operation is performed on the line preview path according to the editing operation.

[0115] In a possible implementation, when a line on which the line preview path has been generated is selected, a deleting operation is performed on the line on which the line preview path has been generated;

[0116] When a line on which the line preview path has not been generated is selected, an adding operation is performed on the line on which the line preview path has not been generated.

[0117] In a possible implementation, first coordinate information of the target wainscot in the display interface and second coordinate information of other objects in the display interface are acquired;

[0118] generating a line preview path of the target wainscot according to the first coordinate information and the second coordinate information;

[0119] According to the line preview path, lofting is performed to generate a wainscot line three-dimensional model.

[0120] The method disclosed in the embodiments of the present application can be applied to the processor 301 or implemented by the processor 301. The processor 301 can be an integrated circuit chip having a signal processing capability. In the implementation process, the steps of the above method can be completed by the integrated logic circuits or the software form instructions in the processor 301. The processor 301 described above can be a general processor, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components. The disclosed methods, steps and logic block diagrams in the embodiments of the present application can be implemented or executed. The general processor can be a microprocessor or the processor can also be any conventional processor. The steps of the method disclosed in combination with the embodiments of the present application can be directly embodied as a hardware code processor for execution, or a combination of hardware and software units in the code processor for execution. The software unit can be located in a random access memory, a flash memory, a read only memory, a programmable read only memory, an electrically erasable programmable memory, a register or other mature storage medium in the art. The storage medium is located in the memory 302, and the processor 301 reads the information in the memory 302 and combines the hardware to complete the steps of the above method.

[0121] It can be understood that the embodiments described herein can be realized by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), general purpose processors, controllers, micro-controllers, microprocessors, other electronic units for executing the functions described in the present application or a combination thereof.

[0122] For software implementation, the techniques described herein can be implemented by means of software programs. The software programs can be stored in memory and executed by processors. The memory can be implemented within the processors or externally to the processors.

[0123] The device provided by the embodiment can be a device as shown in Figure 3 , which can perform all steps of the generation method of the three-dimensional model as shown in Figure 1 , thereby achieving the technical effects of the generation method of the three-dimensional model as shown in Figure 1 . For details, please refer to the relevant description, which will not be repeated here for brevity. Figure 1

[0124] The embodiment of the present application also provides a storage medium (computer readable storage medium). The storage medium herein stores one or more programs. Wherein, the storage medium can include volatile memory, such as random access memory; the memory can also include non-volatile memory, such as read only memory, flash memory, hard disk or solid state disk; the memory can also include a combination of the above kinds of memory.

[0125] When the one or more programs in the storage medium can be executed by one or more processors to implement the above-mentioned generation method of three-dimensional model executed on the device side.

[0126] The processor is configured to execute the generation program of the three-dimensional model stored in the memory to implement the following steps of the generation method of the three-dimensional model executed on the device side:

[0127] In the preset mode, the contour information of the target wainscot in the display interface is acquired, and the line laying parameter of the target wainscot is acquired, the line laying parameter comprising: line category information;

[0128] The line preview path of the target wainscot is generated according to the contour information and the line category information;

[0129] The wainscot line three-dimensional model is generated according to the line preview path and the line laying parameter.

[0130] In one possible implementation, the preset mode is a wainscot line drawing mode.

[0131] The line height information, line material information and line category information corresponding to the target wainscot are acquired as the line laying parameter.

[0132] In one possible implementation, when the trigger operation on the target object in the display interface is detected, the preset mode is entered according to the trigger operation, and the target wainscot is determined from the display interface according to the trigger operation.​

[0133] In a possible implementation, after a selection operation is performed on at least one panel in the display interface, the at least one panel is determined as the target panel according to the trigger operation;

[0134] Or,

[0135] When no selection operation is performed on the panel in the display interface, all the panels in the display interface are determined as the target panel according to the trigger operation.

[0136] In a possible implementation, the line preview path is displayed in the display interface;

[0137] An editing operation on the line preview path is received;

[0138] An updating operation is performed on the line preview path according to the editing operation.

[0139] In a possible implementation, when a line that has generated the line preview path is selected, a deleting operation is performed on the line that has generated the line preview path;

[0140] When a line that has not generated the line preview path is selected, an adding operation is performed on the line that has not generated the line preview path.

[0141] In a possible implementation, first coordinate information of the target panel in the display interface and second coordinate information of other objects in the display interface are obtained;

[0142] The line preview path of the target panel is generated according to the first coordinate information and the second coordinate information;

[0143] The lofting is performed according to the line preview path, and a panel line three-dimensional model is generated.

[0144] Those skilled in the art should further appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of both. In order to clearly illustrate the interchangeability of hardware and software, each example has been described in general terms by function in the above description. Whether the functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Those skilled in the art can use different methods to implement the described functions for each specific application, but such implementation should not be considered beyond the scope of the present application.

[0145] The steps of a method or algorithm described in connection with the embodiments disclosed herein can be embodied directly in hardware, in a software module executed by a processor, or in a combination of the two. A software module can reside in random access memory (RAM), flash memory, read-only memory (ROM), electrically programmable ROM (EPROM), electrically erasable programmable ROM (EEPROM), registers, hard disk, a removable disk, a CD-ROM, or any other form of storage medium known in the art. An exemplary storage medium is coupled to the processor such that the processor can read information from, and

[0146] The above detailed description describes the purpose, technical solutions and beneficial effects of the present application. It should be understood that the above description is only a specific embodiment of the present application and is not intended to limit the protection scope of the present application. Any modification, equivalent replacement, improvement, etc. within the spirit and principles of the present application shall be included in the protection scope of the present application.

Claims

1. A method of generating a three-dimensional model, characterized by, The method comprises: when a triggering operation on a target object in a display interface is detected, entering a preset mode according to the triggering operation, and determining the target object from the display interface according to the triggering operation; in the preset mode, obtaining contour information of the target object in the display interface, and obtaining line paving parameters of the target object, wherein the preset mode is a wainscot line drawing mode; the line paving parameters of the target object comprise line height information, line material information and line category information corresponding to the target object; generating a line preview path of the target object according to the contour information and the line category information; generating a wainscot line three-dimensional model according to the line preview path and the line paving parameters; and obtaining first coordinate information of the target object in the display interface and second coordinate information of other objects in the display interface; generating a line preview path of the target object according to the first coordinate information and the second coordinate information; and lofting according to the line preview path to generate a wainscot line three-dimensional model; wherein a preset algorithm is preset, the preset algorithm is used to calculate a wainscot line paving area according to first coordinate information of a target wainscot line and second coordinate information of other objects, the first coordinate information is two-dimensional coordinate information of the target wainscot line in a wall, and the second coordinate information is two-dimensional coordinate information of a surface of the other objects close to the wall, the other objects include doors, windows and columns in the wainscot, and the other objects affect the path of the wainscot line; for a line path not affected by the other objects, lofting is directly performed according to the wainscot line preview path, that is, the line preview path is swept to generate a line three-dimensional model; for a path affected by the other objects, coordinate information of the wainscot line is determined according to the first coordinate information and the line height information, the coordinate information of the wainscot line is combined with the second coordinate information of the other objects, and the combined information is processed by the preset algorithm to obtain a processed line preview path; the line preview path is lofted, and finally a wainscot line three-dimensional model generated according to the lofting path is obtained, and the wainscot line drawing mode is exited; wherein lofting according to the wainscot line preview path comprises: presetting wainscot size data and a conversion rule, the size data comprises length, width, thickness and two-dimensional coordinate data of each wainscot line corresponding to different wainscot material information in each wall, and the conversion rule is used to convert the two-dimensional coordinate data in each wall into three-dimensional coordinate data in a target scene; the line preview path obtained in the above step is divided into paving data of lines in a single wainscot, the two-dimensional coordinate data in the target scene is converted into three-dimensional coordinate data according to the preset conversion rule, and a three-dimensional model of the wainscot in the three-dimensional scene is obtained.

2. The method of claim 1, wherein, The method comprises: after a selection operation is performed on at least one wainscot in the display interface, determining the at least one wainscot as the target object according to the triggering operation; or When no selection operation is performed on the wainscot in the display interface, all the wainscots in the display interface are determined as the target wainscot according to the trigger operation.

3. The method of claim 1, wherein, The method further comprises: displaying the line preview path in the display interface; receiving an editing operation on the line preview path; performing an updating operation on the line preview path according to the editing operation.

4. The method of claim 3, wherein, The performing of the updating operation on the line preview path according to the editing operation comprises: when a line that has generated the line preview path is selected, performing a deleting operation on the line that has generated the line preview path; when a line that has not generated the line preview path is selected, performing an adding operation on the line that has not generated the line preview path.

5. An apparatus for generating a three-dimensional model, characterized by comprising: comprise: a determining module configured to, when a trigger operation on a target object in a display interface is detected, enter a preset mode according to the trigger operation, and determine the target wainscot from the display interface according to the trigger operation; an obtaining module configured to, in the preset mode, obtain contour information of a target wainscot in a display interface, and obtain line paving parameters of the target wainscot, wherein the preset mode is a wainscot line drawing mode; a generating module configured to generate a line preview path of the target wainscot according to the contour information and the line category information; the generating module is further configured to generate a wainscot line three-dimensional model according to the line preview path and the line paving parameters; and the obtaining module is configured to obtain first coordinate information of the target wainscot in the display interface, and second coordinate information of other objects in the display interface; the generating module is configured to generate a line preview path of the target wainscot according to the first coordinate information and the second coordinate information, and perform lofting according to the line preview path to generate a wainscot line three-dimensional model; wherein the obtaining module is specifically configured to obtain line height information, line material information and the line category information corresponding to the target wainscot as the line paving parameters; wherein the generating module is configured to preset a preset algorithm, and the preset algorithm is used to calculate a wainscot line paving area according to first coordinate information of a wainscot line to be generated and second coordinate information of other objects, the first coordinate information being two-dimensional coordinate information of the target wainscot in a wall, and the second coordinate information being two-dimensional coordinate information of a surface of the other objects close to the wall, the other objects including doors, windows and columns in the wainscot, the other objects affecting a path of the wainscot line to be generated, for a line path not affected by the other objects, lofting is directly performed according to the line preview path, that is, the line preview path is swept to generate a line three-dimensional model; for a path affected by the other objects, coordinate information of the wainscot line is determined according to the first coordinate information and the line height information, the coordinate information of the wainscot line is combined with the second coordinate information of the other objects to be processed by the preset algorithm to obtain a processed line preview path, the line preview path is lofted, and finally a wainscot line three-dimensional model generated according to the lofting path is obtained, and the wainscot line drawing mode is exited. The generation module is configured to loft the wallboard line preview path according to preset wallboard size data and a conversion rule. The size data includes length, width, thickness of each wallboard line corresponding to different wallboard material information and two-dimensional coordinate data in each wall body. The conversion rule is configured to convert the two-dimensional coordinate data in each wall body into three-dimensional coordinate data in a target scene. The wallboard line preview path obtained in the above step is divided into wallboard line paving data in a single wallboard. The two-dimensional coordinate data in the target scene is converted into the three-dimensional coordinate data according to the preset conversion rule, and a three-dimensional model of the wallboard in the three-dimensional scene is obtained.

6. An apparatus, comprising: Comprise: A processor and a memory, the processor is used for executing the generation program of three-dimensional model stored in the memory, to realize the three-dimensional model generation method of any one of claims 1-4.

7. A storage medium, characterized by The storage medium stores one or more programs, which can be executed by one or more processors to realize the three-dimensional model generation method of any one of claims 1-4.

Citation Information

Patent Citations

  • Wall decoration design system and method, electronic equipment and computer program product

    CN107577887A

  • To-be-processed wall poster target line generation method and device

    CN111462277A