Pet comb modeling method, system, device and display terminal based on NX software
By using NX software to create a 3D model of a pet comb and rendering its colors, combined with holographic projection technology, the problem of inaccurate appearance evaluation of pet combs in existing technologies has been solved, achieving a realistic appearance display and improvement from multiple angles.
Patent Information
- Application Number
- CN202110439507.7
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-04-23
- Publication Date
- 2024-08-27
- Estimated Expiration
- 2041-04-23
AI Technical Summary
In existing technologies, 3D printing and Keyshot software are not realistic or vivid enough when verifying the structure and appearance of pet combs, making it difficult to effectively evaluate and improve the actual appearance of pet combs.
The 3D model of the pet comb was drawn using NX software, a 3D coordinate system was constructed, the coordinates of points on the model surface were obtained, the color rendering was performed, and the multi-angle images of the pet comb were displayed through holographic projection to form a holographic projection video source.
It enables realistic evaluation and improvement of the appearance of pet comb products, and allows users to observe and evaluate the product's multi-angle effects through holographic projection video sources.
Smart Images

Figure CN113379928B
Abstract
Description
Technical Field
[0001] The present application relates to the field of pet comb modeling, and in particular to a pet comb modeling method, system, device and display terminal based on NX software. Background Art
[0002] At present, the product design process is roughly divided into five stages: 1. Analysis stage, to clearly understand what problem to solve; 2. Prototype stage, to find solutions; 3. Design stage, to package solutions to make the product appearance better; 4. R&D implementation stage, to use mapping software to design three-dimensional drawings; 5. Verification and improvement stage, to verify the product structure, appearance, and performance, and continuously improve them.
[0003] In the verification and improvement stage of related technologies, prototypes are usually made through 3D printing based on the three-dimensional drawings designed in the R&D implementation stage, and the product structure, appearance and performance are verified based on the prototypes; or the three-dimensional drawings of the product are rendered using KeyShot software to observe the product appearance effect.
[0004] However, the above-mentioned related technologies have the following defects: the prototypes made by 3D printing are suitable for verifying the product structure and performance, and the renderings made by using keyshot software are not realistic and vivid enough. Both methods are not convenient for evaluating and improving the actual appearance of pet comb products. Summary of the invention
[0005] In order to solve the problem that it is inconvenient to evaluate and improve the actual appearance of pet comb products, the present application provides a pet comb modeling method, system, device and display terminal based on NX software.
[0006] In the first aspect, the present application provides a pet comb modeling method based on NX software, which adopts the following technical solution:
[0007] A pet comb modeling method based on NX software, comprising:
[0008] Obtain a three-dimensional model of a pet comb drawn using NX software;
[0009] Construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the origin;
[0010] Obtaining coordinates of all points on the surface of the three-dimensional model of the pet comb based on the three-dimensional coordinate system;
[0011] A number of point sets are obtained according to the coordinates of all points on the surface of the three-dimensional model of the pet comb;
[0012] In response to the rendering color shading start instruction issued by the operation end, output a processing instruction for selecting the rendering color corresponding to each point set;
[0013] Acquiring rendering color selection information based on the rendering color selection operation performed by the operating end in response to the processing instruction, extracting the rendering color corresponding to each point set from the rendering color selection information and performing rendering color coloring processing;
[0014] The three-dimensional model of the pet comb colored with the rendering color is rotated according to a preset trajectory based on the origin of the three-dimensional coordinate system;
[0015] Acquire images of the pet comb three-dimensional model at four angles during rotation;
[0016] Based on the images obtained from the four angles of front, back, left, and right, a holographic projection video source is formed for displaying a holographic projection model.
[0017] By adopting the above technical solution, it is possible to obtain a rendered three-dimensional model of a pet comb based on the three-dimensional model of the pet comb drawn by NX software, and obtain a holographic projection video source that can be used to display the holographic projection model. Through the holographic projection video source, users can observe the holographic projection of the rendered pet comb model, thereby facilitating the evaluation and improvement of the actual appearance of the pet comb product.
[0018] Optionally, obtaining a plurality of point sets according to the coordinates of all points on the surface of the three-dimensional model of the pet comb includes:
[0019] The parts of the obtained three-dimensional model of the pet comb are randomly dyed, and the colors of the parts after being randomly dyed are different from each other;
[0020] Based on the coordinates of each dyed part and all points on the surface of the three-dimensional model of the pet comb, a plurality of point sets are obtained, and each of the point sets corresponds to only one part.
[0021] By adopting the above technical solution, combined with the coordinates of all points on the surface of the pet comb three-dimensional model and the parts of different colors, it is easy to divide the point sets corresponding to the parts, so that users can perform rendering color processing on the model parts corresponding to each point set.
[0022] Optionally, the step of randomly coloring each part in the obtained three-dimensional model of the pet comb includes:
[0023] Get the number of parts and the name of each part in the pet comb 3D model;
[0024] Arrange the parts in the pet comb 3D model in order according to their names;
[0025] Based on the preset color library, the color of each part is changed in sequence according to the sorting order of the parts.
[0026] By adopting the above technical solution, it is easy to find each part and change each part into a different color.
[0027] Optionally, the point set includes a parent point set and a child point set; the point sets obtained based on the coordinates of all the points on the surface of the three-dimensional model of each part to be dyed and the pet comb include:
[0028] Based on the surface colors of the dyed parts and the coordinates of all points on the surface of the three-dimensional model of the pet comb, a set of parent points of each part corresponding to the surface of the three-dimensional model of the pet comb is obtained;
[0029] Based on the obtained generatrix set of each part, a turning point set corresponding to the turning line of the surface of each part is obtained;
[0030] Based on the turning point set of each part, the parent point set of each part is divided into several sub-point sets.
[0031] By adopting the above technical solution, different surfaces on the surface of the same part can be rendered with different colors, which is more conducive to restoring the real product appearance.
[0032] Optionally, the three-dimensional model of the pet comb colored with a rendering color after rotating according to a preset trajectory based on the origin of the three-dimensional coordinate system includes:
[0033] In response to the rotation start command issued by the operating end, the three-dimensional model of the pet comb is controlled to rotate one circle with the X, Y or Z axis as the rotation axis, and the trajectory of one circle of rotation is the preset trajectory.
[0034] By adopting the above technical solution, multi-angle images of the three-dimensional model of the pet comb can be collected, which facilitates multi-angle observation of the holographic projection of the three-dimensional model of the pet comb in the later stage.
[0035] Optionally, the step of obtaining images of the pet comb three-dimensional model at four angles of front, back, left, and right during the rotation process includes:
[0036] While controlling the pet comb three-dimensional model to rotate one circle, a screen recording of a preset display area is performed on the operating end to obtain an image of the pet comb three-dimensional model in the front direction during the rotation process, and the pet comb three-dimensional model is always located in the preset display area during the rotation process;
[0037] The pet comb 3D model is restored to its initial state before the last rotation, and then the pet comb 3D model is rotated 90 degrees based on the initial state before the last rotation, and the screen is recorded, so as to obtain the images of the pet comb 3D model in the right, back and left directions during the rotation process.
[0038] By adopting the above technical solution, it is easy to collect the influence of model rotation when observing the three-dimensional model of the pet comb in four directions, which is conducive to the production of the holographic video of the pet comb model.
[0039] In the second aspect, the present application provides a pet comb modeling system based on NX software, which adopts the following technical solution:
[0040] A pet comb modeling system based on NX software, comprising:
[0041] A model acquisition module is used to acquire a three-dimensional model of a pet comb drawn by using NX software;
[0042] A coordinate system construction module, used to construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the origin;
[0043] A coordinate acquisition module, used to obtain the coordinates of all points on the surface of the three-dimensional model of the pet comb based on the three-dimensional coordinate system;
[0044] A point set acquisition module, used to obtain a number of point sets according to the coordinates of all points on the surface of the pet comb three-dimensional model;
[0045] An instruction output module, used for responding to a rendering color start instruction issued by an operation terminal and outputting a processing instruction for selecting a rendering color corresponding to each point set;
[0046] A rendering processing module, configured to obtain rendering color selection information based on a rendering color selection operation performed by the operating end in response to the processing instruction, extract a rendering color corresponding to each point set from the rendering color selection information, and perform rendering color coloring processing;
[0047] A model rotation module, used to rotate the three-dimensional model of the pet comb colored with the rendering color according to a preset trajectory based on the origin of the three-dimensional coordinate system;
[0048] An image acquisition module, used to acquire images of the pet comb three-dimensional model at four angles during rotation; and
[0049] The video source forming module is used to form a holographic projection video source that can be used to display a holographic projection model based on the images obtained at four angles: front, back, left, and right.
[0050] By adopting the above technical solution, it is helpful to render the three-dimensional model of the pet comb and form a holographic projection video source that can be projected and displayed, which is convenient for evaluating and improving the actual appearance of the pet comb product.
[0051] In a third aspect, the present application provides a pet comb modeling device, which adopts the following technical solution:
[0052] A pet comb modeling device comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and execute any one of the above methods.
[0053] By adopting the above technical solution, a program capable of loading and executing the above method is stored in the memory, which is helpful to solve the problem of inconvenience in evaluating and improving the actual appearance of pet comb products.
[0054] In a fourth aspect, the present application provides a pet comb model display terminal, which adopts the following technical solution:
[0055] A pet comb model display terminal, comprising:
[0056] 360-degree holographic projection cabinet, used to play the holographic projection video source of the 3D model of the pet comb;
[0057] As in the pet comb modeling device mentioned above, the output end is connected to the 360-degree holographic projection cabinet.
[0058] By adopting the above technical solution, it is convenient to send the holographic projection video source to the 360-degree holographic projection cabinet for projection display, thereby facilitating the evaluation and improvement of the actual appearance of the pet comb product.
[0059] In summary, the present application includes at least one of the following beneficial technical effects:
[0060] 1. It can render the 3D model of the pet comb drawn based on NX software and collect images from the four directions of front, back, left and right. Based on the images from the four directions, it can obtain a holographic projection video source that can be used to display the holographic projection model, so that users can observe the holographic projection of the rendered pet comb model, thereby facilitating the evaluation and improvement of the actual appearance of the pet comb product;
[0061] 2. Through the setting of the parent point set and the child point set, it is convenient for users to perform rendering color processing on the model parts corresponding to each point set, so as to achieve the expected appearance display effect, which is more conducive to the evaluation and improvement of the actual appearance of the pet comb product. BRIEF DESCRIPTION OF THE DRAWINGS
[0062] Figure 1 It is a structural block diagram of the pet comb model display terminal of an embodiment of the present application.
[0063] Figure 2 It is a structural schematic diagram of a 360-degree holographic projection cabinet according to an embodiment of the present application.
[0064] Figure 3 It is a flow chart of a pet comb modeling method based on NX software according to an embodiment of the present application.
[0065] Figure 4 It is a schematic diagram of the structure of a cross-shaped video formed by a three-dimensional model of a pet comb according to an embodiment of the present application.
[0066] Figure 5It is a flow chart for reflecting the S70 sub-step process of an embodiment of the present application.
[0067] Figure 6 It is a structural block diagram of a pet comb modeling system based on NX software in an embodiment of the present application.
[0068] Explanation of the accompanying drawings: 1. 360-degree holographic projection cabinet; 2. Pet comb modeling device; 21. Input module; 22. Main board; 23. Display; 100. Model acquisition module; 200. Coordinate system construction module; 300. Coordinate acquisition module; 400. Point set acquisition module; 500. Instruction output module; 600. Rendering processing module; 700. Model rotation module; 800. Image acquisition module; 900. Video source formation module. DETAILED DESCRIPTION
[0069] The present application is further described in detail below in conjunction with the accompanying drawings.
[0070] This specific embodiment is only an explanation of the present application, and it is not a limitation of the present application. After reading this specification, those skilled in the art can make modifications to the present embodiment without creative contribution as needed, but as long as it is within the scope of the claims of the present application, it is protected by the patent law. In order to make the purpose, technical solution and advantages of the embodiment of the present application clearer, the technical solution in the embodiment of the present application will be clearly and completely described in combination with the drawings in the embodiment of the present application. Obviously, the described embodiment is a part of the embodiment of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of the present application.
[0071] In addition, the term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist at the same time, and B exists alone. In addition, the character " / " in this article, unless otherwise specified, generally means that the associated objects before and after are in an "or" relationship.
[0072] The following is a further detailed description of the embodiment of the pet comb model display terminal of the present application in conjunction with the accompanying drawings of the specification.
[0073] One embodiment of the present application discloses a pet comb model display terminal. Figure 1The pet comb model display terminal includes a pet comb modeling device 2 and a 360-degree holographic projection cabinet 1 for playing a holographic projection video source of a pet comb three-dimensional model; the output end of the pet comb modeling device 2 is connected to the 360-degree holographic projection cabinet 1, and is used to send a holographic projection video source of a pet comb three-dimensional model to the 360-degree holographic projection cabinet 1. The pet comb modeling device 2 includes an input module 21, a main board 22, and a display 23, and the main board 22 is integrated with a memory and a processor; the input module 21 is used to obtain a pet comb three-dimensional model drawn by NX software for processing by the processor, and the memory is used to store a pet comb three-dimensional model processing program. When the processor runs the pet comb three-dimensional model processing program, the following steps of the pet comb modeling method based on NX software are executed. The input module 21 here includes multiple implementation methods, such as USB interface input, wireless communication input, etc.; the memory also stores an NX software program. After obtaining the pet comb three-dimensional model, the pet comb three-dimensional model can be opened by the NX software and displayed on the display 23.
[0074] The following is a detailed description of the implementation of the pet comb modeling method based on NX software in conjunction with the pet comb model display terminal:
[0075] Reference Figure 3 Another embodiment of the present application provides a pet comb modeling method based on NX software, comprising:
[0076] S10, obtaining a three-dimensional model of a pet comb drawn by using NX software;
[0077] The three-dimensional model of the pet comb here is made by other devices installed with NX software, such as PCs, tablet computers, etc. After the input module 21 detects that the three-dimensional model of the pet comb has been transmitted, the following method steps will be performed. Among them, the detection mechanism of the input module 21 is pre-set inside the computer program, and the detection mechanism includes that the file size of the three-dimensional model of the pet comb after the transmission is completed is consistent with that during the pre-scan, and the preset N seconds delay time is reached after the transmission is completed; when the above two conditions are met, the system issues a start instruction and automatically performs the following method step S20.
[0078] S20, using NX software to open the three-dimensional model of the pet comb and construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the origin;
[0079] Combination Figure 2 The origin of the three-dimensional coordinate system constructed in this embodiment is on the axis of the pet comb handle. In the actual processing process, the axis and the length of the handle part are first obtained according to the handle part of the pet comb three-dimensional model, and then the midpoint of the axis of the handle part is taken as the origin, the direction of the axis of the handle part is taken as the X-axis, and the direction from the side of the comb handle close to the comb teeth to the side of the comb handle away from the comb teeth is taken as the Z-axis.
[0080] S30, obtaining coordinates of all points on the surface of the three-dimensional model of the pet comb based on the constructed three-dimensional coordinate system;
[0081] In this embodiment, the target object color and contour recognition method based on OpenCV is used to extract the surface contour of the pet comb three-dimensional model, and then the coordinates of all points on the surface contour are obtained based on the surface contour and the constructed three-dimensional coordinate system. Among them, the target object color and contour recognition method based on OpenCV is to use the functions provided in the Open CV function library to first perform various image preprocessing on the target object so that the obtained image meets the experimental requirements, and then use the threshold adjustment to perform color recognition, and finally perform edge detection and contour recognition based on color recognition. This is a prior art and will not be repeated here.
[0082] S40, obtaining a plurality of point sets according to the coordinates of all points on the surface of the three-dimensional model of the pet comb;
[0083] Specifically, firstly, each part in the obtained pet comb 3D model is randomly dyed in NX software, and the colors of each part after random dyeing are different from each other; then, a number of point sets are obtained based on the coordinates of each dyed part and all points on the surface of the pet comb 3D model, and each point set corresponds to only one part;
[0084] The random dyeing mechanism here includes first obtaining the number of parts and the names of the parts in the pet comb three-dimensional model. For ease of processing, the names of the parts are composed of English letters; sorting the parts in the pet comb three-dimensional model in sequence according to the names, and the specific sorting rule is to sort by the first English letter in the name first, if the first English letter is the same, sort by the second English letter, and so on; finally, changing the color of each part in sequence according to the order of the parts based on the preset dyeing library; it should be noted that this embodiment does not specifically limit the name composition of each part and the specific sorting rule, and the above naming rule and sorting rule are just a specific example for ease of understanding;
[0085] In addition, the point set in this scheme includes a parent point set and a child point set; since the color of each part is different after random dyeing, the colors corresponding to the parts on the surface of the pet comb three-dimensional model are also different. The surface contour of the pet comb three-dimensional model is divided into multiple areas based on color, one area corresponds to one color, and the set of coordinate points corresponding to each area is the parent point set; then based on the coordinate points in the parent point set, the turning point set corresponding to the turning line of the surface of each part is obtained, and the parent point set of each part is divided into several child point sets based on the turning point set of each part; if there is no turning line on the surface of the part, the part only corresponds to one parent point set but has no child point set; among them, there will be contour lines at the connection between faces in the surface contour of the pet comb three-dimensional model. The turning line of the part surface referred to here is the line part of the contour line in the surface contour on the surface of the part.
[0086] S50, in response to the rendering color shading start instruction issued by the operation terminal, outputting a processing instruction for selecting the rendering color corresponding to each point set;
[0087] Specifically, the operating end here refers to the pet comb modeling device 2. After the point set processing is completed in S40, a notification message will be sent and displayed on the display screen for the user to view; the display screen can be a touch screen. After the user views the notification message through the touch screen, he can click and then issue a rendering color coloring start instruction. At this time, the system will respond to the rendering color coloring start instruction to output a processing instruction for selecting the rendering color corresponding to each point set. The processing instruction corresponds to a display screen on the display screen that displays rendering color options for the user to select.
[0088] S60, acquiring rendering color selection information based on the rendering color selection operation performed by the operating end in response to the rendering color processing instruction, extracting the rendering color corresponding to each point set from the rendering color selection information, and performing rendering color coloring processing;
[0089] Among them, the obtained rendering color selection information includes the rendering color corresponding to each sub-point set; when performing the rendering color selection operation, the corresponding rendering colors can be selected in sequence based on the parent point set, or the rendering color can be selected based on the sub-point set; after the rendering color is selected based on the parent point set, it means that all sub-point sets under the parent point set correspond to the rendering color.
[0090] S70, rotating the three-dimensional model of the pet comb colored with the rendering color according to a preset trajectory based on the origin of the three-dimensional coordinate system, and obtaining images of the three-dimensional model of the pet comb at four angles of front, back, left, and right during the rotation according to the preset trajectory.
[0091] S80, forming a holographic projection video source that can be used to display a holographic projection model according to the images of the four angles of front, back, left, and right acquired in S70;
[0092] Specifically, the memory stores video stitching software that can be loaded and run by the processor. After the images of the four angles of front, back, left, and right are acquired, the system starts the video stitching software and imports the four images. The video stitching software, such as MikuMikuMance, VideoStudio, AE, etc., will not be described in detail here. After the images of the four angles of front, back, left, and right are imported, a video stitching request is issued to the user. The video stitching request is specifically manifested as a prompt message displayed on the display screen. Then, the operation made by the user in response to the stitching request is received, and the images of the four angles of front, back, left, and right are stitched into a cross-shaped video. The cross-shaped video is the holographic projection video source of the three-dimensional model of the pet comb, combined with the Figure 4 The cross-shaped video is a picture of the front, back, left, and right four angles of the pet comb three-dimensional model, which is arranged at intervals of 90 degrees. After sending it to the 360-degree holographic projection cabinet 1, the holographic projection display of the pet comb three-dimensional model can be performed.
[0093] Among them, combined Figure 5 , S70 includes:
[0094] S71, responding to the rotation start instruction issued by the operation terminal to control the three-dimensional model of the pet comb after dyeing and coloring to rotate one circle with the X, Y or Z axis as the rotation axis; the trajectory of one circle of rotation is the preset trajectory;
[0095] It should be noted that which of X, Y and Z is used as the rotation axis can be specifically set according to the actual usage scenario, and this embodiment does not specifically limit it.
[0096] S72, while controlling the pet comb three-dimensional model to rotate one circle, recording the screen of the preset display area of the operating terminal to obtain an image of the pet comb three-dimensional model observed from a "front" angle during the rotation process; the pet comb three-dimensional model is always located in the above preset display area during the rotation process;
[0097] S73, restore the pet comb three-dimensional model to the initial state before the last rotation, and then rotate the pet comb three-dimensional model one circle along the preset trajectory based on the initial state before the last rotation and rotating it 90 degrees clockwise with the Z axis as the axis, and record the screen, in this way, the images of the pet comb three-dimensional model at the right, back and left angles during the rotation process are obtained in turn.
[0098] Based on the same inventive concept as above, the embodiment of the present application also discloses a pet comb modeling system based on NX software. Figure 6The pet comb modeling system based on NX software includes: a model acquisition module 100, which is used to acquire the three-dimensional model of the pet comb drawn by using NX software and open the obtained three-dimensional model of the pet comb; a coordinate system construction module 200, which is used to construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the center of the circle, where the midpoint of the axis of the handle part is taken as the origin, the direction of the axis of the handle part is taken as the X-axis, and the direction from the side of the comb handle close to the comb teeth to the side of the comb handle away from the comb teeth is taken as the Z-axis; a coordinate acquisition module 300, which is used to obtain the coordinates of all points on the surface of the three-dimensional model of the pet comb based on the three-dimensional coordinate system established by the coordinate system construction module 200; a point set acquisition module 400, which is used to obtain a number of point sets according to the coordinates of all points on the surface of the three-dimensional model of the pet comb, where the point set includes a parent point set and a child point set, and each point set corresponds to only one Parts; an instruction output module 500, which is used to respond to the rendering color coloring start instruction issued by the operating end and output a processing instruction for selecting the rendering color corresponding to each point set; a rendering processing module 600, which is used to obtain rendering color selection information based on the rendering color selection operation performed by the operating end in response to the processing instruction, extract the rendering color corresponding to each point set from the rendering color selection information and perform rendering color coloring processing; a model rotation module 700, which is used to rotate the three-dimensional model of the pet comb after rendering coloring according to a preset trajectory based on the origin of the three-dimensional coordinate system; an image acquisition module 800, which is used to obtain images of the three-dimensional model of the pet comb in the front, back, left, and right directions during the rotation process; and a video source formation module 900, which is used to form a holographic projection video source that can be used for holographic projection model display based on the acquired images in the front, back, left, and right directions.
[0099] Based on the same inventive concept mentioned above, an embodiment of the present application further discloses a computer-readable storage medium, including various steps described in the above-mentioned pet comb modeling method based on NX software that can be loaded and executed by a processor.
[0100] The computer-readable storage medium includes, for example, various media that can store program codes, such as a USB flash drive, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk.
[0101] The technicians in the relevant field can clearly understand that for the convenience and simplicity of description, only the division of the above-mentioned functional modules is used as an example for illustration. In practical applications, the above-mentioned functions can be assigned to different functional modules as needed, that is, the internal structure of the device is divided into different functional modules to complete all or part of the functions described above. The specific working process of the above-mentioned system, device and unit can refer to the corresponding process in the aforementioned method embodiment, which will not be repeated here.
[0102] In the several embodiments provided in the present application, it should be understood that the disclosed systems, devices and methods can be implemented in other ways. For example, the device embodiments described above are only schematic. For example, the division of the blocks or units is only a logical function division. There may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0103] The units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or may be distributed on multiple network units, and some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0104] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0105] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application can be essentially or partly embodied in the form of a software product that contributes to the prior art. The computer software product is stored in a storage medium, including several instructions for a computer device (which can be a personal computer, server, or network device, etc.) or a processor to perform all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: various media that can store program codes, such as USB flash drives, mobile hard disks, read-only memories, random access memories, ceramic disks, or optical disks.
[0106] As described above, the above embodiments are only used to introduce the technical solution of the present application in detail, but the description of the above embodiments is only used to help understand the method and core idea of the present application, and should not be understood as limiting the present application. Any changes or substitutions that can be easily thought of by technicians in this technical field within the technical scope disclosed in the present application should be included in the protection scope of the present application.
Claims
1. A pet comb modeling method based on NX software, characterized in that: include: Obtain a three-dimensional model of a pet comb drawn using NX software; Construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the origin; Obtaining coordinates of all points on the surface of the three-dimensional model of the pet comb based on the three-dimensional coordinate system; A number of point sets are obtained according to the coordinates of all points on the surface of the three-dimensional model of the pet comb; In response to the rendering color shading start instruction issued by the operation end, output a processing instruction for selecting the rendering color corresponding to each point set; Acquiring rendering color selection information based on the rendering color selection operation performed by the operating end in response to the processing instruction, extracting the rendering color corresponding to each point set from the rendering color selection information and performing rendering color coloring processing; The three-dimensional model of the pet comb colored with the rendering color is rotated according to a preset trajectory based on the origin of the three-dimensional coordinate system; Acquire images of the pet comb three-dimensional model at four angles during rotation; A holographic projection video source that can be used to display a holographic projection model is formed based on the images obtained at four angles: front, back, left, and right. The step of obtaining a plurality of point sets according to the coordinates of all points on the surface of the three-dimensional model of the pet comb comprises: randomly coloring each part in the obtained three-dimensional model of the pet comb, wherein the colors of the randomly colored parts are different from each other; A plurality of point sets are obtained based on the coordinates of each dyed part and all points on the surface of the three-dimensional model of the pet comb, each of which corresponds to only one part; The randomly coloring each part in the obtained pet comb three-dimensional model includes: obtaining the number of parts and the name of each part in the pet comb three-dimensional model; Arrange the parts in the pet comb 3D model in order according to their names; Based on the preset coloring library, the color of each part is changed in sequence according to the sorting order of the parts; The point set includes a parent point set and a child point set; the point sets obtained based on the coordinates of all points on the surface of the three-dimensional model of the pet comb and the colored parts include: obtaining the parent point set of the surface portion of the three-dimensional model of the pet comb corresponding to each part based on the surface color of each colored part and the coordinates of all points on the surface of the three-dimensional model of the pet comb; Based on the obtained generatrix set of each part, a turning point set corresponding to the turning line of the surface of each part is obtained; Based on the turning point set of each part, the parent point set of each part is divided into several sub-point sets.
2. A pet comb modeling method based on NX software according to claim 1, characterized in that: The three-dimensional model of the pet comb colored with a rendering color according to a preset trajectory based on the origin of the three-dimensional coordinate system includes: responding to a rotation start instruction issued by the operating end to control the three-dimensional model of the pet comb to rotate one circle with the X, Y or Z axis as the rotation axis, and the trajectory of one rotation is the preset trajectory.
3. A pet comb modeling method based on NX software according to claim 2, characterized in that: The obtaining of images of the pet comb three-dimensional model at four angles of front, back, left, and right during the rotation process includes: while controlling the pet comb three-dimensional model to rotate one circle, recording a preset display area of the operation end to obtain an image of the pet comb three-dimensional model in the front direction during the rotation process, wherein the pet comb three-dimensional model is always located in the preset display area during the rotation process; The pet comb 3D model is restored to its initial state before the last rotation, and then the pet comb 3D model is rotated 90 degrees based on the initial state before the last rotation, and the screen is recorded, so as to obtain the images of the pet comb 3D model in the right, back and left directions during the rotation process.
4. A pet comb modeling system based on NX software, characterized in that: In combination with the pet comb modeling method based on NX software as described in claim 1, The method comprises: a model acquisition module (100) for acquiring a three-dimensional model of a pet comb drawn by using NX software; A coordinate system construction module (200), used to construct a three-dimensional coordinate system with a certain point on the three-dimensional model of the pet comb as the origin; A coordinate acquisition module (300), used to obtain the coordinates of all points on the surface of the three-dimensional model of the pet comb based on the three-dimensional coordinate system; A point set acquisition module (400) is used to obtain a plurality of point sets according to the coordinates of all points on the surface of the three-dimensional model of the pet comb; An instruction output module (500) is used to respond to a rendering color start instruction issued by an operation terminal and output a processing instruction for selecting a rendering color corresponding to each point set; A rendering processing module (600) is used to obtain rendering color selection information based on the rendering color selection operation performed by the operating end in response to the processing instruction, extract the rendering color corresponding to each point set from the rendering color selection information, and perform rendering color coloring processing; A model rotation module (700) is used to rotate the three-dimensional model of the pet comb colored with the rendering color according to a preset trajectory based on the origin of the three-dimensional coordinate system; The image acquisition module (800) is used to acquire images of the pet comb three-dimensional model at four angles during rotation; and the video source forming module (900) is used to form a holographic projection video source that can be used to display the holographic projection model based on the acquired images at four angles.
5. A pet comb modeling device, characterized in that: The method comprises a memory and a processor, wherein the memory stores a computer program which can be loaded by the processor and executes any one of the methods according to claims 1 to 3.
6. A pet comb model display terminal, characterized in that: include: 360-degree holographic projection cabinet, used to play the holographic projection video source of the 3D model of the pet comb; The pet comb modeling device as described in claim 5, wherein the output end is connected to the 360-degree holographic projection cabinet.
