Furniture model trepanning method and equipment and storage medium
By displaying the existing hole position of the furniture model and the target plate to be opened in a 3D environment, users can more accurately select and set the hole position, solving the problem of low hole accuracy in the furniture model and improving production efficiency and user experience.
Patent Information
- Application Number
- CN202311093721.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2023-08-28
- Publication Date
- 2025-02-28
AI Technical Summary
In the furniture design process, how to improve the accuracy of holes on furniture models, reduce order refund rates, and improve customization and production efficiency.
By displaying a three-dimensional furniture model in a 3D environment, highlighting the target plate to be opened and existing hole positions, users can select appropriate hole positions according to spatial reference information to ensure that the hole positions are adapted to existing hole positions.
It improves the accuracy of hole openings on furniture models, reduces hole dislocation, improves user experience, and reduces the order return rate.
Smart Images

Figure CN119538423A_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a method, device and storage medium for drilling holes in a furniture model. Background Art
[0002] Home decoration furniture customization is a home customization solution that integrates furniture design and customization services. It is a home furnishing company that manufactures exclusive furniture for consumers based on the design requirements of consumers on the basis of large-scale production.
[0003] In the process of designing furniture, it is often necessary to drill holes in the customized furniture model to fix the furniture panels. Accurate drilling of holes in the furniture model can reduce the return rate and improve the efficiency of furniture customization and production. Therefore, how to improve the accuracy of drilling holes in furniture models is a technical problem that continues to be concerned in this field. Summary of the invention
[0004] Multiple aspects of the present application provide a method, device and storage medium for drilling holes in a furniture model, so as to improve the accuracy of drilling holes in the furniture model.
[0005] The present application provides a method for drilling holes in a furniture model, comprising:
[0006] Displaying a three-dimensional furniture model on the operation interface; the three-dimensional furniture model includes: a plurality of panels; the plurality of panels are connected to each other;
[0007] In response to a selection operation on a target panel among the plurality of panels, highlighting the target panel on the three-dimensional furniture model;
[0008] In the case where the three-dimensional furniture model has existing hole positions, displaying the existing hole positions on the three-dimensional furniture model;
[0009] In response to a hole drilling operation on the target plate, a first hole position matching the existing hole position is drilled in the target plate.
[0010] The embodiment of the present application further provides a computing device, comprising: a memory, a processor, and a display component; wherein the memory is used to store a computer program;
[0011] The processor is coupled to the memory and the display component, and is used to execute the computer program to perform the steps in the above-mentioned furniture model hole drilling method.
[0012] An embodiment of the present application also provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned furniture model hole drilling method.
[0013] In the embodiment of the present application, a three-dimensional furniture model can be displayed in a 3D environment, and the target panel to be drilled and the existing hole positions on the three-dimensional furniture model can be highlighted in the three-dimensional furniture model. Among them, displaying the three-dimensional furniture model and the existing hole positions in a 3D environment can provide spatial reference information for the user to drill holes on the target panel this time, so that the user can select a suitable position to set a hole position of a suitable size and direction on the target panel, which helps to improve the accuracy of drilling holes on the target panel. BRIEF DESCRIPTION OF THE DRAWINGS
[0014] The drawings described herein are used to provide a further understanding of the present application and constitute a part of the present application. The illustrative embodiments of the present application and their descriptions are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0015] Figure 1 and Figure 2 Schematic diagram of the hole-cutting process of the furniture model provided for the traditional solution;
[0016] Figure 3 A schematic diagram of a process for drilling holes in a furniture model provided in an embodiment of the present application;
[0017] Figure 4 A schematic diagram of a partial process of opening a hole in a furniture model provided in an embodiment of the present application;
[0018] Figure 5 A schematic diagram of the structure of a special-shaped plate provided in an embodiment of the present application;
[0019] Figure 6-Figure 8 A schematic diagram of the process of drilling holes in a furniture model provided in an embodiment of the present application;
[0020] Fig. 9 A schematic diagram of a process of opening a square hole on a regularly shaped plate provided in an embodiment of the present application;
[0021] Fig.10 A schematic diagram of a process of opening a circular hole on a regularly shaped plate provided in an embodiment of the present application;
[0022] Fig.11 and Fig.12 A schematic diagram of opening regular-shaped holes on a regular-shaped plate provided in an embodiment of the present application;
[0023] Fig.13 A schematic diagram of opening a special-shaped hole on a regular-shaped plate provided in an embodiment of the present application;
[0024] Fig.14 A schematic diagram of opening regular-shaped holes on a special-shaped plate provided in an embodiment of the present application;
[0025] Fig.15 A schematic diagram of opening a special-shaped hole on a special-shaped plate provided in an embodiment of the present application;
[0026] Fig.16 A schematic diagram of the hole position interference phenomenon provided in an embodiment of the present application;
[0027] Fig.17 A schematic diagram of the angle adjustment process provided in an embodiment of the present application;
[0028] Fig.18 A schematic diagram of the structure of a computing device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0029] In order to make the purpose, technical solution and advantages of the present application clearer, the technical solution of the present application will be clearly and completely described below in combination with the specific embodiments of the present application and the corresponding drawings. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present application.
[0030] In the process of customizing home furniture, it is often necessary to first drill holes in the furniture model customized by the software to fix the furniture panels. There are mainly the following drilling requirements in furniture customization: (1) Holes for fixing and installing panels: In order to fix other panels in the cabinet panel, holes can be drilled in the cabinet panel and the load-bearing plate to fix the panels; (2) Hinge holes: Holes are drilled in the cabinet door and cabinet to install hinges for fixing the door panels; (3) Hardware installation: Common hardware in cabinets include pull-out baskets, drawer rails, and cupboard racks; hardware in wardrobes include clothes hangers and push-openers, etc. These hardware also require drilling holes in the furniture panels; (4) Other holes, such as holes for sockets and lamps; for walls equipped with range hoods, customized cabinet panels also need to have corresponding ventilation holes.
[0031] In order to make holes in furniture models, in some traditional solutions, such as Figure 1 As shown in Figure (a), select the part to be drilled in the 3D furniture model; then, enter Figure 1 The two-dimensional (2D) environment shown in Figure (b) is used to draw the hole positions on the 2D board. Figure 1The 2D panel with holes shown in Figure (c) in the middle. However, with this hole-drilling method, the user only knows the relative position of the holes on the 2D panel, and cannot visually see which layer of the entire furniture model the current panel is in during the hole-drilling process, nor can it compare the relative position of the current panel with other panels. In the case of needing to match the holes on other panels (such as needing to align with the holes on other panels, etc.), it is also impossible to visually see whether the holes on other panels are matched.
[0032] In other traditional schemes, such as Figure 2 As shown in Figures (a)-(c), in a three-dimensional (3D) environment, for a 3D plate to be drilled, another 3D model for drilling holes can be drawn at the drilling position of the 3D plate. The shape and size of the 3D model are the shape and size of the hole to be drilled. Figure 2 As shown in Figure (c), holes can be formed by the difference between the 3D panel and the smaller 3D model. Although this hole-making method makes holes in panels in a 3D environment, users only know the relative positions of the holes on the 3D panel. During the hole-making process, users cannot intuitively see which layer of the entire furniture model the current 3D panel is, nor can they compare the relative positions of the current panel with other panels. In the case of needing to match the holes on other panels (such as needing to align with the holes on other panels, etc.), users cannot intuitively see whether the holes on other panels match.
[0033] Therefore, the hole-opening method provided by the above-mentioned traditional solution has a low accuracy in hole-opening during furniture model design, which also leads to misalignment of hole-opening positions during furniture panel processing, affecting user experience and causing a large number of order returns.
[0034] In order to improve the accuracy of drilling holes when designing furniture models, in some embodiments of the present application, the three-dimensional furniture model can be displayed in a 3D environment, and the target panel to be drilled and the existing hole positions on the three-dimensional furniture model can be highlighted in the three-dimensional furniture model. Among them, displaying the three-dimensional furniture model and the existing hole positions in a 3D environment can provide spatial reference information for the user to drill holes on the target panel this time, so that the user can select a suitable position to set a hole position of a suitable size and direction on the target panel, which helps to improve the accuracy of drilling holes on the target panel.
[0035] The technical solutions provided by various embodiments of the present application are described in detail below in conjunction with the accompanying drawings.
[0036] It should be noted that the same reference numerals denote the same objects in the following drawings and embodiments, and therefore, once an object is defined in one drawing or embodiment, it does not need to be further discussed in the subsequent drawings and embodiments.
[0037] Figure 3 This is a flow chart of the furniture model hole drilling method provided in the embodiment of the present application. The method can be applied to any electronic device with computing or data processing functions, such as computers, mobile phones, workstations and other terminal devices; of course, it can also be applied to server-side devices, such as a single server, a cloud server array, or a virtual machine (VM) running in a cloud server array. Figure 3 As shown, the furniture model hole opening method mainly includes the following steps:
[0038] 301. Display a three-dimensional furniture model on an operation interface; the three-dimensional furniture model includes: a plurality of panels; and the plurality of panels are connected to each other.
[0039] 302. In response to a selection operation on a target panel among the multiple panels, highlight the target panel on the three-dimensional furniture model.
[0040] 303. When existing holes exist in the three-dimensional furniture model, the existing holes are displayed on the three-dimensional furniture model.
[0041] 304. In response to the hole opening operation on the target panel, a first hole position having spatial information matching the existing hole position is opened in the target panel.
[0042] In the embodiment of the present application, Figure 3 and Figure 4 In step 301, a three-dimensional furniture model can be displayed on the operation interface. The three-dimensional furniture model includes: multiple panels. Multiple refers to 2 or more, which is specifically determined by the structure of the three-dimensional furniture model. The multiple panels included in the three-dimensional furniture model may include: cabinet panels, door panels, shelves and partitions inside the furniture, etc. Shelves refer to panels inside the furniture for placing objects (such as clothes, shoes, kitchen utensils, etc.); partitions refer to panels used to divide the internal space of the furniture. After the furniture is installed, the shelves are generally parallel to the ground, and the partitions are perpendicular to the ground.
[0043] The plate can be a regular-shaped plate or an irregular-shaped plate. Among them, a regular-shaped plate refers to a plate whose edge contour is a shape that can be defined and named, such as a regular-shaped plate such as a rectangle, circle, triangle, parallelogram or regular polygon. An irregular-shaped plate refers to a plate whose edge contour is an irregular shape. Generally, the number of bends when cutting the edge of an irregular-shaped plate is greater than or equal to the set number of cuts. The set number of cuts is greater than or equal to 3 cuts, etc. For example, Figure 5 (a)
[0044] like Figure 4As shown, there is a connection relationship between the multiple panels. In the embodiment of the present application, the connection relationship between the multiple panels includes: direct connection and / or indirect connection. Among them, the panels with direct contact surfaces are directly connected; the panels connected through other panels are indirectly connected.
[0045] In the embodiments of the present application, the connection method between the panels is not limited. Optionally, the panels can be aligned through holes and connected through fasteners at the holes. The fasteners can be nails, such as screws, straight nails or rivets, or hinges or hinges.
[0046] In this embodiment, holes need to be drilled in the panels for connection between panels, installation of hardware on furniture, and matching with other objects in the house, such as holes for sockets, holes for lamps, holes for range hood exhaust, or holes for water pipes. The user can select the target panel to be drilled from the 3D furniture model according to the actual drilling requirements. For example, the target panel to be drilled can be selected by moving the mouse or by touching the screen.
[0047] Accordingly, for an electronic device for performing a furniture hole opening method, Figure 3 and Figure 4 In step 302, in response to the selection operation for the target panel among the plurality of panels, the target panel may be highlighted on the three-dimensional furniture model. For example, in response to the selection operation for the target panel, the target panel may be highlighted on the three-dimensional furniture model with a different color, brightness, transparency and / or line thickness from other panels, but is not limited thereto.
[0048] In actual applications, before drilling holes in the target panel, the 3D furniture model has already set some holes, which are defined as existing holes. The existing holes can be some fixed holes in the 3D furniture model, such as the inherent holes used to connect panels. Of course, the existing holes can also include some holes set by the user before drilling holes in the target panel. Figure 3 and Figure 4 In step 303, if the three-dimensional furniture model has existing holes, the existing holes can be displayed on the three-dimensional furniture model. Optionally, if the three-dimensional furniture model has existing holes, the existing holes can be highlighted on the three-dimensional furniture model. For example, the existing holes can be highlighted on the three-dimensional furniture model with a different color, brightness, transparency and / or line thickness from other panels, but the present invention is not limited thereto.
[0049] Existing holes are displayed on the 3D furniture model, so that users can intuitively see the spatial information of the existing holes on the 3D furniture model, such as the position, shape, size and opening direction of the existing holes. In this way, when drilling holes in the target panel, the user can select the position, size and opening direction of the holes to be drilled in the target panel based on the spatial information of the existing holes on the 3D furniture model to match the existing holes. That is, the existing holes are displayed on the 3D furniture model, which can provide spatial reference information for users to drill holes on the target panel this time, so that users can select appropriate positions to set holes of appropriate size and direction on the target panel, which helps to improve the accuracy of drilling holes.
[0050] In some embodiments, the three-dimensional furniture model has a complex structure, and not all panels are associated with the target panel to be drilled. In an embodiment of the present application, panels associated with the target panel to be drilled may include: panels directly connected to the target panel and / or panels that have an upper and lower hierarchical relationship with the target panel. Panels that have an upper and lower hierarchical relationship with the target panel refer to: panels whose projection on the horizontal plane in the three-dimensional furniture model intersects with the projection of the target panel on the horizontal plane, such as panels whose projection on the horizontal plane overlaps with the projection of the target panel on the horizontal plane, etc. For example, Figure 4 and Figure 6 As shown, the upper and lower panels A and B of the target panel are panels that have an upper and lower hierarchical relationship with the target panel.
[0051] In practical applications, the hole positions on the panels that are not associated with the target panel to be drilled do not affect the drilling of the target panel. In order to facilitate the drilling operation on the target panel, only the local three-dimensional model including the target panel can be displayed. Specifically, in response to the selection operation for the target panel, the local three-dimensional model including the target panel can be determined from the three-dimensional furniture model according to the connection relationship between the multiple panels.
[0052] Optionally, according to the connection relationship between the multiple panels, a first panel directly connected to the target panel and a second panel having a hierarchical relationship with the target panel can be determined from the three-dimensional furniture model; further, a local three-dimensional model formed by the connection of the target panel, the first panel and the second panel can be determined. Figure 4 The three-dimensional furniture model shown in the figure, the local three-dimensional model obtained is as follows Figure 6 shown.
[0053] Furthermore, a partial three-dimensional model may be displayed, and the target panel may be highlighted on the partial three-dimensional model. For the specific implementation of highlighting the target panel, please refer to the above-mentioned content related to highlighting the target panel on the three-dimensional furniture model.
[0054] Accordingly, the existing hole positions on the three-dimensional furniture model can be realized as the existing hole positions on the partial three-dimensional model, that is, the existing hole positions can also be displayed on the partial three-dimensional model. Specifically, the existing hole positions can be highlighted on the partial three-dimensional model. Figure 6 Existing holes on the local three-dimensional model are not shown.
[0055] Further, combined with Figure 3 and Figure 6 In step 304, a first hole position may be opened on the target plate in response to the hole opening operation on the target plate, wherein the spatial information of the first hole position is adapted to the existing hole position.
[0056] In the embodiment of the present application, the spatial information of the hole refers to the information describing the spatial characteristics of the hole, including but not limited to: the position, size and opening direction of the hole, etc. Among them, the spatial information of the first hole is adapted to the existing hole, which means that the relative relationship between the spatial information of the first hole and the spatial information of the existing hole satisfies the set opening conditions.
[0057] The set hole opening conditions include, but are not limited to: the distance between holes on the same plate is not less than the set distance threshold, there is no hole interference between different holes, the holes on the plates with upper and lower hierarchical relationships for the same vertical objects to pass through are aligned up and down, and the holes on the plates that are symmetrical in the three-dimensional space model are symmetrically arranged, etc. Multiple means 2 or more.
[0058] In this embodiment, the three-dimensional furniture model can be displayed in a 3D environment, and the target panel to be drilled and the existing hole positions on the three-dimensional furniture model can be highlighted in the three-dimensional furniture model. Among them, displaying the three-dimensional furniture model and the existing hole positions in the 3D environment can provide spatial reference information for the user to drill holes on the target panel this time, so that the user can select a suitable position to set a hole position of a suitable size and direction on the target panel, which helps to improve the accuracy of drilling holes on the target panel.
[0059] When opening a first hole position whose spatial information matches the existing hole positions on the target panel, the user can operate the hole opening tool according to the existing hole positions displayed on the three-dimensional furniture model to make the spatial information of the opened first hole position match the existing hole positions.
[0060] In the embodiments of the present application, the shape of the hole is not limited. The shape of the hole can be a regular shape or a special shape. A regular-shaped hole means that the shape of the edge of the hole is regular and can be defined and named, such as a circle, square, triangle or parallelogram. A special-shaped hole means that the shape of the edge of the hole is irregular and cannot be defined and named.
[0061] In some embodiments of the present application, hole shapes can be provided in advance for the user to select. Accordingly, the operation interface includes a hole editing control, and the user clicks the hole editing control to display the pre-provided hole shape candidates. The hole editing control can be a control on the interface displaying the three-dimensional furniture model, or a control dispatched through the controls on the interface of the three-dimensional furniture model. For example, in combination with Figure 4 and Figure 6 , which can be triggered by Figure 4 The panel editing control on the interface of the three-dimensional furniture model is shown, and the Figure 6 The well editing controls are shown.
[0062] The hole shape candidates may include: at least one hole shape, generally including multiple hole shapes. Multiple refers to 2 or more. For example, the multiple hole shapes may include: regular hole shapes (such as round, square and triangle, etc.), and / or, special-shaped hole shapes. Special-shaped hole shapes may include 1 or more special-shaped hole shapes.
[0063] Accordingly, combined Figure 6 and Figure 7 For an electronic device that executes the above-mentioned furniture model hole drilling method, in response to a trigger operation on a hole editing control, hole shape candidates are displayed, such as Figure 7 shown. Figure 7 The hole shape candidates include square holes and circular holes as examples, but they are not limiting.
[0064] Furthermore, the user can select a target hole shape that meets his or her needs from the hole shape candidates according to the actual hole opening requirements. For an electronic device that executes the above-mentioned furniture model hole opening method, the spatial information of the first hole with the target hole shape can be obtained in response to the hole opening operation generated by the trigger of the target hole shape in the hole shape candidate. The spatial information of the first hole with the target hole shape is adapted to the spatial information of the existing hole. The target hole shape can be a regular hole shape or a special-shaped hole shape, which is flexibly determined by the user according to the actual hole opening requirements.
[0065] Further, if Figure 8 As shown, according to the spatial information of the first hole position with the target hole position shape, a first hole position with the target hole position shape and whose spatial information is adapted to the existing hole position can be opened on the target plate. Specifically, according to the position information, size and opening direction of the first hole position included in the spatial information of the first hole position, a first hole position with the target hole position shape and corresponding size can be opened at a corresponding position on the target plate according to a corresponding opening direction. Figure 8 The target hole shape is only illustrated as a square hole as an example, but it does not constitute a limitation.
[0066] Optionally, the spatial information of the first hole position having the target hole position shape is adapted to the spatial information of the existing hole position, and the user can determine the spatial information of the first hole position by moving the hole opening tool according to the existing hole position displayed on the three-dimensional space model. Fig. 9 and Fig.10 As shown, the user can select the starting position of the hole on the target panel, and determine the size and hole direction of the first hole by moving the hole-opening tool with the shape of the target hole. Among them, the starting position, size and hole-opening direction of the first hole are determined by the user based on the existing hole positions displayed on the three-dimensional space model and the actual hole-opening requirements. The user can intuitively understand the spatial information of the existing hole positions based on the existing hole positions displayed on the three-dimensional furniture model; and can determine the spatial information of the first hole position based on the perceived spatial information of the existing hole positions. Therefore, the existing hole positions displayed on the three-dimensional furniture model provide an intuitive reference for the user to determine the spatial information of the first hole position, which helps to improve the accuracy of the spatial information of the first hole position subjectively determined by the user, and then helps to improve the accuracy of the subsequent opening of the first hole position.
[0067] Accordingly, if Fig. 9 and Fig.10 As shown, for an electronic device that executes the above-mentioned furniture model hole punching method, in response to the hole punching operation generated by the triggering of the target hole shape in the hole shape candidate items, the movement trajectory of the hole punching tool with the target hole shape on the target plate is obtained. The movement trajectory of the hole punching tool with the target hole shape on the target plate is determined by the spatial information of the existing hole positions intuitively perceived by the user based on the displayed existing hole positions. Further, based on the movement trajectory of the hole punching tool with the target hole shape on the target plate, the position information of the first hole position with the target hole shape, the size of the first hole position with the target hole shape and the punching direction can be determined as the spatial information of the first hole position. Among them, the position information of the first hole position can be represented by the punching starting position of the first hole position. Fig. 9 and Fig.10 In the figure, only the opened holes are shown as square holes and circular holes, but this does not constitute a limitation.
[0068] In some embodiments, in order to facilitate the user to more intuitively perceive the spatial information of the first hole position opened, the distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position already on the target plate can be determined in real time during the movement of the hole opening tool; and the distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position already on the target plate can be displayed in real time during the movement of the hole opening tool. The user can determine the movement trajectory of the hole opening tool based on the displayed distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position already on the target plate, so that the spatial information of the first hole position determined based on the movement trajectory of the hole opening tool is compatible with the existing hole position (i.e., the second hole position) on the target plate.
[0069] For example, Fig.11 and Fig.12 As shown, regular-shaped holes are opened on a regular-shaped plate, the square holes are the first holes, the round holes and the irregular holes are the existing holes on the target plate, i.e. the second holes. The distance between the first hole and the second hole, and the distance between the first hole and the edge of the target plate can be displayed on the target plate. Fig.11 and Fig.12 The numbers on the scale indicate the distance, and the unit can be determined according to actual needs. Generally, the unit is centimeters (cm).
[0070] for Fig.12 In the case where there are multiple existing holes on the target plate, only the distance between the first hole and the second hole closest to it may be displayed. Fig.12 In the figure, only the second hole position closest to the first hole position is a circular hole as an example, but it does not constitute a limitation.
[0071] For example, Fig.13 As shown, a special-shaped hole is opened on a regular-shaped plate, and the circular hole is an existing hole on the target plate, i.e., the second hole. Then, the distance between the special-shaped hole and the second hole, and the distance between the special-shaped hole and the edge of the target plate can be displayed on the target plate. The distance between the special-shaped hole and the edge of the target plate is represented by the smallest rectangle orthogonal to the coordinate axes of the special-shaped hole and the target plate.
[0072] For example, Fig.14 In the example, a regular hole is opened on a special-shaped plate, the circular hole and the special-shaped hole are existing holes on the target plate, i.e., the second hole, and the square hole is the first hole opened. Then, the distance between the square hole and the second hole, and the distance between the square hole and the edge of the special-shaped plate can be displayed on the special-shaped plate. The distance between the square hole and the edge of the special-shaped plate can be represented by the shortest distance between the square hole and each edge of the special-shaped plate.
[0073] For example, Fig.15 As shown, a special-shaped hole is opened on the special-shaped plate, the circular hole is an existing hole on the special-shaped plate, that is, the second hole, and the special-shaped hole is the first hole opened. Then, the distance between the special-shaped hole and the second hole, and the distance between the special-shaped hole and the edge of the special-shaped plate can be displayed on the special-shaped plate. The distance between the special-shaped hole and the edge of the special-shaped plate can be represented by the smallest rectangle that is orthogonal to the coordinate axes of the special-shaped hole and the special-shaped plate.
[0074] In some embodiments, in order to prevent visual errors of the naked eye, when opening a first hole position whose spatial information matches the existing hole position on the target panel, the electronic device can also automatically determine the spatial information of the first hole position to be opened on the target panel based on the spatial information of the existing hole position on the three-dimensional furniture model. The spatial information of the first hole position matches the spatial information of the existing hole position. The spatial information of the existing hole position can be stored in the electronic device. For example, it can be stored in the electronic device in the form of a file. The electronic device can read the spatial information of the existing hole position from the stored file. Further, based on the spatial information of the existing hole position on the three-dimensional furniture model and the pre-set hole opening conditions, the spatial information of the hole position whose relative relationship with the existing hole position meets the set hole opening conditions and the actual hole opening requirements can be calculated as the spatial information of the first hole position. Further, based on the spatial information of the first hole position, the first hole position can be automatically opened on the target panel.
[0075] The electronic device of this embodiment automatically determines the spatial information of the first hole position that is compatible with the existing hole position based on the spatial information of the existing hole position and the set hole opening conditions, which can reduce the error of the spatial information of the determined first hole position due to the visual error of the human eye, help to improve the accuracy of the spatial information of the determined first hole position, and further improve the accuracy of subsequently opening the first hole position on the target board.
[0076] In some embodiments of the present application, in order to further improve the hole opening accuracy, hole position interference detection can be performed on the first hole position and the existing hole positions. Wherein, hole position interference refers to the phenomenon that there is a hole position intersection between different hole positions. For example, Fig.16 As shown, the opening positions of the rectangular hole and the circular hole intersect with each other, resulting in hole interference. Hole interference can make it difficult or even impossible to open a hole. Based on this, in some embodiments, the spatial information of the existing hole can be obtained; and hole interference detection is performed based on the spatial information of the first hole and the spatial information of the existing hole.
[0077] Specifically, it can be determined whether the first hole position and the existing hole position intersect based on the position information, size and hole opening direction of the first hole position, and the position information, size and hole opening direction of the existing hole position; if there is an intersection between the first hole position and the existing hole position, it is determined that there is hole position interference between the first hole position and the existing hole position. If there is no intersection between the first hole position and the existing hole position, it is determined that there is no hole position interference between the first hole position and the existing hole position.
[0078] Furthermore, if there is a hole position interference between the first hole position and the existing hole position, hole position interference prompt information may be output for the user to adjust the spatial information of the first hole position. The hole position interference prompt information may include: information about the existing hole position that has a hole position interference with the first hole position, etc. The information about the existing hole position that has a hole position interference with the first hole position may include: spatial information about the existing hole position that has a hole position interference with the first hole position, and / or highlighting the existing hole position that has a hole position interference with the first hole position on the three-dimensional furniture model, etc. Highlighting the existing hole position that has a hole position interference with the first hole position on the three-dimensional furniture model may be implemented by circling the existing hole position that has a hole position interference with the first hole position in the form of a warning box on the three-dimensional furniture model; or setting the color of the existing hole position that has a hole position interference with the first hole position to a color that is not included in the current three-dimensional furniture model, etc.
[0079] The user can manually adjust the spatial information of the first hole position according to the hole position interference prompt information to further improve the hole opening accuracy.
[0080] In the embodiment of the present application, in addition to realizing the opening of the plate in the 3D environment, the edge contour of the plate can also be edited in the 3D environment. In some embodiments, the operation interface may also include: a contour editing control; the user may edit or adjust the edge contour of the plate by triggering the contour editing control. Among them, the edge contour of the plate includes: the edge and / or corner of the plate. The shape of the edge and the shape of the corner of the plate can be edited or adjusted by the user through the contour editing control.
[0081] Accordingly, for an electronic device, in response to a contour editing operation on a target panel, edge contour adjustment data associated with the contour editing operation may be obtained. The edge contour adjustment data associated with the contour editing operation may include: corner adjustment data of the target panel and / or edge adjustment data of the target panel. The corner adjustment data of the target panel may include: corner shape, angle, and edge length of the corner, etc. The corner shape may include: chamfer, arc angle, or corner cut light. The edge adjustment data of the target panel may include: edge shape and edge size, etc.
[0082] Furthermore, the edge contour of the target panel may be adjusted on the three-dimensional furniture model according to the edge contour adjustment data to obtain an adjusted target panel.
[0083] Specifically, according to the corner adjustment data for the target panel and / or the edge adjustment data for the target panel, the corner and / or edge of the target panel may be adjusted on the three-dimensional furniture model to obtain the adjusted target panel.
[0084] In some embodiments, the edge contour adjustment data includes: angle adjustment data for the target panel, and the angle of the target panel can be adjusted on the three-dimensional furniture model according to the angle adjustment data for the target panel to obtain the adjusted target panel. Fig.17 As shown, according to the angle adjustment data for the target panel, the corner of the target panel can be adjusted to a chamfer, a rounded corner or a cut corner on the three-dimensional furniture model, and the specific adjustment size and shape are determined by the user. Fig.17 Only the target panel is shown separately, but it does not constitute a limitation.
[0085] In other embodiments, the edge contour adjustment data includes: edge adjustment data for the target panel, and the edge of the target panel can be adjusted on the three-dimensional furniture model according to the edge adjustment data for the target panel to obtain an adjusted target panel.
[0086] In some other embodiments, the edge contour adjustment data includes: corner adjustment data for the target panel and edge adjustment data for the target panel. Based on the corner adjustment data for the target panel and the edge adjustment data for the target panel, the corners and edges of the target panel are adjusted on the three-dimensional furniture model to obtain the adjusted target panel.
[0087] It should be noted that the execution subject of each step of the method provided in the above embodiment can be the same device, or the method can be executed by different devices. For example, the execution subject of steps 301 and 302 can be device A; for another example, the execution subject of step 301 can be device A, and the execution subject of step 302 can be device B; and so on.
[0088] In addition, in some of the processes described in the above embodiments and the accompanying drawings, multiple operations appearing in a specific order are included, but it should be clearly understood that these operations may not be executed in the order in which they appear in this document or may be executed in parallel, and the sequence numbers of the operations, such as 301, 302, etc., are only used to distinguish between different operations, and the sequence numbers themselves do not represent any execution order. In addition, these processes may include more or fewer operations, and these operations may be executed in sequence or in parallel.
[0089] Accordingly, an embodiment of the present application further provides a computer-readable storage medium storing computer instructions. When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the above-mentioned furniture model hole drilling method.
[0090] Fig.18This is a schematic diagram of the structure of a computing device provided in an embodiment of the present application. Fig.18 As shown, the computing device may include: a memory 18a, a processor 18b and a display component 18c. The memory 18a is used to store computer programs.
[0091] The processor 18b is coupled to the memory 18a and the display component 18c, and is used to execute a computer program for: displaying a three-dimensional furniture model on an operation interface through the display component 18c; the three-dimensional furniture model includes: a plurality of panels; a connection relationship between the plurality of panels; in response to a selection operation for a target panel among the plurality of panels, highlighting the target panel on the three-dimensional furniture model through the display component 18c; and in the case where there are existing holes in the three-dimensional furniture model, displaying the existing holes on the three-dimensional furniture model through the display component 18c; and, in response to a hole opening operation for the target panel, opening a first hole on the target panel that matches the existing hole.
[0092] Optionally, when the processor 18b responds to a selection operation for a target panel among multiple panels and highlights the target panel on the three-dimensional furniture model, it is specifically used to: respond to the selection operation for the target panel, determine a local three-dimensional model containing the target panel from the three-dimensional furniture model according to the connection relationship between the multiple panels; display the local three-dimensional model through the display component 18c, and highlight the target panel on the local three-dimensional model.
[0093] Correspondingly, the existing hole positions are existing hole positions on the local three-dimensional model.
[0094] Furthermore, when the processor 18b determines a local three-dimensional model including a target panel from a three-dimensional furniture model based on the connection relationship between multiple panels, it is specifically used to: determine, from the three-dimensional furniture model, a first panel directly connected to the target panel and a second panel having an upper and lower hierarchical relationship with the target panel based on the connection relationship between multiple panels; and determine, from the three-dimensional furniture model, a local three-dimensional model formed by connecting the target panel, the first panel and the second panel.
[0095] In some embodiments, the operation interface includes a hole editing control. Accordingly, in response to the hole opening operation on the target plate, when the target plate opens a first hole that matches the existing hole, the processor 18b is specifically used to: in response to the trigger operation on the hole editing control, display the hole shape candidate items through the display component 18c; in response to the hole opening operation generated by the trigger on the target hole shape in the hole shape candidate items, obtain the spatial information of the first hole with the target hole shape; the spatial information of the first hole with the target hole shape is matched with the spatial information of the existing hole; and, according to the spatial information of the first hole with the target hole shape, open the first hole with the target hole shape and the spatial information matches the existing hole in the target plate.
[0096] Further, when the processor 18b obtains the spatial information of the first hole having the target hole shape in response to the hole opening operation generated by the trigger of the target hole shape in the hole shape candidate items, it is specifically used to: obtain the movement trajectory of the hole opening tool having the target hole shape on the target plate in response to the hole opening operation generated by the trigger of the target hole shape in the hole shape candidate items; the movement trajectory of the hole opening tool having the target hole shape on the target plate is determined by the spatial information of the existing hole positions intuitively perceived by the user based on the displayed existing hole positions; based on the movement trajectory of the hole opening tool having the target hole shape on the target plate, determine the position information of the first hole having the target hole shape, the size of the first hole having the target hole shape and the hole opening direction as the spatial information of the first hole.
[0097] Optionally, the hole shape candidates include: regular-shaped holes and irregular-shaped holes; the target hole shape is an irregular-shaped hole or a regular-shaped hole; and / or the target plate is a regular-shaped plate or an irregular-shaped plate.
[0098] In some embodiments, the processor 18b is also used to: obtain spatial information of existing hole positions; perform hole interference detection based on the spatial information of the first hole position and the spatial information of the existing hole positions; if there is hole interference between the first hole position and the existing hole position, output hole interference prompt information for the user to adjust the spatial information of the first hole position.
[0099] Optionally, the spatial information of the hole position includes: the position information, size and opening direction of the hole position. Accordingly, when the processor 18b performs hole position interference detection according to the spatial information of the first hole position and the spatial information of the existing hole position, it is specifically used to: determine whether the first hole position and the existing hole position intersect according to the position information, size and opening direction of the first hole position, and the position information, size and opening direction of the existing hole position; if there is an intersection between the first hole position and the existing hole position, it is determined that there is hole position interference between the first hole position and the existing hole position.
[0100] In some embodiments, the existing hole position includes a second hole position already existing on the target plate. The processor 18b is further used to: determine the distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position in real time during the movement of the hole opening tool; and display the distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position on the target plate in real time during the movement of the hole opening tool, so that the user can determine the movement trajectory of the hole opening tool.
[0101] In some embodiments, the processor 18b is also used to: in response to a contour editing operation on a target panel, obtain edge contour adjustment data associated with the contour editing operation; and adjust the edge contour of the target panel on the three-dimensional furniture model according to the edge contour adjustment data to obtain an adjusted target panel.
[0102] Optionally, the edge contour data includes: angle adjustment data for the target panel and / or edge adjustment data for the target panel. Accordingly, when the processor 18b adjusts the edge contour of the target panel on the three-dimensional furniture model according to the edge contour adjustment data, it is specifically used to: adjust the angle and / or edge of the target panel on the three-dimensional furniture model according to the angle adjustment data for the target panel and / or the edge adjustment data for the target panel to obtain the adjusted target panel.
[0103] In some optional embodiments, such as Fig.18 As shown, the computing device may also include optional components such as a communication component 18d, a power component 18e, and an audio component 18f. Fig.18 The components are shown schematically only and do not necessarily include Fig.18 The components shown do not necessarily mean that the computing device can only include Fig.18 Components shown.
[0104] The computing device provided in this embodiment can display a three-dimensional furniture model in a 3D environment, and can highlight the target panel to be drilled and the existing hole positions on the three-dimensional furniture model in the three-dimensional furniture model. Among them, displaying the three-dimensional furniture model and the existing hole positions in the 3D environment can provide spatial reference information for the user to drill holes on the target panel this time, so that the user can select a suitable position to set a hole position of a suitable size and direction on the target panel, which helps to improve the accuracy of drilling holes on the target panel.
[0105] In an embodiment of the present application, the memory is used to store a computer program and can be configured to store various other data to support operations on the device where it is located. Among them, the processor can execute the computer program stored in the memory to implement the corresponding control logic. The memory can be implemented by any type of volatile or non-volatile storage device or a combination thereof, such as static random access memory (Static Random-Access Memory, SRAM), electrically erasable programmable read only memory (Electrically Erasable Programmable Read Only Memory, EEPROM), erasable programmable read only memory (Electrical Programmable Read Only Memory, EPROM), programmable read only memory (Programmable Read Only Memory, PROM), read only memory (Read Only Memory, ROM), magnetic memory, flash memory, magnetic disk or optical disk.
[0106] In the embodiment of the present application, the processor can be any hardware processing device that can execute the logic of the above method. Optionally, the processor can be a central processing unit (CPU), a graphics processing unit (GPU) or a microcontroller unit (MCU); it can also be a field programmable gate array (FPGA), a programmable array logic device (PAL), a general array logic device (GAL), a complex programmable logic device (CPLD) and other programmable devices; or an advanced reduced instruction set (RISC) processor (Advanced RISC Machines, ARM) or a system on chip (SoC), etc., but not limited to this.
[0107] In an embodiment of the present application, the communication component is configured to facilitate wired or wireless communication between the device in which it is located and other devices. The device in which the communication component is located can access a wireless network based on a communication standard, such as Wireless Fidelity (WiFi), 2G or 3G, 4G, 5G or a combination thereof. In an exemplary embodiment, the communication component receives a broadcast signal or broadcast-related information from an external broadcast management system via a broadcast channel. In an exemplary embodiment, the communication component can also be based on Near Field Communication (NFC) technology, Radio Frequency Identification (RFID) technology, Infrared Data Association (IrDA) technology, Ultra Wide Band (UWB) technology, Bluetooth (BT) technology or other technologies.
[0108] In an embodiment of the present application, the display component may include a liquid crystal display (LCD) and a touch panel (TP). If the display component includes a touch panel, the display component may be implemented as a touch screen to receive input signals from a user. The touch panel includes one or more touch sensors to sense touch, slide, and gestures on the touch panel. The touch sensor may not only sense the boundaries of a touch or slide action, but also detect the duration and pressure associated with the touch or slide operation.
[0109] In an embodiment of the present application, a power supply component is configured to provide power to various components of the device in which it is located. The power supply component may include a power management system, one or more power supplies, and other components associated with generating, managing, and distributing power to the device in which the power supply component is located.
[0110] In an embodiment of the present application, the audio component may be configured to output and / or input audio signals. For example, the audio component includes a microphone (Microphone, MIC), and when the device where the audio component is located is in an operating mode, such as a call mode, a recording mode, and a speech recognition mode, the microphone is configured to receive an external audio signal. The received audio signal may be further stored in a memory or sent via a communication component. In some embodiments, the audio component also includes a speaker for outputting an audio signal. For example, for a device with a language interaction function, voice interaction with a user can be achieved through an audio component.
[0111] It should be noted that the descriptions such as “first” and “second” in this article are used to distinguish different messages, devices, modules, etc., and do not represent the order of precedence, nor do they limit “first” and “second” to different types.
[0112] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, compact disc read-only memory (Compact Disc Read-Only Memory, CD-ROM), optical storage, etc.) that contain computer-usable program code.
[0113] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0114] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0115] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0116] In a typical configuration, a computing device includes one or more processors (CPU, etc.), input / output interfaces, network interfaces, and memory.
[0117] Memory may include non-permanent storage in a computer-readable medium, random-access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. Memory is an example of a computer-readable medium.
[0118] The storage medium of a computer is a readable storage medium, which may also be referred to as a readable medium. The readable storage medium includes permanent and non-permanent, removable and non-removable media that can be used to store information by any method or technology. The information can be a computer-readable instruction, a data structure, a module of a program, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, CD-ROM, digital versatile disc (DVD) or other optical storage, magnetic cassettes, disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer-readable media does not include temporary computer-readable media (transitory media), such as modulated data signals and carrier waves.
[0119] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of further restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the above elements.
[0120] The above contents are only embodiments of the present application and are not intended to limit the present application. For those skilled in the art, the present application may have various changes and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application should be included within the scope of the claims of the present application.
Claims
1. A method for drilling holes in a furniture model, characterized in that: include: Display 3D furniture models on the operation interface; The three-dimensional furniture model includes: a plurality of panels; the plurality of panels are connected to each other; In response to a selection operation on a target panel among the plurality of panels, highlighting the target panel on the three-dimensional furniture model; In the case where the three-dimensional furniture model has existing hole positions, displaying the existing hole positions on the three-dimensional furniture model; In response to a hole drilling operation on the target plate, a first hole position matching the existing hole position is drilled in the target plate.
2. The method according to claim 1, characterized in that In response to a selection operation on a target panel among the plurality of panels, highlighting the target panel on the three-dimensional furniture model comprises: In response to a selection operation for the target panel, determining a local three-dimensional model including the target panel from the three-dimensional furniture model according to a connection relationship between the plurality of panels; The local three-dimensional model is displayed, and the target panel is highlighted on the local three-dimensional model.
3. The method according to claim 2, characterized in that The determining, from the three-dimensional furniture model, a local three-dimensional model including the target panel according to the connection relationship between the plurality of panels comprises: According to the connection relationship between the plurality of panels, determining from the three-dimensional furniture model a first panel directly connected to the target panel and a second panel having a hierarchical relationship with the target panel; A local three-dimensional model formed by connecting the target panel, the first panel and the second panel is determined from the three-dimensional furniture model.
4. The method according to claim 2, characterized in that: The existing hole positions are existing hole positions on the local three-dimensional model.
5. The method according to claim 1, characterized in that: The operation interface includes a hole position editing control; in response to the hole opening operation on the target plate, opening a first hole position on the target plate that matches the existing hole position includes: In response to a trigger operation on the hole position editing control, displaying hole position shape candidates; In response to a hole-opening operation triggered by a target hole shape in the hole shape candidate items, spatial information of a first hole having the target hole shape is acquired; the spatial information of the first hole having the target hole shape is adapted to the spatial information of the existing hole; According to the spatial information of the first hole position having the target hole position shape, a first hole position having the target hole position shape and whose spatial information matches the existing hole position is opened in the target plate.
6. The method according to claim 5, characterized in that The step of obtaining spatial information of a first hole having the target hole shape in response to a hole opening operation triggered by a target hole shape in the hole shape candidate items comprises: In response to a hole-drilling operation generated by a trigger of a target hole shape in the hole shape candidate items, a movement trajectory of a hole-drilling tool having the target hole shape on the target plate is obtained; the movement trajectory of the hole-drilling tool having the target hole shape on the target plate is determined by the spatial information of the existing hole positions intuitively perceived by the user based on the displayed existing hole positions; According to the movement trajectory of the drilling tool having the target hole shape on the target plate, the position information of the first hole having the target hole shape, the size of the first hole having the target hole shape and the drilling direction are determined as the spatial information of the first hole.
7. The method according to claim 5, characterized in that The hole shape candidates include: regular-shaped holes and irregular-shaped holes; the target hole shape is the irregular-shaped hole or the regular-shaped hole; And / or, the target plate is a plate of a regular shape or a plate of an irregular shape.
8. The method according to claim 5, characterized in that Also includes: Acquiring spatial information of the existing hole positions; Performing hole position interference detection according to the spatial information of the first hole position and the spatial information of the existing hole positions; If the first hole position interferes with the existing hole position, hole interference prompt information is output to allow the user to adjust the spatial information of the first hole position.
9. The method according to claim 8, characterized in that The spatial information of the hole position includes: the position information, size and opening direction of the hole position; the hole position interference detection is performed according to the spatial information of the first hole position and the spatial information of the existing hole position, including: Determining whether the first hole position intersects with the existing hole position according to the position information, size and hole opening direction of the first hole position, and the position information, size and hole opening direction of the existing hole position; If there is an intersection between the first hole position and the existing hole position, it is determined that there is hole position interference between the first hole position and the existing hole position.
10. The method according to claim 6, characterized in that The existing hole position includes a second hole position already existing on the target plate, and the method further includes: During the movement of the hole-opening tool, determining in real time the distance between the hole-opening tool and the edge of the target plate and the distance between the hole-opening tool and the second hole position; During the movement of the hole opening tool, the distance between the hole opening tool and the edge of the target plate and the distance between the hole opening tool and the second hole position are displayed in real time on the target plate, so that the user can determine the movement trajectory of the hole opening tool.
11. The method according to any one of claims 1 to 10, characterized in that: Also includes: In response to a contour editing operation on the target panel, acquiring edge contour adjustment data associated with the contour editing operation; According to the edge contour adjustment data, the edge contour of the target panel is adjusted on the three-dimensional furniture model to obtain an adjusted target panel.
12. The method according to claim 11, characterized in that The edge profile data includes: corner adjustment data for the target plate and / or side adjustment data for the target plate; The step of adjusting the edge contour of the target panel on the three-dimensional furniture model according to the edge contour adjustment data includes: According to the corner adjustment data for the target panel and / or the edge adjustment data for the target panel, the corner and / or edge of the target panel are adjusted on the three-dimensional furniture model to obtain the adjusted target panel.
13. A computing device, characterized in that: include: Memory, processor and display component; wherein the memory is used to store computer programs; The processor is coupled to the memory and the display component, and is configured to execute the computer program to perform the steps in the method according to any one of claims 1 to 12.
14. A computer-readable storage medium storing computer instructions, characterized in that: When the computer instructions are executed by one or more processors, the one or more processors are caused to execute the steps in the method according to any one of claims 1 to 12.