3D model placement method and system, computer equipment and storage medium

By optimizing the placement of the 3D model in the build volume, combined with layer area distribution and fit, the problem of uneven powder density in 3D printing is solved, achieving a more uniform density and a more efficient printing process.

CN118721749APending Publication Date: 2024-10-01SHANGHAI VOXELDANCE TECHNOLOGY CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411010573.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-25
Publication Date
2024-10-01

AI Technical Summary

Technical Problem

In existing 3D printing technology, the uneven distribution of layer area during the placement of 3D models leads to uneven powder density, which in turn affects the printing quality and object shape, leading to stretch deformation.

Method used

By combining the layer area distribution and fit of the built volume during the 3D model placement process, the placement position of the 3D model is optimized to ensure that the area gap of each layer is small and evenly distributed. Simulation placement and distance field update technology are used to optimize Build volume height and placement.

Benefits of technology

It achieves density uniformity of 3D objects, avoids deformation, improves printing quality and efficiency, and allows the setting of non-processing areas and specific model placement on the printing platform.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118721749A_ABST
    Figure CN118721749A_ABST
Patent Text Reader

Abstract

The invention discloses a 3D model placing method, a 3D printing method, a 3D model placing system, computer equipment, a computer readable storage medium and a computer program product. The 3D model placing method comprises the following steps: determining a collision-free position which enables the layer area distribution of a construction volume and the fitting degree of a current to-be-placed 3D model to be combined to be optimal in the construction volume with a preset volume height based on the current to-be-placed 3D model; and determining the placement position of the current to-be-placed 3D model based on the joint optimal collision-free position so as to place the current to-be-placed 3D model in the construction volume.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of 3D printing technology, and specifically to a 3D model placement method, a 3D printing method, a 3D model placement system, a computer device, a computer-readable storage medium, and a computer program product. Background Art

[0002] 3D printing is a rapid prototyping technology. 3D printing equipment uses solidifiable materials such as powdered metal, plastic and resin to construct objects by printing layer by layer according to the data to be printed. The data to be printed can be formed by slicing, path planning and other operations on multiple 3D models arranged in a specific way.

[0003] For 3D printing methods using powder materials such as selective laser sintering (SLS) and binder jetting, the unsintered powder can provide support for the printed object, eliminating the need to set up supports for the object. Therefore, during the 3D model placement stage, multiple 3D models can be placed in three dimensions in the build volume of the corresponding printing space.

[0004] The way in which multiple 3D models are placed in the building volume of the corresponding printing space will affect the placement efficiency, and the placement results will affect the subsequent printing effect and efficiency. For example, some 3D model placement methods in the prior art do not take into account the distribution of the cross-sectional area of ​​each layer, resulting in uneven powder density on the printing platform and deposition in the vertical direction as printing proceeds, which in turn causes the printed 3D object to stretch and deform.

[0005] In view of this, how to optimize the 3D model placement process to improve printing quality is a technical problem that needs to be urgently solved by technical personnel in this field. Summary of the invention

[0006] In view of the shortcomings of the above-mentioned related technologies, the purpose of the present application is to provide a 3D model placement method, a 3D printing method, a 3D model placement system, a computer device, a computer-readable storage medium and a computer program product, so as to overcome the technical problem of poor printing quality caused by uneven layer area distribution of 3D model placement in the above-mentioned related technologies.

[0007] To achieve the above-mentioned purpose and other related purposes, the first aspect disclosed in the present application discloses a 3D model placement method, comprising the following steps: determining, based on the 3D model currently to be placed, a collision-free position in a building volume with a preset volume height that makes the layer area distribution of the building volume and the fit of the 3D model currently to be placed jointly optimal; and determining the placement position of the 3D model currently to be placed based on the jointly optimal collision-free position so as to place the 3D model currently to be placed in the building volume.

[0008] The second aspect of the present application discloses a 3D printing method, comprising: obtaining data to be printed, wherein the data to be printed is obtained based on a building volume in which a 3D model is placed, and the 3D model placed in the building volume is placed based on the 3D model placement method described in any embodiment of the first aspect of the present application; and performing three-dimensional manufacturing based on the data to be printed to form a 3D object corresponding to the placed 3D model.

[0009] The third aspect of the present application discloses a 3D model placement system, comprising: an optimal position determination module, which is used to determine, based on the 3D model currently to be placed, a collision-free position in a construction volume with a preset volume height so that the layer area distribution of the construction volume and the fit degree of the 3D model currently to be placed are jointly optimal; and a placement module, which is used to determine the placement position of the 3D model currently to be placed based on the jointly optimal collision-free position so as to place the 3D model currently to be placed in the construction volume.

[0010] The fourth aspect of the present application discloses a computer device, comprising: a storage device for storing at least one program; and a processing device connected to the storage device, for calling the at least one program from the storage device and executing it to implement the 3D model placement method described in any embodiment of the first aspect of the present application.

[0011] The fifth aspect of the present application discloses a computer-readable storage medium storing at least one program, which, when called and executed by a processor of a computer, implements the 3D model placement method as described in any embodiment of the first aspect of the present application.

[0012] The sixth aspect of the present application discloses a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the 3D model placement method as described in any embodiment of the first aspect of the present application.

[0013] In summary, the 3D model placement method, 3D printing method, 3D model placement system, computer equipment, computer-readable storage medium and computer program product disclosed in the present application can make the difference in area occupied by each layer of the build volume smaller and the distribution in a single layer more uniform by taking into account both the fit and the layer area distribution of the build volume during the 3D model placement process, thereby ensuring that the density of the powder is always uniform in subsequent printing and avoiding deformation of the 3D object.

[0014] Those skilled in the art can easily perceive other aspects and advantages of the present application from the detailed description below. In the detailed description below, only exemplary embodiments of the present application are shown and described. As will be appreciated by those skilled in the art, the content of the present application enables those skilled in the art to modify the disclosed specific embodiments without departing from the spirit and scope of the invention to which the present application relates. Accordingly, the description in the drawings and specification of the present application is merely exemplary and not restrictive. BRIEF DESCRIPTION OF THE DRAWINGS

[0015] The specific features of the invention involved in this application are shown in the attached claims. The features and advantages of the invention involved in this application can be better understood by referring to the exemplary embodiments and drawings described in detail below. The drawings are briefly described as follows:

[0016] Figure 1 A schematic diagram showing the flow of a 3D model placement method in one embodiment of the present application.

[0017] Figure 2 Shown is a schematic diagram of the structure of the building volume in one embodiment of the present application.

[0018] Figure 3 Shown is a schematic diagram of the structure of the construction volume of the preset non-placement area in one embodiment of the present application.

[0019] Figure 4 Shown is a schematic diagram of the process of simulating placement in one embodiment of the present application.

[0020] Figure 5 Shown is a schematic structural diagram of a bounding box of a 3D model in one embodiment of the present application.

[0021] Figure 6 It is a flowchart of step S110 in one embodiment of the present application.

[0022] Figure 7 Shown is a schematic diagram of comparing the margin height with the current 3D model to be placed in one embodiment of the present application.

[0023] Figure 8 It is a schematic diagram showing the method of increasing the volume height of the building volume in one embodiment of the present application.

[0024] Fig. 9 Shown is a schematic diagram of a flow chart for determining whether to lower the volume height of the building volume in one embodiment of the present application.

[0025] Fig.10 It is a schematic diagram showing lowering the volume height of the building volume in one embodiment of the present application.

[0026] Fig.11It is a schematic diagram of step S311 in one embodiment of the present application.

[0027] Fig.12 It is a flowchart of step S312 in one embodiment of the present application.

[0028] Fig.13 Shown is a schematic diagram of step S3121 in one embodiment of the present application.

[0029] Fig.14 Shown is a schematic diagram of layer area distribution for determining a build volume in one embodiment of the present application.

[0030] Fig.15 Shown is a schematic diagram of the combination of layer area distribution and fit in one embodiment of the present application.

[0031] Fig.16 Shown is a schematic diagram of placing a 3D model into a build volume in one embodiment of the present application.

[0032] Fig.17 Shown is a schematic diagram of updating the distance field of a construction volume in one embodiment of the present application.

[0033] Fig.18 Shown is a schematic diagram of the process of rearranging the extracted 3D model in one embodiment of the present application.

[0034] Fig.19 It is a schematic diagram showing distance field updating for an update range in optimizing distribution in one embodiment of the present application.

[0035] Fig. 20 Shown is a flowchart of a printing method in one embodiment of the present application.

[0036] Fig.21 Shown is a module block diagram of a 3D model placement system in one embodiment of the present application.

[0037] Fig. 22 Shown is a schematic diagram of the structure of a computer device in one embodiment of the present application. DETAILED DESCRIPTION

[0038] The following is an explanation of the implementation of the present application by means of specific embodiments. People familiar with the art can easily understand other advantages and effects of the present application from the contents disclosed in this specification.

[0039] In the following description, reference is made to the accompanying drawings, which describe several embodiments of the present application. It should be understood that other embodiments may also be used, and that changes in module or unit composition, electrical and operational aspects may be made without departing from the spirit and scope of the present disclosure. The following detailed description should not be considered restrictive, and the scope of the embodiments of the present application is limited only by the claims of the published patents. The terms used herein are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0040] Although the term first, second etc. is used to describe various elements or parameters in this article in some instances, these elements or parameters should not be limited by these terms.These terms are only used to distinguish an element or parameter from another element or parameter.For example, the first ratio can be referred to as the second ratio, and similarly, the second ratio can be referred to as the first ratio, without departing from the scope of the various described embodiments.The first ratio and the second ratio are both describing a ratio, but unless the context clearly indicates otherwise, they are not the same ratio.

[0041] Furthermore, as used in this article, the singular forms "one", "an" and "the" are intended to include plural forms as well, unless there is an indication to the contrary in the context. It should be further understood that the terms "comprise", "include" indicate the presence of the described features, steps, operations, elements, components, projects, kinds, and / or groups, but do not exclude the presence, occurrence or addition of one or more other features, steps, operations, elements, components, projects, kinds, and / or groups. The terms "or" and "and / or" used herein are interpreted as inclusive, or mean any one or any combination. Therefore, "A, B or C" or "A, B and / or C" means "any of the following: A; B; C; A and B; A and C; B and C; A, B and C". Exceptions to this definition will only occur when the combination of elements, functions, steps or operations is inherently mutually exclusive in some way.

[0042] In view of the technical problems mentioned in the background technology, the present application discloses a 3D model placement method, a 3D printing method, a 3D model placement system, a computer device, a computer-readable storage medium and a computer program product. By taking into account the fit and the layer area distribution of the build volume in the 3D model placement process, the difference in the area occupied by each layer of the build volume can be made smaller and the distribution in a single layer is more uniform, so that the density of the powder is always uniform in subsequent printing, avoiding the deformation of the 3D object.

[0043] In order to more prominently emphasize the independence of the operation of the functional units, many of the functional units described in this specification have been labeled as modules. For example, a module can be implemented as a hardware circuit, which includes a custom VLSI circuit, a gate array, or an off-the-shelf semiconductor (such as a logic chip, transistor, or other discrete component). A module can also be implemented in a programmable hardware device, such as a field programmable gate array, programmable array logic, a programmable logic device, or the like.

[0044] Modules may also be implemented in software run by different types of processors. For example, a module of executable code may include one or more physical or logical blocks of computer instructions organized as objects, programs, or functions. However, the executable files of a module need not be physically located together, but may include different commands stored in different locations that, when logically connected together, comprise the module and achieve the specified goals of the module.

[0045] Of course, the module of executable code can be one or many instructions, and can even be distributed in several different code segments, distributed in different programs and distributed in multiple storage devices. Similarly, operation data can be identified and shown in the module, and the operation data can be embodied in any suitable form and organized in any suitable type of data structure. The operation data can be collected as a single data set, or can be distributed in different locations (including different storage devices), and can exist at least partially as electrical signals in a system or network. When a module or a portion of a module is implemented in software, the software portion is stored on one or more computer-readable media.

[0046] In some embodiments, the present application provides a 3D model placement method, which can be executed by a computer device equipped with a 3D model placement system. The 3D model placement system is a software tool or software module that can process data, and it executes the 3D model placement method with the help of the operating environment provided by the hardware device and / or operating system in the computer device.

[0047] In one embodiment, the computer device can be configured as an electronic device, that is, the 3D model placement method is executed by the electronic device. For example, the electronic device includes desktop computers, laptops, tablet computers, smart TVs, smart phones, tablets, industrial computers and other devices. The electronic device can also be an electronic device composed of a host with multiple virtual machines and a human-computer interaction device corresponding to each virtual machine (such as a touch screen, keyboard and mouse).

[0048] In one embodiment, the computer device may be configured as a server, that is, the 3D model placement method is executed by the server. The server may be arranged on one or more physical servers according to various factors such as function and load. In some examples, the server may be a server based on a cloud architecture, and the server refers to a cloud computing platform provided by a cloud computing provider, and the cloud computing platform can provide services such as IaaS (Infrastructureas-a-Service), PaaS (Platform-as-a-Service), and SaaS (Software-as-a-Service). Among them, the cloud computing platform includes a public cloud (Public Cloud), a private cloud (Private Cloud), and a hybrid cloud (Hybrid Cloud). In some examples, the server may be composed of a distributed or centralized server cluster. For example, the server cluster is composed of at least one physical server. Multiple virtual servers are configured in each physical server, each virtual server runs at least one functional module in the system, and each virtual server communicates through a network.

[0049] See also Figure 1 , which is a flow chart of a 3D model placement method in an embodiment of the present application. As shown in the figure, the 3D model placement method includes step S310 and step S320. The following takes the 3D model placement method executed by a computer device as an example to illustrate various embodiments.

[0050] It should be noted that, in order to facilitate data processing of the 3D model and the construction volume, before step S310, the computer device voxelizes the 3D model and the construction volume. In other words, the 3D model and the construction volume operated in the subsequent steps are respectively composed of multiple voxels, each voxel corresponds to a basic unit, and the basic unit is, for example, a cube that fills the space of the 3D model or the construction volume.

[0051] The building volume refers to the space volume used to place 3D models, which needs to be compatible with the shape and size of the printing platform of the 3D printing device to ensure that all 3D models placed in the building volume can be manufactured within the printing platform. Figure 2, which is a schematic diagram of the structure of the building volume in one embodiment of the present application. As shown in the figure, the building volume 30 has a predefined bottom surface A on the XY plane and a volume height H in the Z direction. The shape and size of the building volume 30 being adapted to the shape and size of the printing platform may refer to the shape and size of the predefined bottom surface A being adapted to the shape and size of the printing platform. Among them, the adaptation only needs to ensure that the predefined bottom surface A can be included in the printing platform (for example, the printing surface of the printing platform), so that the 3D model arranged in the building volume 30 can be manufactured within the printing platform, and it is not required that the shape and size of the predefined bottom surface A of the building volume must be consistent or inconsistent with the shape and size of the printing platform. Figure 2 The figure is illustrated by taking the predefined bottom surface A as a quadrilateral as an example. In other examples, the predefined bottom surface A may also be configured as a circle, an ellipse, a triangle, a pentagon or a more polygonal shape, an irregular shape, etc.

[0052] Considering that non-processing areas may be set on the printing platform, for example, the edges or corners of the printing platform where the energy radiation mechanism or energy radiation system cannot reach or has poor irradiation effect, it is not expected to perform printing work at these locations. And some specific 3D model users want to print at specific locations on the printing platform. For example, users want to place the 3D model corresponding to the part with high precision requirements in the central area of ​​the printing platform for printing. In some embodiments, the 3D model placement method proposed in the present application also includes a step of presetting a non-placement area in the build volume before step S310, and the non-placement area is configured as any one or both of a reserved non-processing area and a designated model placement position. Please refer to Figure 3 , which is a schematic diagram of the structure of the building volume of the preset non-placement area in one embodiment of the present application. As shown in the figure, the non-placement area 300 is preset in the building volume 30, and the non-placement area 300 pre-occupies part of the space volume inside the building volume 30 in a filling manner. When executing subsequent steps, the non-placement area 300 is no longer used as a location for placing the 3D model.

[0053] In the embodiment of the 3D model placement method provided in the present application, the construction volume has a preset volume height, that is, Figure 2 The volume height H of the construction volume 30 shown is configured as a preset value. In some embodiments, the preset volume height is a fixed value stored in advance. In some embodiments, the preset height is determined by simulating the placement of all 3D models to be placed in sequence.

[0054] In view of this, in one embodiment, before step S310, a step of simulating the placement of all 3D models to be placed in sequence to determine the preset volume height is also included. The simulated placement is, for example, a virtual placement, that is, firstly placing all 3D models to be placed in the construction volume to determine the height they occupy in the construction volume, which is used as the preset volume height. It should be understood that the simulated placement is not a formal placement. The simulated placement is only to determine a preset volume height, and then it is necessary to perform the following steps: Figure 1 Steps S310 and S320 are shown to formally re-arrange all 3D models to be placed.

[0055] In one embodiment, the step of simulating the placement of all 3D models to be placed in sequence to determine the preset volume height includes: looping the step of updating the volume height of the construction volume based on the 3D model currently to be placed to determine the proposed placement position of the 3D model currently to be placed in the updated construction volume until the proposed placement of all 3D models to be placed is completed, so as to determine the volume height of the last updated construction volume as the preset volume height.

[0056] The following Figures 4 to 10 An example is given of the step of simulating the placement of all 3D models to be placed in sequence to determine the preset volume height.

[0057] See also Figure 4 , which is a schematic diagram of the process of simulating placement in one embodiment of the present application. Further, it illustrates the process of updating the volume height of the construction volume according to the current 3D model to be placed in the simulation placement step to determine the proposed placement position of the current 3D model to be placed in the updated construction volume. As shown in the figure, the process includes step S110, step S120, and step S130.

[0058] In step S110 , the computer device updates the volume height of the construction volume according to the comparison result between the current 3D model to be placed and the residual height in the current construction volume.

[0059] In one embodiment, all 3D models to be placed are configured to include the following: Figure 1 All 3D models to be placed in the construction volume are placed in the manner of steps S310 and S320. All 3D models to be placed can be pre-stored in a model library, and one is selected from the library each time a simulated placement is performed as the current 3D model to be placed.

[0060] In one embodiment, in each execution of step S110, the computer device uses the highest product value of the volume and height of the remaining 3D models to be placed as the current 3D model to be placed. The remaining 3D models to be placed refer to the 3D models that have not yet been placed in the construction volume among all 3D models. When the placement is not performed, the remaining 3D models to be placed are equal to all the 3D models to be placed. After that, each time the placement of a 3D model is completed, the 3D model that has been completed to be placed is removed from all the 3D models to be placed, which is the remaining 3D model to be placed.

[0061] The volume and height of the 3D model are respectively configured as the volume and height corresponding to the bounding box of the 3D model. The bounding box is, for example, a bounding box whose axis is parallel to the coordinate axis of the construction volume, that is, a bounding box AABB. Figure 5 , which is a schematic diagram of the structure of the bounding box of the 3D model in one embodiment of the present application. The XYZ coordinate axes in the figure correspond to the coordinate axes of the constructed volume. The length, width and height of the bounding box 20 of the 3D model 10 are respectively parallel to the X axis, Y axis and Z axis of the XYZ coordinate axes. The volume of the 3D model 10 is the product of the length, width and height of the bounding box 20. The height of the 3D model 10 is the height of the bounding box 20. The product value of the volume and height of the 3D model 10 is the product of the length, width and height of the bounding box 20 multiplied by the product value of the height. It should be noted that the bounding box of the 3D model involved in the subsequent steps of the 3D model placement method of the present application can also be understood in this way, and will not be repeated unless otherwise specified.

[0062] In addition, the above illustration of the volume and height of the 3D model does not take into account the posture change of the 3D model. In some embodiments, to take into account the posture change of the 3D model, it is only necessary to rotate the 3D model by a preset angle, and then select the product value of the volume and height of the posture at one of the rotation angles based on the preset selection rule for the selection of the current 3D model to be placed. For example, the preset selection rule can be configured to select the rotation angle with the minimum height, that is, the product value of the volume and height of the remaining 3D models to be placed is calculated according to the posture at the rotation angle with the minimum height, and the highest one is selected as the current 3D model to be placed.

[0063] In other embodiments, the computer device may also randomly select from the remaining 3D models to be placed to determine the current 3D model to be placed, or may use other selection methods to determine the current 3D model to be placed, which is not limited in this application.

[0064] After determining the current 3D model to be placed, step S110 is to further update the volume height of the construction volume according to the current 3D model to be placed. Figures 6 to 10The process of updating the volume height of a build volume is described by way of example.

[0065] See also Figure 6 , which is a flow chart of step S110 in one embodiment of the present application, as shown in the figure, step S110 further includes step S111 and step S112. In step S111, the computer device executes to obtain the current placement height and the current volume height of the building volume to determine the margin height.

[0066] The remaining height refers to the remaining placement height in the build volume, which can be determined by subtracting the current placement height from the current volume height of the build volume. Figure 7 , which is a schematic diagram showing a comparison of the margin height with the current 3D model to be placed in one embodiment of the present application. Figure 7 The margin height Δh1 is also shown in the figure. As shown in the figure, the current placement height of the build volume 31 refers to the height occupied by the 3D model that is to be placed in the current build volume 31 on the Z axis. Figure 7 The current placement height is indicated by h1. The current volume height of the building volume 31 refers to the height corresponding to the current spatial volume of the building volume 31. Figure 7 The current volume height is indicated by H1. The remaining height Δh1 is the current volume height minus the current placement height, that is, Δh1=H1-h1.

[0067] like Figure 6 As shown, in step S112, the computer device compares the margin height with the height of the current 3D model to be placed at the first scale to update the volume height of the construction volume. Figure 7 As shown in the figure, the margin height Δh1 is the current volume height H1 minus the current placement height h1. The 3D model 11 to be placed at Figure 7 31 is shown outside the build volume 31 .

[0068] In this embodiment, in order to ensure that there is enough space to place the 3D model, the computer device will first execute the step of enlarging the height of the 3D model to be placed by a first ratio, and then execute the step of comparing the height at the first ratio with the remaining height of the construction volume. Figure 7 As shown, the height of the 3D model 11 to be placed currently refers to the height m of the 3D model 11 in the Z-axis direction, which can be configured as the height on the Z-axis corresponding to the bounding box of the 3D model 11. The embodiment adopted by the bounding box is the same as that for Figure 5The description is similar and will not be repeated here. The height of the 3D model currently to be placed at the first ratio is configured as the first ratio α multiplied by the height m. The computer device multiplies the height m of the 3D model 11 currently to be placed by the first ratio α and compares it with the margin height Δh1. The first ratio α can be configured to be approximately any value between 1.2 and 1.6. For example, the first ratio α can be configured to be approximately 1.2, 1.3, 1.4, 1.5, or 1.6, etc. Preferably, it can be configured to be 1.2.

[0069] It should be noted that Figure 7 The embodiment shown is based on the 3D model 11 currently to be placed. Figure 7 The posture presented in the figure is used as an example to illustrate its height, and it is not understood as a restriction on the height of the 3D model. In some embodiments, in order to reduce the frequency of updating the volume height of the build volume, the height of the 3D model currently to be placed is further configured as the highest height on the Z axis when it is rotated under the preset rotation rule. In other words, the 3D model currently to be placed can be rotated under the preset rotation rule, and each rotated posture has a height on the Z axis. The highest height is selected as the height of the 3D model 11 currently to be placed to be enlarged by a first ratio to be compared with the margin height. The preset rotation rule examples in this embodiment may include any one or more of the following: rotation of at least one angle with the Z axis as the rotation center, rotation of at least one angle with the X axis as the rotation center, rotation of at least one angle with the Y axis as the rotation center, and traversing all rotation directions and angles, etc. The present application does not limit the rotation rule.

[0070] In one embodiment, after comparing the margin height with the height of the current 3D model to be placed at the first scale, when it is determined that the margin height is equal to the height of the current 3D model to be placed at the first scale, the volume height of the construction volume is kept unchanged. Figure 7 As shown in the figure, when the margin height Δh1 is compared with the height of the 3D model 11 to be currently placed at the first ratio (i.e., α×m), if it is determined that the margin height Δh1=α×m, the current volume height H1 of the build volume 31 is kept unchanged. In other words, the margin height Δh1 corresponding to the current volume height H1 of the build volume 31 is sufficient to place the 3D model 11 to be currently placed, and the volume height H1 of the build volume 31 does not need to be adjusted at present.

[0071] In one embodiment, when the margin height is compared with the height of the 3D model at the first scale and it is determined that the margin height is less than the height of the 3D model to be currently placed at the first scale, the volume height of the build volume is increased. Figure 8 , which is a schematic diagram showing how to increase the volume height of the build volume in one embodiment of the present application, such as Figure 8As shown, when the margin height Δh1 is compared with the height of the 3D model 11 to be currently placed at the first scale (i.e., α×m), if it is determined that the margin height Δh1 is less than the height α×m of the 3D model 11 to be currently placed at the first scale, it means that the margin height Δh1 corresponding to the current volume height H1 of the build volume 31 is insufficient to place the 3D model 11 to be currently placed, and the current volume height H1 of the build volume 31 needs to be adjusted to H2. The adjusted volume height is as shown in FIG. Figure 8 For example, in this embodiment, the height of the built volume is adjusted by superimposing the height α×m of the 3D model 11 to be currently placed at the first scale onto the current placement height h1 as the height H2 of the built volume, that is, the adjusted height H2 of the built volume = h1 + α×m.

[0072] In one embodiment, when the margin height is compared with the height of the 3D model at the first scale and it is determined that the margin height is greater than the height of the 3D model currently to be placed at the first scale, it is further determined whether to lower the volume height of the build volume. In this way, it is possible to avoid unnecessary and frequent operations of adjusting the volume height of the build volume. For example, although the current margin height is sufficient to place the 3D model currently to be placed and there is margin, if the volume height of the build volume is directly lowered without judgment just to satisfy the requirement of just being able to place the 3D model currently to be placed, if the subsequent remaining 3D models to be placed have a higher height, the lowered volume height needs to be raised again. In this way, the number of adjustments to the build volume will increase, reducing the placement rate.

[0073] For this reason, please see Fig. 9 , which is a flow chart of determining whether to lower the volume height of the build volume in one embodiment of the present application. As shown in the figure, the step of determining whether to lower the volume height of the build volume when the remaining height is greater than the height at the first ratio further includes step S1121 and step S1122. Among them, when the remaining height is greater than the height of the current 3D model to be placed at the first ratio, the computer device further considers the maximum height of the remaining 3D models to be placed in determining whether to lower the volume height of the build volume, so as to avoid the problem of reducing the placement rate due to the aforementioned frequent adjustments.

[0074] Specifically, in step S1121, when the remaining height is greater than the height of the current 3D model to be placed at the first scale, the computer device determines the maximum height of the remaining 3D models to be placed. The remaining 3D models to be placed include the current 3D model to be placed and the remaining 3D models to be placed that have not been selected. Figure 7Taking the example shown, when comparing the margin height Δh1 with the height of the current 3D model 11 to be placed at the first ratio (i.e., α×m), if it is determined that the margin height Δh1>α×m, it is necessary to further determine the maximum height between the height of the current 3D model 11 to be placed and the height of the remaining 3D models to be placed that have not been selected. It should be noted that, similar to the height of the current 3D model to be placed, the height of the remaining 3D models to be placed in this embodiment can also be configured as the height in the Z-axis direction corresponding to the bounding box of the 3D model. The embodiment adopted by the bounding box is the same as that for the Figure 5 The description is similar and will not be repeated here.

[0075] In one embodiment, the heights of the remaining 3D models to be placed are respectively configured as the heights of each 3D model on the Z axis in a default posture. The default posture is, for example, an initial posture stored in the 3D model, or may be, for example, a specified posture. The computer device determines the maximum height from the heights of each 3D model.

[0076] In another embodiment, the height of the remaining 3D models to be placed is configured as the highest height of each 3D model on the Z axis under the preset rotation rule. In other words, the remaining 3D models to be placed can be rotated under the preset rotation rule respectively, and each 3D model selects its highest height on the Z axis as the height of its own 3D model. The computer device determines the maximum height from the heights of each 3D model. The preset rotation rule in this embodiment may include any one or more of the following: rotation of at least one angle with the Z axis as the rotation center, rotation of at least one angle with the X axis as the rotation center, rotation of at least one angle with the Y axis as the rotation center, and traversing all rotation directions and angles, etc. The present application does not limit the rotation rule. In other embodiments, the height of the remaining 3D models to be placed can be configured as part of the height on the Z axis downloaded in the default posture, and part of the highest height on the Z axis under the preset rotation rule. The computer device can determine the maximum height from the heights of each 3D model.

[0077] like Fig. 9 As shown, in step S1122, the computer device compares the margin height with the maximum height at the second ratio to determine whether to lower the volume height of the build volume. The second ratio is configured to be not less than the first ratio. For example, the second ratio can be configured to be any value between 1.2 and 2. For example, the second ratio can be configured to be approximately 1.2, 1.3, 1.4, 1.5, 1.6, 1.7, 1.8, 1.9, 2.0, etc., preferably, it can be configured to be 2.0.

[0078] In one embodiment, in step S1122, the computer device first performs a step of enlarging the maximum height by a second ratio, and then performs a step of comparing the maximum height at the second ratio with the residual height of the build volume. The maximum height determined in step S1121 is represented as n, and the maximum height at the second ratio is configured as the second ratio β multiplied by the maximum height n. Figure 7 As shown, the computer device first multiplies the second ratio β by the maximum height n, and then compares β×n with the margin height Δh1. It should be understood that since the remaining 3D models to be placed include the 3D model 11 to be currently placed, there is a possibility that the maximum height n is equal to the height m of the 3D model 11 to be currently placed, and the maximum height n is only an identification and is not a restriction on its value.

[0079] In one embodiment, when it is determined that the margin height is equal to or less than the maximum height under the second ratio, the operation of lowering the volume height of the building volume is not performed, that is, the volume height of the building volume is kept unchanged. Figure 7 As shown, when the margin height Δh1 is compared with the maximum height (i.e., β×n) under the second ratio and it is determined that Δh1 is less than or equal to β×n, the volume height H1 of the build volume 31 remains unchanged. In other words, even if the margin height Δh1 corresponding to the current volume height H1 of the build volume 31 may still have a margin after placing the currently planned 3D model 11, since there are higher 3D models to be placed later, in order to avoid frequent adjustments, the volume height H1 of the build volume will not be lowered at present.

[0080] In one embodiment, when it is determined that the margin height is greater than the maximum height under the second ratio, the volume height of the building volume is adjusted down to the maximum height under the second ratio plus the current placement height. Fig.10 , which is a schematic diagram of lowering the volume height of the build volume in one embodiment of the present application. As shown in the figure, when it is determined that the margin height Δh1 is greater than the maximum height (i.e., β×n) under the second ratio, it means that the margin height Δh1 corresponding to the current volume height H1 of the build volume 31 is sufficient to place the highest 3D model among the remaining 3D models to be placed and there is a margin, and the current volume height H1 of the build volume 31 needs to be lowered to H3, as shown in Fig.10 The dotted line in the figure indicates the adjusted volume height H3. For example, the adjusted volume height H3 is the current placement height h1 plus the maximum height β×n under the second ratio, that is, H3=h1+β×n.

[0081] Please continue reading Figure 4In step S120, the computer device determines a collision-free position in the updated build volume that makes the placement height and fit of the current 3D model to be placed jointly optimal. In other words, step S120 needs to determine all collision-free positions of the current 3D model to be placed in the updated build volume, and determine a collision-free position from all collision-free positions, and the collision-free position is a position that can make the placement height and fit of the current 3D model to be placed at the position jointly optimal.

[0082] In view of the subsequent implementation Figure 1 The process of step S310 shown also involves the determination of the joint optimal collision-free position, which is different from step S120 only in that step S310 determines the joint optimal collision-free position for the layer area distribution of the build volume and the fit of the current 3D model to be placed, while step S120 determines the joint optimal collision-free position for the placement height and fit of the current 3D model to be placed. In other words, the calculation of all collision-free positions and the calculation of the fit of the current 3D model to be placed in step S120 are consistent with the implementation of step S310, and the only difference is that when determining the joint optimal collision-free position, step S120 considers the fit in combination with the placement height of the current 3D model to be placed (referring to the height of the current 3D model to be placed in the build volume when it is placed in the build volume), while step S310 considers the fit of the current 3D model to be placed in combination with the layer area distribution of the build volume. Those skilled in the art may understand various embodiments of step S120 with the enlightenment of the subsequent embodiments of step 310, and will not be elaborated here.

[0083] The non-collision position described in this embodiment and any subsequent embodiments of step S310 and step S320 refers to a position where the 3D model can be completely placed in the build volume and does not collide with the existing set of objects in the build volume. The existing set of objects in the build volume refers to all objects currently existing in the build volume, and may include 3D models that are currently planned to be placed or have been placed in the build volume. Figure 7 As shown in the example, the existing object set may include the 3D model placed at the current placement height h1 of the construction volume 31. In other examples, the existing object set may further include a preset non-placement area in the construction volume, such as Figure 3 The non-placement area 300 is pre-filled in the.

[0084] In order to obtain a more accurate preset volume height, in some embodiments, the simulation placement step also includes rotating the 3D model currently to be placed in a preset set of directions, so as to respectively determine the collision-free position in the updated build volume that makes the placement height and fit of the 3D model currently to be placed in each rotation direction optimal.

[0085] In one embodiment, the preset set of directions may include a plurality of rotation directions with a central axis parallel to the X-axis, Y-axis, or Z-axis of the build volume as the rotation axis. The plurality of rotation directions may be, for example, 2, 4, 6, 8, 12, or 24 rotation directions. Among them, 2 rotation directions correspond to each rotation of 180°, 4 rotation directions correspond to each rotation of 90°, 6 rotation directions correspond to each rotation of 60°, 8 rotation directions correspond to each rotation of 45°, 12 rotation directions correspond to each rotation of 30°, and 24 rotation directions correspond to each rotation of 15°. The above selection of the rotation axis and the number of rotation directions are only examples and should not be construed as limitations on the present application.

[0086] In one embodiment, the computer device executes step S120 for the 3D model to be placed in each rotation direction, so as to determine the collision-free position with the best placement height and fit for the 3D model to be placed in each rotation direction.

[0087] Please continue reading Figure 4 In step S130, the computer device determines the proposed placement position of the current 3D model to be placed based on the placement height and fit of the current 3D model to be placed and the optimal collision-free position to propose placement of the current 3D model to be placed.

[0088] In view of the subsequent implementation Figure 1 The process of step S320 shown involves the determination of the placement position and the placement of the 3D model to be placed, which is similar to the determination of the proposed placement position and the proposed placement of the 3D model to be placed in step S130, wherein the proposed placement position can be equivalent to the placement position in step S320, and the 3D model to be placed can be equivalent to the 3D model to be placed in step S320. Therefore, those skilled in the art can understand the various embodiments of step S130 under the guidance of the subsequent embodiments of step 320, which will not be elaborated here.

[0089] Through Figures 4 to 10In any embodiment of the related description, the volume height of the construction volume can be updated once according to the current 3D model to be placed to determine the proposed placement position of the current 3D model to be placed in the updated construction volume and perform the proposed placement. Furthermore, the step of simulating the placement of all 3D models to be placed in turn to determine the preset volume height also includes: looping the above process until the proposed placement of all 3D models to be placed is completed, so as to determine the volume height of the last updated construction volume as the preset volume height. That is to say, in this embodiment, the volume height of the construction volume will be updated once each time the proposed placement is performed. When the proposed placement of the last 3D model to be placed is completed, the volume height of the construction volume will be updated for the last time, and the volume height of the construction volume corresponding to the last update can be used as the preset volume height of the construction volume in step S310.

[0090] like Figure 1 As shown, in step S310, the computer device determines, based on the 3D model to be currently placed, a collision-free position in a construction volume with a preset volume height that makes the layer area distribution of the construction volume and the fit of the 3D model to be currently placed jointly optimal. In other words, step S310 needs to determine all collision-free positions of the 3D model to be currently placed in the construction volume, and determine a collision-free position from all collision-free positions, and the collision-free position can make the layer area distribution of the construction volume and the fit of the 3D model to be currently placed at the position jointly optimal.

[0091] In one embodiment, the 3D model currently to be placed is a 3D model selected from all 3D models to be placed. All 3D models to be placed can be pre-stored in a model library, and each placement is selected from them and placed in the construction volume. In view of this, step S310 includes a step of determining the 3D model currently to be placed.

[0092] In one embodiment, the step of determining the current 3D model to be placed includes selecting the one with the largest bounding box volume from the remaining 3D models to be placed as the current 3D model to be placed. The remaining 3D models to be placed refer to the 3D models that have not been placed in the construction volume among all the 3D models to be placed. When the placement has never been completed, the remaining 3D models to be placed are equal to all the 3D models to be placed. After that, each time a 3D model is placed, the 3D model that has been placed is removed from all the 3D models to be placed to become the remaining 3D model to be placed. For the description of the relevant embodiments of the 3D model bounding box and its volume, please refer to the description of the embodiment of the 3D model bounding box and its volume. Figure 5 The description is not repeated here.

[0093] In one embodiment, before step S310, the computer device may sort all the 3D models to be placed from high to low based on the volumes of the bounding boxes of all the 3D models to be placed. Step S310 may select the highest ranked 3D model from the remaining 3D models to be placed as the current 3D model to be placed according to the sorting result. The highest ranked 3D model is the one with the largest bounding box volume among the remaining 3D models to be placed.

[0094] It should be noted that, in view of the different bounding box volumes of the 3D model in different postures, in some embodiments, the size selection or sorting of the bounding box volumes of each 3D model is to select or sort the size of the bounding box volume with the smallest height in all postures of the 3D model. All postures include each posture of the 3D model rotated once or multiple times, and the bounding box corresponding to each posture is selected as the bounding box of the 3D model with the smallest height for volume calculation.

[0095] In addition, the above selection of the 3D model with the largest bounding box volume as the current 3D model to be placed is only an example. In other embodiments, the computer device can also randomly select or use other preset rules to select all 3D models to be placed to determine the current 3D model to be placed. This application does not limit the determination method.

[0096] As described in some previous embodiments, before step S310, the 3D model and the build volume are voxelized. In other words, the operations based on the 3D model and the build volume in step S310 can be performed based on the voxelized grids corresponding to the 3D model and the build volume, respectively. The following description of some embodiments of step S310 respectively represents the 3D model and the build volume as voxelized grids, which should not be understood by those skilled in the art as a limitation on the 3D model and the build volume.

[0097] After determining the current 3D model to be placed, step S310 will further execute step S311, which is configured to place the current 3D model to be placed in the construction volume to search for all collision-free positions. For example, step S311 can use a brute force method to calculate the collision degree at each position of the voxelized grid, or use a deep learning method to train a neural network for determination, or use a No-Fit Polygon (NFP, also known as a non-fitting polygon or critical polygon) method to determine.

[0098] In order to reduce the computational complexity and improve the computational speed, in one embodiment, step S311 may be performed by a fast Fourier transform method. Fig.11, which is a schematic diagram of step S311 in one embodiment of the present application. As shown in the figure, the current 3D model 12 to be placed and the construction volume 320 with a preset volume height have been divided into voxels, that is, the current 3D model 12 to be placed and the construction volume 320 are respectively represented by voxelized grids, where one grid represents one voxel. Fig.11 The 3D model 12 currently to be placed is indicated by the voxelized grid corresponding to its bounding box, wherein an unfilled grid indicates that the 3D model 12 currently to be placed does not occupy the voxel in the bounding box, and a grid filled with 1 indicates that the 3D model 12 currently to be placed occupies the voxel in the bounding box. An unfilled grid in the build volume 320 indicates that the voxel in the build volume 320 is not occupied by an object and is a valid space, and a grid filled with 1 indicates that the voxel in the build volume 320 is occupied by an object.

[0099] exist Fig.11 The placement search of the current 3D model 12 to be placed in the updated building volume 320 is performed by performing a convolution calculation on the two, and all collision-free positions can be determined according to the convolution calculation result. Fig.11 The hollow voxels (i.e., corresponding to the unfilled grids) are assigned a value of 0, and the occupied voxels (i.e., corresponding to the grids filled with 1) are assigned a value of 1. The 3D model 12 to be placed is used as the convolution kernel, and the step size is set to one grid. The convolution calculation between the 3D model 12 to be placed and the construction volume 320 is performed to obtain the convolution result 40. The convolution result 40 reflects the collision of the current 3D model 12 to be placed at various positions in the construction volume 320. The grids with non-zero numbers in the convolution result 40 are the positions where the collision occurs, the grids with the result of N are the grids with no calculation results, which are also the positions where the collision occurs, and the grids with the result of 0 are all non-collision positions.

[0100] It should be noted here that the position of the 3D model in the aforementioned or subsequent embodiments involving voxels uses the position occupied by the voxel whose bounding box is closest to the coordinate origin of the build volume in its placement posture as a benchmark or reference. That is, the various positions where the 3D model is placed in the build volume use the position of the voxel corresponding to the lower left corner of the bounding box of the 3D model (the voxel of the bounding box is closest to the coordinate origin) in the build volume as a benchmark (or reference). Therefore, the various positions in the build volume described above or subsequently refer to the positions where the voxel corresponding to the lower left corner of the bounding box of the 3D model is placed, and in the calculation of the collision-free position, fit, and layer area distribution, the corresponding voxel is also filled in the lower left corner of the bounding box of the 3D model. Fig.11 As shown in the figure, the grid filled with 0 in the second row and second column (based on the lower left corner grid as the first row and first column) of the convolution result 40 represents a non-collision position, which means that the current 3D model 12 to be placed is Fig.11 The position where the voxel corresponding to the lower left corner of its bounding box should be placed in the posture in this way without causing collision.

[0101] It should be understood that Fig.11 For the convenience of description and display, a two-dimensional view is used for schematic illustration. Inspired by the description of this application, a person skilled in the art can expand the three-dimensional view based on the description of the two-dimensional view by simply corresponding each grid to a cube.

[0102] Step S310 further includes step S312, which is configured to determine a collision-free position among all collision-free positions that can make the layer area distribution of the build volume and the fit of the 3D model currently to be placed jointly optimal. The fit of the 3D model currently to be placed refers to the degree of closeness (also referred to as the degree of fit or closeness) between the 3D model currently to be placed and the surrounding objects when it is placed in the build volume. Similar to the existing set of objects in the aforementioned build volume, the surrounding objects may, for example, include the 3D model currently placed in the build volume and the non-placement area preset in the build volume. The layer area distribution of the build volume will be described in detail later.

[0103] See also Fig.12 , which is a flow chart of step S312 in one embodiment of the present application, as shown in the figure, step S312 includes step S3121, step S3122, and step S3123. In step S3121, the computer device determines the fit of the current 3D model to be placed at each position in the building volume based on the distance field of the building volume with a preset volume height.

[0104] The distance field of the build volume is used to indicate the shortest distance from each position in the build volume to the objects placed therein. In one embodiment, the distance field of the build volume with a preset volume height is configured as the distance field obtained when the last 3D model is placed in the build volume. The distance field will be determined later when the current 3D model to be placed is placed in the build volume. Those skilled in the art can understand the distance field obtained when the last 3D model is placed in the build volume based on subsequent embodiments, and will not be described in detail here.

[0105] See also Fig.13 , which is a schematic diagram of step S3121 in one embodiment of the present application, wherein the 3D model 12 to be placed is Fig.11 The exact same Fig.13 The build volume 321 with a preset volume height in Fig.11The number filled in each grid is used to represent the distance field of the construction volume 321. In the construction volume 321, the number filled in each grid is specifically the distance between the grid and its nearest occupied voxel (corresponding to Fig.11 The distance is measured by Manhattan distance. For example, Fig.13 The grid fill value in the upper right corner of the build volume 321 is 3 because the nearest occupied voxel to the grid corresponds to Fig.11 The grid filled with 1 in the third row and fourth column (based on the lower left corner of the first row and first column) has a Manhattan distance of 3 grids.

[0106] exist Fig.13 The degree of fit of the 3D model 12 at each position in the build volume 321 can be determined by performing convolution calculations on the 3D model 12 and the distance field of the build volume 321. Specifically, the 3D model 12 is used as a convolution kernel, the step size is set to one grid, and the convolution calculation of the 3D model 12 and the distance field of the build volume 321 is performed to obtain a convolution result 41. The convolution result 41 reflects or can be regarded as the degree of fit of the 3D model at each position in the build volume. In the convolution result 41, the grid is filled with N to indicate that there is no calculation result, and the number filled in each grid indicates the degree of fit of the 3D model at the position of the grid. The smaller the filled number, the higher the degree of fit at the position (which can be understood as tighter or closer to the surrounding objects), and the larger the filled number, the smaller the degree of fit at the position (which can be understood as looser or farther from the surrounding objects).

[0107] It should be understood that Fig.11 Similarly, Fig.13 The two-dimensional view is also used for schematic illustration. Inspired by the description of this application, a person skilled in the art can expand the three-dimensional view based on the description of the two-dimensional view by simply corresponding each grid to a cube.

[0108] In step S3122, the computer device determines the layer area distribution of the construction volume of the current 3D model to be placed in each of the collision-free positions and combines it with the fit degree accordingly to obtain the combination value in each collision-free position.

[0109] Among them, the layer area distribution of the build volume refers to the distribution of the area occupied by each layer in the build volume. The layer area distribution of the build volume when the 3D model to be placed is in each collision-free position can be understood as the layer area distribution of the corresponding build volume when the 3D model to be placed is placed in each collision-free position in the build volume. In one embodiment, each layer refers to each layer in the height direction. For example, a layer of voxels in the build volume in the Z direction can be represented as a layer of the build volume, and the area occupied by each layer can be represented by the number of voxels occupied by each layer. Furthermore, the layer area distribution of the build volume can be represented by the standard deviation of the area occupied by each layer of the build volume, that is, it can be represented by the standard deviation of the number of voxels occupied by each layer. In other examples, the layer area distribution can also be represented by other methods, such as variance, covariance, etc.

[0110] In one embodiment, step S3122 first performs the step of determining the layer area distribution of the construction volume when the current 3D model to be placed is in each collision-free position. Fig.14 Combined with Fig.11 , Fig.14 The figure shows a schematic diagram of determining the layer area distribution of the building volume in one embodiment of the present application. The figure takes the layer area distribution represented by the standard deviation as an example, wherein the current 3D model 12 to be placed and the building volume 320 are Fig.11 Corresponding to Fig.11 The convolution result 40 can determine all collision-free positions in the construction volume, which can be calculated based on Fig.11 The convolution result 40 determines various collision-free positions where the 3D model 12 to be currently placed can be placed. Fig.14 Taking the method shown in the figure as an example, the first layer (i.e., the bottom layer) to the fifth layer (i.e., the top layer) of the construction volume 320 are occupied by 5 voxels (i.e., grids), 3 voxels (i.e., grids), 3 voxels (i.e., grids), 1 voxel (i.e., grids), and 1 voxel (i.e., grids), respectively. That is, the areas occupied by the first layer to the fifth layer of the construction volume 320 are 5, 3, 3, 1, 1, respectively. Fig.14, which is listed on the right side of the build volume 320. At this time, the standard deviation of the occupied area of ​​each layer of the build volume 320 is about 1.50, and it is filled into the position occupied by the voxel in the lower left corner of the bounding box of the 3D model 12 (which is the voxel of the bounding box of the 3D model 12 closest to the coordinate origin of the build volume 320). Similarly, other collision-free positions are calculated and the calculated values ​​are filled into the build volume (only one collision-free position is shown in the figure, and the rest of the collision-free positions are analogous), thereby obtaining the build volume 322. The numbers filled in the grid represent the layer area distribution value of the build volume 322 when the voxel of the bounding box of the current 3D model to be placed closest to the coordinate origin is placed in the grid. The number filled with N represents the position where the collision occurs. The layer area distribution calculation is not performed at these positions, so there is no calculation result. That is, the numbers filled in the build volume 322 represent the layer area distribution of the build volume when the current 3D model to be placed is at each collision-free position.

[0111] It should be noted that the steps of constructing the layer area distribution of the volume when the current 3D model to be placed is in each collision-free position and the step of determining the fitting value at each position (i.e., step S3121) do not have a necessary order relationship, as long as the layer area distribution and the fitting value can be determined. Those skilled in the art can choose to first determine the layer area distribution of the volume when the current 3D model to be placed is in each collision-free position with the help of the various embodiments provided in the present application, and then execute the step S3121 of determining the fitting value. It is also possible to first execute the step S3121 of determining the fitting value, and then execute the step of determining the layer area distribution of the volume when the current 3D model to be placed is in each collision-free position.

[0112] In one embodiment, step S3122 further performs a step of combining the layer area distribution of the construction volume of the current 3D model to be placed at each non-collision position with the fit to obtain a combination value at each non-collision position. In some examples, the combination method can be combined by mathematical operation, such as multiplication, addition, or multiplication or addition after setting weights.

[0113] See also Fig.15 , which is a schematic diagram showing the combination of layer area distribution and fit in one embodiment of the present application, Fig.15 The convolution result 41 is Fig.13 The convolution result obtained in can be regarded as the fit of the current 3D model to be placed at each position in the construction volume. The construction volume 322 corresponds to Fig.14The numbers filled in the building volume 322 represent the layer area distribution of the building volume when the current 3D model to be placed is in each collision-free position. Specifically, the numbers filled in each grid of the building volume 322 are multiplied by the numbers filled in each grid of the convolution result 41 to obtain the combined value in each collision-free position. Fig.15 The combination value grid 42 is used to represent it, wherein the gray filled part is the combination value at each collision-free position, wherein the larger the number is, the worse the fit of the 3D model at that position and the comprehensive effect of the layer area distribution of the build volume at that position are, and the smaller the number is, the better the fit of the 3D model at that position and the comprehensive effect of the layer area distribution of the build volume at that position are.

[0114] Please continue reading Fig.12 In step S3123, the computer device selects the collision-free position with the smallest combined value as the joint optimal collision-free position.

[0115] In one embodiment, if Fig.15 As shown, the computer device may select the grid corresponding to the minimum value from the gray filled portion of the combined value grid 42 as the joint optimal collision-free position. Fig.15 As shown, the gray-filled portion has a minimum combined value of 4.50, and the grid corresponding to the combined value of 4.50 can be used as the joint optimal non-collision position. In an embodiment where there are multiple joint optimal non-collision positions, for example Fig.15 If there are two grids with a combined value of 4.50, one of them can be randomly selected or selected according to a preset selection rule as the joint optimal collision position.

[0116] In order to obtain a better placement effect, in some embodiments, step S310 includes rotating the current 3D model to be placed in a preset set of directions, so as to determine, based on the current 3D model to be placed in each rotation direction, a collision-free position in a building volume with a preset volume height so that the layer area distribution of the building volume and the fit degree of the current 3D model to be placed in the current rotation direction are jointly optimal.

[0117] In one embodiment, the preset set of directions may include a plurality of rotation directions with a central axis parallel to the X-axis, Y-axis, or Z-axis of the build volume as the rotation axis. The plurality of rotation directions may be, for example, 2, 4, 6, 8, 12, or 24 rotation directions. Among them, 2 rotation directions correspond to each rotation of 180°, 4 rotation directions correspond to each rotation of 90°, 6 rotation directions correspond to each rotation of 60°, 8 rotation directions correspond to each rotation of 45°, 12 rotation directions correspond to each rotation of 30°, and 24 rotation directions correspond to each rotation of 15°. The above selection of the rotation axis and the number of rotation directions are only examples and should not be construed as limitations on the present application.

[0118] Taking the two rotation directions with the central axis of the Z axis as the rotation axis as an example, the current 3D model to be placed is rotated 180° around the central axis on the Z axis. In this state, execute the following Figures 11 to 15 The various embodiment steps included in step S310 described in the related description can obtain the joint optimal collision-free position in the first rotation direction. Continue to rotate the current 3D model to be placed 180° around the central axis on the Z axis. In this state, execute the following steps: Figures 11 to 15 The various embodiments included in step S310 described in the related description can obtain the joint optimal collision-free position in the second rotation direction. It should be noted that the joint optimal collision-free position for the current 3D models to be placed in each rotation direction can be determined in parallel or in series, and this application does not limit this.

[0119] Further, after determining the joint optimal collision-free position, the computer device further performs step S320, such as Figure 1 As shown, in step S320, the placement position of the 3D model to be currently placed is determined based on the joint optimal collision-free position to place the 3D model to be currently placed in the construction volume.

[0120] According to the embodiment of determining the joint optimal collision-free position in the aforementioned step S310, the joint optimal collision-free position is associated with the posture of the 3D model to be currently placed. Therefore, after step S130 determines the placement position of the 3D model to be currently placed based on the joint optimal collision-free position, that is, it is determined in what posture the 3D model to be currently placed will be placed in the build volume.

[0121] Taking the embodiment in which the 3D model to be placed does not need to be rotated in a preset set of directions as an example, step S310 can only determine a joint optimal collision-free position, and step S320 uses the joint optimal collision-free position as the placement position, and the 3D model to be placed is placed in the construction volume in the state calculated in step S310 (also referred to as the rotation-free state or current state). Fig.16 , which is a schematic diagram showing how to place a 3D model into a building volume in one embodiment of the present application, Fig.16 Lieutenant General Fig.15 The position corresponding to the grid with the combination value of 4.50 in the second row and second column of the combination value grid 42 is taken as the joint optimal collision-free position, and the 3D model 12 to be placed is kept at this position. Fig.11 and Fig.13 The pose shown in FIG. 1 is placed into build volume 320 .

[0122] Taking the embodiment in which the 3D model to be currently placed is rotated in a preset set of directions as an example, the joint optimal collision-free position in each rotation direction can be determined in step S310, and the joint optimal collision-free position with the smallest value will be further selected as the placement position in step S320, and the 3D model to be currently placed will be placed in the build volume in the posture in the rotation direction corresponding to the smallest value. For example, the joint optimal collision-free position with the smallest value in the rotation direction rotated 180° with the central axis parallel to the Z axis of the build volume as the rotation axis will be used as the placement position, and the 3D model to be currently placed will be placed in the build volume in the posture after being rotated 180° as the posture in the rotation direction.

[0123] Furthermore, step S320 also includes the step of updating the effective space and distance field of the construction volume when placing the current 3D model to be placed in the construction volume. The effective space refers to the space in the construction volume that is not occupied by objects, such as Fig.11 The unfilled grid in the build volume 320 is valid space.

[0124] In one embodiment, if Fig.16 As shown in FIG. 1 , when the 3D model 12 to be placed is placed in the building volume 320, the effective space of the building volume 320 is updated. Specifically, when the 3D model 12 is placed in the building volume 320, the grid occupied by the 3D model 12 is filled with 1, as shown in FIG. Fig.16 The updated build volume 320' of the available space is shown in FIG.

[0125] In one embodiment, the computer device updates the distance field according to the effective space after the construction volume is updated. Further, in order to reduce the amount of calculation, the updating of the distance field includes the steps of determining the update range and updating the distance field for the update range. Specifically, the updating range may be determined by taking the bounding box of the 3D model as the center in the construction volume and extending at least to the middle position of the bounding box from the boundary of the construction volume as the update range. Updating the distance field for the update range includes performing regional distance field updates from the starting angle of the diagonal direction to the boundary of the update range in each diagonal direction of the bounding box of the 3D model. The center position of the bounding box from the boundary of the construction volume includes the center position of each surface of the bounding box from the boundary of the construction volume. In this way, when the distance field is updated each time, it is equivalent to updating only the area affected by the current 3D model to be placed. For the area far away from the current 3D model to be placed, since the distance field will not be affected, it does not need to be updated, which can reduce the amount of calculation and greatly improve the placement rate.

[0126] It should be noted that the middle position of the bounding box of the 3D model from the boundary of the construction volume does not absolutely point to the center line position of the bounding box of the 3D model from the boundary of the construction volume. When the center line position is between two rows or columns of voxels, the center line position is used as the middle position. When the center line position occupies a row or a column of voxels, the center line is moved outward to a position covering the row or the column of voxels as the middle position. In other words, when the bounding box of the 3D model is away from the boundary of the construction volume by an even number of rows or columns of voxels, the update is to start from the bounding box of the 3D model to 1 / 2 of the even number of rows or columns. When the bounding box of the 3D model is away from the boundary of the construction volume by an odd number of rows or columns of voxels, the update is to start from the bounding box of the 3D model and round up 1 / 2 of the odd number of rows or columns as the end point. Of course, in other examples, when the center line position occupies a row or a column of voxels, the center line can also be moved inward to a position not covering the row or the column of voxels as the middle position, and this application does not limit this.

[0127] See also Fig.17 , which is a schematic diagram showing the updating of the distance field of the construction volume in one embodiment of the present application, Fig.17 The construction volume 321 is Fig.13 The filled numbers shown in represent the construction volume 321 of the distance field, as Fig.16 When the 3D model 12 is placed in the placement position, its bounding box occupies Fig.17 The gray grid is filled in. First, determine the update range. Fig.17In the example, the distance between the bounding box and the boundary of the build volume 321 is two grid rows from the upper boundary of the upper surface, one grid row from the lower boundary of the lower surface, one grid row from the left boundary of the left surface, and two grid rows from the right boundary of the right surface. Therefore, the distance between the bounding box and the middle of the build volume 321 is one grid row from the upper surface, one grid row from the lower surface, one grid row from the left surface, and one grid row from the right surface. That is, the update range is Fig.17 The area framed by the bold lines includes the grids occupied by the bounding box in the construction volume 321, as well as a row of grids above, a row of grids below, a column of grids to the left, and a column of grids to the right of the bounding box.

[0128] Updates to the distance field only update Fig.17 The update range in the bounding box (corresponding to the reference Fig.17 In each diagonal direction of the grid filled with gray in the figure, the distance field is updated in different regions from the starting angle of the diagonal direction to the boundary of the update range. In other words, the update range is updated in different regions, and each region is updated from the starting angle of the diagonal direction to the boundary of the update range. Fig.17 As shown, the four corners of the bounding box are marked as the first corner C, the second corner D, the third corner E, and the fourth corner F, respectively. They have four diagonal directions, namely the first diagonal direction (i.e., the direction from C to E), the second diagonal direction (i.e., the direction from D to F), the third diagonal direction (i.e., the direction from E to C), and the fourth diagonal direction (i.e., the direction from F to D). The distance field update of each region includes: Fig.17 The first area L1, the second area L2, the third area L3, and the fourth area L4 are updated. The first area L1 is to update the distance field in accordance with the direction of the dotted arrow in the first area L1, with the first corner C as the starting point and the boundary of the update range as the end point. The update of the second area L2 is to update the distance field in accordance with the direction of the dotted arrow in the second area L2, with the second corner D as the starting point and the boundary of the update range as the end point. The update of the third area L3 is to update the distance field in accordance with the direction of the dotted arrow in the third area L3, with the third corner E as the starting point and the boundary of the update range as the end point. The update of the fourth area L4 is to update the distance field in accordance with the direction of the dotted arrow in the fourth area L4, with the fourth corner F as the starting point and the boundary of the update range as the end point. After updating the four areas, the final updated distance field can be obtained by merging them, which is presented in the construction volume 321'. The grid filled with gray in the construction volume 321' is the part updated in this placement.

[0129] It should be understood that in order to increase speed, Fig.17The updating process of the four regions can be performed in parallel, and of course can be performed in series in other examples, which is not limited in this application. When the results of the update of the four regions are merged, for examples where different values ​​appear in the same grid, the smaller value is taken as the merged filling value.

[0130] in addition, Fig.17 The example is explained in two-dimensional perspective. In practice, the bounding box is configured as a cuboid. It is only necessary to update the distance field of 8 areas in the eight diagonal directions corresponding to the four diagonal lines of the cuboid, starting from the starting angle of the diagonal direction to the boundary of the update range. Fig.17 The eight regions are three-dimensional regions, and those skilled in the art can Fig.17 The description of the two-dimensional perspective in the text can be used to expand the three-dimensional view based on the two-dimensional view, which will not be repeated here.

[0131] Through Figures 1 to 17 The process described in any embodiment of the related description can complete the placement of the current 3D model to be placed. Further, in order to complete the placement of all 3D models to be placed, in one embodiment, the 3D model placement method also includes looping through the above steps S310 to S320 until all 3D models to be placed are placed in the construction volume.

[0132] The following describes the process in which a computer device cyclically executes the above steps S310 to S320 to place all the 3D models to be placed in the construction volume in combination with the above embodiments.

[0133] The computer device will determine the preset volume height of the build volume before step S310, and will sort all the 3D models to be placed from large to small in volume. In the first cycle, the computer device first selects the 3D model ranked highest as the first 3D model to be placed (also called the first 3D model, that is, the current 3D model to be placed in the first cycle), and the joint optimal collision-free position of the first 3D model can be determined according to step S310 provided in the aforementioned embodiment. Then, step S320 can be executed to determine the placement position of the first 3D model and place the first 3D model in the build volume, thereby completing the placement of the first 3D model.

[0134] In the second cycle, the computer device selects the 3D model ranked highest at this time (i.e., except for the highest position in the first 3D model) as the second 3D model to be placed (also called the second 3D model, i.e., the 3D model currently to be placed in the second cycle), and the joint optimal collision-free position of the second 3D model can be determined according to step S310 provided in the above embodiment. Then, step S320 can be executed to determine the placement position of the second 3D model and place the second 3D model in the construction volume, thereby completing the placement of the second 3D model.

[0135] The computer device places the third 3D model in a similar manner, and then performs a fourth round of construction volume updating and placement of the fourth 3D model, and so on, until the placement of the last 3D model is completed.

[0136] In one embodiment, when it is determined that there is no placement position in the building volume of the preset volume height in the loop execution of the above steps S310 to S320, the 3D model placement method further executes the step of raising the volume height of the building volume. In this way, the problem of not being able to place when the preset volume height is inaccurate can be avoided.

[0137] Furthermore, in order to prevent the volume height of the built volume from being too high, in one embodiment, raising the volume height of the built volume includes raising the volume height of the built volume by 10% of the preset volume height. In other words, the raised volume height is the preset volume height + the preset volume height multiplied by 10%.

[0138] In one embodiment, the volume height adjustment operation of the building volume is only performed once, but there is still a situation where there is no placement position. Therefore, the step of increasing the volume height of the building volume can be performed multiple times, and further, the volume height is increased by 10% of the preset volume height each time.

[0139] In order to avoid the problem of uneven distribution of 3D models within the build volume due to dense distribution of 3D models on one side of the build volume, in one embodiment, the 3D model placement method provided in the present application also includes a step of optimizing the distribution after all 3D models to be placed are placed.

[0140] In one embodiment, the step of optimizing the distribution includes extracting 3D models from the build volume in sequence to select a collision-free position in the layer where the extracted 3D models are located so that the extracted 3D models have the best fit and rearrange them. In other words, in this embodiment, the optimized distribution can be achieved by extracting the 3D models from the build volume in sequence and rearranging them in the layer where they are located with fit as a factor. In this way, the arrangement of the 3D models in the build volume can be made more uniform without affecting the consideration of the layer area distribution in the aforementioned steps S310 and S320, effectively avoiding the situation where they are gathered on one side.

[0141] See also Fig.18 , which is a schematic diagram of the process of rearranging the extracted 3D model in one embodiment of the present application. As shown in the figure, the step of optimizing the distribution includes step S331, step S332, and step S333.

[0142] In step S331, the computer device extracts the 3D model from the construction volume and updates the effective space and distance field of the construction volume. The construction volume is the construction volume corresponding to the completion of the placement of all the 3D models to be placed. The extraction can be understood as taking the 3D model out of the construction volume. For example, the 3D model can be randomly extracted from the construction volume, or the 3D model can be extracted in the order of placement, or the 3D model can be extracted according to a preset extraction rule. The present application does not limit the extraction method.

[0143] In one implementation, step S331 updates the effective space and distance field of the construction volume when extracting the 3D model. In this embodiment, the determination of the effective space of the construction volume after extracting the 3D model can be determined by updating the effective space of the construction volume included in step S320. For details, please refer to Fig.16 and any of the embodiments described herein for performing efficient spatial updating of a build volume, except that: Fig.16 The update is performed after the 3D model is placed. In this embodiment, the update is performed after the 3D model is extracted. In this embodiment, it can be understood that the volume before the update is the construction volume 320', and the volume after the update is the construction volume 320. The specific update process will not be described in detail here.

[0144] In one embodiment, step S331 of performing distance field update when extracting the 3D model includes determining an update range based on the bounding box of the extracted 3D model to perform distance field update on the update range. In one example, determining the update range based on the bounding box of the extracted 3D model includes taking the bounding box of the extracted 3D model as the center in the construction volume and extending at least to the middle position of the bounding box from the boundary of the construction volume as the update range. In this example, the method for determining the update range can adopt the method for determining the update range in the distance field update of the construction volume in step S320, for details, please refer to the method for determining the update range in step S331. Fig.17 Any embodiment described in related thereto regarding determining an update scope.

[0145] Further, step S331 needs to perform distance field update on the update range. In this embodiment, performing distance field update on the update range includes the steps of taking the starting angle of each diagonal direction of the update range as the starting point and the ending angle as the ending point to perform distance field update. Fig.19, which is a schematic diagram showing updating the distance field of the update range in the optimization distribution in one embodiment of the present application, Fig.19 The construction volume 321 is Fig.17 The construction volume 321′ shown in FIG. 1 , in which the numbers filled in represent the distance field, is now shown as Fig.16 The 3D model 12 to be placed is taken as the extracted 3D model to be extracted from the construction volume 321' for distance field update. The determined update range is Fig.19 The area outlined in bold in the build volume.

[0146] Specifically, the four corners of the update range are respectively identified as a first corner P, a second corner Q, a third corner S, and a fourth corner R, which have four diagonal directions, namely a first diagonal direction (i.e., a direction from P to S), a second diagonal direction (i.e., a direction from Q to R), a third diagonal direction (i.e., a direction from S to P), and a fourth diagonal direction (i.e., a direction from R to Q). Updating the distance field of the update range includes: an update process N1 (i.e., a process of updating the distance field of the update range in the direction of the dotted arrow in N1 with the first corner P as the starting point and the third corner S as the end point), an update process N2 (i.e., a process of updating the distance field of the update range in the direction of the dotted arrow in N2 with the second corner Q as the starting point and the fourth corner R as the end point), an update process N3 (i.e., a process of updating the distance field of the update range in the direction of the dotted arrow in N3 with the third corner S as the starting point and the first corner P as the end point), and an update process N4 (i.e., a process of updating the distance field of the update range in the direction of the dotted arrow in N4 with the fourth corner R as the starting point and the second corner Q as the end point).

[0147] Furthermore, performing distance field analysis on the update range also includes merging the update results in the above diagonal directions. Specifically, in the example where different values ​​appear for the same grid, the smaller value is taken as the merged filling value. After merging, the final updated distance field can be obtained and presented in the construction volume 321". The grid filled with gray in the construction volume 321" is the part that has been optimized and updated in this extraction.

[0148] In step S332, the computer device determines the fit of the extracted 3D model at each collision-free position in the layer where the extracted 3D model is located in the construction volume based on the updated distance field. In this embodiment, the updated effective space and distance field are the effective space and distance field updated in step S331.

[0149] Step S332 includes placing the extracted 3D model on its layer in the updated valid space of the construction volume to determine a collision-free position on the layer, and determining the fit of the extracted 3D model at each collision-free position on its layer in the construction volume based on the updated distance field.

[0150] In one embodiment, the extracted 3D model is placed in the layer where it is located in the effective space after the construction volume is updated to determine the collision-free position on the layer. The method of determining all collision-free positions adopted in step S311 can be used. For details, please refer to Fig.11 The present invention can be understood in accordance with any of the embodiments related to determining all collision-free positions in the related embodiments, the only difference being that in the present embodiment, only the collision-free position of the layer where the extracted 3D model is located needs to be determined, for example, Fig.16 The 3D model 12 to be placed in the present embodiment is used as the extracted 3D model, which can be, for example, Fig.16 , then when searching for a collision-free position, we only need to consider the lower left corner of the bounding box of the 3D model as a reference and translate the 3D model so that the lower left corner of its bounding box traverses its layer (i.e. Fig.16 The second layer in the figure), that is, the calculation result of the collision-free position of the layer where the 3D model is located can be obtained, and the specific process will not be described in detail here.

[0151] In one embodiment, the method used in step S312 may be used to determine the fit of the extracted 3D model at each collision-free position on the layer in the construction volume based on the updated distance field. For details, please refer to Fig.13 The present invention can be understood as any embodiment of determining the degree of fit in its related embodiments, the only difference being that, in this embodiment, it is not necessary to perform all the degree of fit calculations, but only the degree of fit of the layer where the extracted 3D model is located needs to be calculated, and the specific process will not be described in detail here.

[0152] In step S333, the computer device determines the collision-free position corresponding to the maximum value of the fit under each collision-free position as the re-placement position of the extracted 3D model. In this embodiment, step S333 selects from the fit under each collision-free position of the layer in step S332, and selects the collision-free position corresponding to the maximum value as the re-placement position of the extracted 3D model. That is, the extracted 3D model will be re-placed in a manner that the voxel of its bounding box closest to the coordinate origin is placed in the grid corresponding to the maximum value. Furthermore, in an embodiment where there are multiple maximum values, one of them can be randomly selected or selected according to a preset selection rule as the re-placement position.

[0153] In the step of distribution optimization, a 3D model is extracted in turn and rearranged according to the embodiments provided in the above steps S331 to S333 until all 3D models in the construction volume are traversed, thus completing the entire distribution optimization work.

[0154] The present application also provides a 3D printing method in some embodiments, which can be performed by a printing device, which can be configured as a device for 3D printing using powder materials such as selective laser sintering or binder jetting. The printing device includes at least a printing platform, and a 3D object is produced on the surface of the printing platform from a building material (such as powder).

[0155] See also Fig. 20 , which is a flow chart of a printing method in an embodiment of the present application, as shown in the figure, the printing method includes step S210 and step S220. In step S210, the printing device executes to obtain data to be printed. In some embodiments, the data to be printed is obtained based on a building volume in which a 3D model is placed.

[0156] The build volume is adapted to the printing platform of the printing device, and the placed 3D models are the 3D objects to be printed. Each 3D model can be placed in the build volume according to the 3D model placement method provided in any of the aforementioned embodiments of the present application. For details, please refer to the aforementioned Figures 1 to 19 Any embodiments described in related manner will not be described in detail here.

[0157] In step S220, the printing device performs three-dimensional manufacturing based on the data to be printed to form a 3D object corresponding to the placed 3D model. Specifically, the printing device performs three-dimensional manufacturing by stacking the building materials layer by layer on the printing platform, so as to print out the 3D object corresponding to the 3D model placed in the building volume.

[0158] In some embodiments, the present application also provides a 3D model placement system, which can be deployed in a computer device, for example, as a software tool or software module that can process data, and it uses the operating environment provided by the hardware device and / or operating system in the computer device to perform the placement of 3D models. The specific structure and function of the computer device can be found in the description of the embodiment of the 3D model placement method in the present application, and will not be repeated here.

[0159] See also Fig.21 , which is a block diagram of a 3D model placement system in one embodiment of the present application. As shown in the figure, the 3D model placement system 5 includes an optimal position determination module 50 and a placement module 51. The optimal position determination module 50 is used to determine, based on the 3D model to be currently placed, a collision-free position that makes the layer area distribution of the construction volume and the fit of the 3D model to be currently placed in a construction volume with a preset volume height optimal. The placement module 51 is used to determine the placement position of the 3D model to be currently placed based on the joint optimal collision-free position so as to place the 3D model to be currently placed in the construction volume.

[0160] In one embodiment, the optimal position determination module 50 and the placement module 51 respectively coordinate and execute the 3D model placement method disclosed in any of the aforementioned embodiments of the present application according to the functions described above. Figures 1 to 17 In addition, in some embodiments, the optimal position determination module 50 and the placement module 51 work in a cycle until all the 3D models to be placed are placed.

[0161] In one embodiment, the 3D model placement system further includes a distribution optimization module for performing distribution optimization after all 3D models to be placed are placed. The distribution optimization module performs the steps of distribution optimization in the embodiment of the 3D model placement method of this application according to its function. Figure 18 to Figure 19 Any embodiments described in related manner will not be described in detail here.

[0162] The present application also provides a computer device, in an embodiment, the computer device is used to implement the 3D model placement method described in any of the above embodiments. In one embodiment, the computer device is a device capable of performing digital calculations, logical processing, and information processing on data, including but not limited to: personal computers, industrial computers, tablets, smart phones, servers, server clusters, smart terminals, cloud-based server systems, etc.

[0163] See also Fig. 22 , which is a schematic diagram of the structure of a computer device in an embodiment of the present application, wherein the computer device 6 includes a storage device 60 and a processing device 61 connected to the storage device 60. Furthermore, the computer device also includes an interface device 62.

[0164] In some embodiments, the storage device 60 is used to store at least one program, and the at least one program can be executed by the processing device 61 to coordinate the storage device 60 to implement the 3D model placement method described in any of the above embodiments. Here, the storage device 30 includes but is not limited to: Read-Only Memory (ROM), Random Access Memory (RAM), Nonvolatile RAM (NVRAM). For example, the storage device 60 includes a flash memory device or other non-volatile solid-state storage device. In some embodiments, the storage device 60 may also include a memory away from one or more processing devices 61, such as a network attached memory accessed via an RF circuit or an external port and a communication network, wherein the communication network may be the Internet, one or more intranets, local area networks, wide area networks, storage area networks, etc., or a suitable combination thereof. The memory controller may control access to the memory by other components of the device such as the CPU and peripheral interfaces.

[0165] In some embodiments, the processing device 61 includes one or more processors. The processing device 61 can be operable to perform data read and write operations with the storage device 60. The processing device 61 includes one or more general-purpose microprocessors, one or more application-specific processors (ASICs), one or more digital signal processors (Digital Signal Processors, referred to as DSPs), one or more field programmable gate arrays (Field Programmable Gate Arrays, referred to as FPGAs), or any combination thereof.

[0166] In some embodiments, the interface device 62 includes at least one interface unit, each of which is used to output a visual interface, receive a human-computer interaction event generated according to the operation of a technician, etc. For example, the interface device 62 includes but is not limited to: a serial interface such as an HDMI interface or a USB interface, or a parallel interface, etc. In one embodiment, the interface device 62 also includes a network communication unit, which is a device for data transmission using a wired or wireless network, examples of which include but are not limited to: an integrated circuit including a network card, a local area network module such as a WiFi module or a Bluetooth module, a wide area network module such as a mobile network, etc.

[0167] The present application also provides a computer-readable storage medium storing at least one program, wherein the at least one program, when called and executed by a processor of a computer, implements the 3D model placement method in any of the above embodiments.

[0168] The present application also provides a computer program product. When the computer program product is run on a computer, the computer is enabled to execute the above-mentioned related steps to implement the 3D model placement method in any of the above-mentioned embodiments.

[0169] If the method is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, or the part of the technical solution, can be embodied in the form of a software product, which is stored in a storage medium and includes several instructions to enable a computer device equipped with the storage medium to execute all or part of the steps of the method described in each embodiment of the present application.

[0170] In the embodiments provided in the present application, the computer storage medium provided may include a read-only memory, a random access memory, an EEPROM, a CD-ROM or other optical disk storage device, a disk storage device or other magnetic storage device, a flash memory, a USB flash drive, a mobile hard disk, or any other medium that can be used to store a desired program code in the form of an instruction or data structure and can be accessed by a computer. In addition, any connection can be appropriately referred to as a computer-readable medium. For example, if the instruction is sent from a website, a server or other remote source using a coaxial cable, an optical fiber cable, a twisted pair, a digital subscriber line (DSL), or wireless technologies such as infrared, radio, and microwaves, the coaxial cable, optical fiber cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwaves are included in the definition of the medium. However, it should be understood that computer storage media and data storage media do not include connections, carriers, signals, or other temporary media, but are intended to be non-temporary, tangible storage media. Disk and disc, as used in this application, includes compact disc (CD), laser disc, optical disc, digital versatile disc (DVD), floppy disk and Blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers.

[0171] In summary, the 3D model placement method, 3D printing method, 3D model placement system, computer equipment, computer-readable storage medium and computer program product disclosed in the present application can make the difference in area occupied by each layer of the build volume smaller and the distribution in a single layer more uniform by taking into account both the fit and the layer area distribution of the build volume during the 3D model placement process, thereby ensuring that the density of the powder is always uniform in subsequent printing and avoiding deformation of the 3D object.

[0172] Furthermore, a non-placement area can be preset in the building volume, thereby allowing a non-processing area to appear on the printing platform and allowing a specific 3D model to be placed.

[0173] Furthermore, a preset volume height is determined for the build volume by using a simulated placement method, thereby ensuring that the height of the build volume after placement will not be too high, thereby improving printing efficiency.

[0174] Furthermore, when placing the 3D model in the construction volume, by adopting a diagonal scanning method to update the distance field with the placement position of the 3D model as the starting point and the middle position of the 3D model from the boundary of the construction volume as the end point, only the distance field of the area affected by the placement of the 3D model can be updated, which greatly reduces the amount of calculation.

[0175] Furthermore, by performing the step of optimizing the distribution after all the 3D models to be placed are placed, the problem of dense distribution of the 3D models on one side of the construction volume is avoided, thereby making the placement effect more uniform.

[0176] The above embodiments are merely illustrative of the principles and effects of the present application and are not intended to limit the present application. Anyone familiar with the technology may modify or change the above embodiments without violating the spirit and scope of the present application. Therefore, all equivalent modifications or changes made by a person of ordinary skill in the art without departing from the spirit and technical ideas disclosed in the present application shall still be covered by the claims of the present application.

Claims

1. A 3D model placement method, characterized in that: The following steps are involved: Determine, based on the current 3D model to be placed, a collision-free position in a building volume with a preset volume height so that the layer area distribution of the building volume and the fit degree of the current 3D model to be placed are jointly optimal; as well as The placement position of the 3D model to be currently placed is determined based on the joint optimal collision-free position to place the 3D model to be currently placed in the construction volume.

2. The 3D model placement method according to claim 1, characterized in that: The method also includes the step of sequentially simulating the placement of all 3D models to be placed to determine the preset volume height.

3. The 3D model placement method according to claim 2, characterized in that: The step of simulating the placement of all 3D models to be placed in sequence to determine the preset volume height includes: cyclically executing the step of updating the volume height of the construction volume according to the 3D model currently to be placed to determine the proposed placement position of the 3D model currently to be placed in the updated construction volume until the proposed placement of all 3D models to be placed is completed, so as to determine the volume height of the last updated construction volume as the preset volume height.

4. The 3D model placement method according to claim 3, characterized in that: The step of updating the volume height of the construction volume according to the current 3D model to be placed to determine the placement position of the current 3D model to be placed in the updated construction volume includes: Updating the volume height of the construction volume according to the comparison result between the current 3D model to be placed and the residual height in the current construction volume; Determine a collision-free position in the updated build volume that optimizes the placement height and fit of the 3D model currently to be placed; and Based on the placement height and fit of the 3D model currently to be placed and the optimal collision-free position, the proposed placement position of the 3D model currently to be placed is determined to propose placement of the 3D model currently to be placed.

5. The 3D model placement method according to claim 1, characterized in that: The layer area distribution is represented by the standard deviation of the area occupied by each layer of the build volume.

6. The 3D model placement method according to claim 1, characterized in that: The step of determining, based on the 3D model to be currently placed, a collision-free position in a building volume with a preset volume height so that the layer area distribution of the building volume and the fit degree of the 3D model to be currently placed are jointly optimal includes: the step of placing the 3D model to be currently placed in the building volume and searching to determine all collision-free positions.

7. The 3D model placement method according to claim 6, characterized in that: The step of determining, based on the current 3D model to be placed, a collision-free position in a building volume with a preset volume height so that the layer area distribution of the building volume and the fit degree of the current 3D model to be placed are jointly optimal also includes: Determining the fit of the 3D model to be currently placed at various positions in the building volume based on the distance field of the building volume with the preset volume height; Determine the layer area distribution of the construction volume of the current 3D model to be placed at each non-collision position and combine it with the fit degree accordingly to obtain a combination value at each non-collision position; The collision-free position with the smallest combined value is selected as the joint optimal collision-free position.

8. The 3D model placement method according to claim 1, characterized in that: The step of determining, based on the current 3D model to be placed, a collision-free position in a construction volume with a preset volume height in which the layer area distribution of the construction volume and the degree of fit of the current 3D model to be placed are jointly optimal includes: rotating the current 3D model to be placed in a preset set of directions, so as to determine, based on the current 3D model to be placed in each rotation direction, a collision-free position in a construction volume with a preset volume height in which the layer area distribution of the construction volume and the degree of fit of the current 3D model to be placed in the current rotation direction are jointly optimal.

9. The 3D model placement method according to claim 8, characterized in that: The step of determining the placement position of the current 3D model to be placed based on the joint optimal collision-free position to place the current 3D model to be placed in the construction volume includes: selecting the joint optimal collision-free position with the smallest value in all rotation directions as the placement position.

10. The 3D model placement method according to claim 1, characterized in that: The step of determining the placement position of the 3D model to be currently placed based on the joint optimal collision-free position to place the 3D model to be currently placed in the building volume includes: the step of updating the effective space and distance field of the building volume when placing the 3D model in the building volume.

11. The 3D model placement method according to claim 10, characterized in that: The step of updating the distance field of the construction volume comprises: In the construction volume, taking the bounding box of the current 3D model to be placed as the center, the update range is at least extended to the middle position of the bounding box from the boundary of the construction volume; The distance field is updated in different regions in each diagonal direction of the bounding box of the current 3D model to be placed, starting from the starting angle of the diagonal direction and ending at the boundary of the update range.

12. The 3D model placement method according to claim 1, characterized in that: The method also includes the step of increasing the volume height of the building volume when there is no placement space in the building volume of the preset volume height.

13. The 3D model placement method according to claim 12, characterized in that: The increasing the volume height of the building volume includes increasing the volume height of the building volume by 10% of a preset volume height.

14. The 3D model placement method according to claim 1, characterized in that: The step of presetting a non-placement area in the building volume is also included.

15. The 3D model placement method according to claim 14, characterized in that: The non-placement area is configured as a reserved non-processing area and / or a designated model placement position.

16. The 3D model placement method according to claim 1, characterized in that: It also includes the step of optimizing the distribution after all the 3D models to be placed are placed.

17. The 3D model placement method according to claim 16, characterized in that: The step of optimizing the distribution includes: extracting 3D models from the construction volume in sequence to select a collision-free position in the layer where the extracted 3D models are located so as to re-arrange the extracted 3D models at a position that makes the fit of the extracted 3D models optimal.

18. The 3D model placement method according to claim 17, characterized in that: in, Extracting a 3D model from the construction volume to select a collision-free position in the layer where the extracted 3D model is located so as to achieve the best fit of the extracted 3D model for rearrangement includes: extracting a 3D model from the build volume and updating the effective space and distance field of the build volume; Determining the fit of the extracted 3D model at each collision-free position in the layer where the extracted 3D model is located in the construction volume based on the updated effective space and distance field; and The non-collision position corresponding to the maximum value of the fit degrees at the non-collision positions is determined as the rearrangement position of the extracted 3D model.

19. A 3D printing method, characterized in that: include: Acquire data to be printed, wherein the data to be printed is obtained based on a building volume in which a 3D model is placed, and the 3D model placed in the building volume is placed based on the 3D model placement method according to any one of claims 1 to 18; and Three-dimensional manufacturing is performed based on the data to be printed to form 3D objects corresponding to the placed 3D models.

20. A 3D model placement system, characterized in that: include: An optimal position determination module, for determining, based on the 3D model currently to be placed, a collision-free position in a building volume with a preset volume height so that the layer area distribution of the building volume and the fit degree of the 3D model currently to be placed are jointly optimal; as well as A placement module is used to determine the placement position of the 3D model to be currently placed based on the joint optimal collision-free position so as to place the 3D model to be currently placed in the construction volume.

21. A computer device, characterized in that: include: A storage device for storing at least one program; as well as A processing device is connected to the storage device, and is used to call the at least one program from the storage device and implement the 3D model placement method as described in any one of claims 1 to 18 when executing it.

22. A computer-readable storage medium, characterized in that: At least one program is stored, and when the at least one program is called and executed by a processor of a computer, the 3D model placement method as described in any one of claims 1 to 18 is implemented.

23. A computer program product, characterized in that When the computer program product is run on a computer, the computer is enabled to execute the 3D model placement method according to any one of claims 1 to 18.