Method and system for outputting two-dimensional plane based on three-dimensional scene

By using the blueprint node and primitive library matching technology of the UE engine, 3D scene data is converted into editable DXF format 2D planar graphic files, which solves the problem that 3D models cannot output spatial location information and improves the design iteration and engineering collaborative application capabilities of 3D models.

CN121280221AActive Publication Date: 2026-01-06JIANGSU ZHUANZHU ZHILIAN TECHNOLOGY CO LTD
View PDF 4 Cites 0 Cited by

Patent Information

Application Number
CN202511454628.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-10-13
Publication Date
2026-01-06
Estimated Expiration
2045-10-13

AI Technical Summary

Technical Problem

Existing 3D visualization engines, such as UE Engine, cannot output editable 2D planar graphic files in the packaged executable program. This results in the 3D model not being able to carry accurate spatial location information and dimensional parameters, which limits subsequent design iterations and collaborative engineering applications.

Method used

By utilizing the blueprint nodes of the UE engine to perform batch scanning and extraction of 3D objects, and through primitive library matching and secondary adjustment mechanisms, the 3D scene data is converted into a 2D planar graphic file in DXF format that can be recognized by the CAD system, thereby achieving accurate output of spatial layout.

Benefits of technology

It achieves accurate mapping and spatial restoration of 3D models to CAD primitives, supports one-to-one correspondence between component types and graphic components, and improves the reusability of design iteration, engineering collaboration and multi-platform integration.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121280221A_ABST
    Figure CN121280221A_ABST
Patent Text Reader

Abstract

The invention discloses a method and system for outputting a two-dimensional plane based on a three-dimensional scene, and relates to the technical field of three-dimensional visualization, and the method comprises the steps: carrying out the precise mapping and spatial restoration of a three-dimensional scene component to a CAD (Computer Aided Design) primitive through a type field driven primitive matching mechanism and a component attribute data driven parameterized geometric transformation method, and obtaining a three-dimensional scene component; one-to-one correspondence from component types to graphic components is supported, automatic insertion, zooming and labeling are carried out in combination with spatial attributes such as positions, sizes and directions, and finally an editable two-dimensional plane CAD drawing is output in a standard DXF format, so that the reusability and engineering suitability of a three-dimensional modeling result in design iteration, engineering collaboration and multi-platform integration are remarkably improved, and the construction efficiency is improved. And the core technical defects of non-editability and the like caused by traditional engine image output are overcome.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of 3D visualization technology, and more specifically to a method and system for outputting a 3D scene into a 2D plane. Background Technology

[0002] In industrial digital twin applications, simulation or maintenance scenarios are typically modeled and reconstructed using 3D visualization engines such as UE Engine, and run as packaged executable programs (EXE). These are widely used in typical scenarios such as scene reproduction, data visualization, and virtual display. However, current mainstream 3D engines, represented by UE, only support outputting 3D scene layouts as 2D planar images in packaged runtime environments, and cannot generate editable and reusable 2D planar graphic files. This limitation restricts the engineering application of 3D models in subsequent design adjustments, engineering collaboration, and cross-system data integration, becoming a key technical bottleneck in industrial digital twin systems.

[0003] Currently, mainstream 3D visualization engines, such as the UE engine, only support outputting 3D scene layouts as 2D planar images in their packaged executable programs (EXE). They lack the ability to output layout results in virtual 3D space as editable 2D planar graphic files (such as DXF). This technical limitation means that the 3D scenes built in the EXE program cannot carry accurate spatial location information and size parameters during the output process. Consequently, it cannot meet the actual needs of subsequent design iterations, engineering collaboration, and multi-system data sharing, severely restricting the in-depth expansion of industrial digital twin systems in cross-platform and cross-stage collaborative applications.

[0004] Therefore, how to propose a method and system for outputting a three-dimensional scene into a two-dimensional plane, and solve the problem that traditional three-dimensional scenes usually generate image content when outputting as two-dimensional plane files, lacking spatial location information and size data, is a problem that those skilled in the art urgently need to solve. Summary of the Invention

[0005] In view of this, the present invention provides a method and system for outputting a three-dimensional scene into a two-dimensional plane, overcoming the inability of existing three-dimensional visualization engines, especially virtual reality platforms represented by the UE engine, to output real-time built three-dimensional scenes as editable two-dimensional planar graphic files in their packaged executable programs (EXE). A method for generating editable two-dimensional planar graphic files suitable for CAD software is proposed. The spatial layout data in the virtual scene is structured and converted into vector components recognizable by the CAD system, realizing the engineering graphic output of the three-dimensional model. This overcomes the problem that two-dimensional planar images cannot accurately obtain spatial location information and dimensional data. To achieve the above objectives, the present invention adopts the following technical solution: A method for outputting a 3D scene as a 2D plane includes: Using the blueprint nodes provided by the UE engine, batch scanning and extraction of loaded 3D objects are performed to collect scene data. The corresponding graphic component in the preset primitive library is searched based on the type field of the collected 3D object. After the graphic component is successfully retrieved from the graphic element library, a unified secondary adjustment mechanism for the graphic component is executed to perform the positioning, transformation and information annotation of the component graphic elements in the drawing space. The image data processed by the secondary adjustment mechanism is output in a structured format according to the DXF standard.

[0006] Optionally, the step of using the blueprint nodes provided by the UE engine to perform batch scanning and extraction of loaded 3D objects includes: initializing the blueprint node Get All Actors Of Class to obtain all objects of the same type, obtaining rotation and spatial information and names through Get Transform and Get Object Name, and outputting a JSON file through Output data.

[0007] Optionally, the information collected includes the object's world coordinates, rotation information, scaling ratio, and object type identifier.

[0008] Optionally, the primitive library is a static resource collection containing graphical components organized according to type.

[0009] Optionally, each graphical component has a unique identifier that can be indexed by the object's type field.

[0010] Optionally, the primitive library is used to construct the mapping relationship between type fields and graphic components. The script reads the JSON file, retrieves "type_id":"line wall", and uses the Matchmapping embedded method to find the primitive in the primitive library that matches "type_id" with "line wall".

[0011] Optionally, it also includes the option to retrieve the graphic element for drawing insertion when the object's type field successfully locates the corresponding resource in the graphic element library; if no entry is found, a general placeholder graphic is used by default to ensure the structural integrity of the output graphic data.

[0012] Optionally, the secondary adjustment mechanism for the graphics component includes: Based on the world coordinates collected from the scene data, determine the insertion base point of the graphic component in the CAD drawing; Extract the rotation angle from the scene data collection and set it as the insertion angle of the primitive to keep the components facing the same direction; Read the length, width, and height dimensions of the scene data and combine them with the original dimensions of the graphic components in the component library to calculate the scaling ratio of each axis, keeping the graphic element size consistent with the actual component ratio; Read the type field of the default object from the scene data collection and generate text based on the center position of the scene primitive.

[0013] Optionally, the step of structurally outputting the image data processed by the secondary adjustment mechanism in the DXF standard format includes: generating a vector CAD drawing file with a visual structure and attribute annotations from the generated drawing data.

[0014] Optionally, a system for outputting a three-dimensional scene into a two-dimensional plane includes: Acquisition module: Used to scan and extract loaded 3D objects in batches using the blueprint nodes provided by the UE engine, and to acquire scene data; Search module: Used to search for the corresponding graphic component in the preset primitive library based on the type field of the acquired 3D object; Secondary adjustment module: After the graphic component is successfully retrieved from the graphic element library, it executes a unified secondary adjustment mechanism for the graphic component, and performs positioning, transformation and information annotation of the component graphic elements in the drawing space; Output module: Used to output the image data processed by the secondary adjustment mechanism in a structured manner according to the DXF standard format.

[0015] As can be seen from the above technical solutions, compared with the prior art, the present invention discloses a method and system for outputting a three-dimensional scene into a two-dimensional plane, which has the following beneficial effects: This invention proposes a method for outputting a 3D scene as a 2D plane, comprising: using blueprint nodes provided by the UE engine to perform batch scanning and extraction of loaded 3D objects to collect scene data; searching for corresponding graphic components in a preset primitive library based on the type field of the collected 3D objects; after the graphic components are successfully retrieved from the primitive library, executing a unified secondary adjustment mechanism for the graphic components to perform positioning, transformation, and information annotation of the component primitives in the drawing space; and outputting the graphic data processed by the secondary adjustment mechanism in a structured format according to the DXF standard. This invention differs from existing techniques based on 3D visualization engines such as the UE engine that only output 2D planar images in the packaged EXE program. By using a type field-driven primitive matching mechanism and a component attribute data-driven parametric geometric transformation method, the system achieves accurate mapping and spatial restoration of 3D scene components to CAD primitives. It supports one-to-one correspondence between component types and graphic components, and automatically inserts, scales, and annotates based on spatial attributes such as position, size, and orientation. Finally, it outputs editable 2D planar CAD drawings in standard DXF format, significantly improving the reusability and engineering adaptability of 3D modeling results in design iteration, engineering collaboration, and multi-platform integration. It overcomes the core technical defects of traditional engine image output, such as the lack of editability. Attached Figure Description

[0016] To more clearly illustrate the technical solutions in the embodiments of the present invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on the provided drawings without creative effort.

[0017] Figure 1 This invention provides a structural framework diagram for a method of outputting a three-dimensional scene into a two-dimensional plane.

[0018] Figure 2 The schematic diagram of the scene data acquisition technology provided by this invention.

[0019] Figure 3 The schematic diagram of the CAD conversion technology provided by this invention. Detailed Implementation

[0020] The technical solutions of the embodiments of the present invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of the present invention.

[0021] This invention discloses a method for outputting a three-dimensional scene into a two-dimensional plane, comprising: Using the blueprint nodes provided by the UE engine, batch scanning and extraction of loaded 3D objects are performed to collect scene data. The corresponding graphic component in the preset primitive library is searched based on the type field of the collected 3D object. After the graphic component is successfully retrieved from the graphic element library, a unified secondary adjustment mechanism for the graphic component is executed to perform the positioning, transformation and information annotation of the component graphic elements in the drawing space. The image data processed by the secondary adjustment mechanism is output in a structured format according to the DXF standard.

[0022] Furthermore, the method of using the blueprint nodes provided by the UE engine to perform batch scanning and extraction of loaded 3D objects includes: initializing the blueprint node GetAllActorsOfClass, obtaining all objects of the same type, obtaining rotation and spatial information and names through GetTransform and GetObjectName, and outputting a JSON file through Outputdata.

[0023] Furthermore, the collected information includes the object's world coordinates, rotation information, scaling ratio, and object type identifier.

[0024] Furthermore, the graphic element library is a static resource collection containing graphic components organized according to type.

[0025] Furthermore, each graphical component has a unique identifier that can be indexed by the object's type field.

[0026] Furthermore, the primitive library is used to construct the mapping relationship between type fields and graphic components. The script reads the JSON file, retrieves "type_id":"line wall", and uses the Matchmapping embedded method to find the primitive in the primitive library that matches "type_id" with "line wall".

[0027] Furthermore, it also includes the following: when the type field of an object successfully locates the corresponding resource in the primitive library, the primitive is retrieved for drawing insertion; if no entry is found, a general placeholder graphic is used by default to ensure the structural integrity of the output graphic data.

[0028] Furthermore, the secondary adjustment mechanism for the graphics component includes: Based on the world coordinates collected from the scene data, determine the insertion base point of the graphic component in the CAD drawing; Extract the rotation angle from the scene data collection and set it as the insertion angle of the primitive to keep the components facing the same direction; Read the length, width, and height dimensions of the scene data and combine them with the original dimensions of the graphic components in the component library to calculate the scaling ratio of each axis, keeping the graphic element size consistent with the actual component ratio; Read the type field of the default object from the scene data collection and generate text based on the center position of the scene primitive.

[0029] Furthermore, the step of structurally outputting the image data processed by the secondary adjustment mechanism in the DXF standard format includes: generating a vector CAD drawing file with a visual structure and attribute annotations from the generated drawing data.

[0030] In a specific implementation, a method for outputting a three-dimensional scene into a two-dimensional plane has the following structural framework: Figure 1 As shown, this is the output of data scene processing and CAD conversion.

[0031] Specifically, the scene data processing includes: (1) Use the blueprint nodes provided by the UE engine to perform batch scanning and extraction of the 3D objects loaded in the Level.

[0032] The specific solution is as follows: Use the Blueprint node GetAllActorsOfClass to retrieve all objects of the same type, and then use GetTransform and GetObjectName to obtain rotation, spatial information, and names. Finally, output a JSON file using OutputData.

[0033] (2) The core information collected includes the world coordinates, rotation information, scaling ratio, and object type identifier of the object. The structural principle of scene data acquisition technology is as follows: Figure 2 As shown.

[0034] Specifically, the CAD conversion includes: (1) Type-driven primitive template selection mechanism: This mechanism is based on the type field (type_id) of component objects collected from the 3D scene. It uses this field to find the corresponding graphic component in the pre-defined primitive library, thus achieving accurate representation of component primitives in CAD drawings. The primitive library is a static resource collection containing graphic components organized by type, such as blocks, template primitives, or standard symbols. Each graphic component has a unique identifier and can be accurately indexed by the type_id field. The organizational structure of the primitive library is pre-configured by the developer to build the mapping relationship between the type field and the graphic components. The specific technical solution is as follows: The script reads a JSON file, searches for "type_id":"line wall", and uses the Matchmapping embedded method to find the corresponding graphic element in the graphic element library whose "type_id" matches "line wall".

[0035] When the type_id is successfully located in the primitive library, the primitive is retrieved for drawing insertion; if no entry is found, a general placeholder graphic (such as a square) is used by default to ensure the structural integrity of the output graphic data.

[0036] (2) Secondary Adjustment Mechanism for Graphical Components: After a graphic component is successfully retrieved from the element library, a unified secondary adjustment mechanism for the graphic component is executed to complete the positioning, transformation, and information annotation of the component elements in the drawing space. This mechanism includes the following processing: 1) Determine the insertion base point of the graphic component in the CAD drawing based on the world coordinates collected from the scene data; the specific solution is as follows: The script reads "Location":[6023.0068359375,1073.8811035156,458.5], which is the scene's world coordinates. Then, it multiplies these coordinates by 10 using the Mapping built-in function. Next, it removes the Z-coordinate of 458.5 and finally inserts the drawing data base point using the Point insertion function.

[0037] 2) Extract the rotation angle (usually around the Z-axis) from the scene data acquisition and set it as the insertion angle of the primitive to keep the components facing the same direction; the specific solution is as follows: The script reads "Rotation":[33.2,0,90], which is the rotation coordinate of the world scene. Since the world scene has multiple transformation directions, the angle needs to be calculated by Rotation transformation to ensure that the components are facing the same direction.

[0038] 3) Read the length, width, and height dimensions from the scene data collection, and combine them with the original dimensions of the graphic components in the component library to calculate the scaling ratio for each axis, ensuring that the element dimensions are consistent with the actual component ratio. The specific solution is as follows: The script reads "BoxSize":[12046.013671875,2147.7622070312,917.0], which represents the length, width, and height dimensions. Since the drawing dimensions and the world scene dimensions are mismatched, they need to be multiplied by 10 using the Size optimization function, and the Z-coordinate of 917.0 needs to be removed. This ensures that the element dimensions match the actual component scale.

[0039] 4) Read the default type_id field from the scene data collection and generate text based on the center position of the scene elements. The specific solution is as follows: The script retrieves "Name":"Line Wall-1", and uses the embedded text generation method to first divide the coordinates by two to obtain the midpoint, and then generates the corresponding text.

[0040] Specifically, the processed image data is output in a structured format according to the DXF standard, such as... Figure 3 As shown, the specific solution is as follows: The previously generated drawing data is used to generate a standard DXF file through a third-party library; Generate vector CAD drawing files with visualized structure and attribute annotations, realizing a closed-loop conversion from 3D scenes to 2D CAD.

[0041] In a specific implementation, a system for outputting a three-dimensional scene as a two-dimensional plane includes: Acquisition module: Used to scan and extract loaded 3D objects in batches using the blueprint nodes provided by the UE engine, and to acquire scene data; Search module: Used to search for the corresponding graphic component in the preset primitive library based on the type field of the acquired 3D object; Secondary adjustment module: After the graphic component is successfully retrieved from the graphic element library, it executes a unified secondary adjustment mechanism for the graphic component, and performs positioning, transformation and information annotation of the component graphic elements in the drawing space; Output module: Used to output the image data processed by the secondary adjustment mechanism in a structured manner according to the DXF standard format.

[0042] The various embodiments in this specification are described in a progressive manner, with each embodiment focusing on its differences from other embodiments. Similar or identical parts between embodiments can be referred to interchangeably. For the apparatus disclosed in the embodiments, since they correspond to the methods disclosed in the embodiments, the description is relatively simple; relevant parts can be referred to the method section.

[0043] The above description of the disclosed embodiments enables those skilled in the art to make or use the invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the invention. Therefore, the invention is not to be limited to the embodiments shown herein, but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.

Claims

1. A method for outputting a three-dimensional scene onto a two-dimensional plane, characterized by, The method comprises the following steps: Using the blueprint node provided by the UE engine, batch scanning and extracting the loaded three-dimensional objects to collect scene data; Based on the type field of the collected three-dimensional objects, searching for the corresponding graphic components in the preset primitive library; After the graphic components are successfully pulled from the primitive library, performing a unified secondary adjustment mechanism of the graphic components to position, transform and information label the component primitives in the drawing space; The primitive data processed by the secondary adjustment mechanism is output in a structured format according to the DXF standard.

2. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 1, characterized in that, The batch scanning and extraction of the loaded three-dimensional objects using the blueprint node provided by the UE engine comprises the following steps: initializing the blueprint node GetAll Actors Of Class, obtaining all objects of the same type, and obtaining rotation and spatial information and name through Get Transform and GetObjectName, and outputting a json file through Output data.

3. The method of claim 1, wherein, The collected information includes the world coordinates, rotation information, scaling ratio and object type identification of the object.

4. The method of claim 1, wherein, The primitive library is a static resource set containing graphic components organized by type.

5. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 4, characterized in that, Each graphic component has a unique identification and can be indexed by the type field of the object.

6. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 1, wherein, The primitive library is used to build the mapping relationship between the type field and the graphic component. The script reads the json file, retrieves "type_id":"line wall", and finds the primitive corresponding to "line wall" in the primitive library through the Matchmapping embedded method.

7. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 6, characterized in that, When the type field of the object is successfully located in the primitive library, the primitive is pulled for drawing insertion; if no entry is hit, a general placeholder graphic is used by default to ensure the structural integrity of the graphic data output.

8. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 1, wherein, The secondary adjustment mechanism of the graphic component comprises the following steps: According to the world coordinates of the scene data collection, determine the insertion base point of the graphic component in the CAD drawing; Extract the rotation angle of the scene data collection and set it as the insertion angle of the primitive to keep the component orientation consistent; Read the length, width and height dimensions of the scene data collection, and calculate the scaling ratio of each axis based on the original size of the graphic component in the component library to keep the primitive size consistent with the actual component proportion; Read the default object type field of the scene data collection and generate text based on the scene primitive center position.

9. The method of outputting a three-dimensional scene based on a two-dimensional plane according to claim 1, wherein, The structured output of the primitive data processed by the secondary adjustment mechanism according to the DXF standard format comprises the following steps: generating the drawing data to form a vector CAD drawing file with visual structure and attribute label.

10. A system for outputting a three-dimensional scene into a two-dimensional plane, characterized in that, The method comprises the following steps: The acquisition module is used to utilize the blueprint node provided by the UE engine to batch scan and extract the loaded three-dimensional objects to collect scene data; The search module is used to search for the corresponding graphic components in the preset primitive library based on the type field of the collected three-dimensional objects; The secondary adjustment module is used to perform a unified secondary adjustment mechanism of the graphic components after the graphic components are successfully pulled from the primitive library to position, transform and information label the component primitives in the drawing space; Output module: used for structuring the output of the graphic data processed by the secondary adjustment mechanism according to the DXF standard format.

Citation Information

Patent Citations

  • Method for converting two-dimensional building image into three-dimensional structure

    CN104318607A

  • Substation secondary drawing visual editing and digital configuration device and method and application

    CN115238428A

  • Quick conversion method and device for three-dimensional model scene data and CAD drawing based on DXF file technology

    CN115758494A

  • Method and system for adjusting and optimizing drawing surface from three-dimensional engineering drawing to two-dimensional drawing

    CN117372245A