Compression method, analysis method and system for data of OBJ file
A compression method and compression system technology, applied in the field of data processing, can solve the problems of increasing data processing costs, increasing the volume of 3D model resource packages, etc.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0095] A data compression method of an OBJ file, such as figure 1 As shown, the compression method may include the following steps:
[0096] Step S11: identifying the OBJ file, and acquiring the data in the OBJ file;
[0097] Step S12: perform binary conversion on the default binary category of the data to obtain compressed data, the compressed data has a converted binary category, and the number of bytes of the converted binary category is smaller than that of the default binary category number of bytes.
[0098] In this embodiment, the OBJ file may be composed of multiple lines of text, and the text is a readable text format encoded as Unicode.
[0099] The default binary type can be preset by the program developer. Preferably, the default base type is decimal.
[0100] As a non-limiting implementation of Example 1, the data may include integer data, and the integer data has a first default base type;
[0101] The performing the base conversion on the default base type ...
Embodiment 2
[0111] This embodiment is a further improvement on the basis of Embodiment 1. Please refer to figure 2 , after step S12, may also include the following steps:
[0112] Step S13: delete the header of the compressed data, and add only one header to multiple compressed data of the same type.
[0113]In this embodiment, the data type of the OBJ file can be distinguished according to the meaning represented by the data in the OBJ file. For example, the data representing the vertex of the model can be considered as the vertex coordinate data type, and the data representing the normal line can be regarded as Think normal data types etc.
[0114] Further, the multiple compressed data can be multiple data vectors. The header may be a flag used to distinguish different types of data.
[0115] Specifically, the header may be letters or symbols written before all bytes of the data vector, for example: v, s, t, @, vt, etc. Data of the same type can be identified by the same letter or...
Embodiment 3
[0134] A data compression system for OBJ files, such as Figure 4 As shown, the compression system 1 may include:
[0135] The first data acquisition module 2 is configured to identify the OBJ file and acquire the data in the OBJ file;
[0136] The first hexadecimal conversion module 3 is used to perform hexadecimal conversion on the default hexadecimal category of the data to obtain compressed data, the compressed data has a converted hexadecimal category, and the number of bytes of the converted hexadecimal category is less than The number of bytes in the default base class.
[0137] Further, the data may include integer data, and the integer data has a first default hexadecimal category; the first hexadecimal conversion module 3 may include a first compression submodule 31, and the first compression submodule 31 is used to perform base conversion on the first default base type of the integer data to obtain first compressed data, where the first compressed data has a first...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com