Linkage processing method, device and equipment based on 3D scene and 2D drawing

By previewing construction renderings in real time within the 3D scene design interface, the problem of the disconnect between the design and drawing stages is solved, realizing "designing and previewing simultaneously," which improves the efficiency and user experience of interior design.

CN121600183APending Publication Date: 2026-03-03HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202511841861.7
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-12-08
Publication Date
2026-03-03

AI Technical Summary

Technical Problem

In current interior design, the design phase and the drawing phase are separated, resulting in a disconnect between design intent and construction expression, long design cycles, low efficiency, and increased risk of human error.

Method used

By displaying the design scene in the main viewport of the 3D scene design interface and previewing the construction renderings in real time in the secondary viewport, the "design and preview simultaneously" approach is achieved. This brings the generation of construction renderings to the design stage and uses data binding and rendering technologies to obtain and display the 2D renderings corresponding to 3D objects.

Benefits of technology

It achieves synchronization between design intent and construction expression, significantly improves the design efficiency of construction drawings, reduces design cycle and risk of human error, and enhances user experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN121600183A_ABST
    Figure CN121600183A_ABST
Patent Text Reader

Abstract

The invention provides a linkage processing method, device and equipment based on a 3D scene and a 2D drawing. The method comprises the following steps: displaying a first design scene in a main window area of a three-dimensional scene design interface; the first design scene comprises a plurality of initial 3D objects; in response to an opening operation of a construction effect previewing function, entering a previewing state, and executing a first data binding operation; wherein two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained after the first data binding operation; executing a first rendering operation to display a target construction effect picture of the first design scene in a slave window area of the three-dimensional scene design interface; wherein the target construction effect picture is a two-dimensional image and comprises a two-dimensional effect picture corresponding to each initial 3D object; the 2D effect picture corresponding to each initial 3D object is obtained by rendering the 2D data corresponding to each initial 3D object.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This disclosure relates to the field of data processing technology, and in particular to a method, apparatus, and equipment for the linkage processing of 3D scenes and 2D drawings. Background Technology

[0002] The existing interior design process includes a design phase and a drawing phase. In the design phase, users can use 2D or 3D modeling tools to complete the construction of spatial layout, building structure, hard decoration style and furniture models. In the drawing phase, based on the 3D model designed in the design phase, construction renderings with multiple perspectives (such as floor plans, elevations and sections) are generated. Furthermore, information such as dimensions and materials can be marked. Users can also manually adjust or add or delete annotation details, and finally output a complete set of construction renderings.

[0003] However, the current common practice of separating the design phase from the drawing phase leads to a serious disconnect between the user's design intent and the construction expression (such as the drawing effect). Moreover, when adjustments are needed, it is necessary to frequently switch between the design phase and the drawing phase. This not only significantly prolongs the design cycle and increases the risk of human error, but also seriously affects the overall design efficiency. Summary of the Invention

[0004] This disclosure provides a method, apparatus, and device for the linked processing of 3D scenes and 2D drawings, to solve or alleviate one or more technical problems in the prior art.

[0005] Firstly, this disclosure provides a method for the linked processing of 3D scenes and 2D drawings, including: The first design scene is displayed in the main viewport area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects. In response to the activation of the preview construction effect function, the system enters the preview state and performs the first data binding operation; wherein, after the first data binding operation, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained; Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface; wherein, the target construction effect diagram is a two-dimensional image, which includes 2D effect diagrams corresponding to each initial 3D object; the 2D effect diagrams corresponding to each initial 3D object are obtained by rendering the two-dimensional data corresponding to each initial 3D object.

[0006] Secondly, this disclosure provides a linkage processing device based on 3D scenes and 2D drawings, including: The display unit is used to display the first design scene in the main viewport area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects. The data binding unit is used to respond to the activation of the preview construction effect function, enter the preview state, and perform the first data binding operation; wherein, after the first data binding operation, it can obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; A rendering unit is used to perform a first rendering operation to obtain a target construction effect diagram of the first design scene; wherein, the target construction effect diagram is a two-dimensional image, which includes 2D effect diagrams corresponding to each initial 3D object; the 2D effect diagrams corresponding to each initial 3D object are obtained by rendering the two-dimensional data corresponding to each initial 3D object. The display unit is also used to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0007] Thirdly, an electronic device is provided, comprising: At least one processor; and The memory is communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform any of the methods described in the present disclosure.

[0008] Fourthly, a non-transitory computer-readable storage medium is provided storing computer instructions, wherein the computer instructions are used to cause the computer to perform any of the methods according to embodiments of the present disclosure.

[0009] Fifthly, a computer program product is provided, including a computer program that, when executed by a processor, implements any of the methods according to embodiments of the present disclosure.

[0010] The beneficial effects of the technical solution provided in this disclosure include at least the following: In this way, after enabling the preview construction effect function, the present solution can quickly obtain the two-dimensional data corresponding to each initial 3D object in the first design scene by performing the first data binding operation, and then perform rendering processing to obtain the 2D effect diagram corresponding to each initial 3D object. Thus, while designing the scene in the main window area, the corresponding construction effect diagram can be previewed in real time in the secondary window area. This breaks the existing design mode that separates the design stage and the drawing stage, puts the generation step of the construction effect diagram forward to the design stage, and realizes the "design and preview at the same time" effect. This effectively solves the problem of the disconnect between design intent and construction expression, thereby significantly improving the design efficiency of construction drawings.

[0011] It should be understood that the description in this section is not intended to identify key or essential features of the embodiments of this disclosure, nor is it intended to limit the scope of this disclosure. Other features of this disclosure will become readily apparent from the following description. Attached Figure Description

[0012] In the accompanying drawings, unless otherwise specified, the same reference numerals throughout the various drawings denote the same or similar parts or elements. These drawings are not necessarily drawn to scale. It should be understood that these drawings depict only some embodiments provided according to this disclosure and should not be construed as limiting the scope of this disclosure.

[0013] Figure 1 This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 1 ; Figures 2(a) and 2(b) are schematic diagrams of a three-dimensional scene design interface according to an embodiment of this application; Figure 2(c) is an operational schematic diagram of a construction effect image type in a window area of ​​a three-dimensional scene design interface according to an embodiment of the present application; Figure 2(d) is an operational schematic diagram of the window layout between the main viewport and the secondary viewport of a three-dimensional scene design interface according to an embodiment of this application; Figures 2(e) and 2(f) are schematic diagrams illustrating the effect of the window layout between the main viewport and the secondary viewport of a three-dimensional scene design interface according to an embodiment of this application; Figure 3 This is a schematic flowchart of a method for linking 3D scenes and 2D drawings according to an embodiment of this application; Figure 4 This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 3 ; Figure 5 This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 4 ; Figure 6 This is a functional schematic diagram of a linkage processing system based on 3D scenes and 2D drawings according to an embodiment of this application; Figure 7 This is a schematic diagram of the structure of a linkage processing device based on 3D scenes and 2D drawings according to an embodiment of this application; Figure 8 This is a block diagram of an electronic device used to implement the linkage processing method based on 3D scenes and 2D drawings in the embodiments of this disclosure. Detailed Implementation

[0014] The present disclosure will now be described in further detail with reference to the accompanying drawings. The same reference numerals in the drawings denote elements that have the same or similar functions. Although various aspects of embodiments are shown in the drawings, they are not necessarily drawn to scale unless specifically indicated otherwise.

[0015] Furthermore, to better illustrate this disclosure, numerous specific details are set forth in the following detailed description. Those skilled in the art will understand that this disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art have not been described in detail in order to highlight the main points of this disclosure.

[0016] It should be noted that separating the design phase from the drawing phase has the following problems: First, the lack of real-time design-drawing: users cannot preview the construction drawing effect simultaneously during the 3D modeling stage. They need to manually trigger the generation of construction drawings after completing all the designs, resulting in a disconnect between the design intent and the construction expression.

[0017] Secondly, the high cost of switching between multiple environments: Details revealed in the construction renderings (such as inaccurate dimensions, overlapping annotations, and component conflicts) require returning to the modeling environment for modification, and then regenerating the construction renderings for verification. This process necessitates repeatedly switching between operating interfaces, creating a closed-loop delay of "modeling → drawing → rework," significantly reducing work efficiency.

[0018] Third, the design cycle is lengthy: In complex projects, minor adjustments may cause a chain reaction of problems in multiple views (such as wall changes affecting the ceiling layout), and the segmented process forces designers to switch environments frequently, increasing the design iteration cycle and the risk of human error.

[0019] Based on this, the present disclosure provides a method for the linked processing of 3D scenes and 2D drawings (i.e., construction renderings, or construction drawings). This method involves designing the scene in the main viewport of the 3D scene design interface, that is, designing in the main viewport of the 3D scene design interface. Simultaneously, the corresponding construction rendering is previewed in real-time in the secondary viewport. In other words, the construction rendering of the current design is simultaneously displayed in the secondary viewport of the 3D scene design interface. This breaks the design pattern of separating the design stage from the drawing stage, bringing the generation of construction renderings forward to the design stage and achieving the function of "designing and previewing simultaneously." This solves the problem of the disconnect between design intent and construction expression, improving work efficiency. Furthermore, for complex designs, it effectively avoids the risk of human error caused by repeatedly switching operating interfaces, reduces the design iteration cycle, and thus significantly improves the design efficiency of construction drawings.

[0020] Specifically, Figure 1This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 1 This method can be optionally applied to electronic devices, such as personal computers, servers, server clusters, and other electronic devices.

[0021] Furthermore, the method includes at least a portion of the following: For example... Figure 1 As shown, it includes: Step S101: Display the first design scene in the main view area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects.

[0022] Here, in one example, the initial 3D object may be specifically a three-dimensional model; further, the three-dimensional model includes, but is not limited to, at least one of the following: walls, sofas, beds, coffee tables, TV cabinets, etc., and this disclosure does not impose any specific limitations on this.

[0023] Step S102: In response to the activation of the preview construction effect function, enter the preview state and perform the first data binding operation.

[0024] Here, after the first data binding operation, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained.

[0025] Step S103: Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0026] Here, the target construction effect image is a two-dimensional image, which includes the 2D effect image corresponding to each initial 3D object; the 2D effect image corresponding to each initial 3D object is obtained by rendering the two-dimensional data corresponding to each initial 3D object.

[0027] It should be noted that after entering the preview state, firstly, the first data binding is performed to obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; secondly, the obtained two-dimensional data corresponding to each initial 3D object is used for rendering processing (i.e., the first rendering operation is performed) to obtain the 2D rendering of each initial 3D object; finally, the 2D rendering of each initial 3D object is displayed in the viewport area, which is the target construction rendering. In this way, the design mode of separating the design stage and the drawing stage is broken, and the step of generating the construction rendering is brought forward to the design stage, realizing "designing and previewing simultaneously".

[0028] It should be noted that, since this disclosed solution enables "design and preview simultaneously", it can achieve a closed-loop process of "design → preview → revision → preview" for complex designs. In other words, users can preview the drawing effect in real time during the design and revision processes, without having to wait until the drawing stage to verify the effect, thus solving the problem of the disconnect between design intent and construction expression.

[0029] In this way, after enabling the preview construction effect function, the present solution can quickly obtain the two-dimensional data corresponding to each initial 3D object in the first design scene by performing the first data binding operation, and then perform rendering processing to obtain the 2D effect diagram corresponding to each initial 3D object. Thus, while designing the scene in the main window area, the corresponding construction effect diagram can be previewed in real time in the secondary window area. This breaks the existing design mode that separates the design stage and the drawing stage, puts the generation step of the construction effect diagram forward to the design stage, and realizes the "design and preview at the same time" effect. This effectively solves the problem of the disconnect between design intent and construction expression, thereby significantly improving the design efficiency of construction drawings.

[0030] Furthermore, since this disclosed solution advances the generation of construction renderings to the design stage and enables "design and preview simultaneously," it allows users to promptly identify potential details in the construction renderings (such as inaccurate dimensions, overlapping annotations, and component conflicts) during the design process through real-time preview, without having to wait until the final drawing stage to verify the effect. This is especially beneficial for complex designs, as it eliminates the need for users to repeatedly switch between operating interfaces (or operating environments). This effectively reduces the cost of environment switching, thereby shortening the design cycle of construction drawings. Moreover, it reduces the risk of human error caused by environment switching, thus improving the user's design experience.

[0031] For example, as shown in Figure 2(a), in one example, the 3D scene design interface includes a main viewport area and a secondary viewport area; wherein, the main viewport area is used to display the first design scene for which the user performs scene design on the scene design side, and the secondary viewport area is used to display the target construction effect diagram for the first design scene in the main viewport area; furthermore, in one example, the 3D scene design interface also includes a floor plan display area, which is used to display multiple floor plans for the user to select, such as displaying floor plans... Figure 1 Floor plan 2, etc.

[0032] In one example, firstly, the user selects a floor plan from the floor plan display area, for example, selecting a unit. Figure 1 In this case, the apartment type will be displayed in the main view area. Figure 1The system first sets up a design scenario (corresponding to the first design scenario); secondly, in response to the activation of the preview construction effect function, such as in response to the click of the "Drawing View" button, it enters the preview state and performs the first data binding operation to obtain the two-dimensional data corresponding to each initial 3D object in the first design scenario; finally, using the two-dimensional data corresponding to each initial 3D object, it quickly renders and processes the data to obtain the 2D effect diagram corresponding to each initial 3D object, such as obtaining the lamp opening size diagram corresponding to each initial 3D object (corresponding to the target construction effect diagram), and displays it in the viewport area.

[0033] Furthermore, in one example, as shown in Figure 2(b), the 3D scene design interface also includes a parameter setting area. In this way, the user can design the design scene displayed in the main view area in the parameter setting area to obtain the design scene required by the user. This area meets the user's customization needs, thereby improving the user's design experience.

[0034] Furthermore, in a specific example, the target construction rendering includes, but is not limited to, one of the following: floor plan, furniture dimension drawing, and comprehensive ceiling drawing, etc., and this disclosure does not impose any specific restrictions on this.

[0035] Taking the 3D scene design interface shown in Figure 2(a) as an example, users can select the construction effect diagram that needs to be displayed in real time in the viewport area by clicking the drawing type switch (i.e., the solid down triangle icon) button on the right side of "Light Fixture Opening Dimension Diagram". For example, in Figure 2(c), the drawing type to be previewed is "Furniture Dimension Diagram". At this time, the furniture dimension diagram corresponding to the first design scene is displayed in the viewport area.

[0036] Furthermore, in a specific example, the present disclosure can also adjust the window layout between the main window area and the secondary window area. For example, as shown in Figure 2(d), the user can click the window layout (i.e., the hollow lower triangle icon) button on the right side of the drawing view to select the desired window layout structure. For example, the selected window layout can be the left and right window shown in Figure 2(b), or the top and bottom window shown in Figure 2(e), or the large and small window shown in Figure 2(f), etc.

[0037] Here, this disclosed solution does not specify the display area and display position of the main window area and the secondary window area, and can be configured according to the actual situation.

[0038] Figure 3 This is a schematic flowchart of a method for linking 3D scenes and 2D drawings according to an embodiment of this application. This method can be optionally applied to electronic devices, such as personal computers, servers, server clusters, and other electronic devices. It is understood that the above... Figure 1 The related content of the method shown in Figure 2(f) can also be applied to this example, and the related content will not be described again in this example.

[0039] Furthermore, the method includes at least a portion of the following: For example... Figure 3 As shown, it includes: Step S301: Display the first design scene in the main view area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects.

[0040] It should be noted that the relevant content regarding the initial 3D object can be referred to the example above, and will not be repeated here.

[0041] Step S302: In response to the activation of the preview construction effect function, enter the preview state.

[0042] Step S303: Obtain the three-dimensional data of each initial 3D object from the first memory space.

[0043] Step S304: Determine the view configuration information required for each initial 3D object to be transformed from 3D space to 2D plane.

[0044] Here, the viewpoint configuration information of the initial 3D object represents the relevant information required to convert from 3D space to a 2D plane, such as including at least one of the following: the projection viewpoint information corresponding to the initial 3D object, the section plane information corresponding to the initial 3D object, and the projection plane information corresponding to the initial 3D object.

[0045] It should be noted that the execution order of steps S303 and S304 in this example can be interchanged. For example, step S304 can be executed first, followed by step S303, or they can be performed simultaneously. This disclosure does not impose any specific restrictions on this.

[0046] Step S305: Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space.

[0047] It should be noted that in this example, the first memory space is used to store the three-dimensional data of the 3D object; correspondingly, the second memory space is used to store the two-dimensional data of the 3D object used for rendering.

[0048] Step S306: Perform a first binding process on the three-dimensional data of the initial 3D object in the first memory space and the two-dimensional data corresponding to the initial 3D object in the second memory space to obtain the target mapping relationship and complete the first data binding operation.

[0049] Here, the target mapping relationship records the binding relationship between the three-dimensional data of the initial 3D object and the corresponding two-dimensional data. In other words, after completing the first data binding operation and obtaining the target mapping relationship, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained using this target mapping relationship. This facilitates the rapid determination of the corresponding two-dimensional data of the initial 3D object based on its three-dimensional data, improving data acquisition efficiency and thus providing strong support for improving rendering efficiency.

[0050] Step S307: Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0051] Here, the target construction effect image is a two-dimensional image, which includes the 2D effect image corresponding to each initial 3D object; the 2D effect image corresponding to each initial 3D object is obtained by rendering the two-dimensional data corresponding to each initial 3D object.

[0052] Furthermore, in a specific example, performing the first rendering operation described above may specifically include: Step S307-1: Using the target mapping relationship, obtain the two-dimensional data corresponding to each initial 3D object in the first design scene. For example, using the target mapping relationship, determine the two-dimensional data corresponding to each initial 3D object, and then quickly obtain the two-dimensional data corresponding to each initial 3D object from the second memory space.

[0053] Step S307-2: Obtain the style configuration information of each initial 3D object, and the initial object description information of each initial 3D object.

[0054] Here, the style configuration information specifically refers to the structured parameters associated with the 3D object and used to constrain its visual representation in a two-dimensional plane, such as line color, line width, and line type (e.g., solid line, dashed line, etc.). This facilitates the rendering of user-specified drawings, meeting users' personalized needs and thus enhancing their design experience.

[0055] In addition, in one example, the style configuration information may be the same or different for different 3D objects, and can be set according to actual needs. This disclosure does not make specific limitations on the specific settings of style configuration information.

[0056] Furthermore, the initial object description information specifically refers to quantitative information describing the objective existence of a 3D object in three-dimensional space, such as the geometric information (e.g., size) and positional information of the 3D object. This provides strong support for subsequent automatic annotation in the rendered drawings.

[0057] Step S307-3: Render the initial 3D objects based on their corresponding 2D data and style configuration information to obtain their corresponding 2D renderings; and generate their corresponding construction annotation information based on their initial object description information.

[0058] Here, in one example, the construction annotation information corresponding to the initial 3D object refers to a set of key information used to describe the size, position, and other key information of each component in the two-dimensional plane corresponding to the initial 3D object in the construction rendering (such as a two-dimensional construction drawing). This makes it easier for construction personnel to carry out construction based on this key information.

[0059] Step S307-4: Based on the 2D renderings corresponding to each initial 3D object and the construction annotation information corresponding to each initial 3D object, obtain the target construction rendering.

[0060] Thus, because this disclosed solution, in preview mode, binds the three-dimensional data of the initial 3D object with its corresponding two-dimensional data by performing the first data binding to obtain a target mapping relationship, this disclosed solution can quickly obtain the two-dimensional data corresponding to each initial 3D object in the first design scene using the target mapping relationship. This effectively improves the data acquisition efficiency and provides data support for subsequent rapid rendering. Furthermore, this disclosed solution can also use the obtained two-dimensional data corresponding to each initial 3D object to quickly render the corresponding 2D rendering, thereby obtaining the target construction rendering for user preview. In this way, it breaks the design mode that separates the design stage from the drawing stage, bringing the generation step of the construction rendering to the design stage, thereby realizing "designing and previewing simultaneously".

[0061] Furthermore, since this disclosed solution can also generate construction annotation information based on the initial object description information of each initial 3D object, and thus obtain a construction rendering carrying the construction annotation information, this disclosed solution effectively improves the annotation efficiency of construction drawings, thereby improving the design efficiency of construction drawings.

[0062] The following provides a more detailed explanation of this disclosed solution, combining two application scenarios: (1) Application Scenario 1: Adjusting 3D objects in the first design scenario Specifically, Figure 4This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 3 This method can be optionally applied to electronic devices, such as personal computers, servers, and server clusters. It is understood that the above... Figures 1 to 3 The methods shown can also be applied to this example, and the related content will not be elaborated further in this example.

[0063] Furthermore, the method includes at least a portion of the following: For example... Figure 4 As shown, it includes: Step S401: Display the first design scene in the main view area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects.

[0064] It should be noted that the relevant content regarding the initial 3D object can be referred to the example above, and will not be repeated here.

[0065] Step S402: In response to the activation of the preview construction effect function, enter the preview state.

[0066] Step S403: Obtain the three-dimensional data of each initial 3D object from the first memory space.

[0067] Step S404: Determine the view configuration information required for each initial 3D object to be transformed from 3D space to 2D plane.

[0068] It should be noted that the relevant information regarding viewpoint configuration can be found in the example above, and will not be repeated here.

[0069] Furthermore, the execution order of steps S403 and S404 in this example can be interchanged. For example, step S404 can be executed first, followed by step S403, or they can be performed simultaneously. This disclosure does not impose any specific restrictions on this.

[0070] Step S405: Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space.

[0071] It should be noted that the relevant content regarding the first memory space and the second memory space can be referred to the example above, and will not be repeated here.

[0072] Step S406: Perform a first binding process on the three-dimensional data of the initial 3D object in the first memory space and the two-dimensional data corresponding to the initial 3D object in the second memory space to obtain the target mapping relationship and complete the first data binding operation.

[0073] Here, the target mapping relationship records the binding relationship between the three-dimensional data of the initial 3D object and the corresponding two-dimensional data. In other words, after completing the first data binding operation and obtaining the target mapping relationship, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained using this target mapping relationship. This facilitates the rapid determination of the corresponding two-dimensional data of the initial 3D object based on its three-dimensional data, improving data acquisition efficiency and thus providing strong support for improving rendering efficiency.

[0074] Step S407: Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0075] Here, the target construction effect image is a two-dimensional image, which includes the 2D effect image corresponding to each initial 3D object; the 2D effect image corresponding to each initial 3D object is obtained by rendering the two-dimensional data corresponding to each initial 3D object.

[0076] Step S408: In preview state, in response to the adjustment operation for the first design scene, determine the adjusted first 3D object.

[0077] Here, the first 3D object is one of the multiple initial 3D objects contained in the first design scene.

[0078] Step S409: Perform the update operation of the target mapping relationship.

[0079] Here, the target mapping relationship after the update operation stores the binding relationship between the adjusted 3D data of the first 3D object and its corresponding 2D data. This allows for the rapid acquisition of the 2D data corresponding to the adjusted first 3D object using the target mapping relationship after the update operation, improving data acquisition efficiency and thus providing strong support for improving rendering efficiency.

[0080] Step S410: Perform a second rendering operation to update the target construction rendering in the viewport area.

[0081] Here, the updated target construction rendering includes the adjusted 2D rendering of the first 3D object. The adjusted 2D rendering of the first 3D object is obtained by rendering the two-dimensional data of the first 3D object in the target mapping relationship after the update operation.

[0082] In this way, after obtaining the target construction rendering, this disclosed solution will perform an update operation on the target mapping relationship for every adjustment operation of the 3D object in the first design scene. Then, by utilizing the updated target mapping relationship, the target construction rendering can be quickly updated. This breaks the design mode that separates the design stage from the drawing stage, and puts the generation step of the construction rendering to the design stage, thereby realizing a closed-loop process of "design → preview → rework → preview". This allows users to preview the drawing effect in real time without having to wait for the drawing stage to produce the drawing for effect verification, thus solving the problem of the disconnect between design intent and construction expression.

[0083] Moreover, since this disclosed solution can realize a closed-loop process of "design → preview → rework → preview" during the design phase, the user does not need to repeatedly switch the operating interface (or operating environment). This effectively reduces the switching cost of the operating interface, shortens the design cycle of construction drawings, and also reduces the risk of human error caused by environment switching, thereby significantly improving the design efficiency of construction drawings and enhancing the user's design experience.

[0084] Furthermore, in a specific example, the above-described operation of updating the target mapping relationship includes: Step S409-1: Determine the target object description information of the adjusted first 3D object.

[0085] Step S409-2: Based on the target object description information of the adjusted first 3D object, obtain the three-dimensional data of the adjusted first 3D object.

[0086] Furthermore, after obtaining the adjusted three-dimensional data of the first 3D object, the first memory space can be updated based on the adjusted three-dimensional data of the first 3D object.

[0087] Here, the target object description information of the first 3D object can be specifically obtained by adjusting the initial object description information of the first 3D object.

[0088] Step S409-3: Determine the view configuration information required for the adjusted first 3D object to be converted from 3D space to 2D plane.

[0089] It should be noted that the relevant information regarding viewpoint configuration can be found in the example above, and will not be repeated here.

[0090] Step S409-4: Call the data conversion function corresponding to the first 3D object, and obtain the two-dimensional data corresponding to the first 3D object based on the adjusted viewpoint configuration information and the adjusted three-dimensional data of the first 3D object.

[0091] Furthermore, after obtaining the adjusted two-dimensional data of the first 3D object, the second memory space can be updated based on the adjusted two-dimensional data of the first 3D object.

[0092] Step S409-5: Update the target mapping relationship based on the adjusted three-dimensional data of the first 3D object and the corresponding two-dimensional data of the first 3D object.

[0093] Thus, this disclosed solution provides a specific method for updating the target mapping relationship when adjusting the 3D object in the first design scene. This method uses the three-dimensional data of the adjusted first 3D object and the corresponding two-dimensional data of the adjusted first 3D object to update the target mapping relationship. This facilitates the subsequent use of the updated target mapping relationship to quickly obtain the corresponding two-dimensional data of the adjusted first 3D object, thereby improving data acquisition efficiency and providing strong support for improving rendering efficiency.

[0094] Furthermore, in a specific example, performing the second rendering operation described above includes: Step S410-1: Using the target mapping relationship after the update operation, obtain the two-dimensional data corresponding to the adjusted first 3D object.

[0095] Step S410-2: Obtain the style configuration information of the adjusted first 3D object.

[0096] It should be noted that the relevant content regarding style configuration information can be found in the example above, and will not be repeated here.

[0097] Step S410-3: Render the first 3D object based on the two-dimensional data and style configuration information of the first 3D object after adjustment to obtain the 2D rendering of the first 3D object after adjustment; and generate the construction annotation information of the first 3D object after adjustment based on the target object description information of the first 3D object.

[0098] It should be noted that the relevant content regarding construction labeling information can be found in the example above, and will not be repeated here.

[0099] Step S410-4: Update the target construction rendering based on the adjusted 2D rendering of the first 3D object and the construction annotation information corresponding to the adjusted first 3D object.

[0100] In this way, the disclosed solution can quickly obtain the two-dimensional data corresponding to the adjusted first 3D object by utilizing the target mapping relationship after the update operation, and then instantly render the corresponding 2D rendering to quickly update the target construction rendering. This allows users to preview the adjustment effect in real time without having to wait for the drawing stage to verify the effect. Moreover, the disclosed solution also utilizes the target object description information of the adjusted first 3D object to obtain the corresponding construction annotation information. Thus, while updating the view of the target construction rendering, the construction annotation information in the target construction rendering is also updated simultaneously, thereby improving the overall design efficiency and enhancing the user's design experience.

[0101] (2) Application Scenario 2: The situation of adding new objects to the first design scenario Specifically, Figure 5 This is an illustrative flowchart of a linkage processing method based on 3D scenes and 2D drawings according to an embodiment of this application. Figure 4 This method can be optionally applied to electronic devices, such as personal computers, servers, and server clusters. It is understood that the above... Figures 1 to 3 The methods shown can also be applied to this example, and the related content will not be elaborated further in this example.

[0102] Furthermore, the method includes at least a portion of the following: For example... Figure 5 As shown, it includes: Step S501: Display the first design scene in the main view area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects.

[0103] It should be noted that the relevant content regarding the initial 3D object can be referred to the example above, and will not be repeated here.

[0104] Step S502: In response to the activation of the preview construction effect function, enter the preview state.

[0105] Step S503: Obtain the three-dimensional data of each initial 3D object from the first memory space.

[0106] Step S504: Determine the view configuration information required for each initial 3D object to be transformed from 3D space to 2D plane.

[0107] It should be noted that the relevant information regarding viewpoint configuration can be found in the example above, and will not be repeated here.

[0108] Furthermore, the execution order of steps S503 and S504 in this example can be interchanged. For example, step S504 can be executed first, followed by step S503, or they can be performed simultaneously. This disclosure does not impose any specific restrictions on this.

[0109] Step S505: Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space.

[0110] It should be noted that the relevant content regarding the first memory space and the second memory space can be referred to the example above, and will not be repeated here.

[0111] Step S506: Perform a first binding process on the three-dimensional data of the initial 3D object in the first memory space and the two-dimensional data corresponding to the initial 3D object in the second memory space to obtain the target mapping relationship and complete the first data binding operation.

[0112] Here, the target mapping relationship records the binding relationship between the three-dimensional data of the initial 3D object and the corresponding two-dimensional data. In other words, after completing the first data binding operation and obtaining the target mapping relationship, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained using this target mapping relationship. This facilitates the rapid determination of the corresponding two-dimensional data of the initial 3D object based on its three-dimensional data, improving data acquisition efficiency and thus providing strong support for improving rendering efficiency.

[0113] Step S507: Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0114] Here, the target construction effect image is a two-dimensional image, which includes the 2D effect image corresponding to each initial 3D object; the 2D effect image corresponding to each initial 3D object is obtained by rendering the two-dimensional data corresponding to each initial 3D object.

[0115] Step S508: In the preview state, in response to the object addition operation for the first design scene, determine the newly added second 3D object.

[0116] Step S509: Perform the second data binding operation.

[0117] Here, the second data binding operation can obtain the two-dimensional data corresponding to the second 3D object.

[0118] It should be noted that, in one example, the above-described execution of the second data binding operation (e.g., step S509) may specifically include: Step S509-1: Obtain the three-dimensional data of the second 3D object from the first memory space.

[0119] Step S509-2: Determine the view configuration information required for the second 3D object to be converted from 3D space to 2D plane.

[0120] Step S509-3: Call the data conversion function corresponding to the second 3D object, and based on the three-dimensional data of the second 3D object and the view configuration information of the second 3D object, obtain the two-dimensional data corresponding to the second 3D object, and store the two-dimensional data corresponding to the second 3D object in the second memory space.

[0121] Step S509-4: Perform a second binding process on the three-dimensional data of the second 3D object in the first memory space and the two-dimensional data corresponding to the second 3D object in the second memory space to obtain the binding relationship between the three-dimensional data of the second 3D object and the two-dimensional data corresponding to the second 3D object, and complete the second data binding operation.

[0122] Furthermore, in one example, updating the target mapping relationship based on the 3D data of a second 3D object with a binding relationship and the corresponding 2D data of the second 3D object, as described above, may specifically include: After performing the second data binding operation, the target mapping relationship is updated based on the binding relationship between the three-dimensional data of the second 3D object and the corresponding two-dimensional data of the second 3D object.

[0123] Here, the updated target mapping relationship stores the binding relationship between the 3D data of the second 3D object and its corresponding 2D data. This allows for the rapid acquisition of the 2D data of the second 3D object using the updated target mapping relationship, improving data acquisition efficiency and thus providing strong support for improving rendering efficiency.

[0124] Step S510: Perform a third rendering operation to update the target construction rendering in the viewport area.

[0125] Here, the updated target construction rendering includes a 2D rendering of the second 3D object, which is obtained by rendering the 2D data corresponding to the second 3D object.

[0126] In this way, after obtaining the target construction rendering, the disclosed solution can also support adding operations for objects in the first design scenario. For example, the target mapping relationship can be updated by performing the second data binding operation, and then the target mapping relationship after the update operation can be used to quickly update the target construction rendering. This breaks the design mode that separates the design stage from the drawing stage, and puts the generation step of the construction rendering to the design stage, thereby realizing a closed-loop process of "design → preview → rework → preview". This allows users to preview the drawing effect in real time without having to wait for the drawing stage to be completed before verifying the effect, thus solving the problem of the disconnect between design intent and construction expression.

[0127] Moreover, since this disclosed solution can realize a closed-loop process of "design → preview → rework → preview" during the design phase, the user does not need to repeatedly switch the operating interface (or operating environment). This effectively reduces the switching cost of the operating interface, shortens the design cycle of construction drawings, and also reduces the risk of human error caused by environment switching, thereby significantly improving the design efficiency of construction drawings and enhancing the user's design experience.

[0128] Furthermore, in a specific example, the execution of the third rendering operation described above may specifically include: Step S510-1: Use the target mapping relationship after the update operation to obtain the two-dimensional data corresponding to the second 3D object; Step S510-2: Obtain the style configuration information of the second 3D object and the initial object description information of the second 3D object.

[0129] It should be noted that the relevant content regarding style configuration information and initial object description information can be found in the above example, and will not be repeated here.

[0130] Step S510-3: Render the second 3D object based on its two-dimensional data and style configuration information to obtain a 2D rendering; and generate construction annotation information based on its initial object description information.

[0131] It should be noted that the relevant content regarding construction labeling information can be found in the example above, and will not be repeated here.

[0132] Step S510-4: Update the target construction rendering based on the 2D rendering corresponding to the second 3D object and the construction annotation information corresponding to the second 3D object.

[0133] In this way, the disclosed solution can quickly obtain the two-dimensional data corresponding to the second 3D object by utilizing the target mapping relationship after the update operation, and then render the corresponding 2D rendering in real time to incrementally update the target construction rendering. This allows users to preview the added object effect in the first design scene in real time without having to wait for the rendering stage to verify the effect. Moreover, the disclosed solution also utilizes the initial object description information of the second 3D object to obtain the corresponding construction annotation information. Thus, while updating the view of the target construction rendering, the construction annotation information in the target construction rendering is also updated simultaneously, thereby improving the overall design efficiency and enhancing the user's design experience.

[0134] For example, Figure 6 This disclosure provides a collaborative processing system based on 3D scenes and 2D drawings, such as... Figure 6 As shown, the linkage processing system based on 3D scenes and 2D drawings includes a 3D design module and a drawing generation module. For example, in one example, the 3D design module includes scene design functions and drawing preview functions for user use. The scene design function corresponds to the design functions provided by the main window area of ​​the 3D scene design interface, and can also support scene adjustments to the design scene displayed in the main window area, such as adjusting 3D objects in the design scene or adding 3D objects to the design scene. The drawing preview function corresponds to the preview function provided by the secondary window area of ​​the 3D scene interface, so as to support previewing the 2D construction effect diagram corresponding to the design scene displayed in the main window area.

[0135] Furthermore, the drawing preview function can be further subdivided into the following specific functions: a preview function for 3D design views, a preview function for 2D drawing views, and a function for switching the window layout between the main view area and the secondary view area; here, the preview function for 2D drawing views also provides users with an automatic generation (or update) function for construction annotation information, a view list function that facilitates users to switch drawing types (for example, it contains multiple drawing view types so that users can operate according to their needs), and an editing function that facilitates secondary editing of the two-dimensional construction rendering.

[0136] In another example, the drawing generation module includes an editing view function that allows users to make secondary edits to the two-dimensional construction rendering. For example, it provides an editing interface to support users in editing the previewed two-dimensional construction rendering, such as adding, deleting, or modifying annotation details.

[0137] In this way, this disclosed solution allows users to simultaneously design the scene in the main viewport and preview the corresponding construction renderings in real time in the secondary viewport after enabling the construction effect preview function. This breaks the design pattern that separates the design and drawing phases, bringing the generation of construction renderings forward to the design phase and enabling "design while previewing." This effectively solves the problem of the disconnect between design intent and construction expression, significantly improving the design efficiency of construction drawings. Furthermore, for complex designs, this disclosed solution eliminates the need for users to repeatedly switch between operating interfaces (or operating environments), effectively shortening the design cycle of construction drawings and reducing the risk of human error due to environment switching, thereby enhancing the user's design experience.

[0138] This disclosure also provides a linkage processing device based on 3D scenes and 2D drawings, such as... Figure 7 As shown, it includes: Display unit 701 is used to display a first design scene in the main view area of ​​the 3D scene design interface; the first design scene contains multiple initial 3D objects. The data binding unit 702 is used to enter the preview state in response to the opening operation of the preview construction effect function and to perform the first data binding operation; wherein, after the first data binding operation, it can obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; The rendering unit 703 is used to perform a first rendering operation to obtain a target construction effect diagram of the first design scene; wherein, the target construction effect diagram is a two-dimensional image, which includes 2D effect diagrams corresponding to each initial 3D object; the 2D effect diagrams corresponding to each initial 3D object are obtained by rendering the two-dimensional data corresponding to each initial 3D object. The display unit 701 is also used to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

[0139] In a specific example of the disclosed solution, the data binding unit is specifically used for: Obtain the three-dimensional data of each initial 3D object from the first memory space; Determine the viewpoint configuration information required for each initial 3D object to be transformed from 3D space to a 2D plane; Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space. The three-dimensional data of the initial 3D object in the first memory space is bound to the two-dimensional data of the corresponding initial 3D object in the second memory space to obtain the target mapping relationship.

[0140] In a specific example of the scheme disclosed herein, the rendering unit is specifically used for: Using the target mapping relationship, obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; Obtain the style configuration information of each initial 3D object, as well as the initial object description information of each initial 3D object; Rendering is performed based on the two-dimensional data and style configuration information of each initial 3D object to obtain a 2D rendering of each initial 3D object; and construction annotation information is generated based on the initial object description information of each initial 3D object. Based on the 2D renderings corresponding to each initial 3D object and the construction annotation information corresponding to each initial 3D object, the target construction rendering is obtained.

[0141] In a specific example of the scheme disclosed herein, the data binding unit is further configured to, in a preview state, in response to an adjustment operation for a first design scene, determine an adjusted first 3D object; wherein the first 3D object is one of a plurality of initial 3D objects included in the first design scene; and perform an update operation of the target mapping relationship; wherein the target mapping relationship after the update operation stores a mapping relationship between the three-dimensional data of the updated first 3D object and the two-dimensional data corresponding to the adjusted first 3D object. The rendering unit is further configured to perform a second rendering operation to update the target construction rendering in the viewport area, wherein the updated target construction rendering includes an adjusted 2D rendering corresponding to the first 3D object, and the adjusted 2D rendering corresponding to the first 3D object is obtained by rendering the two-dimensional data corresponding to the first 3D object in the target mapping relationship after the update operation.

[0142] In a specific example of the disclosed solution, the data binding unit is specifically used for: Determine the target object description information of the adjusted first 3D object; Based on the target object description information of the adjusted first 3D object, the three-dimensional data of the adjusted first 3D object is obtained. Determine the viewpoint configuration information required for the adjusted first 3D object to be converted from 3D space to a 2D plane; Call the data conversion function corresponding to the first 3D object, and obtain the two-dimensional data corresponding to the first 3D object based on the adjusted view configuration information and the adjusted three-dimensional data of the first 3D object. The target mapping relationship is updated based on the adjusted three-dimensional data of the first 3D object and the corresponding two-dimensional data of the first 3D object.

[0143] In a specific example of the scheme disclosed herein, the rendering unit is specifically used for: By utilizing the target mapping relationship after the update operation, obtain the two-dimensional data corresponding to the adjusted first 3D object; Obtain the style configuration information of the adjusted first 3D object; Rendering is performed based on the 2D data and style configuration information of the adjusted first 3D object to obtain a 2D rendering of the adjusted first 3D object; and construction annotation information is generated based on the target object description information of the adjusted first 3D object. The target construction rendering is updated based on the adjusted 2D rendering of the first 3D object and the corresponding construction annotation information of the first 3D object.

[0144] In a specific example of the scheme disclosed herein, the data binding unit is further configured to, in the preview state, in response to an object addition operation for the first design scene, determine the newly added second 3D object; and perform a second data binding operation; wherein, after the second data binding operation, the two-dimensional data corresponding to the second 3D object can be obtained; The rendering unit is further configured to perform a third rendering operation to update the target construction rendering in the viewport area; wherein the updated target construction rendering includes a 2D rendering corresponding to the second 3D object, and the 2D rendering corresponding to the second 3D object is obtained by rendering the two-dimensional data corresponding to the second 3D object.

[0145] In a specific example of the scheme disclosed herein, the data binding unit is further configured to: After performing the second data binding operation, the target mapping relationship is updated based on the three-dimensional data of the second 3D object with the binding relationship and the two-dimensional data corresponding to the second 3D object.

[0146] In a specific example of the scheme disclosed herein, the rendering unit is specifically used for: By utilizing the target mapping relationship after the update operation, the two-dimensional data corresponding to the second 3D object can be obtained; Obtain the style configuration information of the second 3D object, as well as the initial object description information of the second 3D object; Rendering is performed based on the two-dimensional data and style configuration information of the second 3D object to obtain a 2D rendering of the second 3D object; and construction annotation information of the second 3D object is generated based on the initial object description information of the second 3D object. The target construction rendering is updated based on the 2D rendering corresponding to the second 3D object and the construction annotation information corresponding to the second 3D object.

[0147] For a description of the specific functions and examples of each unit of the apparatus in this disclosure embodiment, please refer to the relevant descriptions of the corresponding steps in the above method embodiments, which will not be repeated here.

[0148] The acquisition, storage, and application of user personal information involved in the technical solution disclosed herein comply with the provisions of relevant laws and regulations and do not violate public order and good morals.

[0149] Figure 8 This is a structural block diagram of an electronic device according to an embodiment of the present disclosure. Figure 8 As shown, the electronic device includes a memory 810 and a processor 820. The memory 810 stores a computer program that can run on the processor 820. The number of memories 810 and processors 820 can be one or more. The memory 810 can store one or more computer programs, which, when executed by the electronic device, cause the electronic device to perform the methods provided in the above-described method embodiments. The electronic device may also include a communication interface 830 for communicating with external devices and performing data exchange and transmission.

[0150] If the memory 810, processor 820, and communication interface 830 are implemented independently, they can be interconnected via a bus to communicate with each other. This bus can be an Industry Standard Architecture (ISA) bus, a Peripheral Component Interconnect (PCI) bus, or an Extended Industry Standard Architecture (EISA) bus, etc. This bus can be divided into address bus, data bus, control bus, etc. For ease of representation, Figure 8 The bus is represented by a single thick line, but this does not mean that there is only one bus or one type of bus.

[0151] Optionally, in a specific implementation, if the memory 810, processor 820, and communication interface 830 are integrated on a single chip, then the memory 810, processor 820, and communication interface 830 can communicate with each other through an internal interface.

[0152] It should be understood that the aforementioned processor can be a Central Processing Unit (CPU), or other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate Arrays (FPGAs), or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. General-purpose processors can be microprocessors or any conventional processor. It is worth noting that the processor can be a processor supporting Advanced Reduced Instruction Set Machines (ARM) architecture.

[0153] Further, optionally, the aforementioned memory may include read-only memory and random access memory, and may also include non-volatile random access memory. The memory may be volatile or non-volatile, or may include both. Non-volatile memory may include read-only memory (ROM), programmable read-only memory (PROM), erasable programmable read-only memory (EPROM), electrically erasable programmable read-only memory (EEPROM), or flash memory. Volatile memory may include random access memory (RAM), which serves as an external cache. Many forms of RAM are available by way of example, but not limitation. Examples include Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), Synchronous DRAM (SDRAM), Double Data Rate Synchronous DRAM (DDR SDRAM), Enhanced Synchronous DRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct RAMBUS RAM (DR RAM).

[0154] In the above embodiments, implementation can be achieved, in whole or in part, through software, hardware, firmware, or any combination thereof. When implemented in software, it can be implemented, in whole or in part, as a computer program product. The computer program product includes one or more computer instructions. When the computer instructions are loaded and executed on a computer, all or part of the processes or functions described in the embodiments of this disclosure are generated. The computer can be a general-purpose computer, a special-purpose computer, a computer network, or other programmable device. The computer instructions can be stored in a computer-readable storage medium or transmitted from one computer-readable storage medium to another. For example, the computer instructions can be transmitted from one website, computer, server, or data center to another via wired (e.g., coaxial cable, fiber optic, Digital Subscriber Line, DSL) or wireless (e.g., infrared, Bluetooth, microwave, etc.) means. The computer-readable storage medium can be any available medium accessible to a computer, or a data storage device such as a server or data center that integrates one or more available media. The available media can be magnetic media (e.g., floppy disks, hard disks, magnetic tapes), optical media (e.g., Digital Versatile Discs (DVDs)), or semiconductor media (e.g., Solid State Disks (SSDs)). It is worth noting that the computer-readable storage media mentioned in this disclosure can be non-volatile storage media; in other words, it can be non-transient storage media.

[0155] Those skilled in the art will understand that all or part of the steps of the above embodiments can be implemented by hardware or by a program instructing related hardware. The program can be stored in a computer-readable storage medium, such as a read-only memory, a disk, or an optical disk.

[0156] In the description of the embodiments of this disclosure, references to terms such as "one embodiment," "some embodiments," "example," "specific example," or "some examples," etc., indicate that a specific feature, structure, material, or characteristic described in connection with that embodiment or example is included in at least one embodiment or example of this disclosure. Furthermore, the specific features, structures, materials, or characteristics described may be combined in any suitable manner in one or more embodiments or examples. Moreover, without contradiction, those skilled in the art can combine and integrate the different embodiments or examples described in this specification, as well as the features of those different embodiments or examples.

[0157] In the description of the embodiments disclosed herein, unless otherwise stated, " / " means "or". For example, A / B can mean A or B. The "and / or" in this document is merely a description of the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone.

[0158] In the description of embodiments of this disclosure, the terms "first" and "second" are used for descriptive purposes only and should not be construed as indicating or implying relative importance or implicitly specifying the number of indicated technical features. Therefore, a feature defined as "first" or "second" may explicitly or implicitly include one or more of that feature. In the description of embodiments of this disclosure, unless otherwise stated, "a plurality of" means two or more.

[0159] The above description is merely an exemplary embodiment of this disclosure and is not intended to limit this disclosure. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this disclosure should be included within the protection scope of this disclosure.

Claims

1. A method for linked processing of 3D scenes and 2D drawings, comprising: The first design scene is displayed in the main viewport area of ​​the 3D scene design interface; The first design scenario contains multiple initial 3D objects; In response to the activation of the preview construction effect function, the system enters the preview state and performs the first data binding operation; wherein, after the first data binding operation, the two-dimensional data corresponding to each initial 3D object in the first design scene can be obtained; Perform a first rendering operation to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface; wherein, the target construction effect diagram is a two-dimensional image, which includes 2D effect diagrams corresponding to each initial 3D object; the 2D effect diagrams corresponding to each initial 3D object are obtained by rendering the two-dimensional data corresponding to each initial 3D object.

2. The method according to claim 1, wherein, The execution of the first data binding operation includes: Obtain the three-dimensional data of each initial 3D object from the first memory space; Determine the viewpoint configuration information required for each initial 3D object to be transformed from 3D space to a 2D plane; Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space. The three-dimensional data of the initial 3D object in the first memory space is bound to the two-dimensional data of the corresponding initial 3D object in the second memory space to obtain the target mapping relationship.

3. The method according to claim 2, wherein, The execution of the first rendering operation includes: Using the target mapping relationship, obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; Obtain the style configuration information of each initial 3D object, as well as the initial object description information of each initial 3D object; Rendering is performed based on the two-dimensional data and style configuration information of each initial 3D object to obtain a 2D rendering of each initial 3D object; and construction annotation information is generated based on the initial object description information of each initial 3D object. Based on the 2D renderings corresponding to each initial 3D object and the construction annotation information corresponding to each initial 3D object, the target construction rendering is obtained.

4. The method according to claim 2 or 3, further comprising: In preview mode, in response to an adjustment operation for the first design scene, the adjusted first 3D object is determined; wherein the first 3D object is one of a plurality of initial 3D objects included in the first design scene; Perform an update operation on the target mapping relationship; wherein, the updated target mapping relationship stores the mapping relationship between the updated three-dimensional data of the first 3D object and the adjusted two-dimensional data of the first 3D object; A second rendering operation is performed to update the target construction rendering in the viewport area, wherein the updated target construction rendering includes an adjusted 2D rendering of the first 3D object, and the adjusted 2D rendering of the first 3D object is obtained by rendering the two-dimensional data corresponding to the first 3D object in the target mapping relationship after the update operation.

5. The method according to claim 4, wherein, The update operation of the target mapping relationship includes: Determine the target object description information of the adjusted first 3D object; Based on the target object description information of the adjusted first 3D object, the three-dimensional data of the adjusted first 3D object is obtained. Determine the viewpoint configuration information required for the adjusted first 3D object to be converted from 3D space to a 2D plane; Call the data conversion function corresponding to the first 3D object, and obtain the two-dimensional data corresponding to the first 3D object based on the adjusted view configuration information and the adjusted three-dimensional data of the first 3D object. The target mapping relationship is updated based on the adjusted three-dimensional data of the first 3D object and the corresponding two-dimensional data of the first 3D object.

6. The method according to claim 5, wherein, The execution of the second rendering operation includes: By utilizing the target mapping relationship after the update operation, obtain the two-dimensional data corresponding to the adjusted first 3D object; Obtain the style configuration information of the adjusted first 3D object; Rendering is performed based on the 2D data and style configuration information of the adjusted first 3D object to obtain a 2D rendering of the adjusted first 3D object; and construction annotation information is generated based on the target object description information of the adjusted first 3D object. The target construction rendering is updated based on the adjusted 2D rendering of the first 3D object and the corresponding construction annotation information of the first 3D object.

7. The method according to claim 2 or 3, further comprising: In preview mode, in response to the object addition operation for the first design scene, determine the newly added second 3D object; Perform a second data binding operation; wherein, after the second data binding operation, the two-dimensional data corresponding to the second 3D object can be obtained; A third rendering operation is performed to update the target construction rendering in the viewport area; wherein the updated target construction rendering includes a 2D rendering corresponding to the second 3D object, and the 2D rendering corresponding to the second 3D object is obtained by rendering the two-dimensional data corresponding to the second 3D object.

8. The method according to claim 7, further comprising: After performing the second data binding operation, the target mapping relationship is updated based on the three-dimensional data of the second 3D object with the binding relationship and the two-dimensional data corresponding to the second 3D object.

9. The method according to claim 8, wherein, The execution of the third rendering operation includes: By utilizing the target mapping relationship after the update operation, the two-dimensional data corresponding to the second 3D object can be obtained; Obtain the style configuration information of the second 3D object, as well as the initial object description information of the second 3D object; Rendering is performed based on the two-dimensional data and style configuration information of the second 3D object to obtain a 2D rendering of the second 3D object; and construction annotation information of the second 3D object is generated based on the initial object description information of the second 3D object. The target construction rendering is updated based on the 2D rendering corresponding to the second 3D object and the construction annotation information corresponding to the second 3D object.

10. A linkage processing device based on 3D scenes and 2D drawings, comprising: The display unit is used to display the first design scene in the main viewport area of ​​the 3D scene design interface. The first design scenario contains multiple initial 3D objects; The data binding unit is used to respond to the activation of the preview construction effect function, enter the preview state, and perform the first data binding operation; wherein, after the first data binding operation, it can obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; A rendering unit is used to perform a first rendering operation to obtain a target construction effect diagram of the first design scene; wherein, the target construction effect diagram is a two-dimensional image, which includes 2D effect diagrams corresponding to each initial 3D object; the 2D effect diagrams corresponding to each initial 3D object are obtained by rendering the two-dimensional data corresponding to each initial 3D object. The display unit is also used to display the target construction effect diagram of the first design scene in the viewport area of ​​the three-dimensional scene design interface.

11. The apparatus according to claim 10, wherein, The data binding unit is specifically used for: Obtain the three-dimensional data of each initial 3D object from the first memory space; Determine the viewpoint configuration information required for each initial 3D object to be transformed from 3D space to a 2D plane; Call the data conversion function corresponding to each initial 3D object, and based on the three-dimensional data of each initial 3D object and the view configuration information of each initial 3D object, obtain the two-dimensional data corresponding to each initial 3D object, and store the two-dimensional data corresponding to each initial 3D object in the second memory space. The three-dimensional data of the initial 3D object in the first memory space is bound to the two-dimensional data of the corresponding initial 3D object in the second memory space to obtain the target mapping relationship.

12. The apparatus according to claim 11, wherein, The rendering unit is specifically used for: Using the target mapping relationship, obtain the two-dimensional data corresponding to each initial 3D object in the first design scene; Obtain the style configuration information of each initial 3D object, as well as the initial object description information of each initial 3D object; Rendering is performed based on the two-dimensional data and style configuration information of each initial 3D object to obtain a 2D rendering of each initial 3D object; and construction annotation information is generated based on the initial object description information of each initial 3D object. Based on the 2D renderings corresponding to each initial 3D object and the construction annotation information corresponding to each initial 3D object, the target construction rendering is obtained.

13. An electronic device, comprising: At least one processor; as well as A memory communicatively connected to the at least one processor; wherein, The memory stores instructions that can be executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-9.

14. A non-transitory computer-readable storage medium storing computer instructions, wherein, The computer instructions are used to cause the computer to perform the method according to any one of claims 1-9.

15. A computer program product comprising a computer program that, when executed by a processor, implements the method according to any one of claims 1-9.