Processing method based on geometric body in-plane error data in RVM file

By extracting the set of in-beam data points from the RVM format model file exported from the AM software, and using hash sets and triangulation algorithms to process duplicate points, the problem of difficult to redisplay complex geometric model data errors in the RVM format model file is solved. Improves the accuracy and accuracy of model rendering.

CN119150453APending Publication Date: 2024-12-17CHINA SHIPPING IND JIANGSU
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411188542.6
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-08-28
Publication Date
2024-12-17

AI Technical Summary

Technical Problem

There is a large amount of duplicate point data in the RVM format model file, which causes the parsing to fail and the model cannot be rendered correctly.

Method used

By exporting the RVM format model file from the AM software platform, extracting the data point set of each face of the geometry, using the hash set to eliminate duplicate points, and using the triangulation algorithm to verify, to ensure the correctness of the data point set.

Benefits of technology

It improves the reproduction accuracy and application accuracy of RVM format model files, reduces the amount of repair and calculation, and improves data repair efficiency.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119150453A_ABST
    Figure CN119150453A_ABST
Patent Text Reader

Abstract

The invention discloses a method for processing in-plane error data of a geometric body based on an RVM file, which comprises the following steps of: exporting an RVM format model file from AM software by using a secondary development program, analyzing the RVM format model file, extracting a data point set of each plane of the geometric body in the file, correspondingly storing the data point set of each plane of the geometric body into a hash set of the plane, and eliminating repeated data points in the hash set of each surface, performing verification after elimination, and re-writing and storing the model file data to the server after the elimination verification is passed. According to the method, the data of each surface of the geometry is independently verified and repaired, so that the calculated amount of each time of repair can be reduced, and the repair efficiency of the model data is improved. And meanwhile, a triangulation algorithm is adopted to check whether a data point set after repeated points are removed is correct or not, so that the redisplay accuracy of the RVM format model can be obviously improved, and the application precision is effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to a method for processing erroneous data within a geometric body surface based on an RVM file, and belongs to the field of visual management technology in digital ship design and manufacturing technology. Background Art

[0002] With the rapid development of computer information technology, computer information technology and data management systems have gradually been introduced into shipping to improve transportation efficiency, optimize route planning and ensure shipping safety. As a powerful ship design software, AVEVA Marine software has a very wide range of applications in the field of ship design. It is an integrated software used for designing, building ships and offshore projects. It uses object-centric technology to provide a series of solutions, add-ons and stand-alone applications, which are composed of a product portfolio that runs through every link in the shipbuilding business process. At present, we often use AVEVA Marine software for ship model design. AVEVA Marine software can export model files in RVM format, and RVM format model files can also be converted into other 3D formats to provide users with rendering to generate intuitive 3D models.

[0003] Since the geometric bodies are classified according to 3D geometric shapes in the model file in RVM format and defined in a specific form, especially for geometric bodies with irregular shapes, they are defined by multiple sets of planes. However, in the analysis of the model file in RVM format, it is found that there are many cases where the surface data cannot be parsed. After analysis, it is found that there are a large number of repeated point data in these surface data that failed to parse. This is because all the points in a surface are connected in sequence to form multiple closed figures, rather than just one closed figure, which leads to the final parsing failure. And it is precisely because of these erroneous and repeated point data that users will not be able to correctly render the model. In addition, after dealing with these large amounts of repeated and erroneous data, it is found that the first points that appear in the repeated point data in the geometric body surface are usually correct, but the points that appear later are likely to be wrong. Therefore, there is an urgent need for a processing method based on the erroneous data in the geometric body surface in the RVM file, which is used to correctly eliminate the erroneous point data, realize the correct parsing of the surface data, and finally correctly render all models. Summary of the invention

[0004] The content of this application is used to introduce concepts in a brief form, which will be described in detail in the detailed implementation section below. The content of this application is not intended to identify the key features or essential features of the technical solution claimed for protection, nor is it intended to limit the scope of the technical solution claimed for protection.

[0005] In view of the problems and shortcomings in the prior art, the present invention aims to provide a method for processing erroneous data within the surface of a geometric body based on an RVM file, by parsing the RVM format model file exported from the AM software platform, extracting the data point set of each surface of the geometric body, preferentially eliminating the erroneous duplicate points that appear multiple times in the data point set, and combining the use of a triangulation algorithm to verify whether the erroneous duplicate points have been eliminated, thereby improving the accuracy of the RVM format model file re-display, thereby improving the application accuracy of the RVM format model file. To solve the problems raised in the above background technology.

[0006] To achieve the above object, the present invention provides the following technical solutions:

[0007] As a first aspect of the present application, the present invention discloses a method for processing erroneous data within a geometric body surface based on an RVM file, which mainly comprises the following steps:

[0008] Step 1, in response to exporting a RVM format model file from AM software using a secondary development program;

[0009] Step 2, in response to parsing the RVM format model file, extracting a data point set for each face of the geometric body in the file;

[0010] Step 3, in response to storing the data point set of each face of the geometric body into the hash set of the face;

[0011] Step 4, in response to removing repeated data points in the hash set of each face, and performing verification after the removal;

[0012] Step 5: Rewrite the model file data and save it to the server in response to the rejection verification being passed.

[0013] Furthermore, in step 2, when parsing the RVM format model file to extract the data point set of each face of the geometric body, the RVM format model file is classified according to geometric bodies of different shapes, including rectangular blocks, spheres, straight tubes, curved tubes, wedges and irregular-shaped geometric bodies.

[0014] Furthermore, in step 3, the data point set of each face of the geometric body is stored in the hash set of the face, which includes the following steps:

[0015] Step 3.1, convert the coordinate values ​​of all points in each face of the geometric body into string format;

[0016] Step 3.2, concatenate the coordinate value strings of all points in each face of the geometric body to generate feature key values;

[0017] Step 3.3, extract the position serial number values ​​of all points in each face of the geometric body corresponding to the face;

[0018] Step 3.4, save the feature key value and the position sequence number value in a hash map set.

[0019] Furthermore, in step 3.4, before the feature key value and position sequence number value of each point are saved in the hash map set, it is necessary to check whether the feature key value and position sequence number value of the point already exist in the hash map set;

[0020] If it does not exist, it means that the point is the correct point;

[0021] If it already exists, it means that the point is an erroneous duplicate point. All the position numbers where the point has appeared are saved in an ordered linked list set, and then the feature key value of the point and the ordered linked list set are stored as the erroneous key value in the erroneous hash map set.

[0022] Furthermore, in step 4, when removing repeated data points in the hash map set of each face of the geometric body, priority is given to removing erroneous repeated points that appear multiple times in each face of the geometric body.

[0023] Furthermore, in step 4, repeated data points are removed from the hash map set of each face and a verification is performed after the removal, and a triangulation algorithm is used to perform the verification after the removal, including the following steps:

[0024] Step 4.1, whether the hash map set can be divided into multiple non-overlapping triangles;

[0025] Step 4.2: If yes, it means that the erroneous duplicate points have been completely eliminated;

[0026] Step 4.3: If not, cancel the elimination priority and traverse the error hash map set to perform combined verification.

[0027] As a second aspect of the present application, the present invention further discloses a processing device based on error data within a geometric body surface in an RVM file, comprising:

[0028] The parsing module is used to parse the RVM format model file exported from the AM software and extract the data point set of each face of the geometric body;

[0029] A storage module is used to store the data point set of each face of the geometric body into the hash map set of the face;

[0030] The elimination module is used to eliminate duplicate data points in the hash map set of each face;

[0031] The verification module is used to verify whether the erroneous duplicate points in the hash set of each face of the geometric body have been eliminated;

[0032] The writing module is used to export the model file data after verification and write it to the server.

[0033] As a third aspect of the present application, the present invention further discloses an electronic device, comprising:

[0034] at least one processor, and a memory communicatively coupled to the at least one processor;

[0035] The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the above-mentioned method for processing erroneous data within the surface of a geometric body in the RVM file.

[0036] As the fourth aspect of the present application, the present invention further discloses a computer storage medium on which a computer program is stored, characterized in that when the computer program is executed by a processor, the steps of the above-mentioned method for processing error data within the surface of a geometric body in an RVM file are implemented.

[0037] Compared with the prior art, the present invention has the following beneficial effects:

[0038] The present invention provides a method for processing erroneous data in the geometric body surface based on the RVM file, which solves the problem that the RVM format model file is difficult to reproduce for complex geometric body models due to its data errors. The RVM format model file is exported from the AM software by using a secondary development program, and the data point set of each face of the geometric body in the file is extracted by parsing the RVM format model file, and the data point set of each face of the geometric body is stored in the hash set of the face accordingly, and the repeated data points are eliminated in the hash set of each face and the verification after elimination is performed, and the model file data is rewritten and saved to the server after the elimination verification is passed. The present invention performs separate verification and repair on the data of each face of the geometric body, thereby reducing the amount of calculation for each repair, thereby improving the efficiency of data repair. The present invention also uses a triangulation algorithm to verify whether the data point set after eliminating duplicate points is correct, until the hash mapping set after eliminating the erroneous duplicate points can be divided into multiple non-overlapping triangles, and the verification can significantly improve the accuracy of the RVM format model reproduction, and effectively improve the application accuracy. BRIEF DESCRIPTION OF THE DRAWINGS

[0039] The drawings constituting a part of this application are used to provide a further understanding of this application, so that other features, purposes and advantages of this application become more obvious. The illustrative embodiment drawings and their descriptions of this application are used to explain this application and do not constitute an improper limitation on this application.

[0040] In the attached picture:

[0041] Figure 1 : is a flow chart of a method for processing erroneous data within a geometric body surface in an embodiment of the present invention;

[0042] Figure 2 : is a flowchart of some steps of a method for processing erroneous data within a geometric body surface in an embodiment of the present invention;

[0043] Figure 3 : is a structural diagram of an error hash mapping set in an embodiment of the present invention;

[0044] Figure 4 : is another part of the flow chart of the steps of the method for processing erroneous data within a geometric body surface according to an embodiment of the present invention;

[0045] Figure 5 : is a schematic diagram of a hash mapping set on one side of a geometric body before repair in an embodiment of the present invention;

[0046] Figure 6 : is a schematic diagram of a hash map set of one side of a geometric body after repair in an embodiment of the present invention;

[0047] Figure 7 : is a schematic diagram of the structure of an electronic device in an embodiment of the present invention. DETAILED DESCRIPTION

[0048] Embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. Although certain embodiments of the present disclosure are shown in the accompanying drawings, it should be understood that the present disclosure can be implemented in various forms and should not be construed as being limited to the embodiments set forth herein. On the contrary, these embodiments are provided to provide a more thorough and complete understanding of the present disclosure. It should be understood that the drawings and embodiments of the present disclosure are only for exemplary purposes and are not intended to limit the scope of protection of the present disclosure.

[0049] It should also be noted that, for ease of description, only the parts related to the invention are shown in the drawings. In the absence of conflict, the embodiments and features in the embodiments of the present disclosure can be combined with each other.

[0050] Example

[0051] The present invention discloses a method for processing erroneous data within a geometric body surface based on an RVM file. The present invention will be described in detail below with reference to the accompanying drawings and in combination with embodiments. Figure 1 As shown, the method for repairing erroneous data within a geometric body surface in an RVM format file of the present invention mainly comprises the following steps:

[0052] Step 1, in response to exporting a RVM format model file from AM software using a secondary development program;

[0053] Step 2, in response to parsing the RVM format model file, extracting a data point set for each face of the geometric body in the file;

[0054] Step 3, in response to storing the data point set of each face of the geometric body into the hash set of the face;

[0055] Step 4, in response to removing repeated data points in the hash set of each face, and performing verification after the removal;

[0056] Step 5: Rewrite the model file data and save it to the server in response to the rejection verification being passed.

[0057] AVEVA Marine software is a series of software products of AVEVA, a British company. It is an integrated software for designing and building ships and marine engineering projects. Aveva Marine ship design software is one of the most widely used three-dimensional ship design software in the world. The HullDesign module of Aveva Marine software in hull production design provides very powerful functions, which can help hull design engineers to create hull models, draw working drawings, nest materials, etc. However, due to the different objective conditions of each shipyard, Aveva Marine software cannot be comprehensive, so there are still many areas that can be improved. For example, the formats of drawings and reports are different from the traditional design habits of shipyards. Although some functions can be completed, the operation is much more cumbersome than the traditional method. Therefore, Aveva Marine software provides a wealth of secondary development interfaces and friendly interfaces for users to carry out customized development, so that many other practical problems in daily use can be solved. Developers can use secondary development tools to complete the development of specific secondary development programs according to the specific functional requirements of users.

[0058] Here we use the secondary development program to export the RVM format model file from the AVEVA Marine software platform, and then upload it to the 3D model application platform. RVM is a 3D model data file format used by AVEVA Marine software, which contains 3D model data and other information. It is mainly used for the exchange and processing of model data in professional 3D software. This format supports the storage and exchange of 3D model data, so that these models can be shared and used in different design or analysis software. The 3D model application platform provides a full set of solutions from modeling, viewing, editing to sharing 3D models, providing designers, developers and other creative professionals with rich 3D model resources to meet the needs of different fields. At present, commonly used 3D model application platforms include Sketchfab, Blender Market, Free3D, TurboSquid, CGTrader, etc. For example, users can upload and share their own 3D models on the Sketchfab platform, and it also provides a large number of free 3D models for selection. Blender Market provides users with various types of free 3D models, including characters, scenes, props, etc., which are suitable for designers and developers.

[0059] In step 2, the RVM format model file is parsed to extract the data point set for each face of the geometric body in the file. When using the three-dimensional model application platform to parse the RVM format model file, it is necessary to extract the three-dimensional data of all model files in the file according to the classification rules of the RVM format model file. The classification rule is that the RVM format model file will be divided into 11 types according to geometric bodies of different shapes, such as cuboids, spheres, straight pipes, curved pipes, wedges, irregular-shaped geometric bodies, etc. The following takes irregular-shaped geometric bodies as an example for further explanation. Since each face of an irregular-shaped geometric body may be different, it is necessary to operate the data points of each face of the irregular-shaped geometric body separately to extract the data point set of all points in each face of the geometric body.

[0060] like Figure 2 As shown, in step 3, the data point set of each face of the geometric body is stored in the hash set of the face, which specifically includes the following steps:

[0061] Step 3.1, convert the coordinate values ​​of all points in each face of the geometric body into string format;

[0062] Step 3.2, concatenate the coordinate value strings of all points in each face of the geometric body to generate feature key values;

[0063] Step 3.3, extract the position serial number values ​​of all points in each face of the geometric body corresponding to the face;

[0064] Step 3.4, save the feature key value and the position sequence number value in a hash map set.

[0065] Specifically, first, the coordinate values ​​of all points on each face of the irregular geometric body are retained to two decimal places in millimeters and converted into a string format. Among them, the coordinate value of each point is represented by the horizontal coordinate, vertical coordinate and height coordinate (XYZ). The horizontal coordinate, vertical coordinate and height coordinate of each vertex are spliced ​​together to form the characteristic key value Key of each point, and these characteristic key values ​​Key are stored in the hash map set HashMap. Next, the position number of each point on each face of the irregular geometric body is used as the position number value Value of the point, and these position number values ​​Value are also stored in the hash map set HashMap.

[0066] In particular, before storing the characteristic key value Key and position number value Value of each point into the hash map set HashMap, it is necessary to check whether the point already exists in the hash map set HashMap. If it does not exist, it means that the point is the correct point and is saved in the hash map set HashMap of the surface. If it already exists, it means that the point is a duplicate point, and all the position numbers where the point has appeared are saved in the ordered linked list set List corresponding to the point. Then, the characteristic key value Key of each duplicate point and its corresponding ordered linked list set List are used as the error key value errorKey and stored in the error hash map set errorPointMap. Figure 3 As shown, the structure of the error hash map set errorPointMap.

[0067] A hash table is a data structure that uses hash functions to organize data to support fast insertion and search. There are two different types of hash tables, hash sets and hash maps. Hash sets are one of the implementations of set data structures, used to store non-repeating values. Hash maps are one of the implementations of mapping data structures, used to store key-value pairs. Hash maps can be used to map a large number to a small interval as an array index. It can also be used to map a non-numeric data (such as a string) to a numeric data to achieve better indexing or duplicate detection. Or it can be used to encrypt a long piece of information into a short ciphertext to achieve confidential transmission of information. Here we use a hash map set to save the feature key values ​​Key and Value, so that it can quickly locate the target data, effectively reduce the storage space of the data, and reduce the complexity of data search, thereby improving the search efficiency and efficient data processing.

[0068] like Figure 4As shown, in step 4, the repeated data points are removed from the hash map set of each face and the post-removal verification is performed. The repeated data points are removed from the hash map set of each face of the geometric body, and the erroneous repeated points that appear multiple times in each face of the geometric body are preferentially removed. The post-removal verification is performed using a triangulation algorithm, including the following steps:

[0069] Step 4.1, whether the hash map set can be divided into multiple non-overlapping triangles;

[0070] Step 4.2: If yes, it means that the erroneous duplicate points have been completely eliminated;

[0071] Step 4.3: If not, cancel the elimination priority and traverse the error hash map set to perform combined verification.

[0072] Here we use the triangulation algorithm to check whether the data point set after removing duplicate points is correct. The triangulation algorithm is a method of dividing a continuous area into multiple triangles, and requires that each triangle does not intersect or intersects only along one side. As a preprocessing technology, the triangulation algorithm can maximize the minimum angle and make the entire triangulated figure more uniform and regular. The triangulated network with the closest regularization can avoid the appearance of narrow triangles, making the generated triangle as close to the ideal equilateral triangle as possible, thereby improving the quality of the figure. And any four points cannot be in the same circle, which ensures the uniqueness and certainty of the triangulation. Specifically, it depends on whether the hash map set HashMap after removing the error duplicate points can be divided into multiple non-overlapping triangles. If so, it means that the hash map set HashMap after removing the error duplicate points has completely eliminated the error data. If not, cancel the elimination priority, then traverse the error hash map set errorPointMap, and perform a combined check on each reserved position in each error duplicate point. Since there may be multiple duplicate points in one face of an irregular geometric body, that is, there may be multiple ordered linked list sets List in the error hash map set errorPointMap. However, only one point in each ordered linked list set List has a correct position, so it is necessary to combine the possible correct position of each ordered linked list set List with the possible correct position in other ordered linked list sets List. And so on, complete the verification of all possible situations until the hash map set HashMap can be divided into multiple non-overlapping triangles after eliminating the wrong duplicate points. Figure 5 and Figure 6 The following are schematic diagrams of the hash map set HashMap of one side of the geometric body before and after repair.

[0073] In order to implement the above-mentioned embodiments, the present disclosure also proposes a processing device for erroneous data within the face of a geometric body based on an RVM file. The device includes a parsing module, which is used to parse the RVM format model file exported from the AM software and extract the data point set of each face of the geometric body. A storage module is used to store the data point set of each face of the geometric body into the hash mapping set of the face. A removal module is used to remove repeated data points in the hash mapping set of each face. A verification module is used to verify whether the erroneous duplicate points in the hash set of each face of the geometric body have been removed. A writing module is used to export the model file data after verification and write it to the server for storage.

[0074] In order to implement the above embodiments, the present disclosure also provides an electronic device. Figure 7 As shown, the electronic device 700 may include a processing device (e.g., a central processing unit, a graphics processing unit, etc.) 701, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 702 or a program loaded from a storage device 708 into a random access memory (RAM) 703. In the RAM 703, various programs and data required for the operation of the electronic device 700 are also stored. The processing device 701, the ROM 702, and the RAM 703 are connected to each other via a bus 704. An input / output (I / O) interface 705 is also connected to the bus 704.

[0075] Typically, the following devices may be connected to the I / O interface 705: an input device 706 including, for example, a touch screen, a touch pad, a keyboard, a mouse, a camera, a microphone, an accelerometer, a gyroscope, etc.; an output device 707 including, for example, a liquid crystal display (LCD), a speaker, a vibrator, etc.; a storage device 708 including, for example, a magnetic tape, a hard disk, etc.; and a communication device 709. The communication device 709 may allow the electronic device 700 to communicate with other devices wirelessly or by wire to exchange data. Although Figure 7 The electronic device 700 is shown with various devices, but it should be understood that it is not required to implement or possess all the devices shown. More or fewer devices may be implemented or possessed instead. Figure 7 Each block shown in the figure may represent one device, or may represent multiple devices as required.

[0076] In particular, according to some embodiments of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, some embodiments of the present disclosure include a computer program product, which includes a computer program carried on a computer storage medium, and the computer program includes a program code for executing the method shown in the flowchart. In some such embodiments, the computer program can be downloaded and installed from the network through the communication device 709, or installed from the storage device 708, or installed from the ROM 702. When the computer program is executed by the processing device 701, the above-mentioned functions defined in the method of some embodiments of the present disclosure are executed.

[0077] It should be noted that the computer storage medium described above in some embodiments of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium or any combination of the above two. The computer-readable storage medium may 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 of computer-readable storage media may include, but are not limited to: 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.

[0078] In some embodiments of the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that may be used by or in combination with an instruction execution system, device, or device. In some embodiments of the present disclosure, a computer-readable signal medium may include a data signal propagated in a baseband or as part of a carrier wave, which carries a 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. A computer-readable signal medium may also be any computer storage medium other than a computer-readable storage medium, which may send, propagate, or transmit a program for use by or in combination with an instruction execution system, device, or device. The program code contained on the computer storage medium may be transmitted using any suitable medium, including but not limited to: wires, optical cables, RF (radio frequency), etc., or any suitable combination of the above.

[0079] In some embodiments, the client and the server may communicate using any currently known or future developed network protocol such as HTTP (Hyper Text Transfer Protocol), and may be interconnected with any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network ("LAN"), a wide area network ("WAN"), an internet (e.g., the Internet), and a peer-to-peer network (e.g., an ad hoc peer-to-peer network), as well as any currently known or future developed network.

[0080] The computer storage medium may be included in the electronic device or may exist independently without being installed in the electronic device. The computer storage medium carries one or more programs, and when the one or more programs are executed by the electronic device, the electronic device can implement a method for processing error data within a geometric body surface in an RVM file.

[0081] Computer program code for performing the operations of some embodiments of the present disclosure 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 a separate software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer may 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 may be connected to an external computer (e.g., through the Internet using an Internet service provider).

[0082] The flow chart and block diagram in the accompanying drawings illustrate the possible architecture, function and operation of the system, method and computer program product according to various embodiments of the present disclosure. In this regard, each box in the flow chart or block diagram can represent a module, a program segment, or a part of a code, and the module, program segment, or a part of the code contains one or more executable instructions for realizing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings.

[0083] For example, two boxes represented in succession may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flow chart, and the combination of boxes in the block diagram and / or flow chart, may be implemented by a dedicated hardware-based system that performs the specified function or operation, or may be implemented by a combination of dedicated hardware and computer instructions. The units described in some embodiments of the present disclosure may be implemented by software or by hardware. The described units may also be arranged in a processor, and the names of these units do not constitute limitations on the units themselves in some cases.

[0084] The functions described above herein may be performed at least in part by one or more hardware logic components. For example, without limitation, exemplary types of hardware logic components that may be used include: field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), systems on chips (SOCs), complex programmable logic devices (CPLDs), and the like.

[0085] The above descriptions are only some preferred embodiments of the present disclosure and an explanation of the technical principles used. Those skilled in the art should understand that the scope of the invention involved in the embodiments of the present disclosure is not limited to the technical solutions formed by a specific combination of the above-mentioned technical features, but should also cover other technical solutions formed by any combination of the above-mentioned technical features or their equivalent features without departing from the above-mentioned inventive concept. For example, the above-mentioned features are replaced with the technical features with similar functions disclosed in the embodiments of the present disclosure (but not limited to) and the technical solutions formed.

Claims

1. A method for processing erroneous data within the surface of a geometric body in an RVM file. It is characterized in that The steps include: Step 1, in response to exporting a RVM format model file from AM software using a secondary development program; Step 2, in response to parsing the RVM format model file, extracting a data point set for each face of the geometric body in the file; Step 3, in response to storing the data point set of each face of the geometric body into the hash map set of the face; Step 4, in response to removing repeated data points in the hash map set of each face, and performing post-removal verification; Step 5: Rewrite the model file data and save it to the server in response to the rejection verification being passed.

2. A method for processing erroneous data within a geometric body surface in an RVM file according to claim 1, Features: In step 2, when parsing the RVM format model file to extract the data point set of each face of the geometric body, the RVM format model file is classified according to geometric bodies of different shapes, including cuboids, spheres, straight pipes, curved pipes, wedges and irregular-shaped geometric bodies.

3. A method for processing erroneous data within a geometric body surface in an RVM file according to claim 2, It is characterized in that In step 3, the data point set of each face of the geometric body is stored in the hash map set of the face, including the following steps: Step 3.1, convert the coordinate values ​​of all points in each face of the geometric body into string format; Step 3.2, concatenate the coordinate value strings of all points in each face of the geometric body to generate feature key values; Step 3.3, extract the position serial number values ​​of all points in each face of the geometric body corresponding to the face; Step 3.4, save the feature key value and the position sequence number value of each point in a hash map set.

4. A method for processing erroneous data within a geometric body surface in an RVM file according to claim 3, Features: In step 3.4, before saving the feature key value and position sequence number value of each point in the hash map set, it is necessary to check whether the feature key value and position sequence number value of the point already exist in the hash map set; If it does not exist, it means that the point is the correct point; If it already exists, it means that the point is an erroneous duplicate point. All the position numbers where the point has appeared are saved in an ordered linked list set, and then the feature key value of the point and the ordered linked list set are stored as the erroneous key value in the erroneous hash map set.

5. A method for processing erroneous data within a geometric body surface in an RVM file according to claim 4, Features: In step 4, when removing repeated data points in the hash map set of each face of the geometric body, priority is given to removing erroneous repeated points that appear multiple times in each face of the geometric body.

6. A method for processing erroneous data within a geometric body surface in an RVM file according to claim 5, It is characterized in that In step 4, repeated data points are removed from the hash map set of each face and a verification is performed after the removal. The verification after the removal is performed using a triangulation algorithm, including the following steps: Step 4.1, whether the hash map set can be divided into multiple non-overlapping triangles; Step 4.2: If yes, it means that the erroneous duplicate points have been completely eliminated; Step 4.3: If not, cancel the elimination priority and traverse the error hash map set to perform combined verification.

7. A device for processing error data within the surface of a geometric body in an RVM file, It is characterized in that include: The parsing module is used to parse the RVM format model file exported from the AM software and extract the data point set of each face of the geometric body; A storage module is used to store the data point set of each face of the geometric body into the hash map set of the face; The elimination module is used to eliminate duplicate data points in the hash map set of each face; The verification module is used to verify whether the erroneous duplicate points in the hash set of each face of the geometric body have been eliminated; The writing module is used to export the model file data after verification and write it to the server.

8. An electronic device, It is characterized in that include: at least one processor, and a memory communicatively coupled to the at least one processor; The memory stores instructions that can be executed by the at least one processor, and the instructions are executed by the at least one processor so that the at least one processor can perform the steps of the method according to any one of claims 1 to 6.

9. A computer storage medium having a computer program stored thereon, It is characterized in that When the computer program is executed by a processor, the steps according to any one of claims 1 to 6 are implemented.