Method, device and equipment for adjusting display precision of ship curved surface model and medium

By receiving surface accuracy control parameters, adjusting the display parameters of the ship surface model and generating target files, the problem of low surface accuracy when importing 3DD files into the CADMATIC outfit module is solved, and a better display effect is achieved.

CN119293964AActive Publication Date: 2025-01-10SHANGHAI MERCHANT SHIP DESIGN & RES INST
View PDF 6 Cites 0 Cited by

Patent Information

Application Number
CN202411417334.9
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-10-11
Publication Date
2025-01-10
Estimated Expiration
2044-10-11

AI Technical Summary

Technical Problem

The surface data stored in the 3DD files exported by existing software are low in accuracy, resulting in obvious surface gaps when imported into the CADMATIC outfit module as background, and some content structure is exposed, affecting the display effect of the ship model.

Method used

By receiving surface accuracy control parameters, determine the surface display parameters of the surface and convert them into target files in the target format, generate target visual surfaces corresponding to surface accuracy control parameters, and realize the display accuracy adjustment of the ship surface model.

Benefits of technology

The display accuracy of the ship surface model in the CADMATIC outfit module is improved, the surface gaps and structural exposure problems are avoided, and the display effect of the model is improved.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119293964A_ABST
    Figure CN119293964A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a ship curved surface model display precision adjusting method and device, a medium and a product, and the method comprises the steps: receiving curved surface precision control parameters which are used for constraining the display precision of at least one curved surface forming a target ship; for the curved surface data of the at least one curved surface, determining curved surface display parameters of the curved surface based on the curved surface data, the curved surface precision control parameters and the target function; 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. According to the technical scheme provided by the embodiment of the invention, the curved surfaces forming the target ship under different precisions are output, so that the display effect is improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present invention relate to the field of data processing technology, and in particular to a method, device, equipment and medium for adjusting the display accuracy of a ship surface model. Background Art

[0002] At present, when designing a ship, 3D design software is usually used to draw the ship's structure. Ship design is mainly divided into hull modules (including overall and structure) and large outfitting modules (including outfitting, machinery, and electrical).

[0003] In practical applications, the hull model designed by the hull module is generally imported into the large outfitting module through the intermediate data format as a background for other professional designs. The hull models designed by some existing software usually import the data into the CADMATIC outfitting module as a background based on the 3DD file format. However, since the surface data stored in the 3DD file exported by the software has low accuracy, after importing it into the CADMATIC outfitting module as a background, the surface joints are obvious and part of the internal structure is exposed, affecting the display effect of the model. Summary of the invention

[0004] The embodiments of the present invention provide a method, device, equipment and medium for adjusting the display accuracy of a ship surface model, so as to dynamically adjust the display accuracy of a target surface constituting a ship according to actual needs, and then display the effects of the target surface under different display accuracies.

[0005] In a first aspect, an embodiment of the present invention provides a method for adjusting the display accuracy of a ship surface model, the method comprising:

[0006] receiving a surface precision control parameter, wherein the surface precision control parameter is used to constrain the display precision of at least one surface constituting the target ship;

[0007] For the surface data of the at least one surface, determining the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function;

[0008] The surface display parameters are converted into a target file in a target format, so as to generate a target visualized surface corresponding to the surface precision control parameters based on the target file.

[0009] Furthermore, before receiving the surface precision control parameter, the method further includes:

[0010] importing, from the first target software, surface data of at least one surface associated with the hull of the target vessel;

[0011] Correspondingly, the receiving surface precision control parameters include:

[0012] In response to an editing operation on the curved surface precision control parameter, acquiring the edited curved surface precision control parameter related to the at least one curved surface;

[0013] The surface accuracy control parameter includes the number of discretized points of the surface.

[0014] Furthermore, the surface data includes a control point set, a weight set and a node vector set of the surface.

[0015] Further, determining the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function includes:

[0016] Substituting the control point set, weight set and node vector set in the surface data, and the number of discretized points in the surface precision control parameter into the basis function for solving operation, so as to obtain the surface display parameter of the surface;

[0017] The curved surface display parameters include display information of displayable points that is consistent with the number of the discretized points.

[0018] Furthermore, the step of converting the curved surface display parameters into a target file in a target format includes:

[0019] The surface display parameters corresponding to each surface are converted into a target file corresponding to the preset file according to the file standard of the preset file.

[0020] Furthermore, after obtaining the target file, the method further includes:

[0021] The target file is imported into the second target software, so as to process the surface display parameters of each surface in the target file based on the second target software, and generate a target visualized surface corresponding to the surface precision control parameters.

[0022] In a second aspect, an embodiment of the present invention further provides a device for adjusting the display accuracy of a ship surface model, the device comprising:

[0023] A parameter receiving module, used for receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used for constraining the display precision of at least one curved surface constituting the target ship;

[0024] A parameter display module, configured to determine, for the surface data of the at least one surface, a surface display parameter of the surface based on the surface data, the surface precision control parameter and an objective function;

[0025] The surface generation module is used to convert the surface display parameters into a target file in a target format, so as to generate a target visualization surface corresponding to the surface precision control parameters based on the target file.

[0026] In a third aspect, an embodiment of the present invention provides an electronic device, the electronic device comprising:

[0027] one or more processors;

[0028] A memory for storing 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 provided in any embodiment of the present invention.

[0030] In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a method for adjusting the display accuracy of a ship surface model as provided in any embodiment of the present invention.

[0031] In a fifth aspect, an embodiment of the present invention further provides a computer program product, comprising a computer program, characterized in that when the computer program is executed by a processor, the computer program implements a method for adjusting the display accuracy of a ship surface model as described in any one of the embodiments of the present invention.

[0032] The technical solution provided by the embodiment of the present invention receives surface precision control parameters, wherein the surface precision control parameters are used to constrain the display precision of at least one surface constituting a target ship; for surface data of at least one surface, the surface display parameters of the surface are determined based on the surface data, the surface precision control parameters and the objective function; the surface display parameters are converted into a target file in a target format to generate a target visualization surface corresponding to the surface precision control parameters based on the target file, thereby solving the problem in the prior art that the surface data stored in the 3DD file exported by the existing software has low precision, which will cause obvious surface gaps and partial content structure exposure when imported into the CADMATIC outfitting module as a background, resulting in poor display effect of the ship model, and realizing that at least one target surface constituting the ship can be adjusted according to the received surface precision control parameters to obtain a target visualization surface with controllable surface display precision. BRIEF DESCRIPTION OF THE DRAWINGS

[0033] In order to more clearly illustrate the technical solutions of the exemplary embodiments of the present invention, the following briefly introduces the drawings required to describe the embodiments. Obviously, the drawings introduced are only drawings of a part of the embodiments to be described in the present invention, rather than all the drawings. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.

[0034] Figure 1 A flow chart of a method for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention;

[0035] Figure 2 A schematic diagram of a method for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention;

[0036] Figure 3 A schematic flow chart of a method for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention;

[0037] Figure 4 A schematic diagram of the structure of a device for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention;

[0038] Figure 5 A schematic diagram of the structure of an electronic device provided by an embodiment of the present invention. DETAILED DESCRIPTION

[0039] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0040] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only parts related to the present invention, rather than all structures, are shown in the accompanying drawings.

[0041] Before introducing the technical solution provided by the embodiment of the present invention, an example description of the application scenario may be given first.

[0042] Before making a ship, the hull structure corresponding to the ship is usually drawn based on existing drawing software. The hull structure is composed of multiple curved surfaces. When the curved surface is imported into other software based on the 3DD file format as the background of the outfitting module, the surface accuracy can be adjusted based on the method provided in the embodiment of the present invention to achieve the effect of improving the display accuracy of the model.

[0043] Figure 1 A flowchart of a method for adjusting the display accuracy of a ship surface model provided in an embodiment of the present invention. This embodiment can be applied to any scenario where a ship structure drawn in software needs to be exported and its surface accuracy needs to be adjusted. The method can be implemented by a device for adjusting the display accuracy of a ship surface model integrated in a client or server by software and / or hardware. The hardware can be an electronic device, which can be a PC or a mobile terminal, etc.

[0044] like Figure 1 As shown, the method specifically comprises the following steps:

[0045] S110. Receive a surface precision control parameter, wherein the surface precision control parameter is used to constrain the display precision of at least one surface constituting the target ship.

[0046] Among them, the surface accuracy control parameter can be understood as a pre-set parameter used to limit the resolution in which the output surface is displayed. Optionally, when the surface accuracy control parameter is a1, it means that the output surface accuracy is compatible with a1. For a more concrete example, if the surface accuracy control parameter is 256, it means that each surface constituting the ship needs to be drawn by 256 points when it is imported; if the surface accuracy control parameter is 512, it means that each surface constituting the ship needs to be drawn by 512 points when it is exported. Generally, the higher the surface accuracy control parameter, the higher the accuracy requirement for the surface, and it is necessary to determine multiple points to draw the exported surface. The number of at least one surface can be one or more, and the specific number is related to the number of surfaces of the ship constructed during the design.

[0047] It can be understood that after receiving the surface precision control parameter, the display information corresponding to the derived target surface can be determined based on the surface precision control parameter.

[0048] It should also be noted that, in practical applications, all surfaces constituting a ship can be processed in batches, that is, the same surface precision control parameter is used for all surfaces constituting a target ship. Of course, in order to achieve personalized export and display, the surface precision control parameter corresponding to each surface constituting the target ship can be set separately. The setting method and scope of the surface precision control parameter can be set according to actual needs and are not limited in this embodiment.

[0049] Before exporting the surface data based on the surface precision control parameter, it is necessary to first obtain the surface data of at least one surface constituting the target ship.

[0050] Optionally, surface data of at least one surface associated with the hull of the target ship is imported from the first target software; accordingly, surface precision control parameters are received, including: in response to an editing operation on the surface precision control parameters, obtaining the edited surface precision control parameters related to at least one surface; wherein the surface precision control parameters include the number of discrete points of the surface.

[0051] The first target software may be a software having a three-dimensional drawing function and capable of exporting drawing data in a 3DD file format. Each curved surface has corresponding curved surface data, which corresponds to data related to drawing the curved surface.

[0052] It can be understood that a three-dimensional schematic diagram corresponding to the hull of the ship can be drawn based on the first target software. The three-dimensional schematic diagram can be composed of multiple curved surfaces, and each curved surface has multiple curved surface data. When the curved surface data of all curved surfaces are exported, the solution provided by the embodiment of the present invention can be adopted. Optionally, the curved surface data of at least one curved surface associated with the hull of the target ship stored in the first target software can be used.

[0053] Furthermore, the surface precision control parameters can be set by the user according to actual conditions. Optionally, the display interface can include a surface precision control parameter editing control, and the user can edit the required surface precision control parameters in the surface precision control parameter editing control. After the surface precision parameter editing is completed, the confirmation control can be clicked to obtain the edited surface precision control parameters.

[0054] It should be noted that the number of surfaces constituting the target ship may include multiple surfaces, and the surface precision control parameter corresponding to each surface may be set separately, or all surfaces may correspond to one surface precision control parameter.

[0055] In this embodiment, the surface precision control parameter can be characterized by the number of discretization points. For a surface, it can be composed of multiple points. The more discretization points there are, the higher the coincidence degree of the surface constructed is with the designed 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 surface data of at least one surface, determine surface display parameters of the surface based on the surface data, surface precision control parameters, and an objective function.

[0057] It should be noted that, for each curved surface, the method for determining its curved surface display parameters is the same. In this embodiment, the method for determining the curved surface display parameters of one of the curved surfaces is used as an example for description.

[0058] The surface display parameters are used to characterize the specific parameters of the surface when it is displayed, and the corresponding surface can be displayed according to the surface display parameters. The objective function is a function used to process the surface data and the surface precision control parameters to output the surface display parameters of the surface.

[0059] Specifically, the surface data and the surface precision control parameters may be input into the objective function for calculation, and the surface display parameters of the surface may be obtained.

[0060] In this embodiment, the surface data may include a control point set, a weight set, and a node vector set of the surface.

[0061] It should be noted that for each surface, the parameters of the control point set, weight set and node vector set are somewhat different, and the data of each surface in three dimensions can be obtained. It should also be noted that the surface data has been determined when the drawing is completed, and subsequent processing is only required to obtain the surface data parameters.

[0062] In this embodiment, the surface display parameters of the surface are determined based on the surface data, the surface precision control parameters and the objective function, including: substituting the control point set, the weight set and the node vector set in the surface data, and the number of discretized points in the surface precision control parameters into the basis function for solution operation to obtain the surface display parameters of the surface; wherein the surface display parameters include display information of displayable points consistent with the number of discretized points.

[0063] The basis function may be the objective function mentioned above.

[0064] Specifically, the control point set, weight set and node vector set in the surface data, as well as the number of discretized points in the surface precision control parameters, can be substituted into the basis function corresponding to the objective function for solution operation to obtain the surface display parameters of the surface.

[0065] It should also be noted that the surface display parameters include display information of displayable points that is consistent with the number of discretized points.

[0066] S130, converting the surface display parameters into a target file in a target format, so as to generate a target visualized surface corresponding to the surface precision control parameters based on the target file.

[0067] The target format may be a format corresponding to a 3DD file. The target file may be a 3DD file. The target visualization surface may be generated for the surface display parameters in the target file.

[0068] Specifically, the surface display parameters can be converted into a target file in a target format. After obtaining the target file, a target visualization surface corresponding to the surface precision control parameters can be generated based on the target file. At this time, the surface precision of the target visualization surface is adapted to the surface precision control parameters.

[0069] In this embodiment, converting the curved surface display parameters into a target file in a target format includes: converting the curved surface display parameters corresponding to each curved surface into a target file corresponding to the preset file according to a file standard of a preset file.

[0070] It can be understood that: according to the file standard of the preset file, the surface display parameters of each surface are converted into a target file corresponding to the file format of the preset file.

[0071] In this embodiment, after obtaining the target file, the method also includes: importing the target file into a second target software to 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.

[0072] Among them, the second target software is the software imported into the CADMATIC outfitting module as the background.

[0073] Specifically, after obtaining the target files of all the surfaces, the target files can be imported into the second target software. The second target software can process the surface display parameters of each surface in the target file to generate a target visualization surface corresponding to the surface precision control parameters.

[0074] The technical solution provided by the embodiment of the present invention receives surface precision control parameters, wherein the surface precision control parameters are used to constrain the display precision of at least one surface constituting a target ship; for surface data of at least one surface, the surface display parameters of the surface are determined based on the surface data, the surface precision control parameters and the objective function; the surface display parameters are converted into a target file in a target format to generate a target visualization surface corresponding to the surface precision control parameters based on the target file, thereby solving the problem in the prior art that the surface data stored in the 3DD file exported by the existing software has low precision, which will cause obvious surface gaps and partial content structure exposure when imported into the CADMATIC outfitting module as a background, resulting in poor display effect of the ship model, and realizing that at least one target surface constituting the ship can be adjusted according to the received surface precision control parameters to obtain a target visualization surface with controllable surface display precision.

[0075] As an alternative embodiment of the above embodiment, Figure 2A schematic diagram of a method for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention is shown in FIG. Figure 2 As shown,

[0076] Next, we will elaborate on how to generate the target visualization surface with target accuracy.

[0077] Obtain the parameter set of all the surfaces constituting the ship from the first target software (NAPA software). Optionally, the parameter set can be a Nurbs parameter set of the surface. The Nurbs parameter set can be discretized one by one using the number of discrete points on each Nurbs surface as a parameter, and the model data can be converted into a 3DD file of corresponding accuracy based on the definition standard of the 3DD file. Finally, the 3DD file is imported into CADMATIC to control the display accuracy of the surface, and finally the display accuracy of the CADMATIC ship surface model is improved to better meet the design and drawing requirements.

[0078] Figure 3 A flow chart of a method for adjusting the display accuracy of a ship surface model provided in an embodiment of the present invention can be illustrated by taking a specific example based on the above-mentioned embodiment.

[0079] See also Figure 3 , the surface data corresponding to the target ship drawn in the first target software (NAPA software), optionally, the surface data can be a surface Nurbs data set of all surfaces. That is, the surface data of all surface sets constituting the target ship are obtained. The discretization parameters generated by a single surface unit are input, that is, the surface accuracy control parameters of each surface. Traverse the surface set and enter the sub-loop. Get the control point set, weight set and node vector set of a single surface. It should be noted that the above parameters are the data in the surface data. The discretization point parameters and Nurbs surface parameters generated based on a single surface unit are substituted into the basis function for discretization solution calculation. The discretized data 3DD file standard is converted into a 3DD file. The 3DD file is imported into CADMATIC to generate a surface of corresponding accuracy to obtain the final target visualization surface.

[0080] It should be noted that after substituting the surface data of each surface into the basis function solution, the surface solution data of each surface can be converted into a surface in 3DD format. All surface sets in 3DD format can be imported to obtain the final target visualization surface, that is, through CADMATIC surface import.

[0081] The technical solution provided by the embodiment of the present invention receives surface accuracy control parameters, wherein the surface accuracy control parameters are used to constrain the display accuracy of at least one surface constituting a target ship; for surface data of at least one surface, the surface display parameters of the surface are determined based on the surface data, the surface accuracy control parameters and the objective function; the surface display parameters are converted into a target file in a target format to generate a target visualization surface corresponding to the surface accuracy control parameters based on the target file, thereby solving the problem in the prior art that the surface data stored in the 3DD file exported by the existing software has low accuracy, which will cause obvious surface gaps and partial content structure exposure when imported into the CADMATIC outfitting module as a background, resulting in poor display effect of the ship model, and realizing that at least one target surface constituting the ship can be adjusted according to the received surface accuracy control parameters to obtain a target visualization surface with controllable surface display accuracy.

[0082] The following is an embodiment of a device for adjusting the display accuracy of a ship surface model provided by an embodiment of the present invention. The device and the method for adjusting the display accuracy of a ship surface model in the above-mentioned embodiments belong to the same inventive concept. For details not described in detail in the embodiment of the device for adjusting the display accuracy of a ship surface model, reference may be made to the embodiment of the method for adjusting the display accuracy of a ship surface model in the above-mentioned embodiment.

[0083] Figure 4 The present invention provides a schematic diagram of the structure of a device for adjusting the display accuracy of a ship surface model according to an embodiment of the present invention. The device specifically comprises: a parameter receiving module 210, a parameter display module 220 and a surface generating module 230.

[0084] Among them, the parameter receiving module 210 is used to receive surface accuracy control parameters, wherein the surface accuracy control parameters are used to constrain the display accuracy of at least one surface constituting the target ship; the parameter display module 220 is used to determine the surface display parameters of the surface based on the surface data of the at least one surface, the surface data, the surface accuracy control parameters and the objective function; the surface generation module 230 is used to convert the surface display parameters into a target file in a target format, so as to generate a target visualization surface corresponding to the surface accuracy control parameters based on the target file.

[0085] The technical solution provided by the embodiment of the present invention receives surface precision control parameters, wherein the surface precision control parameters are used to constrain the display precision of at least one surface constituting a target ship; for surface data of at least one surface, the surface display parameters of the surface are determined based on the surface data, the surface precision control parameters and the objective function; the surface display parameters are converted into a target file in a target format to generate a target visualization surface corresponding to the surface precision control parameters based on the target file, thereby solving the problem in the prior art that the surface data stored in the 3DD file exported by the existing software has low precision, which will cause obvious surface gaps and partial content structure exposure when imported into the CADMATIC outfitting module as a background, resulting in poor display effect of the ship model, and realizing that at least one target surface constituting the ship can be adjusted according to the received surface precision control parameters to obtain a target visualization surface with controllable surface display precision.

[0086] On the basis of the above technical solution, the device further comprises:

[0087] A surface data export module, used to export surface data of at least one surface associated with the hull of the target ship from the first target software;

[0088] The parameter receiving module is also used to obtain the edited surface precision control parameters of the at least one surface in response to an editing operation on the surface precision control parameters; wherein the surface precision control parameters include the number of discretized points of the surface.

[0089] Based on the above technical solutions, the surface data includes a control point set, a weight set and a node vector set of the surface.

[0090] On the basis of the above technical solutions, the parameter display module is also used for:

[0091] Substituting the control point set, weight set and node vector set in the surface data, and the number of discretized points in the surface precision control parameter into the basis function for solving operation, so as to obtain the surface display parameter of the surface;

[0092] The curved surface display parameters include display information of displayable points that is consistent with the number of the discretized points.

[0093] Based on the above technical solutions, the surface generation module also includes: a file generation unit, which is used to convert the surface display parameters corresponding to each surface into a target file corresponding to the preset file according to the file standard of the preset file.

[0094] Based on the above technical solutions, the device also includes: a visual surface generation module, which is used to: import the target file into a second target software, so as to process the surface display parameters of each surface in the target file based on the second target software, and generate a target visual surface corresponding to the surface accuracy control parameters.

[0095] The device for adjusting the display accuracy of a ship surface model provided in an embodiment of the present invention can execute the method for adjusting the display accuracy of a ship surface model provided in any embodiment of the present invention, and has corresponding functional modules and beneficial effects for executing the method for adjusting the display accuracy of a ship surface model.

[0096] It is worth noting that in the embodiment of the above-mentioned device for adjusting the display accuracy of the ship surface model, the various units and modules included are only divided according to functional logic, but are not limited to the above-mentioned division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.

[0097] Figure 5 A schematic diagram of the structure of a server provided in an embodiment of the present invention. Figure 5 A block diagram of an exemplary server 12 suitable for use in implementing embodiments of the present invention is shown. Figure 5 The server 12 shown is only an example and should not bring any limitation to the functions and scope of use of the embodiments of the present invention.

[0098] like Figure 5 As shown, the server 12 is in the form of a general purpose computing device. The components of the server 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that connects various system components (including the system memory 28 and the processing unit 16).

[0099] Bus 18 represents one or more of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, a processor or a local bus using any of a variety of bus architectures. By way of example, these architectures include, but are not limited to, an Industry Standard Architecture (ISA) bus, a Micro Channel Architecture (MAC) bus, an Enhanced ISA bus, a Video Electronics Standards Association (VESA) local bus, and a Peripheral Component Interconnect (PCI) bus.

[0100] The server 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by the server 12, including volatile and non-volatile media, removable and non-removable media.

[0101] The system memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache memory 32. The server 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, the storage system 34 may be used to read and write non-removable, non-volatile magnetic media ( Figure 5 not shown, usually called a "hard drive"). Although Figure 5 Not shown in the figure, a disk drive for reading and writing to a removable non-volatile disk (e.g., a "floppy disk"), and an optical disk drive for reading and writing to a removable non-volatile optical disk (e.g., a CD-ROM, a DVD-ROM, or other optical media) may be provided. In these cases, each drive may be connected to the bus 18 via one or more data medium interfaces. The system memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to perform the functions of the various embodiments of the present invention.

[0102] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which or some combination may include an implementation of a network environment. Program modules 42 generally perform the functions and / or methods of the embodiments described herein.

[0103] The server 12 may also communicate with one or more external devices 14 (e.g., keyboards, pointing devices, displays 24, etc.), may communicate with one or more devices that enable a user to interact with the server 12, and / or may communicate with any device that enables the server 12 to communicate with one or more other computing devices (e.g., network cards, modems, etc.). Such communication may be performed via an input / output (I / O) interface 22. In addition, the server 12 may also communicate with one or more networks (e.g., local area networks (LANs), wide area networks (WANs), and / or public networks, such as the Internet) via a network adapter 20. As shown, the network adapter 20 communicates with other modules of the server 12 via a bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules may be used in conjunction with the server 12, including, but not limited to, microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0104] The processing unit 16 executes various functional applications and data processing by running the program stored in the system memory 28, for example, implementing the method steps for adjusting the display accuracy of the ship surface model provided in the first embodiment of the present invention, the method comprising:

[0105] receiving a surface precision control parameter, wherein the surface precision control parameter is used to constrain the display precision of at least one surface constituting the target ship;

[0106] For the surface data of the at least one surface, determining the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function;

[0107] The surface display parameters are converted into a target file in a target format, so as to generate a target visualized surface corresponding to the surface precision control parameters based on the target file.

[0108] Of course, those skilled in the art can understand that the processor can also implement the technical solution of the method for adjusting the display accuracy of the ship surface model provided in any embodiment of the present invention.

[0109] This embodiment provides a computer-readable storage medium, on which a computer program is stored. When the program is executed by a processor, the method steps for adjusting the display accuracy of the ship surface model provided in the above embodiment of the present invention are implemented. The method includes:

[0110] receiving a surface precision control parameter, wherein the surface precision control parameter is used to constrain the display precision of at least one surface constituting the target ship;

[0111] For the surface data of the at least one surface, determining the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function;

[0112] The surface display parameters are converted into a target file in a target format, so as to generate a target visualized surface corresponding to the surface precision control parameters based on the target file.

[0113] The computer storage medium of the embodiment of the present invention 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 can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device or device, or any combination of the above. More specific examples (non-exhaustive list) of computer-readable storage media include: an electrical connection with one or more wires, a portable computer disk, 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 disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the above. In this document, a computer-readable storage medium can be any tangible medium containing or storing a program, which can be used by an instruction execution system, device or device or used in combination with it.

[0114] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, which carry computer-readable program code. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the above. Computer-readable signal media may also be any computer-readable medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in conjunction with an instruction execution system, apparatus, or device.

[0115] Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to wireless, wireline, optical fiber cable, RF, etc., or any suitable combination of the foregoing.

[0116] Computer program code for performing the operation of embodiments of the present invention may be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages, such as Java, Smalltalk, C++, and conventional procedural programming languages, such as "C" or similar programming languages. The program code may be executed entirely on the user's computer, partially on the user's computer, as an independent software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In the case of a remote computer, the remote computer may be connected to the user's computer via any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0117] Note that the above are only preferred embodiments of the present invention and the technical principles used. Those skilled in the art will understand that the present invention is not limited to the specific embodiments herein, and that various obvious changes, readjustments and substitutions can be made by those skilled in the art without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in more detail through the above embodiments, the present invention is not limited to the above embodiments, and may include more other equivalent embodiments without departing from the concept of the present invention, and the scope of the present invention is determined by the scope of the appended claims.

Claims

1. A method for adjusting the display accuracy of a ship surface model, characterized in that: include: receiving a surface precision control parameter, wherein the surface precision control parameter is used to constrain the display precision of at least one surface constituting the target ship; For the surface data of the at least one surface, determining the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function; The surface display parameters are converted into a target file in a target format, so as to generate a target visualized surface corresponding to the surface precision control parameters based on the target file.

2. The method according to claim 1, characterized in that Before receiving the curved surface precision control parameter, the method further includes: exporting, from the first target software, surface data of at least one surface associated with the hull of the target vessel; Correspondingly, the receiving surface precision control parameters include: In response to an editing operation on the curved surface precision control parameter, acquiring the edited curved surface precision control parameter related to the at least one curved surface; The surface accuracy control parameter includes the number of discretized points of the surface.

3. The method according to claim 1, characterized in that The surface data includes a control point set, a weight set, and a node vector set of the surface.

4. The method according to claim 3, characterized in that The determining of the surface display parameters of the surface based on the surface data, the surface precision control parameters and the objective function comprises: Substituting the control point set, weight set and node vector set in the surface data, and the number of discretized points in the surface precision control parameter into the basis function for solving operation, so as to obtain the surface display parameter of the surface; The curved surface display parameters include display information of displayable points that is consistent with the number of the discretized points.

5. The method according to claim 1, characterized in that The step of converting the curved surface display parameters into a target file in a target format comprises: The surface display parameters corresponding to each surface are converted into a target file corresponding to the preset file according to the file standard of the preset file.

6. The method according to claim 1, characterized in that After obtaining the target file, the method further includes: The target file is imported into the second target software, so as to process the surface display parameters of each surface in the target file based on the second target software, and generate a target visualized surface corresponding to the surface precision control parameters.

7. A device for adjusting the display accuracy of a ship surface model, characterized in that: include: A parameter receiving module, used for receiving a curved surface precision control parameter, wherein the curved surface precision control parameter is used for constraining the display precision of at least one curved surface constituting the target ship; A parameter display module, configured to determine, for the surface data of the at least one surface, a surface display parameter of the surface based on the surface data, the surface precision control parameter and an objective function; The surface generation module is used to convert the surface display parameters into a target file in a target format, so as to generate a target visualization surface corresponding to the surface precision control parameters based on the target file.

8. An electronic device, characterized in that: 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 the display accuracy of the ship surface model as described in any one of claims 1-6.

9. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the program is executed by a processor, the method for adjusting the display accuracy of a ship surface model as described in any one of claims 1 to 6 is implemented.

10. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the computer program implements the method for adjusting the display accuracy of the ship surface model as described in any one of claims 1 to 6.

Citation Information

Patent Citations

  • Function curve processing method and device, equipment and storage medium

    CN108037877A

  • Curved surface graph drawing method, device and equipment and storage medium

    CN110047117A

  • Ship automatic modeling method based on simulation

    CN111310278A

  • Ship body curved surface automatic modeling system based on NURBS

    CN114004014A

  • Method of displaying image, electronic device and storage medium

    US20230091423A1