A method for 3D model coordinate transformation in Autodesk 3Ds Max
By building a 3Ds Max plug-in and coordinate conversion system, the coordinate conversion of three-dimensional models is directly carried out in 3Ds Max, which solves the data loss and cumbersome problems caused by frequent import and export in the existing technology, and realizes efficient and accurate three-dimensional model coordinate conversion.
Patent Information
- Application Number
- CN202210245018.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-03-14
- Publication Date
- 2025-05-16
- Estimated Expiration
- 2042-03-14
AI Technical Summary
The existing three-dimensional model coordinate conversion technology requires frequent import and export of 3Ds Max models, resulting in data loss and cumbersome workflows, especially when dealing with a large number of three-dimensional urban models.
By building a 3Ds Max plug-in and a coordinate conversion system, the plug-in and system communication can be realized, and the coordinate conversion of three-dimensional models is directly carried out in 3Ds Max to avoid the import and export process.
It realizes efficient coordinate conversion of 3Ds Max three-dimensional model, avoids data loss, simplifies workflow, and improves processing efficiency.
Smart Images

Figure CN114581610B_ABST
Abstract
Description
Technical Field
[0001] The invention relates to a coordinate conversion method, in particular to a coordinate conversion method for Autodesk 3Ds Max three-dimensional models. Background Art
[0002] Monomerized 3D modeling: In the field of digital city 3D modeling, the process of "monomerization" is actually to process the elements and objects we need independently and turn them into individuals that can be processed and edited separately, and attach corresponding attribute information. Only in this way can model data be widely used and managed, and realize the transformation of 3D models from "seeing" to "using". Monomerized 3D modeling is to model according to geographic entity elements, and each 3D model corresponds to a geographic entity data.
[0003] Three-dimensional coordinate conversion: Theoretical research and practical calculations often involve the conversion between two different spatial rectangular coordinate systems. The conversion of spatial rectangular coordinate systems plays an important role in geodetic surveying, engineering surveying, photogrammetry, and three-dimensional laser scanning and tracking. In geodetic surveying, there are conversions between the 1954 Beijing coordinate system, the 1980 Xi'an coordinate system, the 2000 National Geodetic Coordinate System, and various world coordinate systems; in engineering surveying, there are conversions between survey and design coordinate systems, construction coordinate systems, and monitoring coordinate systems; in photogrammetry, the establishment of spatial resection and collinear equations requires the conversion of spatial rectangular coordinate systems; in the field of three-dimensional laser scanning and tracking, point cloud splicing between different stations requires coordinate conversion. Therefore, the study of the conversion method of spatial rectangular coordinate systems has great theoretical and practical significance. The seven-parameter Bursa model, Molodinsky model, and Wuce model are often used in three-dimensional rectangular coordinate conversion.
[0004] At present, the surveying and mapping industry often uses individual 3D model data. In the production of real-life 3D data, individual 3D models are usually produced using the Autodesk 3Ds Max (3Ds Max for short) system. The production of 3D models is based on actual geographic coordinates. Therefore, in the process of data application, it is often necessary to convert the coordinates of the 3D models that have been produced to adapt them to different coordinate systems (spatial references).
[0005] The format of 3Ds Max 3D models is .max file. Except for 3Ds Max system, no third-party tools can read and write them. The existing coordinate conversion technology is to export the 3D model made in 3Ds Max, export it to a universal 3D model (Obj, OSG, etc.) available for the 3D platform, and then perform coordinate conversion. The format of the 3D model after coordinate conversion is the same as before conversion. Different 3D platforms support different 3D model formats. In actual applications, 3Ds Max models often need to be exported and coordinate converted according to the 3D display platform used. In addition, some 3D platforms do not support universal format 3D models. You need to use 3Ds Max plug-ins to export 3Ds Max models to the model format supported by the platform. Or if you want to modify the 3D model after coordinate conversion, you need to import the universal format 3D model after coordinate conversion into 3Ds Max again. Importing and exporting often causes the loss of some model data information, and also loses other setting information of 3Ds Max models, such as plug-in settings, rendering settings, etc.
[0006] Three-dimensional city models are often huge in number, so the same set of 3Ds Max three-dimensional model data needs to be exported, imported, and coordinate converted multiple times in different platform applications, which is time-consuming, tedious, and laborious. Summary of the invention
[0007] In order to solve the shortcomings of the above-mentioned technology, the present invention provides a method for coordinate conversion of Autodesk3Ds Max three-dimensional models, which performs coordinate conversion on the three-dimensional model files in .Max format produced by 3Ds Max, does not need to import or export the three-dimensional model, and realizes two-way communication between the plug-in and the system by constructing a 3Ds Max plug-in and a coordinate conversion system, so as to convert the 3Ds Max three-dimensional model in a certain coordinate system into the 3Ds Max three-dimensional model in another coordinate system without losing any information of the three-dimensional model.
[0008] In order to solve the above technical problems, the technical solution adopted by the present invention is: a method for coordinate conversion of Autodesk3Ds Max three-dimensional models, firstly obtaining vertex coordinate information of the three-dimensional model through a plug-in P, and then transmitting the above-obtained three-dimensional model coordinate information through the plug-in P and the coordinate conversion system R, thereby realizing coordinate conversion.
[0009] Preferably, the method specifically comprises the following steps:
[0010] Step S1, constructing a 3Ds Max Utility Plugin-in type plug-in P;
[0011] Step S2, constructing a coordinate transformation system R;
[0012] Step S3, initiating a coordinate conversion task in the system R, and sending a message tag b to the plug-in P;
[0013] Step S4, after receiving the message tag b, the plug-in P traverses all the three-dimensional models in the 3Ds Max file, generates a structure f, sends a message tag c to the system R, and passes the structure f as a parameter;
[0014] Step S5, after receiving the message tag c, the system R parses the structure f, calls the set message tag and structure, performs coordinate conversion on all vertex information, generates a new structure f', and sends the message tag d to the plug-in P, passing the structure f' as a parameter;
[0015] Step S6: After receiving the message tag d, the plug-in P parses the structure f', updates the parsed 3D model information, and updates all 3D model vertex information in 3Ds Max, that is, completes the coordinate conversion of the 3Ds Max file in the system R.
[0016] Preferably, in step S2, the specific process of constructing the coordinate transformation system R is:
[0017] Step S21: define the same message tag in the system R and the plug-in P:
[0018] Message tag b: R requests 3D model information from P;
[0019] Message tag c: P sends 3D model information to R;
[0020] Message tag d: R sends the processed 3D model information to P;
[0021] Step S22: define the same structure in the system R and the plug-in P;
[0022] Define structure e: store the face, edge, vertex information and count of a single 3D model;
[0023] Define a structure f: store the list and count of e, that is, define a list of structure e in structure f to store multiple e type data.
[0024] Preferably, in step S2, before each coordinate transformation, the coordinate transformation system R needs to set the following parameters:
[0025] Original coordinate system setting: set the coordinate system and local coordinate origin of the 3D model before coordinate conversion;
[0026] Target coordinate system setting: set the coordinate system and local coordinate origin after the 3D model coordinates are converted;
[0027] Coordinate transformation method selection: select the algorithm used for coordinate transformation, including conversion using public parameters, conversion using custom parameters, fitting seven parameters using same-name points, and calling the packaged coordinate transformation interface;
[0028] Coordinate conversion settings: Set the corresponding conversion parameters for each coordinate conversion method. In addition, if you need to convert the coordinates of batch 3ds Max files, set the batch conversion original directory and batch conversion target directory.
[0029] Preferably, in step S3, the coordinate conversion of the 3Ds Max file includes converting the coordinates of a single 3Ds Max file or converting the coordinates of a batch of 3Ds Max files.
[0030] Preferably, in step S3, the coordinate conversion of a single 3Ds Max file: only the .Max file currently opened in 3Ds Max is processed, including the following steps:
[0031] Step A1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, and set various parameters in the coordinate transformation system R;
[0032] Step A2, convert the current 3Ds Max model coordinates.
[0033] Preferably, the specific process of step A2 is:
[0034] Open the .max file in 3Ds Max, load the 3D model, start coordinate conversion, and the coordinate conversion model requests the 3D model information from the plugin P;
[0035] After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R;
[0036] After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P.
[0037] After receiving the 3D model information after coordinate conversion, the plug-in P updates the 3D model in the 3Ds Max scene, thereby completing the coordinate conversion of a single 3Ds Max file.
[0038] Preferably, in step S3, coordinate conversion of batch 3Ds Max files: processing batch .Max files comprises the following steps:
[0039] Step B1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, set various parameters in the coordinate transformation system R, wherein in the coordinate transformation settings, set the original directory to be batch converted and the batch conversion target directory;
[0040] Step B2, batch convert 3Ds Max model files.
[0041] Preferably, the specific process of step B2 is:
[0042] In the coordinate conversion system R, the batch conversion original directory is traversed, and for each .max file in the directory, the 3Ds Max interface is called to automatically open the .max file, load the 3D model, and the coordinate conversion model requests the 3D model information from the plug-in P;
[0043] After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R;
[0044] After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P.
[0045] After receiving the 3D model information after coordinate conversion, plug-in P updates the 3D model in the 3Ds Max scene. After the update is completed, the 3Ds Max interface is called to save the current .max file to the batch conversion target directory to complete the coordinate conversion of the current 3Ds Max model file, and then repeat the above steps to operate the next .max file. When the traversal of the batch conversion original directory is completed, the conversion of the entire batch of 3Ds Max model files is completed.
[0046] The present invention can efficiently perform coordinate conversion on 3Ds Max three-dimensional models, reduces data import and export links, does not cause model data information loss, and solves the complex problem that monomerized three-dimensional models under 3Ds Max need to be converted between different spatial references in applications. BRIEF DESCRIPTION OF THE DRAWINGS
[0047] Figure 1 It is the overall architecture diagram of the present invention.
[0048] Figure 2 It is the overall flow chart of the present invention. DETAILED DESCRIPTION
[0049] The present invention will be further described in detail below in conjunction with the accompanying drawings and specific embodiments.
[0050] like Figure 1 A method for coordinate conversion of a three-dimensional model of Autodesk 3Ds Max is shown. First, vertex coordinate information of the three-dimensional model is obtained through a plug-in P. Then, the obtained three-dimensional model coordinate information is transmitted through the plug-in P and a coordinate conversion system R, thereby realizing coordinate conversion.
[0051] like Figure 2 As shown, the method specifically comprises the following steps:
[0052] Step S1, constructing a 3Ds Max Utility Plugin-in type plug-in P;
[0053] Step S2: construct the coordinate transformation system R; the specific process is:
[0054] Step S21: define the same message tag in the system R and the plug-in P:
[0055] Message tag b: R requests 3D model information from P;
[0056] Message tag c: P sends 3D model information to R;
[0057] Message tag d: R sends the processed 3D model information to P;
[0058] Step S22: define the same structure in the system R and the plug-in P;
[0059] Define structure e: store the face, edge, vertex information and count of a single 3D model;
[0060] Define a structure f: store the list and count of e, that is, define a list of structure e in structure f to store multiple e type data.
[0061] During the running of the 3Ds Max plug-in, events and function calls are all carried out in the form of messages. Messages are defined using #define in C++ programming, which can be understood as defining a symbol to distinguish different messages. Messages b, c, and d can be understood as message tags, which are actually stored in integers, and different message values are not repeated. For example
[0062] #define WM_USER_QUERY_MODELS 10001
[0063] A message tag named WM_USER_QUERY_MODELS is defined, and its actual value is 10001. This tag can be used as a parameter for subsequent communication in programs or event calls. After receiving the message, the message recipient determines which operation needs to be performed based on the value of the message tag.
[0064] Message b: System R requests 3D model information from plug-in P. When plug-in P receives the message and parses it and determines that the message is marked as b, it knows that it is system R that is requesting the 3D model information, so it responds, organizes the 3D model data, and sends the data to system R in the form of a message according to the handle of system R, and adds the message tag c.
[0065] Message c: Plug-in P sends 3D model information to system R. When system R receives the message and parses it and determines that the message is marked as c, it knows that plug-in P sends the 3D data. Therefore, it parses the data attached to the message into 3D model data and performs coordinate conversion. After the conversion, the data is sent to plug-in P in the form of a message according to the handle of plug-in P, and the message mark d is added.
[0066] Message d: System R sends the processed 3D model information to plug-in P. When plug-in P receives the message and parses it, and determines that the message is marked as d, it knows that system R sends the data with completed coordinate conversion. Therefore, it parses the data attached to the message into 3D model data, and updates the model data in 3Ds Max based on this data.
[0067] Principle of coordinate conversion system: Write a form application based on Visual Studio C++, and define the same messages and structures as the 3Ds Max plug-in, so that the two can communicate with each other. Before each coordinate conversion, the coordinate conversion system R needs to set the following parameters:
[0068] Original coordinate system setting: set the coordinate system and local coordinate origin of the 3D model before coordinate conversion;
[0069] Target coordinate system setting: set the coordinate system and local coordinate origin after the 3D model coordinates are converted;
[0070] Coordinate transformation method selection: select the algorithm used for coordinate transformation, including conversion using public parameters, conversion using custom parameters, fitting seven parameters using same-name points, and calling the packaged coordinate transformation interface;
[0071] Coordinate conversion settings: Set the corresponding conversion parameters for each coordinate conversion method. In addition, if you need to convert the coordinates of batch 3ds Max files, set the batch conversion original directory and batch conversion target directory.
[0072] Step S3, initiating a coordinate conversion task in the system R, and sending a message tag b to the plug-in P;
[0073] Step S4, after receiving the message tag b, the plug-in P traverses all the three-dimensional models in the 3Ds Max file, generates a structure f, sends a message tag c to the system R, and passes the structure f as a parameter;
[0074] Step S5, after receiving the message tag c, the system R parses the structure f, calls the set message tag and structure, performs coordinate conversion on all vertex information, generates a new structure f', and sends the message tag d to the plug-in P, passing the structure f' as a parameter;
[0075] Step S6: After receiving the message tag d, the plug-in P parses the structure f', updates the parsed 3D model information, and updates all 3D model vertex information in 3Ds Max, that is, completes the coordinate conversion of the 3Ds Max file in the system R.
[0076] The coordinate conversion of 3Ds Max files includes the conversion of the coordinates of a single 3Ds Max file or the conversion of the coordinates of batches of 3Ds Max files.
[0077] Coordinate conversion of a single 3Ds Max file: only process the .Max file currently opened in 3Ds Max, including the following steps:
[0078] Step A1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, and set various parameters in the coordinate transformation system R;
[0079] Step A2: Convert the current 3Ds Max model coordinates. The specific process is as follows:
[0080] Open the .max file in 3Ds Max, load the 3D model, start coordinate conversion, and the coordinate conversion model requests the 3D model information from the plugin P;
[0081] After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R;
[0082] After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P.
[0083] After receiving the 3D model information after coordinate conversion, the plug-in P updates the 3D model in the 3Ds Max scene, thereby completing the coordinate conversion of a single 3Ds Max file.
[0084] Coordinate conversion of batch 3Ds Max files: Process batch .Max files, including the following steps:
[0085] Step B1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, set various parameters in the coordinate transformation system R, wherein in the coordinate transformation settings, set the original directory to be batch converted and the batch conversion target directory;
[0086] Step B2: Batch convert 3Ds Max model files. The specific process is as follows:
[0087] In the coordinate conversion system R, the batch conversion original directory is traversed, and for each .max file in the directory, the 3Ds Max interface is called to automatically open the .max file, load the 3D model, and the coordinate conversion model requests the 3D model information from the plug-in P;
[0088] After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R;
[0089] After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P.
[0090] After receiving the 3D model information after coordinate conversion, plug-in P updates the 3D model in the 3Ds Max scene. After the update is completed, the 3Ds Max interface is called to save the current .max file to the batch conversion target directory to complete the coordinate conversion of the current 3Ds Max model file, and then repeat the above steps to operate the next .max file. When the traversal of the batch conversion original directory is completed, the conversion of the entire batch of 3Ds Max model files is completed.
[0091] Glossary and explanation:
[0092] Singulation: Singulation means that the object to be managed is an entity that can be selected individually, assigned attribute values and queried individually. The singulation in this article refers to three-dimensional models of buildings, public facilities, etc. Each three-dimensional model corresponds to an entity in the real world.
[0093] The present invention will be further described in detail below in conjunction with the embodiments.
[0094] Example:
[0095] (1) After the plug-in P is built, it is compiled. (Building the plug-in P is a prior art and will not be described here.) According to this example, R.dll and P.dlu, R.dll, P.dlu and p.dlu.mui files will be generated. This example uses the English version of 3Ds Max for development. p.dlu.mui will be stored in the en-US folder. All files and third-party dlls required by the program are copied to any computer with 3Ds Max installed that is consistent with the program development version. Copy them to the 3Ds Max installation directory, Plugin folder. The above steps can also be used to create an automatic installation program for packaging and automatic installation and copying. After the installation or copying is completed, the program directory structure should be similar to:
[0096]
[0097] (2) Start 3Ds Max, in the "Command Panel", activate the "Utilities" tab, use the "Configure Button Set" function, find the coordinate conversion plug-in you just installed, and add it to the "Utilities" panel. At this time, the "Coordinate Conversion" button (this text is customized when writing the plug-in) will appear in the "Utilities" panel.
[0098] (3) Click the "Coordinate Conversion" button, plug-in P initializes the coordinate conversion system R, system R obtains the handle of plug-in P and initializes the operation interface of system R. If successful, the handle of system R is returned to plug-in P.
[0099] (4) Coordinate conversion of a single .max file: Open the .max file that needs to be converted. In the coordinate conversion software interface, set the spatial reference (coordinate system) of the 3D model to be converted, set the target spatial reference for the coordinate conversion (to which coordinate system to convert), set the local coordinate origin of the current coordinate system, set the local coordinate origin of the customized target coordinate system (customizable or automatically calculated from the local coordinate origin of the current coordinate system), select the coordinate conversion method, and set the coordinate conversion parameter file;
[0100] Click the "Start current 3Ds Max coordinate conversion" button, then system R sends a message to plug-in P, the message is marked as b, and the message target is plug-in P; plug-in P receives the message and processes it, parses the message marked as b, generates a structure f for all the three-dimensional models in the current 3ds max, and sends a message c to system R, with the attached data f; after receiving the message, system R parses it and determines that the message is c, and the parsed data is structure f, then starts to call the set parameters, performs coordinate conversion on f, and generates f', which stores the three-dimensional model after the coordinate conversion. At this time, system R sends a message to plug-in P, the message is marked as d, and the attached data is f'. After receiving the message, plug-in P processes it and determines that the message is marked as d, parses the data f', and updates the three-dimensional model in the current software according to f'.
[0101] (5) Coordinate conversion of batch .max files: In the coordinate conversion software interface, set the spatial reference (coordinate system) of the 3D model to be converted, set the target spatial reference for the coordinate conversion (to which coordinate system to convert), set the local coordinate origin of the current coordinate system, set the local coordinate origin of the customized target coordinate system (customizable, or automatically calculated from the local coordinate origin of the current coordinate system), select the coordinate conversion method, set the coordinate conversion parameter file, set the path of the original 3ds max files to be batch converted, and set the path to save the batch of 3ds max files after the conversion is completed.
[0102] Click the "Start Batch 3Ds Max Coordinate Conversion Button", the program will traverse the path of the original 3ds max file, obtain the path of all .max files under the path, and perform the following operations for each .max file: open the .max file in the current 3dsmax software, at this time, the system R sends a message to the plug-in P, the message is marked as b, and the message target is plug-in P; plug-in P receives the message and processes it, parses the message marked as b, generates a structure f for all the three-dimensional models in the current 3ds max, and sends a message c to the system R, and the message is accompanied by data f; after receiving the message, the system R parses it and determines that the message is c, and the parsed data is structure f, and starts to call the set parameters, performs coordinate conversion on f, and generates f', f' stores the three-dimensional model after the coordinate conversion, at this time, the system R sends a message to the plug-in P, the message is marked as d, and the attached data is f', after receiving the message, the plug-in P processes it and determines that the message is marked as d, parses the data f', and updates the three-dimensional model in the current software according to f', and updates the current 3ds max file is saved as a new file, the save path is the batch conversion target path, and the file name is the same as the original file name. After the save is successful, continue to operate the next .max file until all .max files in the original directory are converted.
[0103] The above implementation modes are not limitations of the present invention, and the present invention is not limited to the above examples. Any changes, modifications, additions or substitutions made by technicians in this technical field within the scope of the technical solution of the present invention also belong to the protection scope of the present invention.
Claims
1. A method for transforming coordinates of a three-dimensional model in Autodesk 3Ds Max, characterized by: First, the vertex coordinate information of the three-dimensional model is obtained through the 3DsMax plug-in P, and then the plug-in P and the coordinate conversion system R transmit the above-obtained three-dimensional model coordinate information to realize the coordinate conversion; specifically, the following steps are included: Step S1, constructing a 3Ds Max Utility Plugin-in type plug-in P; Step S2, constructing a coordinate transformation system R; Step S3, initiating a coordinate conversion task in the system R, and sending a message tag b to the plug-in P; Step S4, after receiving the message tag b, the plug-in P traverses all the three-dimensional models in the 3Ds Max file, generates a structure f, sends a message tag c to the system R, and passes the structure f as a parameter; Step S5, after receiving the message tag c, the system R parses the structure f, calls the set message tag and structure, performs coordinate conversion on all vertex information, generates a new structure f', and sends the message tag d to the plug-in P, passing the structure f' as a parameter; Step S6: After receiving the message tag d, the plug-in P parses the structure f', updates the parsed 3D model information, and updates all 3D model vertex information in 3Ds Max, that is, completes the coordinate conversion of the 3Ds Max file in the system R.
2. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 1, characterized in that: In step S2, the specific process of constructing the coordinate transformation system R is: Step S21: define the same message tag in the system R and the plug-in P: Message tag b: R requests 3D model information from P; Message tag c: P sends 3D model information to R; Message tag d: R sends the processed 3D model information to P; Step S22: define the same structure in the system R and the plug-in P; Define structure e: store the face, edge, vertex information and count of a single 3D model; Define a structure f: store the list and count of e, that is, define a list of structure e in structure f to store multiple e type data.
3. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 2, characterized in that: In step S2, before each coordinate transformation, the coordinate transformation system R needs to set the following parameters: Original coordinate system setting: set the coordinate system and local coordinate origin of the 3D model before coordinate conversion; Target coordinate system setting: set the coordinate system and local coordinate origin after the 3D model coordinates are converted; Coordinate transformation method selection: select the algorithm used for coordinate transformation, including conversion using public parameters, conversion using custom parameters, fitting seven parameters using same-name points, and calling the packaged coordinate transformation interface; Coordinate conversion settings: For each coordinate conversion method, set the corresponding conversion parameters; in addition, if you need to perform coordinate conversion for batch 3Ds Max files, set the batch conversion original directory and batch conversion target directory.
4. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 1, characterized in that: In step S3, the coordinate conversion of the 3Ds Max file includes converting the coordinates of a single 3Ds Max file or converting the coordinates of a batch of 3Ds Max files.
5. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 4, characterized in that: In step S3, the coordinate conversion of a single 3Ds Max file: only the .Max file currently opened in 3Ds Max is processed, including the following steps: Step A1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, and set various parameters in the coordinate transformation system R; Step A2, convert the current 3Ds Max model coordinates.
6. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 5, characterized in that: The specific process of step A2 is as follows: Open the .max file in 3Ds Max, load the 3D model, start coordinate conversion, and the coordinate conversion model requests the 3D model information from the plugin P; After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R; After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P. After receiving the 3D model information after coordinate conversion, the plug-in P updates the 3D model in the 3Ds Max scene, thereby completing the coordinate conversion of a single 3Ds Max file.
7. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 4, characterized in that: In step S3, coordinate conversion of batch 3Ds Max files: processing batch .Max files includes the following steps: Step B1, initialization processing: in 3Ds Max, load the plug-in P, and use the plug-in P to start the coordinate transformation system R, set various parameters in the coordinate transformation system R, wherein in the coordinate transformation settings, set the original directory to be batch converted and the batch conversion target directory; Step B2, batch convert 3Ds Max model files.
8. The method for converting three-dimensional model coordinates of Autodesk 3Ds Max according to claim 7, characterized in that: The specific process of step B2 is: In the coordinate conversion system R, the batch conversion original directory is traversed, and for each .max file in the directory, the 3Ds Max interface is called to automatically open the .max file, load the 3D model, and the coordinate conversion model requests the 3D model information from the plug-in P; After receiving the request, the plug-in P traverses the 3D model in the 3Ds Max scene, generates customized 3D model information, and sends the structure to the coordinate transformation system R; After receiving the 3D model information, the coordinate conversion system R performs coordinate conversion on the 3D model vertex coordinates. When all vertex coordinates are converted, the converted 3D model information is obtained and sent to the plug-in P. After receiving the 3D model information after coordinate conversion, plug-in P updates the 3D model in the 3Ds Max scene; after the update is completed, the 3Ds Max interface is called to save the current .max file to the batch conversion target directory to complete the coordinate conversion of the current 3DsMax model file, and then repeat the above steps to operate the next .max file. When the traversal of the batch conversion original directory is completed, the conversion of the entire batch of 3Ds Max model files is completed.
Citation Information
Patent Citations
Method for generating three-dimensional attitude estimation data set
CN111739137A