Method, device and equipment for adjusting display precision of ship curved surface model and medium
By receiving and processing surface accuracy control parameters, a target visual surface corresponding to the surface accuracy control parameters is generated, which solves the problem of poor ship model display caused by low surface data accuracy in the prior art, and realizes controllable adjustment of surface display accuracy.
Patent Information
- Application Number
- CN202411417334.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-10-11
- Publication Date
- 2025-12-16
- Estimated Expiration
- 2044-10-11
AI Technical Summary
The surface data stored in the 3DD files exported by existing software has low precision, resulting in obvious gaps in the surface when imported into the CADMATIC outfitting module as a background, and some content structures are exposed, affecting the display effect of the ship model.
By receiving surface accuracy control parameters, and based on surface data, surface accuracy control parameters, and objective function, the surface display parameters are determined, and then converted into an objective file in the target format to generate a target visual surface corresponding to the surface accuracy control parameters.
This technology enables the adjustment of the target surface of a ship based on the received surface accuracy control parameters, resulting in a target visual surface with controllable surface display accuracy and improving the model display effect.
Smart Images

Figure CN119293964B_ABST
Abstract
Description
TECHNICAL FIELD
[0001] Embodiments of the present application relate to the technical field of data processing, and particularly relate to a method and device for adjusting display precision of a ship curved surface model, equipment and medium. BACKGROUND
[0002] Currently, when designing a ship, a three-dimensional design software is usually used to draw the structure of the ship. The ship design is mainly divided into a hull module (including general and structure) and a large outfitting module (including outfitting, machinery and electrical).
[0003] In actual application, a ship body model designed by the hull module is imported into the large outfitting module through an intermediate data format to serve as a background for other professional designs. The ship body model designed by some software is usually based on a 3DD file format to import data into a CADMATIC outfitting module as a background. However, since the 3DD file exported by the software stores low-precision curved surface data, the curved surface joints are obvious and part of the internal structure is exposed after the data is imported into the CADMATIC outfitting module as a background, which affects the model display effect. SUMMARY
[0004] Embodiments of the present application provide a method and device for adjusting display precision of a ship curved surface model, and equipment and medium, to dynamically adjust the display precision of a target curved surface constituting a ship according to actual needs, and to display the effect of the target curved surface under different display precisions.
[0005] In a first aspect, embodiments of the present application provide a method for adjusting display precision of a ship curved surface model, which comprises:
[0006] receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship;
[0007] determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function for the curved surface data of the at least one curved surface;
[0008] converting the curved surface display parameter into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file.
[0009] Further, before the receiving of the curved surface precision control parameter, the method further comprises:
[0010] importing curved surface data of at least one curved surface associated with a ship body of the target ship from a first target software;
[0011] Correspondingly, the receiving of the curved surface precision control parameter comprises:
[0012] In response to the editing operation on the curved surface precision control parameter, the edited curved surface precision control parameter corresponding to the at least one curved surface is obtained.
[0013] The curved surface precision control parameter comprises a number of discretization points of the curved surface.
[0014] Further, the curved surface data comprises a control point set, a weight set and a node vector set of the curved surface.
[0015] Further, the curved surface display parameter of the curved surface is determined based on the curved surface data, the curved surface precision control parameter and a target function, comprising:
[0016] The control point set, the weight set and the node vector set in the curved surface data, and the number of discretization points in the curved surface precision control parameter are substituted into a base function for solving operation to obtain the curved surface display parameter of the curved surface.
[0017] The curved surface display parameter comprises display information of displayable points consistent with the number of discretization points.
[0018] Further, the target file in the target format converted from the curved surface display parameter comprises:
[0019] The curved surface display parameter corresponding to each curved surface is converted into a target file corresponding to the preset file according to a file standard of the preset file.
[0020] Further, after the target file is obtained, the method further comprises:
[0021] The target file is imported into a second target software to process the curved surface display parameter of each curved surface in the target file based on the second target software, and a target visual curved surface corresponding to the curved surface precision control parameter is generated.
[0022] In a second aspect, the embodiments of the present application further provide a ship curved surface model display precision adjustment device, which comprises:
[0023] A parameter receiving module is configured to receive a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship.
[0024] A parameter display module is configured to determine a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function for the curved surface data of the at least one curved surface.
[0025] The surface generation module is used to convert the surface display parameters into a target file of a target format, so as to generate a target visual surface corresponding to the surface accuracy control parameters based on the target file.
[0026] Thirdly, embodiments of the present invention provide an electronic device, the electronic device comprising:
[0027] One or more processors;
[0028] Memory, used to store one or more programs;
[0029] When the one or more programs are executed by the one or more processors, the one or more processors implement the method for adjusting the display accuracy of the ship surface model as provided in any embodiment of the present invention.
[0030] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for adjusting the display accuracy of a ship surface model as provided in any embodiment of the present invention.
[0031] Fifthly, embodiments of the present invention also provide a computer program product, including a computer program, characterized in that, when the computer program is executed by a processor, it implements the method for adjusting the display accuracy of the ship surface model as described in any embodiment of the present invention.
[0032] The technical solution provided by this invention receives surface accuracy control parameters, which constrain the display accuracy of at least one surface constituting the target ship. For surface data of at least one surface, surface display parameters are determined based on the surface data, surface accuracy control parameters, and objective function. The surface display parameters are converted into a target file in a target format, and a target visual surface corresponding to the surface accuracy control parameters is generated based on the target file. This solves the problem in the prior art where the surface data stored in 3DD files exported by existing software has low accuracy, resulting in obvious surface gaps and exposed content structures when imported into the CADMATIC outfitting module as a background, leading to poor ship model display. This solution enables adjustment of at least one target surface constituting the ship based on the received surface accuracy control parameters, resulting in a target visual surface with controllable surface display accuracy. Attached Figure Description
[0033] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present application, the drawings needed in the description of the embodiments will be briefly introduced. Obviously, the drawings introduced are only a part of the drawings of the present application to be described, and not all the drawings. For those skilled in the art, other drawings can also be obtained from these drawings without creative labor.
[0034] Figure 1 The flow chart of the ship curved surface model display precision adjustment method provided by the embodiment of the present application is shown in the figure.
[0035] Figure 2 The schematic diagram of the ship curved surface model display precision adjustment method provided by the embodiment of the present application is shown in the figure.
[0036] Figure 3 The flow chart of the ship curved surface model display precision adjustment method provided by the embodiment of the present application is shown in the figure.
[0037] Figure 4 The structural schematic diagram of the ship curved surface model display precision adjustment device provided by the embodiment of the present application is shown in the figure.
[0038] Figure 5 The structural schematic diagram of the electronic device provided by the embodiment of the present application is shown in the figure. DETAILED DESCRIPTION
[0039] The present application will be further described in detail below in combination with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, and not to limit the present application. In addition, it should be noted that, in order to facilitate the description, only the parts related to the present application are shown in the drawings, not all the structures.
[0040] The present application will be further described in detail below in combination with the drawings and embodiments. It can be understood that the specific embodiments described herein are only used to explain the present application, and not to limit the present application. In addition, it should be noted that, in order to facilitate the description, only the parts related to the present application are shown in the drawings, not all the structures.
[0041] Before introducing the technical solutions provided by the embodiments of the present application, the application scenario can be exemplarily described.
[0042] Before making a ship, the ship structure corresponding to the ship is usually drawn based on the existing drawing software. The ship structure is composed of a plurality of curved surfaces. When the curved surface is imported into other software as a background of outfitting module based on 3DD file format, the curved surface precision can be adjusted based on the manner provided by the embodiment of the present application, so as to achieve the effect of improving the model display precision.
[0043] Figure 1 A flowchart of a ship curved surface model display precision adjustment method provided for an embodiment of the present application. The embodiment can be applied to any scenario that requires the export of a ship structure drawn in software and the adjustment of the precision of the curved surface. The method can be implemented by a ship curved surface model display precision adjustment device integrated in a client or a server in the form of software and / or hardware. The hardware can be an electronic device, such as a PC or a mobile terminal.
[0044] As shown in Figure 1 , the method specifically includes the following steps:
[0045] S110, receive a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship.
[0046] The curved surface precision control parameter can be understood as a parameter that is pre-set to limit the form in which the output curved surface is displayed, i.e., the resolution. Optionally, when the curved surface precision control parameter is a1, it means that the output curved surface precision is adapted to a1. In a more concrete example, if the curved surface precision control parameter is 256, it means that each curved surface constituting the ship needs to be drawn by 256 points when imported and exported. If the curved surface precision control parameter is 512, it means that each curved surface constituting the ship needs to be drawn by 512 points when exported. Generally, the higher the curved surface precision control parameter, the higher the precision requirement for the curved surface, which requires a plurality of points to be determined to draw the exported curved surface. The number of at least one curved surface can be one or more, and the specific number is related to the number of curved surfaces constituting the ship during design.
[0047] It can be understood that, after receiving the curved surface precision control parameter, the display information corresponding to the exported target curved surface can be determined based on the curved surface precision control parameter.
[0048] It should be noted that, in actual applications, all curved surfaces constituting the ship can be processed in batches, i.e., the same curved surface precision control parameter is used for all curved surfaces constituting the target ship. Of course, in order to achieve personalized export and display, the curved surface precision control parameter corresponding to each curved surface constituting the target ship can be set respectively. The setting method and scope of the curved surface precision control parameter can be set according to actual needs, and are not limited in the embodiment.
[0049] Before the curved surface data is exported based on the curved surface precision control parameter, the curved surface data of at least one curved surface constituting the target ship needs to be obtained.
[0050] Optionally, surface data of at least one surface associated with the hull of the target ship is imported from the first target software; and correspondingly, the surface precision control parameter is received, including: in response to an editing operation on the surface precision control parameter, the edited surface precision control parameter of the at least one surface is obtained; wherein the surface precision control parameter includes the number of discretization points of the surface.
[0051] The first target software can be software with a three-dimensional drawing function and capable of exporting drawing data in a 3DD file format. Each surface has corresponding surface data, which corresponds to data related to drawing the surface.
[0052] It can be understood that a three-dimensional sketch corresponding to the hull of the ship can be drawn based on the first target software. The three-dimensional sketch can be composed of a plurality of surfaces, and each surface has a plurality of surface data. When exporting the surface data of all surfaces, the scheme provided in the embodiment of the application can be used. Optionally, the surface data of at least one surface associated with the hull of the target ship stored in the first target software can be exported.
[0053] Further, the surface precision control parameter can be set by the user according to the actual situation. Optionally, the display interface can include a surface precision control parameter editing control, and the user can edit the required surface precision control parameter in the surface precision control parameter editing control. After the surface precision control parameter editing is completed, a confirmation control can be clicked to obtain the edited surface precision control parameter.
[0054] It should be noted that the number of surfaces constituting the target ship can include a plurality of surfaces, and the surface precision control parameter corresponding to each surface can be set respectively, or all surfaces can correspond to one surface precision control parameter.
[0055] In this embodiment, the surface precision control parameter can be represented by the number of discretization points. For a surface, it can be composed of a plurality of points, and the more the number of discretization points, the higher the coincidence degree of the surface with the design surface. Therefore, the higher the number of discretization points, the higher the surface precision control parameter, and vice versa, the lower the surface precision control parameter.
[0056] S120, for the surface data of the at least one surface, based on the surface data, the surface precision control parameter and the target function, the surface display parameter of the surface is determined.
[0057] It should be noted that for each surface, the way of determining the surface display parameter thereof is the same, and in this embodiment, the surface display parameter of one of the surfaces is taken as an example for illustration.
[0058] The curved surface display parameter is used to represent specific parameters of the curved surface display, and the corresponding curved surface can be displayed according to the curved surface display parameter. The target function is a function for processing the curved surface data and the curved surface precision control parameter to output the curved surface display parameter of the curved surface.
[0059] Specifically, the curved surface data and the curved surface precision control parameter can be input into the target function for calculation, and the curved surface display parameter of the curved surface can be obtained.
[0060] In this embodiment, the curved surface data can include a control point set, a weight set and a node vector set of the curved surface.
[0061] It should be noted that the parameters of the control point set, the weight set and the node vector set of each curved surface are different, and the data in three dimensions of each curved surface can be obtained. It should also be noted that the curved surface data is determined when it is drawn, and subsequent processing can be performed as long as the curved surface data parameters are obtained.
[0062] In this embodiment, the curved surface display parameter of the curved surface is determined based on the curved surface data, the curved surface precision control parameter and the target function, including: substituting the control point set, the weight set and the node vector set in the curved surface data, and the number of discretization points in the curved surface precision control parameter into the base function for solving operation to obtain the curved surface display parameter of the curved surface; wherein the curved surface display parameter includes display information of displayable points consistent with the number of discretization points.
[0063] The base function can be the target function mentioned above.
[0064] Specifically, the control point set, the weight set and the node vector set in the curved surface data, and the number of discretization points in the curved surface precision control parameter can be substituted into the base function corresponding to the target function for solving operation to obtain the curved surface display parameter of the curved surface.
[0065] It should also be noted that the curved surface display parameter includes display information of displayable points consistent with the number of discretization points.
[0066] S130, converting the curved surface display parameter into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file.
[0067] The target format can be a format corresponding to the 3DD file. The target file can be a 3DD file. The target visual curved surface can be generated based on the curved surface display parameter in the target file.
[0068] Specifically, the curved surface display parameters can be converted into a target file in a target format. After obtaining the target file, a target visual curved surface corresponding to the curved surface precision control parameters can be generated based on the target file, and at this time, the curved surface precision of the target visual curved surface is adapted to the curved surface precision control parameters.
[0069] In the embodiment, the conversion of the curved surface display parameters into the target file in the target format includes: converting the curved surface display parameters corresponding to each curved surface into the target file corresponding to the preset file according to the file standard of the preset file.
[0070] It can be understood that the curved surface display parameters of each curved surface are converted into the target file in the file format corresponding to the preset file according to the file standard of the preset file.
[0071] In the embodiment, after obtaining the target file, the method further includes: importing the target file into a second target software to process the curved surface display parameters of each curved surface in the target file based on the second target software, and generate the target visual curved surface corresponding to the curved surface precision control parameters.
[0072] The second target software is a software imported into the CADMATIC outfitting module as a background.
[0073] Specifically, after obtaining the target files of all the curved surfaces, the target files can be imported into the second target software. The second target software can process the curved surface display parameters of each curved surface in the target file to generate the target visual curved surface corresponding to the curved surface precision control parameters.
[0074] The technical solution provided by the embodiment of the application includes the following steps: receiving curved surface precision control parameters, wherein the curved surface precision control parameters are used to constrain the display precision of at least one curved surface constituting a target ship; determining curved surface display parameters of the curved surface based on curved surface data, the curved surface precision control parameters, and a target function for the curved surface data of the at least one curved surface; converting the curved surface display parameters into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameters based on the target file. The technical solution solves the problem that the curved surface data stored in the 3DD file exported by the existing software has low precision, and when the 3DD file is imported into the CADMATIC outfitting module as a background, the curved surface gap is obvious, part of the content structure is exposed, and the display effect of the ship model is poor. The technical solution realizes that at least one target curved surface constituting a ship can be adjusted according to the received curved surface precision control parameters, and a target visual curved surface with controllable curved surface display precision is obtained.
[0075] As an optional embodiment of the above-mentioned embodiment, Figure 2A schematic diagram of a ship curved surface model display precision adjustment method provided by an embodiment of the present application is shown in Figure 2
[0076] Next, how to specifically generate the target visual curved surface of target precision is described in detail.
[0077] The parameter set of all curved surfaces constituting the ship is obtained from the first target software (NAPA software). Optionally, the parameter set can be the Nurbs parameter set of the curved surface. The Nurbs parameter set can be discretized one by one by taking the number of discrete points on each Nurbs curved surface as a parameter, the model data is converted into a 3DD file of corresponding precision based on the definition standard of the 3DD file, and finally the 3DD file is imported into CADMATIC to control the display precision of the curved surface, so as to finally improve the display precision of the CADMATIC ship curved surface model and better meet the design and drawing requirements.
[0078] Figure 3 A flowchart of a ship curved surface model display precision adjustment method provided by an embodiment of the present application is shown in the foregoing embodiment, which can be described by taking a specific example as an example.
[0079] Referring to Figure 3 The curved surface data corresponding to the target ship drawn from the first target software (NAPA software) is obtained, and optionally, the curved surface data can be the Nurbs data set of all curved surfaces. That is, the curved surface data of all curved surface sets constituting the target ship is obtained. The discretization parameters generated by a single curved surface unit, i.e., the curved surface precision control parameters of each curved surface, are input. The curved surface set is traversed, and a sub-loop is entered. The control point set, the weight set, and the node vector set of a single curved surface are obtained. It should be noted that the above parameters are data in the curved surface data. The discretization point parameters generated by a single curved surface unit and the Nurbs curved surface parameters are substituted into the basis function for discretization calculation. The discretized data 3DD file standard is converted into a 3DD file. The 3DD file is imported into CADMATIC to generate a curved surface of corresponding precision, and the final target visual curved surface is obtained.
[0080] It should be noted that after the curved surface data of each curved surface is substituted into the basis function for solving, the curved surface solving data of each curved surface can be obtained, which can be converted into a 3DD format curved surface. All 3DD format curved surface sets can be imported to obtain the final target visual curved surface to be displayed, i.e., through CADMATIC curved surface import.
[0081] The technical scheme provided by the embodiment of the present application comprises the following steps: receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship; determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function for the curved surface data of the at least one curved surface; and converting the curved surface display parameter into a target file in a target format, so as to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file. The present application solves the problem that the curved surface data stored in the 3DD file exported by the existing software has low precision, and when imported into the CADMATIC outfitting module as a background, the curved surface gap is obvious, part of the content structure is exposed, and the display effect of the ship model is poor. The present application realizes that the at least one target curved surface constituting the ship can be adjusted according to the received curved surface precision control parameter, and the target visual curved surface with controllable curved surface display precision is obtained.
[0082] The following is an embodiment of a ship curved surface model display precision adjustment device provided by the embodiment of the present application. The device and the ship curved surface model display precision adjustment method of each of the above embodiments belong to the same inventive concept. Details not described in the embodiment of the ship curved surface model display precision adjustment device can be referred to the above embodiment of the ship curved surface model display precision adjustment method
[0083] Figure 4 The structure diagram of a ship curved surface model display precision adjustment device provided by the embodiment of the present application is shown in the figure. The device specifically comprises: a parameter receiving module 210, a parameter display module 220 and a curved surface generation module 230.
[0084] The parameter receiving module 210 is used to receive a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship. The parameter display module 220 is used to determine a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function for the curved surface data of the at least one curved surface. The curved surface generation module 230 is used to convert the curved surface display parameter into a target file in a target format, so as to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file.
[0085] The technical scheme provided by the embodiment of the application comprises the following steps: receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship; determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function for the curved surface data of the at least one curved surface; and converting the curved surface display parameter into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file. The problem that the curved surface data stored in the 3DD file exported by the existing software has low precision and causes obvious curved surface gaps and exposed content structure when imported into the CADMATIC outfitting module as a background, resulting in poor display effect of the ship model, is solved. The at least one target curved surface constituting the ship can be adjusted according to the received curved surface precision control parameter, and the target visual curved surface with controllable curved surface display precision is obtained.
[0086] On the basis of the above technical scheme, the device further comprises:
[0087] a curved surface data exporting module configured to export, from a first target software, curved surface data of at least one curved surface associated with a hull of the target ship;
[0088] The parameter receiving module is further configured to obtain edited curved surface precision control parameters of the at least one curved surface in response to an editing operation on the curved surface precision control parameters, wherein the curved surface precision control parameters comprise the number of discretized points of the curved surface.
[0089] On the basis of the above technical scheme, the curved surface data comprises a control point set, a weight set and a node vector set of the curved surface.
[0090] On the basis of the above technical scheme, the parameter display module is further configured to:
[0091] substitute the control point set, the weight set and the node vector set in the curved surface data and the number of discretized points in the curved surface precision control parameter into a base function to perform solving operation, and obtain the curved surface display parameter of the curved surface;
[0092] The curved surface display parameter comprises display information of displayable points consistent with the number of discretized points.
[0093] On the basis of the above technical scheme, the curved surface generating module further comprises a file generating unit configured to convert the curved surface display parameter corresponding to each curved surface into a target file corresponding to a preset file according to a file standard of the preset file.
[0094] Based on the above technical solutions, the device further includes: a visualization surface generation module, used to: import the target file into a second target software, and process the surface display parameters of each surface in the target file based on the second target software to generate a target visualization surface corresponding to the surface accuracy control parameters.
[0095] The ship surface model display accuracy adjustment device provided in this embodiment of the invention can execute the ship surface model display accuracy adjustment method provided in any embodiment of the invention, and has the corresponding functional modules and beneficial effects of executing the ship surface model display accuracy adjustment method.
[0096] It is worth noting that in the embodiments of the above-mentioned ship surface model display accuracy adjustment device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0097] Figure 5 This is a schematic diagram of a server structure provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary server 12 suitable for implementing embodiments of the present invention is shown. Figure 5 The server 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.
[0098] like Figure 5 As shown, server 12 is presented as a general-purpose computing device. The components of server 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and bus 18 connecting different system components (including system memory 28 and processing unit 16).
[0099] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.
[0100] Server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by server 12, including volatile and non-volatile media, removable and non-removable media.
[0101] System memory 28 can include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. Server 12 can further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 can be provided for reading from and writing to a non-removable, non-volatile magnetic media (not shown and typically called a "hard drive"). Figure 5 Although not shown, a magnetic disk drive can also be utilized in some embodiments for reading from and writing to a non-removable, non-volatile magnetic media (such as a "hard drive"). Figure 5 Although not shown, a magnetic disk drive can also be utilized in some embodiments for reading from and writing to a non-removable, non-volatile magnetic media (such as a "hard drive").
[0102] Program / utility 40 having a set (at least one) of program modules 42 can be stored in, for example, system memory 28 by way of example, without limitation, operating system, one or more application programs, other program modules, and program data, each of which
[0103] Server 12 can also communicate with one or more external devices 14 such as a keyboard, a pointing device, a display 24, etc.; one or more devices that enable a user to interact with server 12; and / or any devices (e.g., network card, modem, etc.) that enable server 12 to communicate with one or more other computing devices. Such communication can occur via input / output (I / O) interface(s) 22. Still yet, server 12 can communicate with one or more networks, such as a local area network (LAN), a general wide area network (WAN), and / or a public network (e.g., the Internet) via network adapter 20. As depicted, network adapter 20 communicates with the other
[0104] The processing unit 16 executes various function applications and data processing by running programs stored in the system memory 28, such as implementing the method for adjusting display precision of a ship curved surface model provided in the first embodiment of the present application, which comprises:
[0105] receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain display precision of at least one curved surface constituting a target ship;
[0106] determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and an objective function for the curved surface data of the at least one curved surface;
[0107] converting the curved surface display parameter into a target file in a target format to generate a target visualized curved surface corresponding to the curved surface precision control parameter based on the target file.
[0108] Of course, those skilled in the art can understand that the processor can also implement the technical solutions of the method for adjusting display precision of a ship curved surface model provided in any embodiment of the present application.
[0109] The present embodiment provides a computer readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the method for adjusting display precision of a ship curved surface model provided in the foregoing embodiments of the present application, which comprises:
[0110] receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain display precision of at least one curved surface constituting a target ship;
[0111] determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and an objective function for the curved surface data of the at least one curved surface;
[0112] converting the curved surface display parameter into a target file in a target format to generate a target visualized curved surface corresponding to the curved surface precision control parameter based on the target file.
[0113] The computer storage medium of the embodiments of the present application can adopt any combination of one or more computer readable media. The computer readable medium can be a computer readable signal medium or a computer readable storage medium. The computer readable storage medium may, for example, but is not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or apparatus, or any combination thereof. More specific examples (non-exhaustive list) of the computer readable storage medium include an electrical connection having one or more wires, a portable computer diskette, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, the computer readable storage medium can be any tangible medium that contains or stores a program that can be used by or in connection with an instruction execution system, apparatus or device.
[0114] The computer readable signal medium can include a data signal propagated in baseband or propagated as a carrier wave, in which computer readable program code is embodied. Such propagated data signals can take a wide variety of forms, including but not limited to electro-magnetic signals, optical signals, or any suitable combination thereof. The computer readable signal medium can also be any computer readable medium that is not a storage medium, that is capable of storing the program for use by or in connection with the instruction execution system, apparatus or device.
[0115] The program code embodied on the computer readable medium can be transmitted using any appropriate medium, including but not limited to wireless, wire line, optical fiber cable, RF, etc., or any suitable combination of the above.
[0116] The computer program code for carrying out operations of the embodiments of the present application can be written in one or more programming languages or combinations of languages including an object oriented programming language such as Java, Smalltalk, C++ or the like and conventional procedural programming languages such as "C" or similar programming languages. The program code can execute entirely on the user's computer, partly on the user's computer, as a stand-alone software package, partly on the user's computer and partly on a remote computer or entirely on the remote computer or server. In the latter scenario, the remote computer can be connected to the user's computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or the connection can be made to an external computer (for example, through the Internet using an Internet Service Provider).
[0117] Note that the above merely describes preferred embodiments of the present application and the principles of the technology applied. Those skilled in the art will understand that the present application is not limited to the specific embodiments described herein, and that various obvious changes, modifications and substitutions can be made thereto without departing from the scope of the present application. Therefore, although the present application has been described in detail through the above embodiments, the present application is not limited to the above embodiments, and can include more other equivalent embodiments without departing from the concept of the present application, and the scope of the present application is determined by the scope of the claims.
Claims
1. A method for adjusting the display precision of a ship's curved surface model, characterized in that, The method comprises: receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship; for the curved surface data of the at least one curved surface, determining a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function; converting the curved surface display parameter into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file; before the receiving of the curved surface precision control parameter, the method further comprises: exporting, from a first target software, curved surface data of at least one curved surface associated with a hull of the target ship; correspondingly, the receiving of the curved surface precision control parameter comprises: in response to an editing operation on the curved surface precision control parameter, obtaining the edited curved surface precision control parameter of the at least one curved surface; wherein the curved surface precision control parameter comprises the number of discretized points of the curved surface.
2. The method of claim 1, wherein, The curved surface data comprises a control point set, a weight set and a node vector set of the curved surface.
3. The method of claim 2, wherein, The determining of the curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and the target function comprises: substituting the control point set, the weight set and the node vector set in the curved surface data and the number of discretized points in the curved surface precision control parameter into a base function to perform a solving operation to obtain the curved surface display parameter of the curved surface; wherein the curved surface display parameter comprises display information of displayable points consistent with the number of discretized points.
4. The method of claim 1, wherein, The converting of the curved surface display parameter into a target file in a target format comprises: converting the curved surface display parameter corresponding to each curved surface into a target file corresponding to a preset file according to a file standard of the preset file.
5. The method of claim 1, wherein, After obtaining the target file, the method further comprises: importing the target file into a second target software to process the curved surface display parameter of each curved surface in the target file based on the second target software to generate a target visual curved surface corresponding to the curved surface precision control parameter.
6. A device for adjusting the display precision of a curved surface model of a ship, characterized in that The device comprises: a parameter receiving module configured to receive a curved surface precision control parameter, wherein the curved surface precision control parameter is used to constrain the display precision of at least one curved surface constituting a target ship; a parameter display module configured to, for the curved surface data of the at least one curved surface, determine a curved surface display parameter of the curved surface based on the curved surface data, the curved surface precision control parameter and a target function; a curved surface generation module configured to convert the curved surface display parameter into a target file in a target format to generate a target visual curved surface corresponding to the curved surface precision control parameter based on the target file; before the receiving of the curved surface precision control parameter, the device further comprises: an exporting module configured to export, from a first target software, curved surface data of at least one curved surface associated with a hull of the target ship; correspondingly, the parameter receiving module is further configured to: in response to an editing operation on the curved surface precision control parameter, obtain the edited curved surface precision control parameter of the at least one curved surface. The curved surface precision control parameter comprises a number of discretization points of the curved surface.
7. An electronic device, comprising: The electronic device comprises: one or more processors; a memory for storing one or more programs; when the one or more programs are executed by the one or more processors, the one or more processors implement the method for adjusting display precision of a ship curved surface model according to any one of claims 1-5.
8. A computer-readable storage medium having stored thereon a computer program, characterized in that, The program is executed by the processor to implement the method for adjusting display precision of a ship curved surface model according to any one of claims 1-5.
9. A computer program product comprising a computer program, characterized in that, The computer program is executed by the processor to implement the method for adjusting display precision of a ship curved surface model according to any one of claims 1-5.
Citation Information
Patent Citations
Ship automatic modeling method based on simulation
CN111310278A
Ship body curved surface automatic modeling system based on NURBS
CN114004014A