Nested word model generation method, device, electronic device and readable storage medium

Through 3D printing technology, external and internal models are generated based on the original character outline and model parameters of nested words, solving the problems of complex, time-consuming and high labor costs in the existing nested words production process, and achieving fast and low-cost customization and mass production.

CN114417617BActive Publication Date: 2025-05-20SHENZHEN CREALITY 3D TECH CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202210068442.4
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2022-01-20
Publication Date
2025-05-20
Estimated Expiration
2042-01-20

AI Technical Summary

Technical Problem

The existing nested word production process is complex, time-consuming and labor-intensive, making it difficult to achieve customized and mass production.

Method used

Through 3D printing technology, the original character outline and model parameters of nested characters are obtained, external and internal models are generated based on these parameters, and nested characters are customized to generate, and nested characters are printed through 3D printing.

Benefits of technology

It realizes fast and low-cost production of nested words, reduces manual participation, and supports customized and mass production.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN114417617B_ABST
    Figure CN114417617B_ABST
Patent Text Reader

Abstract

The present application provides a nested character model generation method, device, electronic device and computer-readable storage medium, the method comprising: obtaining the original outline of the character to be generated and the model parameters of the character, the model parameters comprising the model height H1, the step height H2, the step width W1 and the combination gap G1, wherein the combination gap G1 is smaller than the step width W1, and the step height H2 is smaller than the model height H1; generating an inner model based on the original outline, the step height H2 and the combination gap G1, and generating an outer model including a step for carrying the inner model based on the original outline, the model height H1, the step height H2 and the step width W1; obtaining a nested character model according to the outer model and the inner model. The present application can realize the printing of nested characters by 3D printing, and realize customized and mass production of nested characters.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of three-dimensional (3D) printing, and particularly to a method, apparatus, electronic device, and computer-readable storage medium for generating nested character models. Background Art

[0002] 3D printing, namely rapid prototyping technology, is a cumulative manufacturing technology, also known as additive manufacturing. It is based on a digital model file and uses special wax materials, powdered metals, plastics, or other bondable materials to manufacture three-dimensional objects by printing layers of bondable materials.

[0003] The existing process for making nested characters generally includes: cutting a bottom plate by means of laser cutting or the like according to the set outer model size, and wrapping aluminum, titanium, etc. with a specified height around the bottom plate to obtain the outer model; offsetting a certain distance inward according to the size of the outer model, and cutting another bottom plate by means of laser cutting or the like again, and wrapping aluminum, titanium, etc. with a specified height around the bottom plate to obtain the inner model. The existing process for making nested characters is complex, time-consuming, and has a high labor cost. Summary of the Invention

[0004] In view of the above, this application provides a method, apparatus, electronic device, and computer-readable storage medium for generating nested character models, which can print nested characters through 3D printing to achieve customized and batch production of nested characters.

[0005] An embodiment of this application provides a method for generating a nested character model, including: obtaining the original contour of the character of the nested character to be generated and the model parameters of the character, where the model parameters include the model height H1, the step height H2, the step width W1, and the combination gap G1, and the combination gap G1 is less than the step width W1, the step height H2 is less than the model height H1, the model height H1 is the printing and forming height of the character on the printing platform, and the combination gap G1 is the gap between the inner model and the outer model of the nested character to be generated; generating an inner model based on the original contour, the step height H2, and the combination gap G1, and generating an outer model including a step for carrying the inner model based on the original contour, the model height H1, the step height H2, and the step width W1; obtaining a nested character model according to the outer model and the inner model.

[0006] By adopting this technical solution, by obtaining the original contour of the character of the nested character and the model parameters of the character, generating the outer model and the inner model based on the original contour and the model parameters, and then combining the printed outer model and inner model to obtain the nested character model, the user can set the model parameters of the character according to actual needs to achieve customized generation of the nested character model corresponding to the nested character, print the nested character through 3D printing, the production time of the nested character is short, the labor cost is low, and batch production can be achieved.

[0007] In some embodiments, an outer model including steps for carrying an inner model is generated based on an original contour, a model height H1, a step height H2, and a step width W1, including: calculating a height H3 where the step tread is located based on the model height H1 and the step height H2; expanding the original contour inward according to the step width W1 to obtain a first contour, and setting the height coordinates of all data points of the first contour to H3; copying the original contour to obtain a second contour, a third contour, and a fourth contour, setting the height coordinates of all data points of the second contour to H3, setting the height coordinates of all data points of the third contour to zero, and setting the height coordinates of all data points of the fourth contour to H1; obtaining an outer model of the steps for carrying the inner model based on the first contour, the second contour, the third contour, and the fourth contour.

[0008] With this technical solution, the first contour, the second contour, the third contour, and the fourth contour are generated based on the parameter combination of the original contour of the character, the model height H1, the step height H2, and the step width W1, and then the outer model is obtained by combining the first contour, the second contour, the third contour, and the fourth contour. Moreover, the outer model includes steps for carrying the inner model, realizing the generation of the outer model of the nested character model based on the user-customized model parameters, and the outer model can be printed separately.

[0009] In some embodiments, an inner model is generated based on an original contour, a step height H2, and a combination gap G1, including: copying the original contour to obtain a fifth contour; expanding the fifth contour inward according to the combination gap G1 to obtain a sixth contour, and setting the height coordinates of all data points of the sixth contour to zero; copying the sixth contour to obtain a seventh contour, and setting the height coordinates of all data points of the seventh contour to H2; obtaining an inner model based on the sixth contour and the seventh contour.

[0010] With this technical solution, the fifth contour, the sixth contour, and the seventh contour are generated based on the parameter combination of the original contour of the character, the step height H2, and the combination gap G1, and then the inner model is obtained by combining the sixth contour and the seventh contour, realizing the generation of the inner model of the nested character model based on the user-customized model parameters, and the inner model can be printed separately. At the same time, the inner model obtained by subsequent printing can be placed on the steps of the outer model and has a combination gap with a preset size.

[0011] In some embodiments, the model parameters further include a model spacing L1 between the inner model and the outer model. Generating an inner model based on an original contour, a step height H2, and a combination gap G1 includes: obtaining a bounding box corresponding to the original contour; obtaining a length L2 of the original contour on a first axis based on the coordinates of the bounding box on the first axis; generating an inner model based on the original contour, the step height H2, the model spacing L1, the combination gap G1, and the length L2 of the original contour on the first axis.

[0012] Adopting this technical solution, an inner model is generated based on the model spacing L1 between the inner model and the outer model, the original contour of the character, the step height H2, and the combined gap G1, such that the inner model and the outer model can be in the same model file, enabling the 3D printer to simultaneously print the inner model and the outer model based on the G-code generated from this model file.

[0013] In some embodiments, the bounding box is an axis-aligned bounding box. Obtaining the length L2 of the original contour on the first axis based on the coordinates of the bounding box on the first axis includes: calculating the length L2 of the original contour on the first axis based on the maximum coordinate value and the minimum coordinate value of the bounding box on the first axis, where L2 = aabb_max_C - aabb_min_C, the parameter aabb_max_C is the maximum coordinate value of the bounding box on the first axis, and the parameter aabb_min_C is the minimum coordinate value of the bounding box on the first axis.

[0014] Adopting this technical solution, taking the axis-aligned bounding box as an example, the length of the original contour of the character on the first axis can be calculated based on the maximum coordinate value and the minimum coordinate value of the bounding box on the first axis, such that there is a model spacing L1 between the inner model and the outer model in the direction of the first axis.

[0015] In some embodiments, generating the inner model based on the original contour, the step height H2, the model spacing L1, the combined gap G1, and the length L2 of the original contour on the first axis includes: traversing all points of the original contour, increasing the coordinates of all points of the original contour on the first axis by a preset value to obtain a fifth contour, the preset value being calculated based on the model spacing L1 and the length L2 of the original contour on the first axis; expanding the fifth contour inward according to the combined gap G1 to obtain a sixth contour, and setting the height coordinates of all data points of the sixth contour to zero; copying the sixth contour to obtain a seventh contour, and setting the height coordinates of all data points of the seventh contour to H2; obtaining the inner model based on the sixth contour and the seventh contour.

[0016] Adopting this technical solution, the fifth contour, the sixth contour, and the seventh contour are generated based on the parameter combination of the original contour of the character, the step height H2, the model spacing L1, the combined gap G1, and the length L2 of the original contour on the first axis, and then the inner model is obtained by combining the sixth contour and the seventh contour, realizing the generation of the inner model of the nested character model based on the user-customized model parameters, and enabling the inner model and the outer model to be in the same model file, such that the G-code generated by the 3D printer based on this model file can simultaneously print the inner model and the outer model, and at the same time enabling the subsequently printed inner model to be placed on the step of the outer model and having a combined gap of a preset size.

[0017] In some embodiments, the preset value is the sum of the model spacing L1 and the length L2 of the original contour on the first axis.

[0018] With this technical solution, the preset value is set to the sum of the model spacing L1 and the length L2 of the original contour in the first axis, so that there is a model spacing L1 between the inner model and the outer model in the direction of the first axis.

[0019] An embodiment of the present application provides a nested character model generation device, including: an acquisition module, configured to acquire the original contour of the character of the nested character to be generated and the model parameters of the character, where the model parameters include a model height H1, a step height H2, a step width W1, and a combination gap G1, where the combination gap G1 is less than the step width W1, the step height H2 is less than the model height H1, the model height H1 is the printing and forming height of the character on the printing platform, and the combination gap G1 is the gap between the inner model and the outer model of the nested character to be generated; a generation module, configured to generate an inner model based on the original contour, the step height H2, and the combination gap G1, and generate an outer model including a step for carrying the inner model based on the original contour, the model height H1, the step height H2, and the step width W1; an integration module, configured to obtain a nested character model according to the outer model and the inner model.

[0020] With this technical solution, by acquiring the original contour of the character of the nested character and the model parameters of the character, generating an outer model and an inner model based on the original contour and the model parameters, and then combining the printed outer model and inner model to obtain a nested character model, the user can set the model parameters of the character according to actual needs, realize customized generation of a nested character model corresponding to the nested character, print the nested character through 3D printing, with short production time for the nested character, low labor cost, and batch production can be achieved.

[0021] An embodiment of the present application provides an electronic device, which includes a processor and a memory. A number of computer programs are stored on the memory, and the processor is configured to implement the above-mentioned nested character model generation method when executing the computer programs stored in the memory.

[0022] An embodiment of the present application provides a computer-readable storage medium, on which a computer program is stored, and the computer program implements the above-mentioned nested character model generation method when executed by a processor.

[0023] The above-mentioned electronic device and computer-readable storage medium both correspond to the above-mentioned nested character model generation method. Therefore, the beneficial effects that can be achieved can refer to the beneficial effects in the corresponding method provided above, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS

[0024] Figure 1 It is a flowchart of the steps of the nested character model generation method in an embodiment of the present application.

[0025] Figure 2It is a schematic structural diagram of the original contour of the nested characters in an embodiment of the present application.

[0026] Figure 3 It is a schematic structural diagram of the outer model of the nested characters in an embodiment of the present application.

[0027] Figure 4 For Figure 3 The IV-IV sectional view of the outer model of

[0028] Figure 5 It is a schematic structural diagram of the inner model of the nested characters in an embodiment of the present application.

[0029] Figure 6 It is a step flowchart of the nested character model generation method in another embodiment of the present application.

[0030] Figure 7 It is a schematic structural diagram of the outer model and the inner model with a model spacing in an embodiment of the present application.

[0031] Figure 8 It is a schematic module diagram of the nested character model generation device in an embodiment of the present application.

[0032] Figure 9 It is a schematic diagram of a 3D printer in an embodiment of the present application.

[0033] Figure 10 It is a schematic diagram of an electronic device in an embodiment of the present application.

[0034] Description of the main component symbols

[0035] Nested character model generation device 10

[0036] Memory 20

[0037] Processor 30

[0038] First computer program 42

[0039] Second computer program 44

[0040] 3D printer 100

[0041] Acquisition module 101

[0042] Generation module 102

[0043] Integration module 103

[0044] Electronic device 200

[0045] Main controller 1001

[0046] Extruder module 1002

[0047] Motor 1003

[0048] Control and display module 1004 Specific implementation manner

[0049] In order to more clearly understand the above objects, features and advantages of the present application, the present application will be described in detail below with reference to the accompanying drawings and specific implementation manners. It should be noted that, without conflict, the implementation manners of the present application and the features in the implementation manners can be combined with each other.

[0050] In the following description, many specific details are set forth in order to fully understand the present application. The described implementation manners are only a part of the implementation manners of the present application, rather than all of the implementation manners.

[0051] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as commonly understood by those of ordinary skill in the technical field to which this application belongs. The terms used in the specification of this application herein are only for the purpose of describing specific implementation manners, and are not intended to limit this application.

[0052] The present application provides a method for generating a nested character model, including: obtaining the original contour of the character of the nested character to be generated and the model parameters of the character, where the model parameters include the model height H1, the step height H2, the step width W1, and the combination gap G1, and the combination gap G1 is less than the step width W1, the step height H2 is less than the model height H1, the model height H1 is the printing and forming height of the character on the printing platform, and the combination gap G1 is the gap between the inner model and the outer model of the nested character to be generated; generating an inner model based on the original contour, the step height H2, and the combination gap G1, and generating an outer model including a step for carrying the inner model based on the original contour, the model height H1, the step height H2, and the step width W1; obtaining a nested character model according to the outer model and the inner model.

[0053] In the above method for generating a nested character model, by obtaining the original contour of the character of the nested character to be generated and the model parameters of the character, generating an outer model and an inner model based on the original contour and the model parameters, and then obtaining a nested character model from the printed outer model and inner model, the user can set the model parameters of the character according to actual needs to achieve customized generation of a nested character model corresponding to the nested character, and obtain the nested character by means of 3D printing. The production time of the nested character is short, the labor cost is low, and batch production can be achieved.

[0054] The nested character model generation method of the present application can be applied to an electronic device. An electronic device can be a device capable of automatically performing numerical calculations and / or information processing according to pre-set or stored instructions. Its hardware includes, but is not limited to, a microprocessor, an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA), a digital signal processor (DSP), an embedded device, etc. The electronic device can be a computing device such as a desktop computer, a laptop computer, a server, an industrial computer, etc. The electronic device can interact with the user through a keyboard, a mouse, a remote control, a touchpad, a voice control device, etc.

[0055] Figure 1 It is a flowchart of the steps of an embodiment of the nested character model generation method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0056] Refer to Figure 1 As shown, the nested character model generation method can specifically include the following steps.

[0057] Step S11: Obtain the original contour of the character of the nested character to be generated and the model parameters of the character.

[0058] In some embodiments, the user can input the characters to be printed into the device (such as an electronic device) that executes the nested character model generation method. The electronic device retrieves the corresponding character contour from a pre-set glyph database or a general database according to the input characters. The following takes the character "I" of the nested character to be generated as an example to illustrate and describe the nested character model generation method in detail. As Figure 2 shown, the original contour M0 of the character of the nested character to be generated is roughly a 2D planar graph in the shape of "I".

[0059] In some embodiments, the nested character model M1 may include an inner model M11 and an outer model M12. The outer model M12 includes a step S1 for carrying the inner model M11. When the inner model M11 is placed on the outer model M12, the inner model M11 is received within the outer model M12, and the nested character model M1 is obtained by combination. The model parameters of the character may include the model height H1 of the outer model M12, the step height H2, the step width W1, and the combination gap G1 between the inner model M11 and the outer model M12. The combination gap G1 may refer to the gap between the inner model M11 and the outer model M12 when the inner model M11 is placed on the outer model M12. The combination gap G1 is less than the step width W1, and the step height H2 is less than the model height H1. Taking the printing platform as the reference plane, the model height H1 may refer to the printing and forming height of the character "I" of the nested character on the printing platform, that is, the printing and forming height of the outer model M12 on the printing platform.

[0060] Step S12: Generate the outer model M12 based on the original contour M0 of the character, the model height H1, the step height H2, and the step width W1, and generate the inner model M11 based on the original contour M0 of the character, the step height H2, and the combination gap G1.

[0061] In some embodiments, the height H3 where the step tread is located can be calculated from the model height H1 and the step height H2, where: H3 = H1 - H2.

[0062] In some embodiments, since the original contour M0 is a 2D planar graph in the shape of "I", a plurality of new contours can be generated based on the original contour M0, the model height H1, the step height H2, and the step width W1. The plurality of new contours have a plurality of heights, and a three-dimensional outer model M12 is obtained by combining the plurality of new contours.

[0063] In some embodiments, the outer model M12 can be obtained based on the original contour M0 of the character, the model height H1, the step height H2, and the step width W1 in the following manner: b1). Expand the original contour M0 of the character inward according to the step width W1 to obtain a first contour, and set the height coordinates of all data points of the first contour to H3; b2). Copy the original contour M0 of the character to obtain a second contour, a third contour, and a fourth contour, and set the height coordinates of all data points of the second contour to H3, set the height coordinates of all data points of the third contour to zero, and set the height coordinates of all data points of the fourth contour to H1; b3). Obtain the outer model M12 based on the first contour, the second contour, the third contour, and the fourth contour. The outer model M12 includes a step S1 for carrying the inner model M11.

[0064] For example, taking the XY axis as the plane, the original contour M0 is expanded inward by W1 through the open-source graphics library clipper.offset() to obtain the first contour, and the height coordinates of all points of the first contour are set to H3; the original contour M0 of the character is copied through the open-source graphics library clipper.offset() to obtain the second contour, the third contour, and the fourth contour, and the height coordinates of all data points of the second contour are set to H3, the height coordinates of all data points of the third contour are set to zero, and the height coordinates of all data points of the fourth contour are set to H1; all points on the first contour, the second contour, the third contour, and the fourth contour are connected into triangular faces in the order of contour height by using the triangular patch connection method to obtain the outer model M12. The structure of the outer model M12 is as Figure 3 shown. The dimensional schematic diagrams of the model height H1, the step height H2, and the step width W1 are as Figure 4 shown.

[0065] In some embodiments, since the original contour M0 is an "I"-shaped 2D planar graph, multiple new contours can be generated based on the original contour M0, the step height H2, and the combined gap G1, and then the new contours with multiple heights are combined to obtain the three-dimensional inner model M11.

[0066] In some embodiments, the inner model M11 can be generated based on the original contour M0, the step height H2, and the combined gap G1 in the following manner: c1). Copy the original contour M0 to obtain the fifth contour; c2). Expand the fifth contour inward according to the combined gap G1 to obtain the sixth contour, and set the height coordinates of all data points of the sixth contour to zero; c3). Copy the sixth contour to obtain the seventh contour, and set the height coordinates of all data points of the seventh contour to H2; c4). Obtain the inner model M11 based on the sixth contour and the seventh contour.

[0067] For example, taking the XY axis as the plane, the original contour M0 is copied through the open-source graphics library clipper.offset() to obtain the fifth contour; the fifth contour is expanded inward by G1 through the open-source graphics library clipper.offset() to obtain the sixth contour, and the height coordinates of all points of the sixth contour are set to zero; the sixth contour is copied through the open-source graphics library clipper.offset() to obtain the seventh contour, and the height coordinates of all data points of the seventh contour are set to H2; all points on the sixth contour and the seventh contour are connected into triangular faces in the order of contour height by using the triangular patch connection method to obtain the inner model M11. The structure of the inner model M11 is as Figure 5 shown.

[0068] Step S13, obtain the nested word model M1 according to the outer model M12 and the inner model M11.

[0069] In some embodiments, after obtaining the inner model M11 and the outer model M12, the obtained inner model M11 and outer model M12 can be combined and printed to obtain the complete nested character model M1. That is, after the inner model M11 and the outer model M12 are formed, there is actually no other additional calculation process. After the inner model M11 and the outer model M12 are printed, the two can be directly spliced to obtain the nested character model M1.

[0070] In some embodiments, the inner model M11 and the outer model M12 can be sliced to obtain a Gcode file, and a 3D printer can print the inner model and the outer model based on the Gcode file, and then combine the printed inner model and outer model to obtain the nested character model M1.

[0071] In some embodiments, the inner model M11 and the outer model M12 can also be sliced separately to obtain a first Gcode file and a second Gcode file, and a 3D printer can print the inner model and the outer model based on the first Gcode file and the second Gcode file respectively, and then combine the printed inner model and outer model to obtain the nested character model M1.

[0072] Figure 6 It is a flowchart of the steps of another embodiment of the nested character model generation method of the present application. According to different requirements, the order of the steps in the flowchart can be changed, and some steps can be omitted.

[0073] Refer to Figure 6 As shown, the nested character model generation method may specifically include the following steps.

[0074] Step S61: Obtain the original contour of the character to be generated with nested characters and the model parameters of the character.

[0075] In some embodiments, the model parameters of the character may include the model height H1 of the outer model M12, the step height H2, the step width W1, the model spacing L1 between the inner model M11 and the outer model M12, and the combination gap G1 between the inner model M11 and the outer model M12.

[0076] Step S62: Generate the outer model M12 based on the original contour M0 of the character, the model height H1, the step height H2, and the step width W1, and generate the inner model M11 based on the original contour M0 of the character, the step height H2, the model spacing L1, and the combination gap G1.

[0077] In some embodiments, the method of generating the outer model M12 based on the original contour M0 of the character, the model height H1, the step height H2, and the step width W1 is as described above, and will not be elaborated here.

[0078] In some embodiments, an axis-aligned bounding box (AABB) can be constructed based on the coordinates of all points of the original contour M0 of a character. The type of the bounding box can be selected according to actual requirements. For example, the bounding box is an axis-aligned bounding box aabb. After the bounding box is constructed, an inner model M11 can be generated based on the original contour M0 of the character, the step height H2, the model spacing L1, and the combination gap G1 in the following manner: obtain the length L2 of the original contour M0 on the first axis based on the coordinates of the bounding box on the first axis; generate the inner model M11 based on the original contour M0, the step height H2, the model spacing L1, the combination gap G1, and the length L2 of the original contour M0 on the first axis. There is a model spacing L1 between the inner model M11 and the outer model M12. In some embodiments, the length L2 of the original contour M0 on the first axis can be calculated based on the maximum coordinate value and the minimum coordinate value of the bounding box on the first axis. Where L2 = aabb_max_C - aabb_min_C, the parameter aabb_max_C is the maximum coordinate value of the bounding box on the first axis, and the parameter aabb_min_C is the minimum coordinate value of the bounding box on the first axis.

[0079] For example, if the first axis is the X axis, the length L1 of the original contour M0 on the X axis can be obtained through the bounding box aabb as L1 = aabb_max_X – aabb_min_X, where aabb_max_X is the maximum value of the abscissa of the bounding box aabb, and aabb_min_X is the minimum value of the abscissa of the bounding box.

[0080] In some embodiments, since the original contour M0 of the character is an "I"-shaped 2D planar graph, multiple new contours can be generated based on the original contour M0 of the character, the step height H2, the model spacing L1, the combination gap G1, and the length L2 of the original contour M0 on the first axis, and then the new contours with multiple heights can be combined to obtain the three-dimensional inner model M11.

[0081] Specifically, the inner model M11 can be generated based on the original contour M0 of the character, the step height H2, the model spacing L1, the combined gap G1, and the length L2 of the original contour M0 on the first axis in the following manner: d1). Traverse all the points of the original contour M0 of the character, and increase the coordinates of all the points of the original contour M0 on the first axis by a preset value to obtain the fifth contour. The preset value can be calculated based on the model spacing L1 and the length L2 of the original contour M0 on the first axis; d2). Expand the fifth contour inward according to the combined gap G1 to obtain the sixth contour, and set the height coordinates of all the data points of the sixth contour to zero; d3). Copy the sixth contour to obtain the seventh contour, and set the height coordinates of all the data points of the seventh contour to H2; d4). Obtain the inner model M11 based on the sixth contour and the seventh contour. For example, the preset value is the sum of the model spacing L1 and the length L2 of the original contour on the first axis. There is a model spacing L1 between the inner model M11 and the outer model M12, that is, as Figure 7 shown, the inner model M11 and the outer model M12 are in the same model file, and there is a model spacing L1 between the inner model M11 and the outer model M12.

[0082] In some embodiments, the preset value can be set according to actual needs. For example, the preset value can also be the sum of the model spacing L1, the length L2 of the original contour on the first axis, and a preset constant.

[0083] For example, taking the XY plane as the plane and the first axis as the X axis, traverse all the points on the original contour M0 of the character, add (L1 + L2) to the X-axis coordinates of all the points on the original contour M0 to obtain the fifth contour; at a height of 0, expand the fifth contour inward by G1 through the open-source graphics library clipper.offset() to obtain the sixth contour, and set the height coordinates of all the points of the sixth contour to 0; at a height of H2, copy the sixth contour to obtain the seventh contour, and set the height coordinates of all the points of the seventh contour to H2; use the triangular patch connection method to connect all the points on the sixth contour and the seventh contour in the order of contour height to form triangular faces to obtain the inner model M11. There is a model spacing L1 between the inner model M11 and the outer model M12, and the structures of the inner model M11 and the outer model M12 are as Figure 7 shown.

[0084] Step S63: Obtain the nested character model M1 according to the outer model M12 and the inner model M11.

[0085] In some embodiments, after the inner model M11 and the outer model M12 are obtained, the printed inner model M11 and the outer model M12 can be combined to obtain a complete nested word model M1. That is, after the inner model M11 and the outer model M12 are formed, there is actually no other additional calculation process. After the inner model M11 and the outer model M12 are printed out, the nested word model M1 can be obtained by directly splicing the two.

[0086] In some embodiments, the inner model M11 and the outer model M12 can be sliced ​​to obtain a Gcode file, and the 3D printer can print the inner model and the outer model based on the Gcode file, and then combine the printed inner model and the outer model to obtain the nested character model M1.

[0087] Based on the same idea as the nested word model generation method in the above embodiment, the present application also provides a nested word model device, which can be used to execute the above nested word model method. For the sake of convenience, the structural diagram of the embodiment of the nested word model device only shows the parts related to the embodiment of the present application. Those skilled in the art can understand that the illustrated structure does not constitute a limitation on the device, and may include more or fewer components than shown in the diagram, or combine certain components, or arrange the components differently.

[0088] If Figure 8 As shown in FIG. 1 , the nested word model generating device 10 includes an acquisition module 101, a generation module 102, and an integration module 103. In some embodiments, the above modules may be programmable software instructions stored in a memory and callable and executed by a processor. It is understood that in other embodiments, the above modules may also be program instructions or firmware fixed in the processor.

[0089] The acquisition module 101 is used to acquire the original outline M0 of the character to be generated into the nested word and the model parameters of the character, the model parameters including the model height H1, the step height H2, the step width W1 and the combination gap G1.

[0090] In some embodiments, the combined gap G1 is smaller than the step width W1, and the step height H2 is smaller than the model height H1, where the model height H1 is the printing height of the character on the printing platform.

[0091] Generation module 102, for generating an inner model M11 based on the original contour M0, step height H2 and combined gap G1, and generating an outer model M12 including steps for carrying the inner model based on the original contour, model height H1, step height H2 and step width W1.

[0092] Integration module 103, used to obtain the nested character model M1 according to the external model M11 and the internal model M12. ​​

[0093] In some embodiments, in the nested character model, there is a combined gap G1 between the outer model and the inner model.

[0094] Figure 9 This is a schematic diagram of an embodiment of the 3D printer of the present application.

[0095] The 3D printer 100 includes a main controller 1001, an extruder module 1002, a motor 1003, and a control and display module 1004.

[0096] The main controller 1001 can, according to the program, manipulate the motor 1003, display information on the control and display module 1004, and perform data communication, etc. The extruder module 1002 can include an extruder, a heating rod, etc., and can realize heating and extrusion of consumables. The control and display module 1004 can include buttons, a touch display, etc., and can allow the user to input control instructions and display the usage situation and printing progress of the 3D printer 100, etc.

[0097] The first computer program 42 can be stored in the Flash memory of the main controller 1001. When the main controller 1001 executes the first computer program 42, it can print the inner model and / or outer model of the nested character based on the Gcode file.

[0098] Exemplarily, the first computer program 42 can also be divided into one or more modules / units. The one or more modules / units are stored in the Flash memory of the main controller 1001 and are executed by the main controller 1001 to complete the present application. The one or more modules / units can be a series of computer program instruction segments capable of completing specific functions, and the instruction segments are used to describe the execution process of the first computer program 42 in the 3D printer 100. The main controller 1001 can be a microprocessor, a single-chip microcomputer, etc.

[0099] Those skilled in the art can understand that the schematic diagram is only an example of the 3D printer 100, and does not constitute a limitation on the 3D printer 100. It can include more or fewer components than shown, or combine certain components, or different components. For example, the 3D printer 100 can also include a communication module, etc.

[0100] Figure 10 This is a schematic diagram of an embodiment of the electronic device of the present application.

[0101] The electronic device 200 includes a memory 20, a processor 30, and a second computer program 44 stored in the memory 20 and executable on the processor 30. When the processor 30 executes the second computer program 44, it can implement the steps in the embodiment of the above-mentioned nested character model generation method, such as Figure 1 the steps S11 - S13 shown, orFigure 6 Steps S61 to S63 shown above.

[0102] Exemplarily, the second computer program 44 can also be split into one or more modules / units, which are stored in the memory 20 and executed by the processor 30. The one or more modules / units can be a series of computer program instruction segments capable of performing specific functions, and the instruction segments are used to describe the execution process of the second computer program 44 in the electronic device 200.

[0103] The electronic device 200 can be a computing device such as a desktop computer, a notebook, a palm computer, an industrial computer, a tablet computer, a server, etc. Those skilled in the art can understand that the schematic diagram is only an example of the electronic device 200, and does not constitute a limitation on the electronic device 200. It may include more or fewer components than shown in the figure, or combine some components, or different components. For example, the electronic device 200 may further include input / output devices, network access devices, buses, etc.

[0104] The processor 30 can be a central processing unit (CPU), or can also be other general-purpose processors, digital signal processors (DSPs), application specific integrated circuits (ASICs), field-programmable gate arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor can be a microprocessor, a single-chip microcomputer, or the processor 30 can also be any conventional processor, etc.

[0105] The memory 20 can be used to store the second computer program 44 and / or modules / units. By running or executing the computer programs and / or modules / units stored in the memory 20, and invoking the data stored in the memory 20, the processor 30 realizes various functions of the electronic device 200. The memory 20 mainly includes a program storage area and a data storage area. Among them, the program storage area can store an operating system, application programs required for at least one function (such as a sound playback function, an image playback function, etc.); the data storage area can store data created according to the use of the electronic device 200 (such as audio data, etc.). In addition, the memory 20 may include a high-speed random access memory, and may also include a non-volatile memory, such as a hard disk, a memory, a plug-in hard disk, a Smart Media Card (SMC), a Secure Digital (SD) card, a Flash Card, at least one magnetic disk storage device, a flash memory device, or other non-volatile solid-state storage devices.

[0106] If the modules / units integrated in the electronic device 200 are implemented in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on such an understanding, to implement all or part of the processes in the above-mentioned embodiment methods of this application, it can also be completed by instructing relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above-mentioned various method embodiments can be realized. Among them, the computer program includes computer program code, and the computer program code can be in the form of source code, object code, executable file or some intermediate form, etc. The computer-readable medium can include: any entity or device capable of carrying the computer program code, a recording medium, a USB flash drive, a mobile hard disk, a magnetic disk, an optical disk, a computer memory, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), an electrical carrier signal, a telecommunication signal, and a software distribution medium, etc. It should be noted that the content included in the computer-readable medium can be appropriately increased or decreased according to the requirements of legislation and patent practice in the jurisdiction. For example, in some jurisdictions, according to legislation and patent practice, the computer-readable medium does not include electrical carrier signals and telecommunication signals.

[0107] In several embodiments provided in this application, it should be understood that the disclosed electronic device and method can be implemented in other ways. For example, the above-described electronic device embodiments are merely illustrative. For example, the division of the units is only a logical function division, and there may be other division methods in actual implementation.

[0108] In addition, in each embodiment of the present application, each functional unit can be integrated in the same processing unit, can exist separately as individual physical units, or two or more units can be integrated in the same unit. The above integrated unit can be implemented in the form of hardware, or in the form of a hardware plus software functional module.

[0109] For those skilled in the art, it is obvious that the present application is not limited to the details of the above exemplary embodiments, and can be implemented in other specific forms without departing from the spirit or basic characteristics of the present application. Therefore, from any point of view, the embodiments should be regarded as exemplary and non-limiting. In addition, it is obvious that the term "including" does not exclude other units or steps, and the singular does not exclude the plural. The multiple units or electronic devices stated in the claims of the electronic device can also be implemented by the same unit or electronic device through software or hardware. The words "first", "second", etc. are used to indicate names and do not represent any specific order.

[0110] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present application and not to limit them. Although the present application has been described in detail with reference to the above embodiments, those of ordinary skill in the art should understand that the technical solutions of the present application can be modified or equivalently replaced without departing from the spirit and scope of the technical solutions of the present application.

Claims

1. A method for generating a nested character model, characterized in that: include: Obtaining the original outline of the character of the nested word to be generated and the model parameters of the character, wherein the model parameters include a model height H1, a step height H2, a step width W1, and a combination gap G1, wherein the combination gap G1 is smaller than the step width W1, the step height H2 is smaller than the model height H1, the model height H1 is the printing molding height of the character on the printing platform, and the combination gap G1 is the gap between the inner model and the outer model of the nested word to be generated; Generate an inner model based on the original contour, the step height H2 and the combined gap G1, wherein the height of the inner model is H2, and the contour of the inner model is obtained by extending the combined gap G1 inward from the original contour; An outer model including a step for supporting the inner model is generated based on the original outline, the model height H1, the step height H2, and the step width W1, wherein the height of the outer model is H1, the step height H2 is the height of the step, the step width W1 is the width of the step, and the outline of the outer model includes the original outline and an outline obtained by inwardly extending the original outline by the step width W1; A nested character model is obtained according to the external model and the internal model.

2. The nested word model generation method according to claim 1, characterized in that: The step of generating an outer model including a step for supporting the inner model based on the original contour, the model height H1, the step height H2 and the step width W1 comprises: The height H3 of the step is calculated based on the model height H1 and the step height H2; Expand the original contour inward according to the step width W1 to obtain a first contour, and set the height coordinates of all data points of the first contour to H3; The original contour is copied to obtain a second contour, a third contour and a fourth contour, and the height coordinates of all data points of the second contour are set to H3, the height coordinates of all data points of the third contour are set to zero, and the height coordinates of all data points of the fourth contour are set to H1; An outer model including a step for supporting the inner model is obtained based on the first contour, the second contour, the third contour, and the fourth contour.

3. The nested word model generation method according to claim 1 or 2, characterized in that: The generating of the inner model based on the original profile, the step height H2 and the combined gap G1 includes: Copying the original outline to obtain a fifth outline; Expanding the fifth contour inward according to the combined gap G1 to obtain a sixth contour, and setting the height coordinates of all data points of the sixth contour to zero; Copy the sixth contour to obtain a seventh contour, and set the height coordinates of all data points of the seventh contour to H2; The inner model is obtained based on the sixth contour and the seventh contour.

4. The nested character model generation method according to claim 1, characterized in that: The model parameters also include a model spacing L1 between the inner model and the outer model. The generating of the inner model based on the original contour, the step height H2 and the combined gap G1 includes: Obtain a bounding box corresponding to the original contour; Acquire a length L2 of the original contour on the first axis based on the coordinate of the bounding box on the first axis; The inner model is generated based on the original contour, the step height H2, the model spacing L1, the combined gap G1, and the length L2 of the original contour along the first axis.

5. The nested character model generation method according to claim 4, characterized in that: The bounding box is an axis-aligned bounding box, and obtaining the length L2 of the original contour on the first axis based on the coordinates of the bounding box on the first axis includes: The length L2 of the original contour on the first axis is calculated based on the maximum coordinate value and the minimum coordinate value of the bounding box on the first axis, where L2=aabb_max_C- aabb_min_C, parameter aabb_max_C is the maximum coordinate value of the bounding box on the first axis, and parameter aabb_min_C is the minimum coordinate value of the bounding box on the first axis.

6. The method for generating a nested character model according to claim 4, wherein: The generating the inner model based on the original profile, the step height H2, the model spacing L1, the combined gap G1 and the length L2 of the original profile on the first axis includes: Traversing all points of the original contour, increasing the coordinates of all points of the original contour on the first axis by a preset value to obtain a fifth contour, where the preset value is calculated based on the model spacing L1 and the length L2 of the original contour on the first axis; Expanding the fifth contour inward according to the combined gap G1 to obtain a sixth contour, and setting the height coordinates of all data points of the sixth contour to zero; Copying the sixth contour to obtain a seventh contour, and setting the height coordinates of all data points of the seventh contour to H2; The inner model is obtained based on the sixth contour and the seventh contour.

7. The method for generating a nested character model according to claim 6, wherein: The preset value is the sum of the model spacing L1 and the length L2 of the original contour along the first axis.

8. A nested word model generating device, characterized in that: include: An acquisition module, used for acquiring the original outline of the character of the nested word to be generated and the model parameters of the character, wherein the model parameters include a model height H1, a step height H2, a step width W1 and a combination gap G1, wherein the combination gap G1 is smaller than the step width W1, the step height H2 is smaller than the model height H1, the model height H1 is the printing molding height of the character on the printing platform, and the combination gap G1 is the gap between the inner model and the outer model of the nested word to be generated; a generating module, configured to generate an inner model based on the original contour, the step height H2 and the combined gap G1, and to generate an outer model including a step for carrying the inner model based on the original contour, the model height H1, the step height H2 and the step width W1, wherein the height of the inner model is H2, the contour of the inner model is obtained by inwardly extending the combined gap G1 from the original contour, the height of the outer model is H1, the step height H2 is the height of the step, the step width W1 is the width of the step, and the contour of the outer model includes the original contour and a contour obtained by inwardly extending the step width W1 from the original contour; The integration module is used to obtain a nested character model according to the external model and the internal model.

9. An electronic device, comprising a processor and a memory, wherein the memory stores a plurality of computer programs, wherein: The processor is configured to implement the nested character model generating method according to any one of claims 1 to 7 when executing the computer program stored in the memory.

10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the method for generating a nested character model according to any one of claims 1 to 7 is implemented.

Citation Information

Patent Citations

  • Three-dimensional character printing method and device, computer equipment and storage medium

    CN113561471A

  • Generating 3D Models

    US20200074727A1