Rocket engine model rendering method and device, equipment and medium
By segmenting and rendering the vector diagram of the one-dimensional system model of the rocket engine model in parallel, the problem of slow rendering speed of the liquid rocket engine model is solved, and fast rendering and efficient display are achieved.
Patent Information
- Application Number
- CN202510243182.3
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2025-03-03
- Publication Date
- 2025-06-03
AI Technical Summary
The vector diagram of the one-dimensional system model of the liquid rocket engine is slow to render in the center of the test-drive monitoring large screen, resulting in inefficient processing of large amounts of data and information in a short period of time.
The sub-vector diagram is generated by obtaining the one-dimensional model vector diagram of the rocket engine model and segmenting it based on the preset partition. Then, multiple processors are used to render in parallel to improve rendering efficiency.
By rendering sub-vectors in parallel, the rendering speed of the rocket engine model is significantly improved, the rapid rendering of one-dimensional model vectors is realized, and the display efficiency of the test run monitoring large screen is improved.
Smart Images

Figure CN120088362A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of data processing and simulation, and particularly to a rendering method, device, equipment and medium for a rocket engine model. Background Art
[0002] In the project of a liquid rocket engine virtual test run system, a one-dimensional system model vector diagram of the rocket engine is usually displayed in the center of a test run monitoring large screen with a resolution of 5K. The one-dimensional system model vector diagram of the rocket engine is generated by converting the three-dimensional geometric model of the engine. Since the transient working time of the liquid rocket engine is only about 4 seconds, there is a large amount of data information in the core components of the liquid rocket engine during these about 4 seconds, and there are corresponding multiple one-dimensional system model vector diagrams. However, the rendering of the huge one-dimensional system model vector diagram of the rocket engine in the center of the test run monitoring large screen is very slow. Summary of the Invention
[0003] The purpose of the present invention is to provide a rendering method, device, equipment and medium for a rocket engine model, so as to improve the rendering speed of the one-dimensional system model vector diagram.
[0004] In order to achieve the above purpose, the present invention provides the following technical solutions:
[0005] A rendering method for a rocket engine model, applied to multiple processors, includes:
[0006] Obtain a one-dimensional model vector diagram of the rocket engine model, and the rocket engine model is displayed on a model display page;
[0007] Based on a preset partition of the rocket engine model, divide the one-dimensional model vector diagram to determine sub-vector diagrams corresponding to each of the preset partitions of the rocket engine model;
[0008] Through the multiple processors, perform parallel rendering on the color values of the sub-vector diagrams of each of the preset partitions to obtain a rendered rocket engine model, and display the rendered rocket engine model on the model display page.
[0009] In an optional implementation manner of the present application, the step of dividing the one-dimensional model vector diagram based on a preset partition of the rocket engine model to determine sub-vector diagrams corresponding to each of the preset partitions of the rocket engine model includes:
[0010] Based on the preset partition of the rocket engine model, perform horizontal division and vertical division on the one-dimensional model vector diagram respectively, and divide the one-dimensional model vector diagram into n×m sub-vector diagrams; where n and m are positive integers.
[0011] In an alternative embodiment of the present application, it further includes:
[0012] Using image recognition, perform image recognition on the sub-vector graph, and extract the color values of each coordinate in each of the sub-vector graphs.
[0013] In an alternative embodiment of the present application, the step of using image recognition to perform image recognition on the sub-vector graph and extract the color values of each coordinate in each of the sub-vector graphs includes:
[0014] By using the weighted average method, perform grayscale processing on the sub-vector graph to obtain the bitmap corresponding to the sub-vector graph;
[0015] Using image recognition, perform image recognition on the bitmap of the sub-vector graph, and extract the color values of each coordinate in the sub-vector graph.
[0016] In an alternative embodiment of the present application, the step of parallel rendering the color values of the sub-vector graphs of each of the preset partitions by the multiple processors to obtain a rendered rocket engine model and displaying the rendered rocket engine model on the model display page includes:
[0017] By the multiple processors, based on the color values of each of the sub-vector graphs and the coordinates corresponding to the color values, perform parallel rendering on each of the preset partitions of the rocket engine model to obtain a rendered rocket engine model;
[0018] Display the rendered rocket engine model on the model display page.
[0019] In an alternative embodiment of the present application, before the step of obtaining the one-dimensional model vector graph of the rocket engine model, the method further includes:
[0020] Display the rocket engine model through the model display page.
[0021] In an alternative embodiment of the present application, the step of obtaining the one-dimensional model vector graph of the rocket engine includes:
[0022] Obtain the simulation data set during the rocket engine test run;
[0023] According to the simulation data set, construct the one-dimensional model vector graph of the rocket engine model.
[0024] Compared with the prior art, for the rendering method of the rocket engine model provided by this application, after obtaining the one-dimensional model vector diagram of the rocket engine, based on the preset partitions of the rocket engine model, the one-dimensional model vector diagram is segmented to obtain sub-vector diagrams corresponding to the respective preset partitions. Finally, through multiple processors, the color values of each preset partition are rendered in parallel into the rocket engine model pre-displayed. This method pre-displays the rocket engine model on the display page, then segments the one-dimensional model vector diagram to obtain corresponding sub-vector diagrams, and renders each sub-vector diagram into the rocket engine model in parallel through multiple processors, which is beneficial to improving the rendering efficiency of the rocket engine model and realizes the fast rendering of the one-dimensional model vector diagram.
[0025] The present invention also provides a rendering device for a rocket engine model, which is characterized in that it is applied to multiple processors and includes:
[0026] A vector diagram acquisition unit for acquiring the one-dimensional model vector diagram of the rocket engine model, where the rocket engine model is displayed on the model display page;
[0027] A vector diagram segmentation unit for segmenting the one-dimensional model vector diagram based on the preset partitions of the rocket engine model to determine sub-vector diagrams corresponding to the respective preset partitions of the rocket engine model;
[0028] A partition rendering unit for rendering the color values of the sub-vector diagrams of each preset partition in parallel through the multiple processors to obtain a rendered rocket engine model, and displaying the rendered rocket engine model on the model display page.
[0029] Compared with the prior art, the beneficial effects of the rendering device for the rocket engine model provided by the present invention are the same as those of the rendering method of the rocket engine model described in the above technical solution, and will not be elaborated here.
[0030] The present invention also provides an electronic device, including:
[0031] A processor;
[0032] A memory for storing instructions executable by the processor;
[0033] The processor is used for executing the above-mentioned physical field prediction method of the rocket engine component by running the instructions in the memory.
[0034] Compared with the prior art, the beneficial effects of the electronic device provided by the present invention are the same as those of the rendering method of the rocket engine model described in the above technical solution, and will not be elaborated here.
[0035] The present invention also provides a computer storage medium, in which instructions are stored, and when the instructions are run, the above-mentioned rendering method of the rocket engine model is implemented.
[0036] Compared with the prior art, the beneficial effects of the computer storage medium provided by the present invention are the same as those of the rendering method of the rocket engine model described in the above technical solution, and will not be elaborated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0037] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of the present invention. The illustrative embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation to the present invention. In the drawings:
[0038] Figure 1 It is a flowchart of the rendering method of the rocket engine model provided by an embodiment of the present application;
[0039] Figure 2 It is a schematic diagram of the segmentation of the one-dimensional model vector diagram provided by an embodiment of the present application;
[0040] Figure 3 It is a structural diagram of a rendering device of a rocket engine model provided by an embodiment of the present application;
[0041] Figure 4 It is a schematic diagram of the structure of an electronic device provided by an embodiment of the present application. DETAILED DESCRIPTION OF THE EMBODIMENTS
[0042] In order to facilitate a clear description of the technical solutions of the embodiments of the present invention, in the embodiments of the present invention, terms such as "first" and "second" are used to distinguish the same items or similar items with basically the same functions and effects. For example, the first threshold and the second threshold are only used to distinguish different thresholds and do not limit their sequence. Those skilled in the art can understand that the terms "first" and "second" do not limit the quantity and execution order, and the terms "first" and "second" do not necessarily limit being different.
[0043] It should be noted that in the present invention, words such as "exemplary" or "for example" are used to represent examples, illustrations or explanations. Any embodiment or design solution described as "exemplary" or "for example" in the present invention should not be construed as being more preferred or having more advantages than other embodiments or design solutions. Exactly speaking, using words such as "exemplary" or "for example" is intended to present related concepts in a specific manner.
[0044] In the present invention, "at least one" means one or more, and "a plurality" means two or more. "And / or" describes the association relationship of associated objects and indicates that there can be three relationships. For example, A and / or B can represent: A exists alone, A and B exist simultaneously, and B exists alone, where A and B can be singular or plural. The character " / " generally represents an "or" relationship between the associated objects before and after. "At least one (item)" or a similar expression thereof refers to any combination of these items, including any combination of a single item or plural items. For example, at least one (item) of a, b, or c can represent: a, b, c, the combination of a and b, the combination of a and c, the combination of b and c, or the combination of a, b, and c, where a, b, and c can be single or multiple.
[0045] In the project of the virtual test run system for liquid rocket engines, usually, a one-dimensional system model vector diagram of the rocket engine is displayed in the center of a test run monitoring large screen with a resolution of 5K. The one-dimensional system model vector diagram of the rocket engine is generated by converting the three-dimensional geometric model of the engine. Since the transient working time of the liquid rocket engine is only about 4 seconds, within these about 4 seconds, there is a large amount of data information for the core components of the liquid rocket engine, and it corresponds to multiple one-dimensional system model vector diagrams. However, the rendering of the huge one-dimensional system model vector diagram of the rocket engine in the center of the test run monitoring large screen is very slow.
[0046] In view of the above technical status quo, the present application provides a rendering method, device, equipment, and medium for a rocket engine model to improve the rendering efficiency of the one-dimensional model vector diagram, which will be described in detail one by one in the following embodiments.
[0047] The embodiments of the present application first provide a rendering method for a rocket engine model. Please refer to Figure 1 , Figure 1 which is the flowchart of the rendering method for the rocket engine model provided by the embodiments of the present application.
[0048] As Figure 1 shown, the rendering method for the rocket engine model includes the following S101 to S103:
[0049] S101, obtain the one-dimensional model vector diagram of the rocket engine model, and the rocket engine model is displayed on the model display page.
[0050] First, in order to improve the rendering efficiency of the rocket engine model, before rendering the one-dimensional model vector diagram on the display page, first, upload the engine model to the model display page.
[0051] Specifically, the vector diagram of the one-dimensional model can be obtained by acquiring the simulation data set during the rocket engine test run and constructing it based on the simulation data set.
[0052] S102, based on the preset partitions of the rocket engine model, segment the vector diagram of the one-dimensional model to determine the sub-vector diagrams corresponding to the respective preset partitions of the rocket engine model.
[0053] The preset partitions of the rocket engine model can be understood as multiple rendering areas set for the rocket engine model, and each rendering area is rendered in parallel.
[0054] Further, the segmenting the vector diagram of the one-dimensional model based on the preset partitions of the rocket engine model to determine the sub-vector diagrams corresponding to the respective preset partitions of the rocket engine model includes:
[0055] Based on the preset partitions of the rocket engine model, perform horizontal segmentation and vertical segmentation on the vector diagram of the one-dimensional model respectively, and segment the vector diagram of the one-dimensional model into n×m sub-vector diagrams; where n and m are positive integers.
[0056] In an alternative embodiment of the present application, in order to render the rocket engine model according to the actual situation, the preset partitions of the rocket engine model can be divided according to the internal structure in the rocket engine model to determine the preset partitions corresponding to different components in the rocket engine model.
[0057] For example, preset partitions can be made respectively for components such as the flow regulator and the turbopump in the rocket engine model, so that during the subsequent display of the rocket engine model, selective rendering of the preset partitions of each component can be performed according to actual needs to further improve the rendering efficiency of the rocket engine model.
[0058] Please refer to Figure 2 , Figure 2 which is a schematic diagram of the segmentation of the vector diagram of the one-dimensional model provided by the embodiment of the present application.
[0059] As Figure 2 shown, Figure 2 it includes the vector diagram of the one-dimensional model of the rocket engine model. The segmentation of the vector diagram of the one-dimensional model refers to dividing the entire vector diagram of the one-dimensional model into sub-vector diagrams with n rows and m columns through horizontal and vertical segmentation.
[0060] Further, after obtaining the sub-vector diagrams, the method further includes:
[0061] By means of image recognition, perform image recognition on the sub-vector diagrams, and extract the color values of each coordinate in each of the sub-vector diagrams, that is, obtain the color values in each sub-vector diagram and the coordinate points in the rocket engine model corresponding to each color value.
[0062] In the embodiments of the present application, the coordinate points at different positions of each of the sub-vector diagrams are established based on the rocket engine model displayed on the display page.
[0063] The method of performing image recognition on the sub-vector diagrams by means of image recognition may be to use computer vision technology to automatically detect and extract the color values of specific points or regions in the image, or may be implemented by using traditional image processing technology or deep learning methods. Since extracting the color values in the image belongs to conventional technical means, it will not be elaborated here.
[0064] In another alternative embodiment of the present application, in order to improve the rendering efficiency and reduce the data transmission volume of the color values, the method further includes:
[0065] Perform grayscale processing on the sub-vector diagrams by means of the weighted average method to obtain the bitmap corresponding to the sub-vector diagrams;
[0066] Perform image recognition on the bitmap of the sub-vector diagrams by means of image recognition methods, and extract the color values of each coordinate in the sub-vector diagrams.
[0067] In the actual application process, other methods may also be used to perform grayscale processing on the sub-vector diagrams, such as: simple average method, maximum value method, etc. In this regard, the present application does not make any restrictions.
[0068] S103, through the multiple processors, perform parallel rendering on the color values of the sub-vector diagrams in each of the preset partitions to obtain a rendered rocket engine model, and display the rendered rocket engine model on the model display page.
[0069] That is, through the multiple processors, based on the color values of each of the sub-vector diagrams and the coordinates corresponding to the color values, perform parallel rendering on each of the preset partitions of the rocket engine model to obtain a rendered rocket engine model;
[0070] Display the rendered rocket engine model on the model display page.
[0071] In summary, the rendering method of the rocket engine model provided by the embodiments of the present application, after obtaining the one-dimensional model vector diagram of the rocket engine, based on the preset partitions of the rocket engine model, divides the one-dimensional model vector diagram to obtain sub-vector diagrams corresponding to each preset partition. Finally, through multiple processors, the color values of each preset partition are rendered in parallel into the rocket engine model pre-displayed, which is beneficial to improving the rendering efficiency of the rocket engine model and realizes the fast rendering of the one-dimensional model vector diagram.
[0072] The embodiments of the present application also provide a rendering device for a rocket engine model, which is applied to multiple processors. Please refer to Figure 3 , Figure 3 which is a structural diagram of a rendering device for a rocket engine model provided by the embodiments of the present application.
[0073] As Figure 3 shown, the rendering device for the rocket engine model includes:
[0074] A vector diagram acquisition unit 301, configured to acquire a one-dimensional model vector diagram of the rocket engine model, and the rocket engine model is displayed on a model display page;
[0075] A vector diagram segmentation unit 302, configured to divide the one-dimensional model vector diagram based on the preset partitions of the rocket engine model, and determine sub-vector diagrams corresponding to each of the preset partitions of the rocket engine model;
[0076] A partition rendering unit 303, configured to perform parallel rendering on the color values of the sub-vector diagrams of each preset partition through the multiple processors to obtain a rendered rocket engine model, and display the rendered rocket engine model on the model display page.
[0077] In an alternative embodiment of the present application, the dividing the one-dimensional model vector diagram based on the preset partitions of the rocket engine model to determine sub-vector diagrams corresponding to each of the preset partitions of the rocket engine model includes:
[0078] Based on the preset partitions of the rocket engine model, perform horizontal and vertical division on the one-dimensional model vector diagram respectively, and divide the one-dimensional model vector diagram into n×m sub-vector diagrams; where n and m are positive integers.
[0079] In an alternative embodiment of the present application, the device is further configured to:
[0080] By means of image recognition, perform image recognition on the sub-vector graph, and extract the color values of each coordinate in each sub-vector graph.
[0081] In an alternative embodiment of the present application, the step of performing image recognition on the sub-vector graph by means of image recognition and extracting the color values of each coordinate in each sub-vector graph includes:
[0082] Perform gray-scale processing on the sub-vector graph by means of the weighted average method to obtain the bitmap corresponding to the sub-vector graph;
[0083] Perform image recognition on the bitmap of the sub-vector graph by means of image recognition, and extract the color values of each coordinate in the sub-vector graph.
[0084] In an alternative embodiment of the present application, the step of parallel rendering the color values of the sub-vector graphs of each preset partition by the multiple processors to obtain a rendered rocket engine model and displaying the rendered rocket engine model on the model display page includes:
[0085] Based on the color values of each sub-vector graph and the coordinates corresponding to the color values, perform parallel rendering on each preset partition of the rocket engine model by the multiple processors to obtain a rendered rocket engine model;
[0086] Display the rendered rocket engine model on the model display page.
[0087] In an alternative embodiment of the present application, before the step of obtaining the one-dimensional model vector graph of the rocket engine model, the method further includes:
[0088] Display the rocket engine model through the model display page.
[0089] In an alternative embodiment of the present application, the step of obtaining the one-dimensional model vector graph of the rocket engine includes:
[0090] Obtain the simulation data set during the test run of the rocket engine;
[0091] Construct the one-dimensional model vector graph of the rocket engine model according to the simulation data set.
[0092] The above device embodiment provided in this embodiment belongs to the same inventive concept as the method embodiment of the present application. It can execute the rendering method of the rocket engine model provided in any of the above embodiments of the present application, and has the corresponding functional modules and beneficial effects for executing the rendering method of the rocket engine model. For the technical details not described in detail in this embodiment, reference can be made to the specific processing content of the rendering method of the rocket engine model provided in the above embodiments of the present application, which will not be elaborated here.
[0093] It should be understood that the units in the above device can be implemented in the form of a processor invoking software. For example, the device includes a processor, the processor is connected to a memory, and instructions are stored in the memory. The processor invokes the instructions stored in the memory to implement any of the above methods or the functions of each unit of the device. The processor can be a general-purpose processor, such as a CPU or a microprocessor, etc., and the memory can be a memory inside the device or a memory outside the device. Alternatively, the units in the device can be implemented in the form of a hardware circuit. By designing the hardware circuit, the functions of some or all of the units can be realized. This hardware circuit can be understood as one or more processors. For example, in one implementation, the hardware circuit is an ASIC, and through the design of the logical relationship of the components in the circuit, the functions of some or all of the above units are realized. Another example, in another implementation, the hardware circuit can be implemented by a PLD. Taking an FPGA as an example, it can include a large number of logic gate circuits, and the connection relationship between the logic gate circuits is configured through a configuration file, so as to realize the functions of some or all of the above units. All units of the above device can be all implemented in the form of a processor invoking software, or all implemented in the form of a hardware circuit, or some implemented in the form of a processor invoking software, and the remaining part implemented in the form of a hardware circuit.
[0094] In the embodiments of the present application, a processor is a circuit with signal processing capabilities. In one implementation, the processor can be a circuit with instruction reading and running capabilities, such as a CPU, a microprocessor, a GPU, or a DSP, etc. In another implementation, the processor can realize certain functions through the logical relationship of a hardware circuit, and the logical relationship of this hardware circuit is fixed or can be reconstructed. For example, the processor is a hardware circuit implemented by an ASIC or a PLD, such as an FPGA. In a reconfigurable hardware circuit, the process of the processor loading a configuration document to realize the configuration of the hardware circuit can be understood as the process of the processor loading instructions to realize the functions of some or all of the above units. In addition, it can also be a hardware circuit designed for artificial intelligence, which can be understood as a kind of ASIC, such as an NPU, a TPU, a DPU, etc.
[0095] It can be seen that each unit in the above device can be one or more processors (or processing circuits) configured to implement the above method. For example: CPU, GPU, NPU, TPU, DPU, microprocessor, DSP, ASIC, FPGA, or a combination of at least two of these processor forms.
[0096] In addition, each unit in the above device can be integrated in whole or in part, or can be independently implemented. In one implementation, these units are integrated together and implemented in the form of an SOC. The SOC can include at least one processor for implementing any of the above methods or implementing the functions of each unit of the device. The types of the at least one processor can be different. For example, it includes CPU and FPGA, CPU and artificial intelligence processor, CPU and GPU, etc.
[0097] This application embodiment also provides an electronic device, such as Figure 4 shown Figure 4 is a schematic structural diagram of an electronic device provided by this application embodiment.
[0098] such as Figure 4 shown, the electronic device includes:
[0099] a processor 210;
[0100] a memory 200 for storing executable instructions of the processor 210;
[0101] the processor 210 is configured to execute the rendering method of the rocket engine model disclosed in any of the above embodiments by running the instructions in the memory 200.
[0102] The processor 210, the memory 200, the communication interface 220, the input device 230, and the output device 240 are interconnected via a bus. Among them:
[0103] The bus can include a path for transmitting information between various components of the computer system.
[0104] The processor 210 can be a general-purpose processor, such as a general-purpose central processing unit (CPU), a microprocessor, etc., or can be an application-specific integrated circuit (ASIC), or one or more integrated circuits for controlling the execution of the program of the present invention solution. It can also be a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components.
[0105] The processor 210 can include a main processor and can also include a baseband chip, a modem, etc.
[0106] The program for implementing the technical solution of the present invention is stored in the memory 200, and the operating system and other key services may also be stored. Specifically, the program may include program code, and the program code includes computer operation instructions. More specifically, the memory 200 may include a read-only memory (ROM), other types of static storage devices that can store static information and instructions, a random access memory (RAM), other types of dynamic storage devices that can store information and instructions, a disk memory, a flash memory, and so on.
[0107] The input device 230 may include devices for receiving data and information input by a user, such as a keyboard, a mouse, a camera, a scanner, a touch screen, etc.
[0108] The output device 240 may include devices for allowing information to be output to a user, such as a display screen, a printer, a speaker, etc.
[0109] The communication interface 220 may include devices of any transceiver type for communicating with other devices or communication networks, such as Ethernet, a radio access network (RAN), a wireless local area network (WLAN), etc.
[0110] The processor 210 executes the program stored in the memory 200 and calls other devices, and can be used to implement each step of any one of the rocket engine model rendering methods provided in the above embodiments of the present application.
[0111] In addition to the above methods and devices, an embodiment of the present application may also be a computer program product, which includes computer program instructions, and the computer program instructions, when run by a processor, cause the processor to execute the steps in the rocket engine component physical field prediction method of various embodiments of the present application.
[0112] The computer program product can be written in any combination of one or more programming languages for executing the program code for the operations of the embodiments of the present application. The programming languages include object-oriented programming languages, such as Java, C++, etc., and also include conventional procedural programming languages, such as the "C" language or similar programming languages. The program code can be executed entirely on the user computing device, partially on the user device, executed as an independent software package, partially on the user computing device and partially on a remote computing device, or entirely on a remote computing device or server.
[0113] In addition, an embodiment of the present application may also be a storage medium, on which a computer program is stored, and the computer program is executed by a processor to perform the steps in the rocket engine component physical field prediction method of various embodiments of the present application.
[0114] For each of the foregoing method embodiments, for the sake of simple description, they are all expressed as a series of action combinations. However, those skilled in the art should be aware that this application is not limited by the described action sequence, because according to this application, certain steps can be performed in other sequences or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0115] It should be noted that the various embodiments in this specification are described in a progressive manner. Each embodiment focuses on the differences from other embodiments. For the same or similar parts among the various embodiments, reference can be made to each other. For device embodiments, since they are basically similar to the method embodiments, the description is relatively simple, and reference can be made to the corresponding parts of the method embodiments for the relevant content.
[0116] The steps in the methods of the various embodiments of this application can be adjusted, combined, and deleted according to actual needs. The technical features recorded in each embodiment can be replaced or combined.
[0117] The modules and sub-modules in the devices and terminals in the various embodiments of this application can be combined, divided, and deleted according to actual needs.
[0118] In several embodiments provided by this application, it should be understood that the disclosed terminals, devices, and methods can be implemented in other ways. For example, the terminal embodiments described above are only illustrative. For example, the division of modules or sub-modules is only a logical function division. In actual implementation, there can be other division methods. For example, multiple sub-modules or modules can be combined or integrated into another module, or some features can be ignored or not executed. Another point is that the displayed or discussed coupling or direct coupling or communication connection to each other can be through some interfaces. The indirect coupling or communication connection of devices or modules can be in electrical, mechanical, or other forms.
[0119] The modules or sub-modules described as separate components may or may not be physically separated. The components as modules or sub-modules may or may not be physical modules or sub-modules, that is, they can be located in one place, or they can be distributed to multiple network modules or sub-modules. Some or all of the modules or sub-modules can be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0120] In addition, in each embodiment of the present application, each functional module or sub-module can be integrated into a processing module, or each module or sub-module can exist physically alone, or two or more modules or sub-modules can be integrated into one module. The above-mentioned integrated module or sub-module can be implemented in the form of hardware, or in the form of a software functional module or sub-module.
[0121] Those skilled in the art can further realize that the units and algorithm steps of each example described in combination with the embodiments disclosed herein can be implemented by electronic hardware, computer software, or a combination of the two. To clearly illustrate the interchangeability of hardware and software, the composition and steps of each example have been generally described according to functions in the above description. Whether these functions are executed in a hardware or software manner depends on the specific application and design constraints of the technical solution. Skilled professionals can use different methods to implement the described functions for each specific application, but such implementation should not be considered to exceed the scope of the present application.
[0122] The steps of the method or algorithm described in combination with the embodiments disclosed herein can be directly implemented by hardware, a software unit executed by a processor, or a combination of the two. The software unit can be placed in a random access memory (RAM), internal memory, read-only memory (ROM), electrically programmable ROM, electrically erasable programmable ROM, register, hard disk, removable disk, CD-ROM, or any other form of storage medium well-known in the technical field.
[0123] Finally, it should also be noted that in this document, relational terms such as "first" and "second" are only used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any such actual relationship or order between these entities or operations. Moreover, the term "comprising", "including" or any other variant thereof is intended to cover non-exclusive inclusion, so that a process, method, article or device including a series of elements not only includes those elements, but also includes other elements not expressly listed, or further includes elements inherent to such process, method, article or device. Without further limitation, an element defined by the statement "including a..." does not exclude the existence of additional identical elements in the process, method, article or device including the said element.
[0124] The foregoing description of the disclosed embodiments enables those skilled in the art to practice or use the present application. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present application. Thus, the present application is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
Claims
1. A method for rendering a rocket engine model, characterized in that: Applies to multiple processors, including: Obtain a one-dimensional model vector diagram of a rocket engine model, wherein the rocket engine model is displayed on a model display page; Based on the preset partitions of the rocket engine model, the one-dimensional model vector diagram is segmented to determine the sub-vector diagram corresponding to each of the preset partitions of the rocket engine model; The color values of the sub-vector images of the preset partitions are rendered in parallel by the multiple processors to obtain a rendered rocket engine model, and the rendered rocket engine model is displayed on the model display page.
2. The method according to claim 1, characterized in that The segmenting of the one-dimensional model vector diagram based on the preset partitions of the rocket engine model to determine the sub-vector diagram corresponding to each of the preset partitions of the rocket engine model includes: Based on the preset partitions of the rocket engine model, the one-dimensional model vector graph is divided horizontally and vertically respectively, and the one-dimensional model vector graph is divided into n×m sub-vector graphs; wherein n and m are positive integers.
3. The method according to claim 1, characterized in that Also includes: The sub-vector image is subjected to image recognition in an image recognition manner, and the color value of each coordinate in each sub-vector image is extracted.
4. The method according to claim 1, characterized in that The method of using image recognition to perform image recognition on the sub-vector image and extracting the color value of each coordinate in each sub-vector image includes: Performing grayscale processing on the sub-vector image by weighted average method to obtain a bitmap corresponding to the sub-vector image; Image recognition is performed on the bitmap of the sub-vector image in an image recognition manner to extract the color value of each coordinate in the sub-vector image.
5. The method according to claim 1, characterized in that The method of rendering the color values of the sub-vector images of the preset partitions in parallel by the multiple processors to obtain a rendered rocket engine model, and displaying the rendered rocket engine model on the model display page, comprises: By means of the multiple processors, based on the color values of the respective sub-vector diagrams and the coordinates corresponding to the color values, the respective preset partitions of the rocket engine model are rendered in parallel to obtain a rendered rocket engine model; The rendered rocket engine model is displayed on the model display page.
6. The method according to claim 1, characterized in that Before the step of obtaining the one-dimensional model vector diagram of the rocket engine model, the method further includes: The rocket engine model is displayed through the model display page.
7. The method according to claim 1, characterized in that The method of obtaining a one-dimensional model vector diagram of a rocket engine includes: Acquire simulation data sets during rocket engine test runs; A one-dimensional model vector diagram of the rocket engine model is constructed according to the simulation data set.
8. A rendering device for a rocket engine model, characterized in that: Applies to multiple processors, including: A vector graph acquisition unit, used to acquire a one-dimensional model vector graph of a rocket engine model, wherein the rocket engine model is displayed on a model display page; A vector diagram segmentation unit, configured to segment the one-dimensional model vector diagram based on the preset partitions of the rocket engine model, and determine a sub-vector diagram corresponding to each of the preset partitions of the rocket engine model; The partition rendering unit is used to render the color values of the sub-vector images of each preset partition in parallel through the multiple processors to obtain a rendered rocket engine model, and display the rendered rocket engine model on the model display page.
9. An electronic device, characterized in that: include: processor; a memory for storing instructions executable by the processor; The processor is used to execute the rocket engine model rendering method described in any one of claims 1 to 7 by running instructions in the memory.
10. A computer storage medium, characterized in that: The computer storage medium stores instructions, and when the instructions are executed, the rendering method of the rocket engine model described in any one of claims 1 to 7 is implemented.