CN114147971A - Method, device and equipment for generating 3D printing file and storage medium - Google Patents

Method, device and equipment for generating 3D printing file and storage medium Download PDF

Info

Publication number
CN114147971A
CN114147971A CN202111448612.3A CN202111448612A CN114147971A CN 114147971 A CN114147971 A CN 114147971A CN 202111448612 A CN202111448612 A CN 202111448612A CN 114147971 A CN114147971 A CN 114147971A
Authority
CN
China
Prior art keywords
slice
model
slicing
oblique
determining
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111448612.3A
Other languages
Chinese (zh)
Inventor
敖丹军
唐京科
易陈林
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen Chuangxiang 3D Technology Co Ltd
Original Assignee
Shenzhen Chuangxiang 3D Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen Chuangxiang 3D Technology Co Ltd filed Critical Shenzhen Chuangxiang 3D Technology Co Ltd
Priority to CN202111448612.3A priority Critical patent/CN114147971A/en
Publication of CN114147971A publication Critical patent/CN114147971A/en
Priority to PCT/CN2022/127038 priority patent/WO2023098338A1/en
Pending legal-status Critical Current

Links

Images

Classifications

    • BPERFORMING OPERATIONS; TRANSPORTING
    • B29WORKING OF PLASTICS; WORKING OF SUBSTANCES IN A PLASTIC STATE IN GENERAL
    • B29CSHAPING OR JOINING OF PLASTICS; SHAPING OF MATERIAL IN A PLASTIC STATE, NOT OTHERWISE PROVIDED FOR; AFTER-TREATMENT OF THE SHAPED PRODUCTS, e.g. REPAIRING
    • B29C64/00Additive manufacturing, i.e. manufacturing of three-dimensional [3D] objects by additive deposition, additive agglomeration or additive layering, e.g. by 3D printing, stereolithography or selective laser sintering
    • B29C64/30Auxiliary operations or equipment
    • B29C64/386Data acquisition or data processing for additive manufacturing
    • BPERFORMING OPERATIONS; TRANSPORTING
    • B33ADDITIVE MANUFACTURING TECHNOLOGY
    • B33YADDITIVE MANUFACTURING, i.e. MANUFACTURING OF THREE-DIMENSIONAL [3-D] OBJECTS BY ADDITIVE DEPOSITION, ADDITIVE AGGLOMERATION OR ADDITIVE LAYERING, e.g. BY 3-D PRINTING, STEREOLITHOGRAPHY OR SELECTIVE LASER SINTERING
    • B33Y50/00Data acquisition or data processing for additive manufacturing
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2113/00Details relating to the application field
    • G06F2113/10Additive manufacturing, e.g. 3D printing

Abstract

The invention discloses a method, a device, equipment and a storage medium for generating a 3D printing file. A method for generating a 3D printing file comprises the following steps: acquiring slice layering data of the 3D model in different oblique slice directions; for each oblique slice direction, determining the supporting amount of the 3D model required to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction; determining a target slice direction corresponding to the minimum support amount; and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction. By the method, the model printing is carried out in the slicing direction with the least supporting amount, the problems that the material consumption is increased, the printing time is increased, the supporting is difficult to peel and the surface precision of the model is influenced after peeling due to more supporting structures are solved, and the effects of improving the printing speed of the model, reducing the printing material and improving the surface printing precision of the model are achieved.

Description

Method, device and equipment for generating 3D printing file and storage medium
Technical Field
The embodiment of the invention relates to a three-dimensional model slant printing technology, in particular to a method, a device, equipment and a storage medium for generating a 3D printing file.
Background
The principle of the 3D printing technology is the fused deposition technique, which obtains a geometric model entity of arbitrary shape by laminating printed materials layer by layer on a molded surface. The model prints up at printer Z axle, and if the one deck is more under the upper story protrusion, the melting consumptive material of convex upper story comes not too late solidification, receives the influence of gravity, and the consumptive material can down fall, does not warp in order to guarantee the model, needs add bearing structure.
Although the added supporting structure ensures that the model is not deformed in the printing process, more supporting structures also bring the problems of increased material consumption, increased printing time, difficulty in stripping support and the like, and the stripping of the supporting structure can cause the unsmooth surface of the model and reduce the surface precision of the printed model.
Disclosure of Invention
The invention provides a method, a device, equipment and a storage medium for generating a 3D printing file, which are used for realizing the effects of improving the printing speed of a model, reducing printing materials and improving the printing precision of the surface of the model.
In a first aspect, an embodiment of the present invention provides a method for generating a 3D print file, including:
acquiring slice layering data of the 3D model in different oblique slice directions;
for each oblique slice direction, determining the supporting quantity of the 3D model needing to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction;
determining a target slice direction corresponding to the minimum support amount;
and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
Optionally, the determining, according to slice stratification data of the current oblique slice direction, a support amount of the 3D model required to add support in the current oblique slice direction includes:
determining a surface to be supported, which is required to be additionally supported by each slice layer, according to slice layering data of the current inclined slice direction;
for each slice layer, acquiring a supporting area corresponding to a to-be-supported surface of the current slice layer and the suspension height of a point on the to-be-supported surface; determining the supporting amount of the current slicing layer according to the supporting area and the suspension height;
and determining the supporting quantity of the support which needs to be added to the 3D model in the current oblique slice direction according to the supporting quantity of each slice layer.
Optionally, the determining, according to the slice layering data in the current oblique slice direction, a surface to be supported, to which support needs to be added, of each slice layer includes:
performing Boolean operation on the projection of the nth slice and the projection of the (n +1) th slice; wherein n is the number of layers where the slices of the 3D model are located, and n is a positive integer;
if the operation result is that the projection of the (n +1) th layer slice is larger than the projection of the nth layer slice, determining the suspension surface of the (n +1) th layer slice according to the connectivity of the corresponding surface of the difference value between the projection of the (n +1) th layer slice and the projection of the nth layer slice;
and determining a surface to be supported, which is required to be additionally supported by the (n +1) th layer of slices, according to the suspended surface.
Optionally, the determining, according to the suspension surface, a surface to be supported, to which support needs to be added to the (n +1) th layer of slices, includes:
for each suspension surface, acquiring the length of the current suspension surface along the printing routing direction;
and taking the area with the length along the printing routing direction larger than the preset threshold value as a supporting surface needing to add support.
Optionally, the acquiring slice hierarchical data of the 3D model in different oblique slice directions includes:
rotating the preset inclined slicing direction around the vertical direction according to a preset angle; wherein the angle between the straight line of the preset inclined slicing direction and the horizontal plane is unchanged;
and respectively slicing the 3D model according to the rotated oblique slicing direction to obtain slice layering data of the 3D model in different oblique slicing directions.
Optionally, the acquiring slice hierarchical data of the 3D model in different oblique slice directions includes:
rotating the 3D model around the vertical direction according to a preset angle;
and respectively slicing the rotated 3D model according to a preset inclined slicing direction, and acquiring slicing layering data of the 3D model in different inclined slicing directions.
Optionally, before determining, for each oblique slice direction, a support amount of the 3D model that needs to add support in the current oblique slice direction according to slice stratification data in the current oblique slice direction, the method further includes:
changing the angle between a straight line where the preset inclined slicing direction is located and a horizontal plane;
and enabling the preset oblique slicing direction to be the changed oblique slicing direction, and re-entering the acquisition of slicing layering data of the 3D model in different oblique slicing directions.
In a second aspect, an embodiment of the present invention further provides a device for generating a 3D print file, including:
the slice layering data acquisition module is used for acquiring slice layering data of the 3D model in different oblique slice directions;
the support quantity acquisition module is used for determining the support quantity of the 3D model needing to be added with support in the current oblique slicing direction according to the slicing layering data of the current oblique slicing direction for each oblique slicing direction;
the target slice direction determining module is used for determining a target slice direction corresponding to the minimum supporting quantity;
and the printing file generating module is used for generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
In a third aspect, an embodiment of the present invention further provides a device for generating a 3D print file, where the device for generating a 3D print file includes:
one or more processors;
a memory for storing one or more programs;
when the one or more programs are executed by the one or more processors, the one or more processors implement the method for generating a 3D print file according to any one of the first aspect.
In a fourth aspect, the present invention further provides a computer-readable storage medium, on which a computer program is stored, which when executed by a processor implements the method for generating a 3D print file according to any one of the first aspect.
Slice layering data of the 3D model in different oblique slice directions are obtained; for each oblique slice direction, determining the supporting amount of the 3D model required to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction; determining a target slice direction corresponding to the minimum support amount; and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction. By the method, the model printing is carried out in the slicing direction with the least supporting amount, the problems of increased consumption of materials, increased printing time, difficult peeling of the support and influence on the surface precision of the model after peeling caused by more supporting structures are solved, and the effects of improving the printing speed of the model, reducing printing materials and improving the printing precision of the surface of the model are achieved.
Drawings
Fig. 1A is a schematic flowchart of a method for generating a 3D print file according to an embodiment of the present invention;
fig. 1B is a schematic flow chart illustrating rotation in a preset oblique slicing direction in a 3D print file generation method according to an embodiment of the present invention;
fig. 1C is a schematic diagram illustrating rotation of a 3D model in a 3D print file generation method according to an embodiment of the present invention;
fig. 1D is a schematic diagram illustrating an angle transformation between a horizontal plane and a straight line where a preset oblique slicing direction is located in the 3D print file generating method according to the first embodiment of the present invention;
fig. 1E is a schematic diagram illustrating an angle transformation between a horizontal plane and a straight line where a preset oblique slicing direction is located in another 3D printed file generating method according to an embodiment of the present invention;
fig. 2 is a schematic structural diagram of a 3D print file generation apparatus according to a second embodiment of the present invention;
fig. 3 is a schematic structural diagram of a 3D print file generation device according to a third embodiment of the present invention.
Detailed Description
The present invention will be described in further detail with reference to the accompanying drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the invention and are not limiting of the invention. It should be further noted that, for the convenience of description, only some of the structures related to the present invention are shown in the drawings, not all of the structures.
Example one
Fig. 1 is a schematic flow chart of a method for generating a 3D print file according to an embodiment of the present invention, where the embodiment is applicable to a case of performing oblique printing on a three-dimensional model, and the method can be executed by a device for generating a 3D print file, and specifically includes the following steps:
and 110, acquiring slice layering data of the 3D model in different oblique slice directions.
The three-dimensional models are different in slicing direction, the supporting amount required in printing the three-dimensional models is possibly different, and the supporting amount can be reduced by obliquely layering the three-dimensional models. After the three-dimensional model is input into the 3D printer, the system automatically generates an initial oblique slicing direction according to model data or a user manually sets the initial oblique slicing direction.
Step 110 includes the following two cases:
firstly, the 3D model is fixed in position, and the oblique slice direction is changed, and the method specifically comprises the following steps:
a1, rotating the preset inclined slicing direction around the vertical direction according to a preset angle; wherein, the angle between the straight line of the preset inclined slice direction and the horizontal plane is unchanged.
And A2, slicing the 3D model according to the rotated oblique slicing directions respectively, and acquiring slice layering data of the 3D model in different oblique slicing directions.
The position of the 3D model is fixed, the angle between the straight line where the preset inclined slice direction is located and the horizontal plane is set by a user independently or generated automatically, and the angle between the preset inclined slice direction and the horizontal plane is kept unchanged when the inclined slice direction is changed. Illustratively, in this embodiment, the preset angle is selected to be 45 °, the preset oblique slicing direction is rotated by 45 ° clockwise/counterclockwise around the vertical direction each time to obtain a rotated oblique slicing direction, and the 3D model is sliced again according to the rotated oblique slicing direction to obtain new slice layering data; repeating the steps for 8 times to obtain slice layering data of 8 different inclined slice directions corresponding to one rotation of the horizontal plane. As shown in fig. 1B, the angle between the line of the preset inclined slicing direction a1 and the horizontal plane is a1, the preset inclined slicing direction a1 is rotated around the vertical direction to obtain a rotated inclined slicing direction a2, and the angle between the line of the rotated inclined slicing direction a2 and the horizontal plane is a2, and since the angle between the line of the preset inclined slicing direction and the horizontal plane is kept constant during rotation, the angle a1 is equal to the angle a 2.
Secondly, the oblique slice direction is fixed, and the 3D model position is changed, specifically including the following steps:
and B1, rotating the 3D model around the vertical direction according to a preset angle.
And B2, slicing the rotated 3D model according to a preset inclined slicing direction, and acquiring slicing layering data of the 3D model in different inclined slicing directions.
The oblique slicing direction is fixed, for example, in this embodiment, a preset angle is selected to be 45 degrees, the oblique slicing direction is fixed, the 3D model is rotated by 45 degrees clockwise/counterclockwise around the vertical direction to obtain a selected 3D model, and the 3D model rotated by 45 degrees is re-sliced according to the preset oblique slicing direction to obtain new slice hierarchical data; repeating the steps for 8 times to obtain the layering data of the inclined slices of the 3D model in 8 different directions corresponding to one circle of rotation on the horizontal plane.
Further, in an alternative embodiment, if the preset angle is 30 °, the preset oblique slice direction is rotated by 30 ° clockwise/counterclockwise around the vertical direction, or the 3D model is rotated by 30 ° clockwise/counterclockwise around the vertical direction, and the rotation is repeated for 12 times, so that slice hierarchical data corresponding to 12 different oblique slice directions are obtained. As shown in fig. 1C, an angle between a straight line where the preset oblique slicing direction a1 is located and a horizontal plane is a1, the preset oblique slicing direction is fixed, the 3D model C1 is rotated by a preset angle θ around the vertical direction to obtain a rotated 3D model C2, and the rotated 3D model C2 is sliced according to the preset oblique slicing direction a1 to obtain slice hierarchical data of the 3D model in different oblique slicing directions.
In the above embodiment, the 3D model is sliced again after the preset oblique slicing direction is rotated around the vertical direction, and the 3D model is sliced again after the 3D model is rotated around the vertical direction, which are equivalent to slicing the 3D model again according to different oblique directions.
On the basis of the above embodiment, the method further includes:
and changing the angle between the straight line of the preset inclined slicing direction and the horizontal plane.
And enabling the preset oblique slicing direction to be the changed oblique slicing direction, and re-entering the acquisition of slicing layering data of the 3D model in different oblique slicing directions.
In the above embodiment, in both cases, the angle between the line in which the oblique slice direction is located and the horizontal plane remains unchanged, and in order to obtain more comprehensive oblique slice hierarchical data, the angle between the line in which the preset oblique slice direction is located and the horizontal plane is changed to form a new oblique angle; and the preset oblique slicing direction is the changed oblique slicing direction, and the 3D printer is re-entered, and according to the method provided by the embodiment, the slice layering data of the 3D model in different oblique slicing directions in the two situations are obtained.
As shown in fig. 1D, the changed inclined slicing direction B1 is obtained by changing an angle between a horizontal plane and a straight line of the preset inclined slicing direction a1, an angle between a horizontal plane and a straight line of the preset inclined slicing direction a1 is a1, an angle between a horizontal plane and a straight line of the changed inclined slicing direction B1 is B1, values of the angle a1 and the angle B1 are not equal, and the angle B1 is larger than the angle a1 by the preset angle in this embodiment. And after the inclination angle is changed, slicing the 3D model again, rotating the changed inclined slicing direction B1 around the vertical direction to obtain a rotated inclined slicing direction B2 (not shown), slicing the 3D model again, and repeating the steps to obtain slice layering data of different inclined slicing directions.
As shown in fig. 1E, an angle between a straight line where the preset oblique slicing direction a1 is located and a horizontal plane is changed to obtain a changed oblique slicing direction B1, after the oblique angle is changed, the 3D model is sliced again, then the oblique slicing direction B1 is fixed, the 3D model C1 is rotated by a preset angle θ around the vertical direction again to obtain a rotated 3D model C2 (not shown), and the rotated 3D model C2 is sliced according to the preset oblique slicing direction B1 to obtain slice hierarchical data of the 3D model in different oblique slicing directions.
And 120, determining the supporting quantity of the 3D model needing to be supported in the current oblique slicing direction according to the slicing layering data of the current oblique slicing direction for each oblique slicing direction.
After the three-dimensional model determines the oblique slicing direction, oblique hierarchical data of slicing of the three-dimensional model in the current oblique slicing direction can be obtained, and therefore the supporting quantity of the 3D model required to be supported in the current oblique slicing direction can be obtained according to the slicing hierarchical data. The supporting structure is generated from the surface to be supported to the plane where the starting point of the Z axis is located all the way down, correspondingly, the larger the area to be supported of the three-dimensional model is, the farther the supporting surface is away from the starting point of the Z axis, namely, the higher the suspension height of the supporting surface is, the larger the volume of the supporting structure required to be generated during printing is, namely, the larger the supporting amount is. Support not only can increase the consumptive material volume, increase printing time, 3D model and support contact too closely still can lead to the support to peel off scheduling problem hardly.
Wherein, step 120 specifically includes:
and step 121, determining a surface to be supported, which is required to be supported by adding support, of each slice layer according to slice layering data of the current inclined slice direction.
Step 121 specifically includes the following steps:
s1, performing Boolean operation on the projection of the nth slice and the projection of the (n +1) th slice; wherein n is the number of layers where the slices of the 3D model are located, and n is a positive integer.
The area difference between the projection of the (n +1) th slice and the projection of the nth slice can be obtained by boolean operation.
And S2, if the operation result is that the projection of the (n +1) th slice is larger than the projection of the nth slice, determining the suspension surface of the (n +1) th slice according to the connectivity of the corresponding surface of the difference value between the projection of the (n +1) th slice and the projection of the nth slice.
If the projection of the (n +1) th slice is less than or equal to that of the nth slice, the (n +1) th slice can be supported by the nth slice, and the (n +1) th slice does not need to be supported; if the projection of the (n +1) th slice is larger than that of the nth slice, the (n +1) th slice may have a suspended surface to be supported, at least one corresponding surface on the (n +1) th slice is determined according to the difference between the projection of the (n +1) th slice and the projection of the nth slice, and the suspended surface is determined according to the connectivity of the corresponding surfaces.
And S3, determining a surface to be supported, which is required to be supported by the (n +1) th layer of slices, according to the suspended surface.
The suspension surface does not necessarily need to be supported, and after the suspension surface is determined, the suspension surface to be supported needs to be further determined.
The specific method for determining the surface to be supported according to the suspension surface comprises the following steps:
for each suspension surface, acquiring the length of the current suspension surface along the printing routing direction;
and taking the area with the length along the printing routing direction larger than the preset threshold value as a supporting surface needing to add support.
The suspended surface is the part of the (n +1) th layer of slices protruding out of the nth layer of slices, if the length of the current suspended surface in the printing and routing direction is longer, namely when the 3D printer prints in the printing and routing direction, the consumable materials in the (n +1) th layer of slices in a molten state protrude out of the nth layer of slices more, the protruding molten consumable materials are not in time to solidify, and due to the influence of gravity, the consumable materials fall down, so that the 3D model is deformed; therefore, the length of the current suspended surface along the printing routing direction is obtained and compared with a preset threshold value, in the preset threshold value area, due to the factors such as viscosity and curing speed of printing materials, the nth layer of cutting sheets can support the (n +1) th layer of cutting sheets, the part does not need to be supported, and the area larger than the preset threshold value is used as a supporting surface needing to be additionally supported.
Further, in an alternative embodiment, determining a surface to be supported, to which support needs to be added, of each slice layer according to slice layering data of a current oblique slice direction, further includes:
dividing the nth layer slice and the (n +1) th layer slice into a plurality of small polygons;
judging whether all polygons of the (n +1) th layer slice have polygon support of the nth layer slice;
if the polygon of the (n +1) th slice does not have the polygon support of the nth slice, determining that the polygon is a suspended polygon;
determining the suspension surface of the (n +1) th layer slice according to the connectivity of the suspension polygons of the (n +1) th layer slices;
and determining a surface to be supported, which is required to be additionally supported by the (n +1) th layer of slices, according to the suspended surface.
After the slice hierarchy data of the current oblique slice direction is obtained, each slice hierarchy may be divided into a plurality of small polygons. If the polygon is suspended, namely the polygon without any other layer below the polygon, the polygon is the polygon to be supported; if the polygon part is in contact with the polygon of other layer below, and the other part is suspended, it is determined whether the support structure needs to be added according to the suspended distance, specifically, according to the step S3.
Traversing all polygons forming the (n +1) th slice to obtain all surfaces to be supported of the slice layer, wherein the surfaces to be supported need to be added with support, and traversing all slice layers forming the 3D model to obtain all surfaces to be supported of the three-dimensional model, wherein the surfaces to be supported need to be added with support.
Step 122, for each slice layer, acquiring a supporting area corresponding to a to-be-supported surface of the current slice layer and a suspension height of a point on the to-be-supported surface; and determining the supporting amount of the current slicing layer according to the supporting area and the suspension height.
If no other slicing layer exists below the surface to be supported in the z-axis direction, the suspension height of the point on the surface to be supported is the distance from the central point of the surface to be supported to the hot bed, namely the value of the z coordinate of the central point of the surface to be supported; if other slicing layers exist below the surface to be supported in the z-axis direction, acquiring a corresponding point of the central point of the surface to be supported on the slicing layer closest to the lower side, acquiring the distance between the two points, and determining the suspension distance as the difference value of the z coordinates of the two points.
The supporting quantity of the supporting structure is the volume of the supporting structure of the supporting surface, the height of the generated supporting structure can be obtained according to the suspension height of the supporting surface, and the supporting quantity of the current slicing layer is obtained according to the product of the supporting area corresponding to the supporting surface and the suspension height of the supporting surface.
And step 123, determining the supporting quantity of the 3D model needing to be supported in the current oblique slice direction according to the supporting quantity of each slice layer.
And (4) solving the support quantity of each sliced layer, and accumulating to obtain the total support quantity of the 3D model needing to be supported in the current inclined slicing direction.
And step 130, determining the target slice direction corresponding to the minimum support amount.
And determining the inclined slice direction corresponding to the minimum support amount from the support amounts corresponding to the obtained different inclined slice layering data, determining the inclined slice direction as the target slice direction, and printing according to the inclined slice direction, wherein the support amount required by the 3D model is minimum, and the influence on the surface precision of the 3D model is minimum.
And 140, generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
And acquiring the inclined layering data of the 3D model in the target slicing direction, determining each slicing layer and a printing path according to the inclined layering data, and adjusting the angle of a spray head according to the inclined layering data to print the three-dimensional model.
According to the technical scheme of the embodiment, slice layering data of the 3D model in different oblique slice directions are obtained; for each oblique slice direction, determining the supporting amount of the 3D model required to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction; determining a target slice direction corresponding to the minimum support amount; and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction. The problem of the more consumptive material volume that brings of bearing structure increase, print time increase, support and be difficult to peel off and peel off the back and influence model surface accuracy is solved, realize carrying out the model printing with the section direction that the supporting quantity is minimum, improve the model printing speed, reduce the effect of printing the material and improving model surface printing accuracy.
Example two
Fig. 2 is a schematic structural diagram of a 3D print file generation apparatus according to a second embodiment of the present invention, and as shown in fig. 2, the 3D print file generation apparatus includes:
and a slice-level data obtaining module 210, configured to obtain slice-level data of the 3D model in different oblique slice directions.
The three-dimensional models are different in slicing direction, the supporting amount required in printing the three-dimensional models is possibly different, and the supporting amount can be reduced by obliquely layering the three-dimensional models. After the three-dimensional model is input into the 3D printer, the system automatically generates an initial oblique slicing direction according to model data or a user manually sets the initial oblique slicing direction.
Optionally, the slice hierarchical data obtaining module 210 includes a first slice hierarchical data obtaining sub-module and a second slice hierarchical data obtaining sub-module;
optionally, the first slice hierarchical data acquisition sub-module includes:
the first rotating unit is used for rotating the preset inclined slicing direction around the vertical direction according to a preset angle; wherein, the angle between the straight line of the preset inclined slice direction and the horizontal plane is unchanged.
And the first slicing unit is used for respectively slicing the 3D model according to the rotated inclined slicing directions to acquire slice layering data of the 3D model in different inclined slicing directions.
Optionally, the second slice hierarchical data obtaining sub-module includes:
and the second rotating unit is used for rotating the 3D model around the vertical direction according to a preset angle.
And the second slicing unit is used for respectively slicing the rotated 3D model according to a preset inclined slicing direction and acquiring slicing layering data of the 3D model in different inclined slicing directions.
In the above embodiment, rotating the preset oblique slicing direction around the vertical direction and then slicing the 3D model again, and rotating the 3D model around the vertical direction and then slicing the 3D model again are both equivalent to slicing the 3D model again according to different oblique directions.
Optionally, the apparatus for generating a 3D print file further includes:
and the inclination angle conversion module is used for changing the angle between the straight line of the preset inclined slice direction and the horizontal plane.
And the slice layering data acquisition and updating module is used for enabling the preset inclined slice direction to be the changed inclined slice direction and re-entering the slice layering data of the acquired 3D model in different inclined slice directions.
And a support quantity obtaining module 220, configured to determine, for each oblique slice direction, a support quantity of the 3D model that needs to be supported in the current oblique slice direction according to slice hierarchical data in the current oblique slice direction.
After the three-dimensional model determines the oblique slicing direction, oblique hierarchical data of slicing of the three-dimensional model in the current oblique slicing direction can be obtained, and therefore the supporting quantity of the 3D model required to be supported in the current oblique slicing direction can be obtained according to the slicing hierarchical data. The supporting structure is generated from the surface to be supported to the plane where the starting point of the Z axis is located all the way down, correspondingly, the larger the area to be supported of the three-dimensional model is, the farther the supporting surface is away from the starting point of the Z axis, namely, the higher the suspension height of the supporting surface is, the larger the volume of the supporting structure required to be generated during printing is, namely, the larger the supporting amount is. Support not only can increase the consumptive material volume, increase printing time, 3D model and support contact too closely still can lead to the support to peel off scheduling problem hardly.
Optionally, the support amount obtaining module 220 includes:
and the supporting surface acquisition submodule is used for determining a surface to be supported, which is required to be supported by adding support, of each slice layer according to slice layering data of the current inclined slice direction.
A projection acquisition unit for performing a boolean operation on the projection of the nth slice and the projection of the (n +1) th slice; wherein n is the number of layers where the slices of the 3D model are located, and n is a positive integer.
And the suspension surface acquisition unit is used for determining the suspension surface of the (n +1) th slice according to the connectivity of the corresponding surface of the difference value between the projection of the (n +1) th slice and the projection of the nth slice if the operation result shows that the projection of the (n +1) th slice is larger than the projection of the nth slice.
And the surface to be supported determining unit is used for determining the surface to be supported, which needs to be supported by the (n +1) th layer of slices, according to the suspended surface.
Optionally, the to-be-supported surface determining unit further includes:
and the suspended surface printing routing length acquisition subunit is used for acquiring the length of the current suspended surface along the printing routing direction for each suspended surface.
And the judgment and determination subunit is used for taking the area with the length along the printing and routing direction larger than the preset threshold value as a supporting surface needing to be additionally supported.
Optionally, the support amount obtaining module 220 further includes:
the slicing layer supporting quantity obtaining submodule is used for obtaining a supporting area corresponding to a to-be-supported surface of the current slicing layer and the suspension height of a point on the to-be-supported surface for each slicing layer; and determining the supporting amount of the current slicing layer according to the supporting area and the suspension height.
And the total support amount determining submodule is used for determining the support amount of the 3D model needing to add support in the current inclined slice direction according to the support amount of each slice layer.
And a target slice direction determining module 230, configured to determine a target slice direction corresponding to the minimum support amount.
And determining the slice direction corresponding to the minimum supporting amount from the supporting amounts corresponding to the preset number of slice directions, and determining the slice direction as the target slice direction.
And a print file generating module 240, configured to generate a print file of the 3D model according to the slice hierarchical data corresponding to the target slice direction.
And acquiring the inclined layering data of the three-dimensional model in the target slicing direction, determining each slicing layer and a printing path according to the inclined layering data, and adjusting the angle of a spray head according to the inclined layering data to print the three-dimensional model.
According to the technical scheme of the embodiment, slice layering data of the 3D model in different oblique slice directions are obtained; for each oblique slice direction, determining the supporting amount of the 3D model required to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction; determining a target slice direction corresponding to the minimum support amount; and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction. The problem of the more consumptive material volume that brings of bearing structure increase, print time increase, support and be difficult to peel off and peel off the back and influence model surface accuracy is solved, realize carrying out the model printing with the section direction that the supporting quantity is minimum, improve the model printing speed, reduce the effect of printing the material and improving model surface printing accuracy.
The 3D printing file generation device provided by the embodiment of the invention can execute the 3D printing file generation method provided by any embodiment of the invention, and has corresponding functional modules and beneficial effects of the execution method.
EXAMPLE III
Fig. 3 is a schematic structural diagram of a 3D print file generating apparatus according to a third embodiment of the present invention, and as shown in fig. 3, the 3D print file generating apparatus includes a processor 30, a memory 31, an input device 32, and an output device 33; the number of the processors 30 in the 3D print file generation device may be one or more, and one processor 30 is taken as an example in fig. 3; the processor 30, the memory 31, the input device 32, and the output device 33 in the 3D print file generation apparatus may be connected by a bus or other means, and the bus connection is exemplified in fig. 3.
The memory 31 may be used as a computer-readable storage medium for storing software programs, computer-executable programs, and modules, such as program instructions/modules corresponding to the 3D print file generation method in the embodiment of the present invention (for example, the slicing level data acquisition module 210, the supporting amount acquisition module 220, the target slicing direction determination module 230, and the print file generation module 240 in the 3D print file generation apparatus). The processor 30 executes various functional applications and data processing of the 3D print file generating apparatus by running software programs, instructions, and modules stored in the memory 31, that is, implements the above-described 3D print file generating method.
The memory 31 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal, and the like. Further, the memory 31 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other non-volatile solid state storage device. In some examples, the memory 31 may further include a memory remotely disposed from the processor 30, and these remote memories may be connected to a generation apparatus of the 3D print file through a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The input device 32 may be used to receive input numeric or character information and to generate key signal inputs related to user settings and function control of the 3D print file generating apparatus. The output device 33 may include a display device such as a display screen.
Example four
An embodiment of the present invention further provides a storage medium containing computer-executable instructions, which when executed by a computer processor, perform a method for generating a 3D print file, the method including:
acquiring slice layering data of the 3D model in different oblique slice directions;
for each oblique slice direction, determining the supporting quantity of the 3D model needing to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction;
determining a target slice direction corresponding to the minimum support amount;
and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
Of course, the storage medium provided by the embodiment of the present invention contains computer-executable instructions, and the computer-executable instructions are not limited to the method operations described above, and may also perform related operations in the method for generating a 3D print file provided by any embodiment of the present invention.
From the above description of the embodiments, it is obvious for those skilled in the art that the present invention can be implemented by software and necessary general hardware, and certainly, can also be implemented by hardware, but the former is a better embodiment in many cases. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as a floppy disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a FLASH Memory (FLASH), a hard disk or an optical disk of a computer, and includes several instructions for enabling a computer device (which may be a personal computer, a server, or a network device) to execute the methods according to the embodiments of the present invention.
It should be noted that, in the embodiment of the apparatus for generating a 3D print file, the units and modules included in the embodiment are only divided according to functional logic, but are not limited to the above division as long as the corresponding functions can be realized; in addition, specific names of the functional units are only for convenience of distinguishing from each other, and are not used for limiting the protection scope of the present invention.
It is to be noted that the foregoing is only illustrative of the preferred embodiments of the present invention and the technical principles employed. It will be understood by those skilled in the art that the present invention is not limited to the particular embodiments described herein, but is capable of various obvious changes, rearrangements and substitutions as will now become apparent to those skilled in the art without departing from the scope of the invention. Therefore, although the present invention has been described in greater detail by the above embodiments, the present invention is not limited to the above embodiments, and may include other equivalent embodiments without departing from the spirit of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims (10)

1. A method for generating a 3D printing file is characterized by comprising the following steps:
acquiring slice layering data of the 3D model in different oblique slice directions;
for each oblique slice direction, determining the supporting quantity of the 3D model needing to be supported in the current oblique slice direction according to slice layering data of the current oblique slice direction;
determining a target slice direction corresponding to the minimum support amount;
and generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
2. The method for generating a 3D print file according to claim 1, wherein the determining the amount of support the 3D model needs to add to the support in the current oblique slice direction according to the slice hierarchy data in the current oblique slice direction comprises:
determining a surface to be supported, which is required to be additionally supported by each slice layer, according to slice layering data of the current inclined slice direction;
for each slice layer, acquiring a supporting area corresponding to a to-be-supported surface of the current slice layer and the suspension height of a point on the to-be-supported surface; determining the supporting amount of the current slicing layer according to the supporting area and the suspension height;
and determining the supporting quantity of the support which needs to be added to the 3D model in the current oblique slice direction according to the supporting quantity of each slice layer.
3. The method for generating a 3D print file according to claim 2, wherein the determining a surface to be supported to which support needs to be added for each sliced layer according to the sliced layer data of the current oblique slicing direction includes:
performing Boolean operation on the projection of the nth slice and the projection of the (n +1) th slice; wherein n is the number of layers where the slices of the 3D model are located, and n is a positive integer;
if the operation result is that the projection of the (n +1) th layer slice is larger than the projection of the nth layer slice, determining the suspension surface of the (n +1) th layer slice according to the connectivity of the corresponding surface of the difference value between the projection of the (n +1) th layer slice and the projection of the nth layer slice;
and determining a surface to be supported, which is required to be additionally supported by the (n +1) th layer of slices, according to the suspended surface.
4. The method for generating the 3D printing file according to claim 3, wherein the step of determining the surface to be supported, which is required to be supported by the (n +1) th layer of slices, according to the suspended surface comprises the following steps:
for each suspension surface, acquiring the length of the current suspension surface along the printing routing direction;
and taking the area with the length along the printing routing direction larger than the preset threshold value as a supporting surface needing to add support.
5. The method for generating a 3D print file according to claim 1, wherein the acquiring slice-level data of the 3D model in different oblique slice directions comprises:
rotating the preset inclined slicing direction around the vertical direction according to a preset angle; wherein the angle between the straight line of the preset inclined slicing direction and the horizontal plane is unchanged;
and respectively slicing the 3D model according to the rotated oblique slicing direction to obtain slice layering data of the 3D model in different oblique slicing directions.
6. The method for generating a 3D print file according to claim 1, wherein the acquiring slice-level data of the 3D model in different oblique slice directions comprises:
rotating the 3D model around the vertical direction according to a preset angle;
and respectively slicing the rotated 3D model according to a preset inclined slicing direction, and acquiring slicing layering data of the 3D model in different inclined slicing directions.
7. The method for generating a 3D print file according to claim 5 or 6, wherein before determining the amount of support that the 3D model needs to add support in the current oblique slice direction from the slice-level data of the current oblique slice direction for each oblique slice direction, further comprising:
changing the angle between a straight line where the preset inclined slicing direction is located and a horizontal plane;
and enabling the preset oblique slicing direction to be the changed oblique slicing direction, and re-entering the acquisition of slicing layering data of the 3D model in different oblique slicing directions.
8. An apparatus for generating a 3D print file, comprising:
the slice layering data acquisition module is used for acquiring slice layering data of the 3D model in different oblique slice directions;
the support quantity acquisition module is used for determining the support quantity of the 3D model needing to be added with support in the current oblique slicing direction according to the slicing layering data of the current oblique slicing direction for each oblique slicing direction;
the target slice direction determining module is used for determining a target slice direction corresponding to the minimum supporting quantity;
and the printing file generating module is used for generating a printing file of the 3D model according to the slice layering data corresponding to the target slice direction.
9. A3D print file generation device, characterized in that the 3D print file generation device comprises:
one or more processors;
a memory for storing one or more programs;
when executed by the one or more processors, cause the one or more processors to implement a method of generating a 3D printed file as claimed in any one of claims 1 to 7.
10. A computer-readable storage medium on which a computer program is stored, the program, when being executed by a processor, implementing the method for generating a 3D print file according to any one of claims 1 to 7.
CN202111448612.3A 2021-11-30 2021-11-30 Method, device and equipment for generating 3D printing file and storage medium Pending CN114147971A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111448612.3A CN114147971A (en) 2021-11-30 2021-11-30 Method, device and equipment for generating 3D printing file and storage medium
PCT/CN2022/127038 WO2023098338A1 (en) 2021-11-30 2022-10-24 Method, apparatus and device for generating 3d printing file, and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111448612.3A CN114147971A (en) 2021-11-30 2021-11-30 Method, device and equipment for generating 3D printing file and storage medium

Publications (1)

Publication Number Publication Date
CN114147971A true CN114147971A (en) 2022-03-08

Family

ID=80455356

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111448612.3A Pending CN114147971A (en) 2021-11-30 2021-11-30 Method, device and equipment for generating 3D printing file and storage medium

Country Status (2)

Country Link
CN (1) CN114147971A (en)
WO (1) WO2023098338A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098338A1 (en) * 2021-11-30 2023-06-08 深圳市创想三维科技股份有限公司 Method, apparatus and device for generating 3d printing file, and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20170176979A1 (en) * 2014-08-29 2017-06-22 Microsoft Technology Licensing, Llc Fabricating Three Dimensional Objects
US20170225397A1 (en) * 2016-02-05 2017-08-10 Xyzprinting, Inc. Printing slicing method for 3d model
CN108248012A (en) * 2017-08-07 2018-07-06 株式会社松浦机械制作所 The setting method of the moulding angle of three-D moulding object
CN109774116A (en) * 2017-11-14 2019-05-21 上海微电子装备(集团)股份有限公司 A kind of 3D printing device and Method of printing
CN110341193A (en) * 2018-04-05 2019-10-18 富士施乐株式会社 Three-dimensional shape data editor, molding device, system, method and storage medium
CN111971137A (en) * 2018-03-23 2020-11-20 赛峰飞机发动机公司 Optimization of a support for additive manufacturing of a component having a recess
CN112549529A (en) * 2014-07-13 2021-03-26 斯特拉塔西斯公司 System for three-dimensional printing and method of manufacturing three-dimensional object

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4008526A1 (en) * 2016-11-25 2022-06-08 Dassault Systèmes Orientation of a real object for 3d printing
US11465361B2 (en) * 2020-03-27 2022-10-11 Wisconsin Alumni Research Foundation Systems, methods, and media for controlling support structures and build orientation in manufacturing
CN114147971A (en) * 2021-11-30 2022-03-08 深圳市创想三维科技股份有限公司 Method, device and equipment for generating 3D printing file and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112549529A (en) * 2014-07-13 2021-03-26 斯特拉塔西斯公司 System for three-dimensional printing and method of manufacturing three-dimensional object
US20170176979A1 (en) * 2014-08-29 2017-06-22 Microsoft Technology Licensing, Llc Fabricating Three Dimensional Objects
US20170225397A1 (en) * 2016-02-05 2017-08-10 Xyzprinting, Inc. Printing slicing method for 3d model
CN108248012A (en) * 2017-08-07 2018-07-06 株式会社松浦机械制作所 The setting method of the moulding angle of three-D moulding object
CN109774116A (en) * 2017-11-14 2019-05-21 上海微电子装备(集团)股份有限公司 A kind of 3D printing device and Method of printing
CN111971137A (en) * 2018-03-23 2020-11-20 赛峰飞机发动机公司 Optimization of a support for additive manufacturing of a component having a recess
CN110341193A (en) * 2018-04-05 2019-10-18 富士施乐株式会社 Three-dimensional shape data editor, molding device, system, method and storage medium

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2023098338A1 (en) * 2021-11-30 2023-06-08 深圳市创想三维科技股份有限公司 Method, apparatus and device for generating 3d printing file, and storage medium

Also Published As

Publication number Publication date
WO2023098338A1 (en) 2023-06-08

Similar Documents

Publication Publication Date Title
US10571893B2 (en) Orientation optimization in 3D printing
CN110703685B (en) Skin mirror image milling cutter path self-adaptive adjusting method and device
CN104978444B (en) A kind of method and device of picture combination
CN111859488B (en) Support structure generation method and device, electronic equipment and storage medium
CN114147971A (en) Method, device and equipment for generating 3D printing file and storage medium
WO2023040290A1 (en) Three-dimensional object printing method, data processing apparatus, and computer device
CN109144652A (en) A kind of view display methods, device, electronic equipment and storage medium
CN111767688B (en) Integrated circuit layout polygon unstructured grid self-adaptive subdivision method and system
CN106293547A (en) A kind of support automatic generation method printed for 3D
CN111859489A (en) Support structure generation method and device, electronic equipment and storage medium
CN113021873B (en) Three-dimensional printing method and device, computer equipment and storage medium
CN109079136B (en) 3D printing method
CN110222447B (en) Adaptive mesh division method and system based on octree
EP3124255B1 (en) Method for adjusting printing head usage amount of 3d printer and control device
CN112560125B (en) Generation method, generation system and preprocessing system of lattice structure model
CN114290660A (en) Curved surface layered 3D printing method and system
US20180264751A1 (en) Detecting and Compensating for an Anomaly in Three-Dimensional Object Fabrication
CN112052641B (en) Method and system for generating large-scale integrated circuit layout unstructured grid eccentric midpoint
CN105929851A (en) Method and device for controlling Pan-Tilt device by using rocking bar equipment
CN114417075B (en) Method, device, medium and equipment for establishing path-finding grid data index
CN109300191A (en) AR model treatment method, apparatus, electronic equipment and readable storage medium storing program for executing
US10691845B2 (en) Data driven shrinkage compensation
CN110705158B (en) Prediction method, device and equipment for gas-liquid-solid three-phase behavior of selective laser melting
US20240045398A1 (en) Techniques to determine a hybrid manufacturing plan
Starodubtsev et al. Reachable sets for Dubins car in control problems: Physical visualization

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination