Batch real-time editing method and device suitable for multi-dimensional objects and electronic equipment

By determining the template model and editing plane through user interaction, batch real-time editing of multi-dimensional objects can be achieved, which solves the problem of insufficient operational flexibility in existing technologies, improves editing efficiency and flexibility, and is suitable for two-dimensional and three-dimensional scene design.

CN120687009APending Publication Date: 2025-09-23HANGZHOU QUNHE INFORMATION TECHNOLOGIES CO LTD
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
CN202510772691.5
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-10
Publication Date
2025-09-23

AI Technical Summary

Technical Problem

Existing technologies lack operational flexibility in multi-dimensional scene editing, especially in array and copy operations, which are usually limited to the original position of objects and require repeated activation of functions for multi-area placement.

Method used

Through user selection operations, the template model, editing plane, start and end point coordinates of the target object are determined, and editing parameters are generated based on editing requirements to achieve batch real-time editing of multi-dimensional objects, support editing operations at any position, and allow multiple plane switches in the same workflow.

Benefits of technology

It improves editing efficiency and flexibility, supports large-scale scene design, reduces operation complexity and time, meets complex design requirements, and is suitable for multi-dimensional object editing in two-dimensional and three-dimensional scenes.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120687009A_ABST
    Figure CN120687009A_ABST
Patent Text Reader

Abstract

The invention provides a batch real-time editing method and device suitable for multi-dimensional objects and electronic equipment, relates to the field of computers, in particular to the fields of image processing, image editing and the like, and can be used for application scenes such as scene drawing editing and the like. According to the specific implementation scheme, in response to a first selection operation of a user, a model model of a target object is determined according to a camera position; in response to a second selection operation of the user, determining an editing plane; in response to a third selection operation of the user, determining an editing starting point coordinate according to the editing plane; in response to a fourth selection operation of the user, determining an editing end point coordinate according to the editing plane; determining editing parameters according to an editing demand, the editing starting point coordinates and the editing end point coordinates input by the user; and generating an editing result of the target object according to the model, the editing plane and the editing parameters. According to the scheme, batch editing operation of the multi-dimensional object at any position can be realized.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present disclosure relates to the field of computer technology, in particular to the fields of image processing and image editing, and can be used in application scenarios such as scene drawing editing, and specifically to a batch real-time editing method, device, and electronic device suitable for multi-dimensional objects. Background Art

[0002] In computer-aided design, architectural design, industrial modeling, and related 2D and 3D scene editing, operations such as arraying, copying, and arranging objects are common and important functions. Existing technologies have provided several methods for editing 2D and / or 3D objects in 2D and / or 3D scenes. However, these methods still have some limitations in practical applications, particularly regarding the flexibility of multi-region scene editing operations. Summary of the Invention

[0003] The present disclosure provides a method, device and electronic device applicable to batch real-time editing of multi-dimensional objects.

[0004] According to a first aspect of the present disclosure, a batch real-time editing method suitable for multi-dimensional objects is provided, including: in response to a user's first selection operation, determining a template model of the target object according to a camera position; in response to a user's second selection operation, determining an editing plane; in response to a user's third selection operation, determining the editing start point coordinates according to the editing plane; in response to a user's fourth selection operation, determining the editing end point coordinates according to the editing plane; determining editing parameters according to the editing requirements, editing start point coordinates and editing end point coordinates input by the user; and generating an editing result of the target object according to the template model, the editing plane and the editing parameters.

[0005] According to a second aspect of the present disclosure, a batch real-time editing device suitable for multi-dimensional objects is provided, including: a model determination module, used to determine a template model of a target object according to a camera position in response to a first selection operation of a user; a plane determination module, used to determine an editing plane in response to a second selection operation of a user; a starting point determination module, used to determine the editing starting point coordinates according to the editing plane in response to a third selection operation of the user; an end point determination module, used to determine the editing end point coordinates according to the editing plane in response to a fourth selection operation of the user; a parameter determination module, used to determine editing parameters according to the editing requirements input by the user, the editing starting point coordinates and the editing end point coordinates; and a result generation module, used to generate an editing result of the target object according to the template model, the editing plane and the editing parameters.

[0006] According to a third aspect of the present disclosure, an electronic device is provided, comprising: at least one processor; and a memory communicatively connected to the at least one processor; wherein the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to execute any method in the embodiments of the present disclosure.

[0007] According to a fourth aspect of the present disclosure, a non-transitory computer-readable storage medium storing computer instructions is provided, wherein the computer instructions are used to enable the computer to execute any method according to the embodiments of the present disclosure.

[0008] By adopting the solution disclosed in the present invention, batch editing operations can be implemented at any position for multi-dimensional objects.

[0009] It should be understood that the contents described in this section are not intended to identify the key or important features of the embodiments of the present disclosure, nor are they intended to limit the scope of the present disclosure. Other features of the present disclosure will become readily understood through the following description. BRIEF DESCRIPTION OF THE DRAWINGS

[0010] The accompanying drawings are used to better understand the present invention and do not constitute a limitation of the present invention.

[0011] Figure 1 is a flow chart of a method for batch real-time editing of multi-dimensional objects according to an embodiment of the present disclosure;

[0012] Figure 2 is a flow chart of a method for batch real-time editing of multi-dimensional objects according to an embodiment of the present disclosure;

[0013] Figure 3 is a structural diagram of a batch real-time editing device applicable to multi-dimensional objects according to an embodiment of the present disclosure;

[0014] Figure 4 is a scene diagram of a method for batch real-time editing of multi-dimensional objects according to an embodiment of the present disclosure;

[0015] Figure 5 3 is a structural diagram of an electronic device used to implement the batch real-time editing method applicable to multi-dimensional objects according to an embodiment of the present disclosure. DETAILED DESCRIPTION

[0016] The following description of exemplary embodiments of the present disclosure is made in conjunction with the accompanying drawings, including various details of the embodiments of the present disclosure to facilitate understanding, which should be considered as merely exemplary. Therefore, it should be appreciated by those skilled in the art that various changes and modifications may be made to the embodiments described herein without departing from the scope of the present disclosure. Similarly, for the sake of clarity and conciseness, descriptions of well-known functions and structures are omitted in the following description.

[0017] The term "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships. For example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. The term "at least one" in this article means any combination of at least two of any one or more of a plurality of. For example, including at least one of A, B, and C, can mean including any one or more elements selected from the set consisting of A, B, and C. The terms "first" and "second" in this article refer to multiple similar technical terms and distinguish them, and do not mean to limit the order or to limit to only two. For example, the first feature and the second feature refer to two categories / two features. The first feature can be one or more, and the second feature can also be one or more.

[0018] In addition, numerous specific details are provided in the following detailed description to better illustrate the present disclosure. Those skilled in the art will appreciate that the present disclosure can be practiced without certain specific details. In some instances, methods, means, components, and circuits well known to those skilled in the art are not described in detail in order to highlight the main points of the present disclosure.

[0019] Methods for editing two-dimensional and / or three-dimensional objects in two-dimensional and / or three-dimensional scenes exist in related technologies, but these methods still have some limitations. In particular, when performing operations such as arraying and copying, existing technologies generally only support the original object position as the array starting point. This restricts array drawing at locations other than the object, thereby reducing operational flexibility and efficiency. Furthermore, current technologies typically exit array mode after a single operation, resulting in the need to repeatedly activate the same function and copy objects multiple times when placing objects in multiple areas.

[0020] In order to at least partially solve one or more of the above-mentioned problems and other potential problems, the present disclosure proposes a batch real-time editing method applicable to multi-dimensional objects, which can implement batch editing operations at any position on the multi-dimensional objects.

[0021] The present disclosure provides a batch real-time editing method applicable to multi-dimensional objects. Figure 1It is a flow chart of a batch real-time editing method applicable to multi-dimensional objects according to an embodiment of the present disclosure. The batch real-time editing method applicable to multi-dimensional objects can be applied to a batch real-time editing device applicable to multi-dimensional objects. The batch real-time editing device applicable to multi-dimensional objects is located in an electronic device. The electronic device includes but is not limited to fixed devices and / or mobile devices. For example, fixed devices include but are not limited to servers, and servers can be cloud servers or ordinary servers. For example, mobile devices include but are not limited to scene drawing editing devices, and scene drawing editing devices can be mobile phones, tablet computers, vehicle-mounted terminals, etc. In some possible implementations, the batch real-time editing method applicable to multi-dimensional objects can also be implemented by a processor calling computer-readable instructions stored in a memory. Figure 1 As shown, the batch real-time editing method applicable to multi-dimensional objects includes:

[0022] S101 : In response to a first selection operation by a user, determining a template model of a target object according to a camera position.

[0023] S102: In response to a second selection operation by the user, determine an editing plane.

[0024] S103 . In response to the user's third selection operation, determine the editing start point coordinates according to the editing plane.

[0025] S104 . In response to the fourth selection operation of the user, determine the editing end point coordinates according to the editing plane.

[0026] S105 : Determine editing parameters according to the editing requirements, editing start point coordinates, and editing end point coordinates input by the user.

[0027] S106: Generate an editing result of the target object according to the template model, the editing plane and the editing parameters.

[0028] The first selection operation refers to a user selecting a target object during the editing process, which can identify or select a target object. In the disclosed embodiment, the first selection operation can be a mouse click, moving the cursor to the target object, directly entering the target object coordinates, or touch click.

[0029] The camera position refers to the position and direction of the user's viewing angle, which can represent the viewing angle and perspective of the target object seen by the user. In the disclosed embodiment, the user can change the camera position by adjusting the view, zooming or rotating to observe and select the target object.

[0030] The target object refers to a specific object that the user wishes to edit, and the target object may be a specific two-dimensional model or three-dimensional model in the scene. In the embodiment of the present disclosure, the target object may be determined by the first selection operation.

[0031] The template model refers to the basic or original model of the target object, which can serve as the basic condition for editing operations.

[0032] In the embodiment of the present disclosure, the user can first click or specify an object by using an input device such as a mouse, keyboard or touch screen, and then the object selected by the user can be located and identified based on the current camera's observation position and angle. Finally, the template model of the target object can be loaded from the background data storage. For example, the template model can include basic attributes such as geometric information, material, texture, etc. of the target object, thereby serving as the basis for subsequent editing. The above is only an exemplary explanation and is not intended to limit all possible situations for determining the template model, but it is not intended to be exhaustive here.

[0033] The second selection operation refers to a user selecting an editing plane during the editing process, which can identify or select a plane. In the disclosed embodiment, the second selection operation can be a mouse click, moving the cursor to the target editing plane, directly entering the coordinates of the target editing plane, or touch click.

[0034] The editing plane refers to a plane used as a reference during object editing operations. In the disclosed embodiments, the editing plane can define the spatial direction and boundaries of the editing operation. In particular, the editing plane can be determined based on the user's perspective and operational requirements and can be horizontal, vertical, or arbitrarily tilted.

[0035] In the disclosed embodiments, a user may first click or specify a plane using an input device such as a mouse, keyboard, or touch screen. Subsequently, the user's selection may be recognized and the orientation, position, and spatial properties of the selected plane may be recorded. Specifically, the editing plane may be an existing plane in the scene, a default plane in the scene coordinate system, or a user-defined plane. The above is merely an example and does not limit all possible scenarios for determining the editing plane, but this is not intended to be exhaustive.

[0036] The third selection operation refers to a selection operation performed by the user on the editing plane, which can be used to determine the starting position of the editing operation. In the embodiment of the present disclosure, the third selection operation can be a mouse click, moving the cursor to the target editing plane, directly entering the coordinates of the target editing plane, or touch clicking.

[0037] The editing starting point coordinates refer to the specific coordinates of the starting point of the editing operation on the editing plane.

[0038] In the embodiment of the present disclosure, the user can first click or specify a point as the editing starting point by using an input device such as a mouse, keyboard, or touch screen. Subsequently, the spatial coordinates of the point can be associated with the properties of the editing plane to obtain the two-dimensional editing starting point coordinates. Exemplarily, the spatial coordinates of the user-selected point can be projected onto the editing plane to obtain the two-dimensional coordinates on the editing plane, and the two-dimensional coordinates can be used as the editing starting point coordinates. The above is only an exemplary explanation and is not intended to limit all possible situations for determining the editing starting point coordinates, but it is not exhaustive here.

[0039] The fourth selection operation refers to another selection operation performed by the user on the editing plane, which can be used to determine the end point of the editing. In the embodiment of the present disclosure, the fourth selection operation can be a mouse click, moving the cursor to the target editing plane, directly entering the coordinates of the target editing plane, or touch clicking.

[0040] The editing end point coordinates refer to the specific coordinates of the end point of the editing operation on the editing plane.

[0041] In the embodiment of the present disclosure, the user can first use an input device such as a mouse, keyboard, or touch screen to click or specify a point as the editing end point. Subsequently, the spatial coordinates of the point can be associated with the properties of the editing plane to obtain the editing end point coordinates. For example, the spatial coordinates of the user-selected point can be projected onto the editing plane to obtain two-dimensional coordinates on the editing plane, and the two-dimensional coordinates are used as the editing end point coordinates. The above is only an exemplary description and is not intended to limit all possible situations for determining the editing end point coordinates, but it is not intended to be exhaustive here.

[0042] The editing requirement refers to the user's specific requirements for the final editing result. For example, the editing requirement can be the user inputting or selecting specific editing options and / or parameters through the interface.

[0043] The editing parameters refer to all parameters required for the editing operation. In the embodiment of the present disclosure, the editing parameters may include the editing start point coordinates, the editing end point coordinates, the editing requirements, and other parameters calculated based on the above parameters.

[0044] In the disclosed embodiment, a user may first input and / or select a specific editing requirement through an interface or tool. Subsequently, the editing requirement may be combined with the editing start point coordinates and the editing end point coordinates to calculate other required parameters. Finally, the editing requirement, the editing start point coordinates, the editing end point coordinates, and the other calculated parameters may be combined to obtain the editing parameters. The above is merely an illustrative description and is not intended to limit all possible situations for determining editing parameters, but this is not intended to be exhaustive.

[0045] The editing result refers to the final model of the target object generated after processing using the editing parameters. In the embodiment of the present disclosure, the editing result can be the final result generated and displayed to the user by applying the editing parameters to the template model.

[0046] In the disclosed embodiments, editing parameters can be applied to a template model to generate a modified target object or set of target objects. In particular, the editing results can be rendered in real time and provided as feedback to the user. The above description is merely illustrative and does not limit all possible scenarios for generating editing results, but is not intended to be exhaustive.

[0047] The technical solution of the embodiment of the present disclosure can more accurately identify the target object by combining the user's selection operation and the camera position, and avoid the situation where the wrong object is selected due to the complexity of the click area or the existence of occlusion. By determining the template model, the object to be edited is clarified, and all subsequent operations are carried out on this basis to ensure the consistency of the editing process. At the same time, the user can freely select the reference plane without being restricted by the original position or direction of the object, so that the editing operation can adapt to more complex scenarios and needs. By determining the editing start point and the editing end point, the starting position and the end position of the editing range can be clearly specified, thereby improving the editing efficiency. By calculating the editing parameters, it is possible to combine the editing requirements and various coordinates to flexibly generate different editing parameters to meet the user's diverse design goals. By generating the editing results according to the editing parameters and rendering them in real time, the user can instantly view the modification effects, quickly adjust the design plan, and support batch editing of multi-dimensional objects, which is particularly suitable for large-scale scene design.

[0048] In some embodiments, the batch real-time editing method applicable to multi-dimensional objects also includes: determining a new editing plane in response to the user's new second selection operation, generating new editing results based on the new editing plane, and saving all editing results in response to the user's exit instruction.

[0049] The exit instruction refers to an instruction by which the user instructs the system to terminate the current batch real-time editing process through a specific input operation. In the disclosed embodiment, the user can issue the exit instruction by clicking an exit button, clicking an exit option, clicking a shortcut key, or by voice command.

[0050] In the embodiment of the present disclosure, the user can perform a new editing operation on the same target object after generating the editing result. For example, a different plane can be selected again as a new editing plane, and a new starting point and end point can be selected on the new editing plane to define a new editing range. Subsequently, the new editing parameters can be applied to the template model to generate a new editing result. Until the user issues an exit command, all current editing results can be automatically saved, including all modified content generated based on different planes. The above is only an exemplary explanation and is not intended to limit all possible situations of repeated editing operations, but it is not exhaustive here.

[0051] This allows users to switch planes multiple times within the same workflow without having to start over, saving time. Support for editing the same target object in different planes allows for greater design diversity. Furthermore, the results on the new plane can exist independently or synergize with previous edits, meeting the needs of complex designs. Furthermore, users can continue editing on the new plane without having to restart the editing mode or reload the object, improving efficiency.

[0052] In some embodiments, in response to a first selection operation by a user, determining a template model of the target object according to a camera position includes: determining plane coordinates in response to the first selection operation by the user; and determining the template model according to the camera position and the plane coordinates.

[0053] The plane coordinates refer to the position coordinates of a point selected by the user in a scene on a two-dimensional plane. In the disclosed embodiment, the plane coordinates are used to determine the position of the object selected by the user. Combined with the camera's viewing angle and position, the target object can be accurately located.

[0054] In the disclosed embodiments, a user may first select a point or object in a scene using a mouse, touch screen, or other input device. Subsequently, the user's selection operation may be captured, and the position of the point in the screen coordinate system, i.e., the plane coordinates on the screen, may be extracted. The above description is merely illustrative and does not limit all possible scenarios for determining plane coordinates, but this is not intended to be exhaustive.

[0055] In the disclosed embodiment, the line of sight and the position of objects in the scene can be calculated based on the plane coordinates selected by the user and the camera position. The target object is determined by determining whether the position selected by the user coincides with the collision area or surface area of ​​the object. Finally, after the selected object is determined, the template model of the object is loaded. The above is merely an example and does not limit all possible situations for determining the template model, but it is not intended to be exhaustive.

[0056] In this way, users can select objects with a simple click, reducing operational complexity and enhancing user experience. Plane coordinates can flexibly adapt to the screen coordinate system or scene coordinate system to meet the needs of object selection in two-dimensional or three-dimensional scenes. By combining camera position and plane coordinates, it can filter out erroneous selections and ensure that the object selected by the user is consistent with the intended operation. Figure 1 Plane coordinates can adapt to two-dimensional screens, three-dimensional scenes, and complex interactive environments, meeting the actual needs of multi-scene editing.

[0057] In some embodiments, after determining the editing plane, the method further includes: performing dimensionality reduction mapping on the template model according to the editing plane to generate posture parameters of the template model.

[0058] The dimensionality reduction mapping refers to projecting the three-dimensional model data in the high-dimensional space into the two-dimensional plane space. In the embodiment of the present disclosure, the dimensionality reduction mapping refers to mapping the template model from the three-dimensional space to the two-dimensional editing plane selected by the user.

[0059] Among them, pose parameters refer to the combination of the position and posture of an object in space, and may include translation and rotation information. In the disclosed embodiments, pose parameters refer to the two-dimensional representation of the template model on the editing plane, and may include position coordinates and a rotation angle relative to the editing plane. For example, the rotation angle may be a rotation about the plane normal vector.

[0060] In the embodiment of the present disclosure, a mathematical mapping method can be used to map the template model from three-dimensional space to the editing plane. For example, a projection matrix or a point-to-plane projection formula can be used to convert the points or other geometric data of the model into a two-dimensional representation of the editing plane. In particular, during the dimensionality reduction mapping process, the geometric information related to the object and the editing plane can be retained, while the dimensions unrelated to the editing plane are eliminated. Furthermore, the two-dimensional position coordinates of the model can be determined based on the projection of the template model on the editing plane as the position data of the template model. Then, based on the relationship between the original three-dimensional direction of the template model and the normal vector of the editing plane, the rotation angle of the object can be determined as the posture data of the template model. Finally, the position data and posture data can be integrated to form complete posture parameters as a two-dimensional simplified representation of the template model on the editing plane. The above is only an exemplary explanation and is not intended to limit all possible situations for generating posture parameters, but it is not exhaustive here.

[0061] Projecting the 3D model onto the 2D editing plane reduces the operational dimension, allowing users to make modifications more intuitively. Dimensionality reduction also reduces the complexity of data processing and reduces computing resources, especially when editing multiple models in complex scenes. Through the dimensionality reduction mapping operation, users see a simplified 2D representation on the editing plane, eliminating the need to process complex 3D structures and improving operational convenience. By generating pose parameters, the position and orientation of the template model on the editing plane can be clearly described, allowing users to precisely adjust the object's form to suit various editing needs.

[0062] In some embodiments, the editing requirement includes at least: an editing type, an editing mode corresponding to the editing type, and a configuration value in the editing mode.

[0063] The edit type refers to the operation category selected by the user, which can be used to define the nature of the edit target and the operation direction. In the embodiment of the present disclosure, the edit type may include editing options such as original position editing and target position editing.

[0064] The editing mode refers to a specific operation method that can be used to define the execution plan or means of editing. In the embodiments of the present disclosure, the editing modes may include a fixed number array mode, a fixed spacing array mode, a copy mode, etc. In particular, the array mode can be further divided into a rectangular array mode, a circular array mode, a path array mode, etc.

[0065] Among them, the configuration value refers to the parameter corresponding to the selected editing mode, which can be used to refine the behavior of the editing mode. In the embodiment of the present disclosure, the configuration value refers to the user input parameter corresponding to the editing mode. Exemplarily, when the editing mode is a fixed number array mode, the configuration value is the quantity; when the editing mode is a fixed spacing array mode, the configuration value is the spacing; when the editing mode is copy, the configuration value can be a default value or a default value. In particular, for the circular array mode, the configuration value can also include the center of the circular array; for the path array mode, the configuration value can also include the coordinates of the path point, etc. The above is only an exemplary explanation, and is not intended to limit all possible situations of editing requirements, but it is not exhaustive here.

[0066] This step-by-step definition of edit types, edit modes, and configuration values ​​allows users to quickly understand and select operations, reducing trial-and-error costs and the learning curve. This clear division of edit types, edit modes, and configuration values ​​makes user operations more intuitive and reduces the distraction of complex interfaces. Users can select different edit types to meet the needs of various scenarios. Furthermore, configuration values ​​clarify the specific parameters of the edit mode, enabling refined user operations. Furthermore, new edit modes and corresponding configuration values ​​allow for rapid functionality expansion to meet more complex editing needs.

[0067] In some embodiments, the editing parameters are determined based on the editing requirements, editing start point coordinates, and editing end point coordinates input by the user, including: when the editing type is in-place editing, determining the original coordinates of the target object based on the posture parameters; using the original coordinates as the editing start point coordinates; and determining the editing parameters based on the configuration values, editing start point coordinates, and editing end point coordinates.

[0068] The editing type at least includes in-place editing. In the embodiment of the present disclosure, in-place editing refers to performing an editing operation at the current location of the target object without changing the location of the object.

[0069] The original coordinates refer to the current position coordinates of the target object in the scene. In the embodiment of the present disclosure, the original coordinates can describe the absolute position of the target object in the current scene.

[0070] In the disclosed embodiments, the current position and orientation of an object can first be analyzed using pose parameters. Subsequently, position data can be extracted from the pose parameters as raw coordinates. The above description is merely illustrative and does not limit all possible scenarios for determining raw coordinates, but this is not intended to be exhaustive.

[0071] In the disclosed embodiment, the extracted original coordinates can be directly assigned as the edit starting point coordinates as the starting position of the editing process. In particular, in the case of in-place editing, the edit starting point coordinates determined by the user through the third selection operation will be discarded. Alternatively, in the case of in-place editing, the user can omit the third selection operation and no longer need to manually select the edit starting point coordinates. The above is only an example and does not limit all possible situations for converting original coordinates. It is just not an exhaustive list here.

[0072] In the disclosed embodiment, the configuration value corresponding to the edit mode can be first read from the edit request, and then the edit range can be calculated based on the edit start point coordinates and the edit end point coordinates. Finally, the specific edit parameters can be calculated based on the configuration value and the edit range. The above is only an example and does not limit all possible situations for determining edit parameters. This is not intended to be exhaustive.

[0073] In this way, the original coordinates are extracted from the pose parameters, ensuring that the editing operation is based on the actual position of the object, avoiding position deviation, and automatically determining the current position of the object. The user does not need to manually enter the coordinates, making the operation easier. By using the original coordinates as the editing starting point coordinates, the current position of the object can be automatically used as the editing starting point, reducing the user's setting steps and improving operational efficiency. In the process of determining the editing parameters, the editing start and end points define the operating range, and the configuration values ​​further refine the editing rules to ensure that the editing results meet expectations. The editing parameters can be automatically calculated without the need for manual adjustment by the user, significantly improving editing efficiency.

[0074] In some embodiments, editing parameters are determined based on the editing requirements, editing start point coordinates, and editing end point coordinates input by the user, including: when the editing type is target location editing, editing parameters are determined based on configuration values, editing start point coordinates, and editing end point coordinates.

[0075] The editing type includes at least target location editing. In the disclosed embodiments, target location editing refers to the process of copying the target object's template model to a user-specified target location during the editing process before performing the relevant editing operations. Specifically, unlike the original location editing type, the target location editing type involves spatial repositioning of the template model.

[0076] In the disclosed embodiment, the configuration value corresponding to the edit mode can be first read from the edit request, and then the edit range can be calculated based on the edit start point coordinates and the edit end point coordinates. Finally, the specific edit parameters can be calculated based on the configuration value and the edit range. The above is only an example and does not limit all possible situations for determining edit parameters. However, this is not an exhaustive list.

[0077] This allows users to freely select starting and ending points, extending editing beyond the object's current location to any desired location. Furthermore, users can modify the start or end point coordinates in real time, with the system automatically updating the editing range and parameters, enhancing operational flexibility.

[0078] In some embodiments, editing parameters are determined based on configuration values, editing start point coordinates, and editing end point coordinates, including: determining the editing area based on the editing start point coordinates and editing end point coordinates; determining area parameters based on the editing area and configuration values; determining editing parameters based on configuration values, editing start point coordinates, editing end point coordinates, and area parameters.

[0079] The editing area refers to the range of editing operations on the template model within the editing plane, which can be determined by the user-specified editing start and end coordinates. In the disclosed embodiment, the editing area is a geometric range that can be a line segment, a rectangular area, a circular area, a curved path, etc. The specific form depends on the editing requirements and the editing start and end coordinates.

[0080] In the disclosed embodiment, the boundary of the editing area can be first calculated based on the coordinates of the starting point and the end point. For example, mathematical formulas can be used to calculate the geometric characteristics of the editing area, such as line segment length, rectangle corner coordinates, path curve formula, etc. In particular, a geometric definition can be generated based on the shape of the editing area, such as the boundary points of the area, a bounding box, or a spatial data structure. The above is only an exemplary description and is not intended to limit all possible situations for determining the editing area, but it is not intended to be exhaustive here.

[0081] The regional parameters refer to the specific parameter values ​​calculated based on the configuration values ​​in the editing requirements and the editing area.

[0082] In the embodiment of the present disclosure, the area parameters can be calculated based on the editing mode, the configuration value and the spatial characteristics of the editing area. For example, when the editing mode is a fixed number array mode, the spacing of the models that can be arranged in the editing area can be calculated based on the number given by the configuration value and the parameters of the editing area, and the calculated spacing value is used as the area parameter. Similarly, when the editing mode is a fixed spacing array mode, the number of models that can be arranged in the editing area can be calculated based on the spacing given by the configuration value and the parameters of the editing area, and the calculated number value is used as the area parameter. The above is only an exemplary explanation and is not intended to limit all possible situations for determining area parameters, but it is not exhaustive here.

[0083] In the embodiment of the present disclosure, the edit start coordinates, edit end coordinates, configuration values ​​and area parameters can be integrated to generate complete edit parameters. The above is only an example and is not intended to limit all possible situations for determining edit parameters. It is just not exhaustive here.

[0084] In this way, by defining the specific editing range through editing start and end coordinates, editing operations are ensured to be performed within the set area. Users only need to define the start and end points to automatically generate the editing area, without having to manually draw the editing area. By calculating the area parameters, editing behavior can be further refined, such as distribution rules, array spacing, or the number of possible arrangements, to ensure that the editing results meet user requirements. By generating editing parameters, combining the editing requirements entered by the user, the editing start and end coordinates, and the calculation results, the completeness and accuracy of the editing behavior are guaranteed.

[0085] In some embodiments, the editing result of the target object is generated based on the template model, editing plane and editing parameters, including: generating a two-dimensional editing result based on the posture parameters and editing parameters; generating a three-dimensional editing result based on the editing plane and the two-dimensional editing result; and using the three-dimensional editing result as the editing result.

[0086] The two-dimensional editing result refers to the position and arrangement of the template model of the target object on the plane. In the embodiment of the present disclosure, the two-dimensional editing result is the arrangement or distribution result of the object in the two-dimensional space calculated based on the editing parameters and the pose parameters.

[0087] In the disclosed embodiments, the arrangement of objects on a two-dimensional plane can be first calculated based on the editing parameters and pose parameters. For example, the two-dimensional coordinates of each model in the operation result within the editing area of ​​the editing plane can be calculated based on the editing parameters, and the coordinates of each model can be used as the two-dimensional editing result. The above is merely an example and does not limit all possible scenarios for generating two-dimensional editing results, but this is not intended to be an exhaustive list.

[0088] The 3D editing result refers to the complete 3D position and arrangement information generated based on the 2D editing result, combined with normal information or other spatial characteristics on the editing plane. In the disclosed embodiments, the 3D editing result is the distribution or arrangement of the target object in 3D space generated based on the 2D editing result and the editing plane.

[0089] In the embodiment of the present disclosure, the coordinates of the two-dimensional editing result can be mapped to the three-dimensional space according to the editing plane, thereby obtaining the three-dimensional editing result. For example, if the editing plane is an XOY plane, the two-dimensional coordinates can be directly increased by the Z-axis value, thereby expanding the two-dimensional coordinates into three-dimensional coordinates. Similarly, if the editing plane is an inclined plane, the two-dimensional coordinates can be expanded into three-dimensional coordinates by adjusting according to the normal vector of the editing plane. Finally, the final position of each model in the operation result in the three-dimensional space can be calculated by combining the two-dimensional editing result and the spatial characteristics of the editing plane. In particular, the three-dimensional editing result may include the three-dimensional coordinates, direction, posture and other data of each model in the operation result. The above is only an exemplary explanation and is not intended to limit all possible situations for generating three-dimensional editing results, but it is not exhaustive here.

[0090] In the disclosed embodiments, the generated 3D editing results can be integrated into the final editing result. For example, the 3D editing results can be applied to the target scene, such as to generate a layout model or design model. Specifically, the editing results include the 3D position, arrangement rules, and distribution information of each model in the operation result. The above is merely an example and does not limit all possible scenarios for converting 3D editing results, but this is not an exhaustive list.

[0091] In this way, pose parameters and editing parameters provide the foundational information for object editing, ensuring the generated results meet user requirements. The 2D editing results simplify spatial calculations, breaking down complex 3D arrangements into 2D calculations and reducing operational complexity. Furthermore, the editing plane is used to extend the 2D results into 3D space, enabling complete 3D editing. Furthermore, 3D arrangements can be generated based on characteristics such as the orientation and position of the editing plane, adapting to complex scenarios.

[0092] In some embodiments, after determining the editing plane, the method further includes: obtaining the current coordinates at each moment in response to the user's first movement operation; and generating a master preview based on the current coordinates and the template model.

[0093] The first movement operation refers to a movement performed by a user during the editing process using an interactive device such as a mouse, touch screen, or trackball. In the disclosed embodiment, the first movement operation refers to a movement operation performed by a user during the process of moving the selected template model to the editing starting point coordinates.

[0094] The current coordinates at each moment refer to the coordinates input in real time by the interactive device according to the operation trajectory captured when the user performs the first movement operation.

[0095] In the embodiment of the present disclosure, the user's first movement operation can be monitored in real time to obtain the real-time current coordinates. For example, for a mouse drag operation, the current position of the mouse can be captured at certain time intervals to form the movement path of the first movement operation. Similarly, for a touch sliding operation, the coordinate points on the finger sliding path can be obtained to form the movement path of the first movement operation. Furthermore, after detecting the start of the first movement operation, the changing trajectory of the interactive device can be tracked in real time to obtain the current coordinates at each moment. For example, an event monitoring mechanism can be used to capture the input data of the interactive device in real time. In particular, the coordinate capture frequency can be adjusted as needed to ensure the smoothness of real-time interaction. The above is only an exemplary description and is not intended to limit all possible situations for obtaining the current coordinates, but it is not exhaustive here.

[0096] Master preview refers to the process of visually presenting the initial editing results to the user during the editing process, based on user interaction, combined with the template model and the current coordinates acquired in real time. In the disclosed embodiments, the master preview can be a simple geometric shape that represents the outer dimensions of the target object, or a complex 3D model with the same details as the target object.

[0097] In the disclosed embodiment, the current coordinates captured at each moment can be combined with the template model to generate a dynamic master preview effect. For example, a master preview can be displayed at the current coordinates at each moment, thereby combining the current coordinates with the geometric data of the template model to generate a real-time master preview. In particular, since a real-time master preview can be generated at each moment, the master preview can be synchronized with the user's first movement operation. The above is merely an exemplary description and does not limit all possible situations for generating master previews, but it is not intended to be exhaustive.

[0098] In this way, by responding to the user's first movement, the user's interaction trajectory can be captured in real time, ensuring that the dynamic editing process fully matches the user's operation. Furthermore, the user's operation trajectory is immediately reflected in the editing results, improving the smoothness and intuitiveness of the interaction. Simultaneously, the master preview can display the changes to the template model in real time, helping users intuitively understand the editing results. Users can adjust the operation trajectory or editing parameters based on the real-time preview to ensure the final effect meets expectations.

[0099] In some embodiments, after determining the editing starting point coordinates, it also includes: generating an operation preview based on the editing starting point coordinates; determining process parameters based on the editing starting point coordinates and editing requirements in response to the user's second movement operation; and updating the operation preview based on the template model, editing plane and process parameters.

[0100] The operation preview refers to real-time rendering and display of dynamic operation results. In the embodiment of the present disclosure, the operation preview is a temporary visual representation, including the arrangement, distribution or layout effect of the template model in the current editing state.

[0101] In the embodiment of the present disclosure, an initial operation preview can be first generated based on the editing starting point coordinates and the editing requirements. For example, in the fixed number array mode, the array starting point can be determined based on the editing starting point coordinates, and the number can be determined based on the configuration value of the editing requirements, and then a preliminary arrangement effect can be generated based on the number and the preset minimum spacing, and the preliminary arrangement effect generated at this time can be used as the initial operation preview. Similarly, in the fixed spacing array mode, the array starting point can be determined based on the editing starting point coordinates, and the spacing can be determined based on the configuration value of the editing requirements, and then a preliminary arrangement effect can be generated based on the spacing and the preset minimum number, and the preliminary arrangement effect generated at this time can be used as the initial operation preview. The above is only an exemplary explanation and is not intended to limit all possible situations for generating operation previews, but it is not exhaustive here.

[0102] The second movement operation refers to the user dragging or moving the cursor through the interactive device during the editing process to dynamically adjust the editing results. In the embodiment of the present disclosure, the second movement operation is the user moving the cursor from the selected editing starting point coordinates to the target editing end point coordinates.

[0103] The process parameters refer to parameters dynamically calculated during the editing process based on the current position information of the user's cursor and the editing requirements. In the disclosed embodiment, the process parameters are continuously updated with user interaction operations.

[0104] In an embodiment of the present disclosure, the changing trajectory of the cursor can be captured in real time when the user drags or moves the cursor. The real-time process parameters are then calculated based on the editing starting point coordinates, the user's second movement operation, and the editing requirements. For example, in a fixed number array mode, the current arrangement spacing value can be calculated based on the second movement operation, and the current arrangement spacing value is used as a process parameter. Similarly, in a fixed spacing array mode, the current arrangeable quantity value can be calculated based on the second movement operation, and the arrangeable quantity value is used as a process parameter. The above is only an exemplary explanation and is not intended to limit all possible situations for determining process parameters, but it is not exhaustive here.

[0105] In the embodiment of the present disclosure, the operation preview can be adjusted according to the process parameters of the real-time update. For example, in the fixed number array mode, the arrangement effect of the master model can be regenerated according to the spacing value calculated by the cursor position at the current moment, and the arrangement effect at this time is used as the latest operation preview, thereby replacing the operation preview at the previous moment, thereby updating the operation preview. Similarly, in the fixed spacing array mode, the arrangement effect of the master model can be regenerated according to the number value calculated by the cursor position at the current moment, and the arrangement effect at this time is used as the latest operation preview, thereby replacing the operation preview at the previous moment, thereby updating the operation preview. In particular, the operation preview can be dynamically rendered to the interface to display the result of the current editing state. Since a real-time operation preview can be generated at each moment, the distribution rule of the template model in the operation preview can change in real time with the user's second move operation, thereby intuitively displaying the editing effect. The above is only an exemplary description and is not intended to limit all possible situations for updating the operation preview. It is just not exhaustive here.

[0106] This real-time calculation of process parameters ensures the system can dynamically respond to user actions, and the process parameters provide detailed data support, ensuring that editing results meet user requirements. By displaying an operation preview, the current editing results can be displayed in real time, helping users intuitively understand the impact of their operations. Users can also adjust the cursor position or editing requirements based on the preview effect to avoid deviations in the final result.

[0107] In some embodiments, in response to the user's second movement operation, process parameters are determined based on the editing starting point coordinates and editing requirements, including: in response to the user's second movement operation, obtaining the current coordinates at each moment; generating process parameters based on the current coordinates, the editing starting point coordinates and editing requirements.

[0108] In the embodiments of the present disclosure, user operation events can be monitored in real time. For example, for mouse operations, the real-time coordinates of the cursor during movement can be captured, which can be two-dimensional plane coordinates relative to the screen; for touch operations, the real-time touch point coordinates during touch sliding can be recorded, etc. Further, the operation trajectory can be monitored in real time. For example, the system can obtain the position of the user's cursor or interactive device at regular time intervals. For mouse operations, the screen coordinate position of the cursor at each moment can be recorded separately during the user's movement of the mouse cursor; for touch operations, the screen touch points at each moment can be recorded separately during the user's touch. In particular, the current coordinates can be two-dimensional or three-dimensional, and can be set according to the requirements of the application scenario. The above is only an exemplary explanation and is not intended to limit all possible situations for obtaining the current coordinates, but it is not exhaustive here.

[0109] In an embodiment of the present disclosure, the current coordinates of the cursor can be captured in real time when the user drags or moves the cursor. The process parameters at any moment are then calculated based on the editing starting point coordinates, the current cursor coordinates, and the editing requirements. For example, in a fixed number array mode, the current arrangement spacing value can be calculated based on the cursor coordinates, and the current arrangement spacing value is used as a process parameter. Similarly, in a fixed spacing array mode, the current arrangeable quantity value can be calculated based on the cursor coordinates, and the arrangeable quantity value is used as a process parameter. The above is only an exemplary explanation and is not intended to limit all possible situations for generating process parameters, but it is not exhaustive here.

[0110] In this way, every user's movement is recorded in real time and reflected in the editing results, providing instant feedback. This allows real-time tracking of the user's dynamic operations to ensure the smoothness of the editing process. At the same time, through the dynamically generated process parameters, the accuracy of the editing operation can be guaranteed and the user's immediate adjustment needs can be supported.

[0111] In some embodiments, updating the operation preview according to the template model, the editing plane and the process parameters includes: generating a process editing result according to the template model, the editing plane and the process parameters; and updating the operation preview according to the process editing result.

[0112] The process editing result refers to the intermediate editing result dynamically calculated and generated during the editing process based on the user's second movement operation. In the disclosed embodiment, the process editing result can reflect the arrangement or layout of the current template model on the editing plane, based on the user's editing requirements and real-time process parameters.

[0113] In the embodiment of the present disclosure, the process editing result can be calculated based on the process parameters generated in real time, in combination with the editing plane and the template model. For example, for a fixed number array mode, the template models can be arranged equidistantly on the editing plane according to the calculated spacing value, thereby forming the process editing result at the current moment. Similarly, for a fixed spacing array mode, the number of template models that can be arranged at the current cursor position can be calculated on the editing plane according to the fixed spacing value, and the corresponding arrangement can be generated, thereby forming the process editing result at the current moment. The above is only an exemplary explanation and is not intended to limit all possible situations for generating process editing results, but it is not intended to be exhaustive here.

[0114] In the disclosed embodiments, the current layout of the template model can be determined based on the results of the process editing. Subsequently, the temporary layout of the template model can be rendered to the user interface, replacing the previous operation preview with only the current one, thereby updating the operation preview. The above is merely an example and does not limit all possible scenarios for updating the operation preview. This is not intended to be exhaustive.

[0115] In this way, the process editing results dynamically combine the template model, editing plane, and process parameters to accurately reflect the user's current operational intent. They can also adapt to different editing needs and flexibly generate customized arrangement effects. Specifically, the process editing results provide temporary editing data, laying the foundation for further operation previews and edit generation. Real-time updates to the operation preview help users intuitively understand the dynamic results of the current operation, enhancing the interactive experience. Furthermore, users can adjust the cursor position or other editing parameters at any time by observing the operation preview to ensure the final result meets expectations.

[0116] In some implementations, the editing requirement may further include whether to copy the original model. Specifically, whether to copy the original model in the editing requirement may be pre-bound with the editing type.

[0117] For example, when a user chooses to copy the original model, the edit type selected in the edit request can be ignored, and target location editing is selected by default. That is, after determining the edit starting point coordinates, a new template model is copied based on the template model at the edit starting point coordinates. At this point, a copy of the template model exists at the edit starting point coordinates on the editing plane. Furthermore, when the edit mode is fixed number array mode or fixed pitch array mode, the copy of the template model can be used as part of the array.

[0118] For example, if the user chooses not to copy the original model, the edit type selected by the user in the edit request can be ignored, and in-place editing is selected by default. That is, after the original coordinates are used as the editing starting coordinates, the template model at those coordinates will be used as part of the edit result. Furthermore, when the editing mode is fixed number array mode or fixed spacing array mode, the original template model will be used as part of the array.

[0119] In particular, when the user selects original location editing, the default option is not to copy the original model. Conversely, when the user selects target location editing, the default option is to copy the original model.

[0120] By introducing the option to copy the original model and combining it with the edit type and array mode, users can flexibly adjust the operation mode in various scenarios. By pre-binding whether to copy the original model and the edit type, the edit type can be automatically adjusted according to the binding logic, eliminating the need for users to make additional selections and manual settings, thus optimizing the user editing experience and improving editing efficiency.

[0121] In some implementations, a mouse click event can be used as the first selection operation to obtain the two-dimensional coordinates of the mouse on the screen. These screen coordinates are then converted to Normalized Device Coordinates (NDC) of the Web Graphics Library (WebGL) viewport. Next, using the camera position as the starting point of the ray, the NDC coordinates are converted to camera space using the projection matrix and the inverse of the view matrix. The camera space coordinates are then converted to world coordinates to obtain the ray direction vector. Finally, the model that intersects with the ray is used as the selected target object, and a corresponding template model is generated based on the target object's model.

[0122] Next, after determining the template model, the editing plane used to perform the editing operation can be obtained. For example, three default planes can be provided according to the coordinate system in the scene, which can include the XOY plane, the YOZ plane, and the XOZ plane. In particular, the operation of switching the default plane through the shortcut key can be used as the second selection operation. For example, the plane intersecting with the ray can also be manually selected as the editing plane, and the operation of selecting the plane by clicking can be used as the second selection operation. In particular, after selecting the editing plane, the normal vector of the plane can be recorded as the editing plane normal vector.

[0123] Subsequently, the user's mouse movement can be used as the first move operation, and a preview model is created based on the user's movement trajectory as a master preview. The master preview will continue to follow the mouse cursor until the user performs a third selection operation.

[0124] Next, the user's mouse click event can be used as a third selection operation to obtain the coordinates of the mouse on the screen. These coordinates can then be converted into two-dimensional coordinates in the editing plane coordinate system, and these two-dimensional coordinates can be used as the editing starting point coordinates. At this time, for the target location editing type, the copied array model can be displayed at that location. For the original location editing type, the editing starting point coordinates selected by the user through the third selection operation can be discarded or skipped, and the original location coordinates of the target object can be directly used as the editing starting point coordinates.

[0125] Then, you can use the editing start point coordinates and the editing plane normal vector to generate the editing plane coordinate system, that is, use the editing start point coordinates as the origin of the editing plane coordinate system, and combine the plane normal vector to generate the editing plane. By calculating the projection point of the current mouse position on the editing plane and the uv coordinates of the editing start point coordinates on the editing plane, the editing area vector obtained from the projection point of the mouse position to the editing start point coordinates is the two-dimensional parameter vector of the three-dimensional vector on the three-dimensional editing plane, thereby achieving dimensionality reduction. In particular, it is also possible not to generate the coordinate system of the editing plane based on the editing start point coordinates and the editing plane normal vector, but to directly use the coordinate system of the selected plane. At this time, it is necessary to perform corresponding offset calculations on each uv coordinate to obtain the correct coordinates corresponding to the coordinate system.

[0126] Based on the dimensionality reduction operation, the offset vector or model number can be calculated. For example, in the fixed number array mode, since the number is known, the number vector can be expressed by the following formula: countVector = (Math.max(count.x-1, 1), Math.max(count.y-1, 1))

[0127] In the formula, countVector represents the quantity vector, the minimum value is 1; count represents the quantity.

[0128] In particular, since there must be a template model or a copy of the template model at the editing starting point coordinate, the number in the x-direction and the number in the y-direction in the formula must be subtracted from the existing model.

[0129] At this point, the offset vector of the array model on the editing area vector can be expressed by the following formula:

[0130] offsetVector=uvVector.div(countVector)

[0131] Where offsetVector represents the offset vector; uvVector represents the editing area vector.

[0132] Similarly, for the fixed-pitch array mode, since the offset vector offsetVector is known, the count vector countVector can be expressed by the following formula:

[0133] countVector=uvVector.div(offsetVector)

[0134] Where countVector should be a positive integer.

[0135] Therefore, the quantity can be expressed as follows:

[0136] count.X=Math.ceil(Math.abs(countVector.x))

[0137] count.Y=Math.ceil(Math.abs(countVector.y))

[0138] Where count.X represents the number in the x-axis direction, and count.Y represents the number in the y-axis direction.

[0139] Since countVector and offsetVector describe the distribution on the editing plane, i.e. the position in the two-dimensional parameter space, the actual position must be converted into three-dimensional coordinates. Therefore, the model position at row i and column j can be expressed as follows:

[0140] pointi,j=arrayPlane.getPoint(uvArrayStartPoint.u+offsetVector.X*i,uvArrayStartPoint.v+offsetVector.Y*j)

[0141] In the formula, arrayPlane represents the editing plane; getPoint represents the coordinate dimension upgrade instruction.

[0142] In particular, during the second mouse movement operation, the position of the arrayed model changes dynamically, so a position preview can be added. The preview effect is a bounding box with the same posture as the original model.

[0143] Finally, after the user performs the fourth selection operation to confirm the array end point coordinates, the actual array model position can be generated based on the array end point coordinates.

[0144] In particular, after a single array is completed, you can press the shortcut key to exit the array or continue to the next array. The next array is to repeat the process of selecting the editing plane until the actual model position is generated.

[0145] Figure 2 A flow chart of a batch real-time editing method applicable to multi-dimensional objects is shown, Figure 2 As shown, including:

[0146] S201: The user selects a target object through a first selection operation to determine a template model;

[0147] S202: The user obtains the editing plane through the second selection operation;

[0148] S203: Create a preview model, which can move along with the mouse during the user's first movement operation;

[0149] S204a, the user determines the coordinates of the operation starting point through a third selection operation;

[0150] S204b, using the original position of the template model as the operation starting point coordinate;

[0151] S205, displaying a copy preview of the template model at the operation starting point coordinates;

[0152] S206, determining an array mode according to editing requirements;

[0153] S207: The user performs a second movement operation;

[0154] S208: The user determines the coordinates of the operation end point through the fourth selection operation;

[0155] S209, generating an operation result of the template model within the range of the operation starting point coordinate and the operation end point coordinate;

[0156] S210a, continue to the next operation;

[0157] S210b, exit the operation process and save the editing results.

[0158] It should be understood that Figure 2 The schematic diagram shown is only exemplary and not restrictive, and it is scalable, and those skilled in the art can Figure 2 Various obvious changes and / or substitutions can be made to the examples, and the resulting technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.

[0159] The present disclosure provides a batch real-time editing device suitable for multi-dimensional objects, such as Figure 3As shown, the device may include: a model determination module 301, for determining a template model of a target object according to a camera position in response to a first selection operation of a user; a plane determination module 302, for determining an editing plane in response to a second selection operation of a user; a starting point determination module 303, for determining the editing starting point coordinates according to the editing plane in response to a third selection operation of a user; an end point determination module 304, for determining the editing end point coordinates according to the editing plane in response to a fourth selection operation of a user; a parameter determination module 305, for determining editing parameters according to the editing requirements, editing starting point coordinates and editing end point coordinates input by the user; and a result generation module 306, for generating an editing result of the target object according to the template model, the editing plane and the editing parameters.

[0160] In some embodiments, the batch real-time editing device for multi-dimensional objects further includes: a continuous operation module 307 ( Figure 3 (not shown), in response to the user's new second selection operation, a new editing plane is determined, and a new editing result is generated based on the new editing plane, until all editing results are saved in response to the user's exit instruction.

[0161] In some embodiments, the model determination module 301 includes: a plane coordinate determination submodule for determining plane coordinates in response to a first selection operation by the user; and a template model determination submodule for determining a template model according to a camera position and plane coordinates.

[0162] In some embodiments, the device further includes: a posture calculation module for performing dimensionality reduction mapping on the template model according to the editing plane to generate posture parameters of the template model.

[0163] In some embodiments, the editing requirement includes at least: an editing type, an editing mode corresponding to the editing type, and a configuration value in the editing mode.

[0164] In some embodiments, the editing type includes at least: in-position editing; the parameter determination module 305 includes: an original coordinate determination submodule, which is used to determine the original coordinates of the target object according to the posture parameters when the editing type is in-position editing; a starting point coordinate conversion submodule, which is used to use the original coordinates as the editing starting point coordinates; an original position parameter determination submodule, which is used to determine the editing parameters according to the configuration value, the editing starting point coordinates and the editing end point coordinates.

[0165] In some embodiments, the editing type includes at least: target position editing; the parameter determination module 305 includes: a target position parameter determination submodule, which is used to determine the editing parameters according to the configuration value, the editing start point coordinates and the editing end point coordinates when the editing type is target position editing.

[0166] In some embodiments, the original position parameter determination submodule and / or the target position parameter determination submodule are used to: determine the editing area based on the editing start point coordinates and the editing end point coordinates; determine the area parameters based on the editing area and the configuration value; determine the editing parameters based on the configuration value, the editing start point coordinates, the editing end point coordinates and the area parameters.

[0167] In some embodiments, the result generation module 306 includes: a two-dimensional result generation sub-module, used to generate a two-dimensional editing result based on the posture parameters and editing parameters; a three-dimensional result generation sub-module, used to generate a three-dimensional editing result based on the editing plane and the two-dimensional editing result; and an editing result conversion sub-module, used to use the three-dimensional editing result as the editing result.

[0168] In some embodiments, the device further includes: a first movement acquisition module for acquiring the current coordinates at each moment in response to the user's first movement operation; and a master preview generation module for generating a master preview based on the current coordinates and the template model.

[0169] In some embodiments, the device also includes: an operation preview generation module for generating an operation preview based on the editing starting point coordinates; a process parameter determination module for determining the process parameters in response to the user's second movement operation based on the editing starting point coordinates and editing requirements; an operation preview update module for updating the operation preview based on the template model, editing plane and process parameters.

[0170] In some embodiments, the process parameter determination module is used to: obtain the current coordinates at each moment in response to the user's second movement operation; and generate process parameters according to the current coordinates, the editing starting point coordinates, and the editing requirements.

[0171] In some embodiments, the operation preview update module is used to: generate a process editing result based on the template model, the editing plane and the process parameters; and update the operation preview based on the process editing result.

[0172] For the description of specific functions and examples of each module and submodule of the device in the embodiment of the present disclosure, please refer to the relevant description of the corresponding steps in the above method embodiment, which will not be repeated here.

[0173] The batch real-time editing device for multi-dimensional objects in the embodiment of the present disclosure can more accurately identify the target object by combining the user's selection operation and the camera position, avoiding the situation where the wrong object is selected due to the complexity of the click area or the presence of occlusion. By determining the template model, the object of editing is clarified, and all subsequent operations are carried out on this basis to ensure the consistency of the editing process. At the same time, the user can freely select the reference plane without being restricted by the original position or direction of the object, so that the editing operation can adapt to more complex scenes and needs. By determining the editing start point and the editing end point, the starting position and the end position of the editing range can be clearly specified, thereby improving the editing efficiency. By calculating the editing parameters, it is possible to combine the editing requirements and various coordinates to flexibly generate different editing parameters to meet the user's diverse design goals. By generating the editing results according to the editing parameters and rendering them in real time, the user can immediately view the modification effects and quickly adjust the design plan. It can also support batch editing of multi-dimensional objects, which is particularly suitable for large-scale scene design.

[0174] The embodiment of the present disclosure provides a scene diagram of a method for batch real-time editing of multi-dimensional objects, such as Figure 4 shown.

[0175] As previously mentioned, the batch real-time editing method for multi-dimensional objects provided by the embodiments of the present disclosure is applied to electronic devices. The electronic devices are intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers.

[0176] Specifically, the electronic device can perform the following operations:

[0177] In response to the user's first selection operation, a template model of the target object is determined according to the camera position; in response to the user's second selection operation, an editing plane is determined; in response to the user's third selection operation, the editing start point coordinates are determined according to the editing plane; in response to the user's fourth selection operation, the editing end point coordinates are determined according to the editing plane; editing parameters are determined according to the editing requirements, editing start point coordinates and editing end point coordinates input by the user; and an editing result of the target object is generated according to the template model, the editing plane and the editing parameters.

[0178] It should be understood that Figure 4 The scene diagram shown is only illustrative and not restrictive. Those skilled in the art can Figure 4 Various obvious changes and / or substitutions can be made to the examples, and the resulting technical solutions still fall within the scope of the disclosure of the embodiments of the present disclosure.

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

[0180] According to an embodiment of the present disclosure, the present disclosure also provides an electronic device, a readable storage medium, and a computer program product.

[0181] Figure 5 A schematic block diagram of an example electronic device 500 that can be used to implement embodiments of the present disclosure is shown. The electronic device is intended to represent various forms of digital computers, such as laptop computers, desktop computers, workstations, personal digital assistants, servers, blade servers, mainframe computers, and other suitable computers. The electronic device can also represent various forms of mobile devices, such as personal digital assistants, cellular phones, smartphones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions are merely examples and are not intended to limit the implementation of the present disclosure described and / or claimed herein.

[0182] like Figure 5 As shown, the device 500 includes a computing unit 501, which can perform various appropriate actions and processes according to a computer program stored in a read-only memory (ROM) 502 or a computer program loaded from a storage unit 508 into a random access memory (RAM) 503. Various programs and data required for the operation of the device 500 can also be stored in the RAM 503. The computing unit 501, the ROM 502, and the RAM 503 are connected to each other via a bus 504. An input / output (I / O) interface 505 is also connected to the bus 504.

[0183] Various components in device 500 are connected to I / O interface 505, including: an input unit 506, such as a keyboard, mouse, etc.; an output unit 507, such as various types of displays, speakers, etc.; a storage unit 508, such as a magnetic disk, optical disk, etc.; and a communication unit 509, such as a network card, modem, wireless communication transceiver, etc. The communication unit 509 allows device 500 to exchange information / data with other devices via a computer network such as the Internet and / or various telecommunication networks.

[0184] The computing unit 501 can be any general-purpose and / or specialized processing component with processing and computing capabilities. Some examples of the computing unit 501 include, but are not limited to, a central processing unit (CPU), a graphics processing unit (GPU), various specialized artificial intelligence (AI) computing chips, various computing units that run machine learning model algorithms, a digital signal processor (DSP), and any appropriate processor, controller, microcontroller, etc. The computing unit 501 performs the various methods and processes described above, such as a batch real-time editing method applicable to multi-dimensional objects. For example, in some embodiments, the batch real-time editing method applicable to multi-dimensional objects can be implemented as a computer software program that is tangibly contained in a machine-readable medium, such as the storage unit 508. In some embodiments, part or all of the computer program can be loaded and / or installed on the device 500 via the ROM 502 and / or the communication unit 509. When the computer program is loaded into the RAM 503 and executed by the computing unit 501, one or more steps of the batch real-time editing method applicable to multi-dimensional objects described above can be performed. Alternatively, in other embodiments, the computing unit 501 may be configured in any other appropriate manner (eg, by means of firmware) to execute the batch real-time editing method applicable to multi-dimensional objects.

[0185] Various embodiments of the systems and techniques described herein can be implemented in digital electronic circuit systems, integrated circuit systems, field programmable gate arrays (FPGAs), application specific integrated circuits (ASICs), application specific standard products (ASSPs), system on chips (SOCs), complex programmable logic devices (CPLDs), computer hardware, firmware, software, and / or combinations thereof. These various embodiments can include being implemented in one or more computer programs that are executable and / or interpreted on a programmable system that includes at least one programmable processor, which can be a special purpose or general purpose programmable processor that can receive data and instructions from a storage system, at least one input device, and at least one output device, and transmit data and instructions to the storage system, the at least one input device, and the at least one output device.

[0186] The program code for implementing the method of the present disclosure can be written in any combination of one or more programming languages. These program codes can be provided to a processor or controller of a general-purpose computer, a special-purpose computer, or other programmable data processing device so that when the program code is executed by the processor or controller, the functions / operations specified in the flow chart and / or block diagram are implemented. The program code can be executed entirely on the machine, partially on the machine, as a stand-alone software package, partially on the machine and partially on a remote machine, or entirely on a remote machine or server.

[0187] In the context of the present disclosure, a machine-readable medium may be a tangible medium that may contain or store a program for use by or in conjunction with an instruction execution system, device, or equipment. A machine-readable medium may be a machine-readable signal medium or a machine-readable storage medium. A machine-readable medium may include, but is not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or equipment, or any suitable combination of the foregoing. More specific examples of machine-readable storage media may include an electrical connection based on one or more lines, a portable computer disk, a hard disk, a random access memory, a read-only memory, an erasable programmable read-only memory (EPROM), a flash memory, an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing.

[0188] To provide interaction with a user, the systems and techniques described herein can be implemented on a computer having: a display device (e.g., a cathode ray tube (CRT) or a liquid crystal display (LCD) monitor) for displaying information to the user; and a keyboard and pointing device (e.g., a mouse or trackball) through which the user can provide input to the computer. Other types of devices can also be used to provide interaction with the user; for example, the feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user can be received in any form (including acoustic input, voice input, or tactile input).

[0189] The systems and techniques described herein can be implemented in a computing system that includes back-end components (e.g., as a data server), or a computing system that includes middleware components (e.g., an application server), or a computing system that includes front-end components (e.g., a user computer with a graphical user interface or a web browser through which a user can interact with embodiments of the systems and techniques described herein), or a computing system that includes any combination of such back-end components, middleware components, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include a local area network (LAN), a wide area network (WAN), and the Internet.

[0190] A computer system may include a client and a server. The client and server are generally remote from each other and typically interact through a communication network. The client-server relationship arises through computer programs running on the respective computers and having a client-server relationship with each other. The server may be a cloud server, a server in a distributed system, or a server integrated with a blockchain.

[0191] It should be understood that the various forms of the processes shown above can be used to reorder, add, or delete steps. For example, the steps described in this disclosure can be performed in parallel, sequentially, or in a different order, as long as the desired results of the technical solutions disclosed in this disclosure can be achieved. This is not limited herein.

[0192] The above specific embodiments do not constitute a limitation on the scope of protection of this disclosure. Those skilled in the art will appreciate that various modifications, combinations, sub-combinations, and substitutions may be made based on design requirements and other factors. Any modifications, equivalent substitutions, and improvements made within the principles of this disclosure shall be included within the scope of protection of this disclosure.

Claims

1. A batch real-time editing method for multi-dimensional objects, characterized in that: The method comprises: In response to a first selection operation by the user, determining a template model of the target object according to the camera position; In response to a second selection operation by the user, determining the editing plane; In response to a third selection operation by the user, determining the editing start point coordinates according to the editing plane; In response to a fourth selection operation by the user, determining the editing end point coordinates according to the editing plane; Determining editing parameters according to the editing requirements input by the user, the editing starting point coordinates, and the editing end point coordinates; An editing result of the target object is generated according to the template model, the editing plane and the editing parameters.

2. The method according to claim 1, characterized in that The method further comprises: In response to the user's new second selection operation, a new editing plane is determined, and a new editing result is generated based on the new editing plane. Until responding to the user's exit instruction, all editing results are saved.

3. The method according to claim 1, characterized in that The step of determining a template model of the target object according to the camera position in response to the first selection operation of the user includes: In response to the first selection operation by the user, determining plane coordinates; The template model is determined according to the camera position and the plane coordinates.

4. The method according to claim 1, wherein After determining the editing plane, it also includes: According to the editing plane, the template model is subjected to dimensionality reduction mapping to generate the posture parameters of the template model.

5. The method according to claim 4, characterized in that The editing requirement includes at least: an editing type, an editing mode corresponding to the editing type, and a configuration value in the editing mode.

6. The method according to claim 5, characterized in that The editing types include at least: in-place editing; The determining of editing parameters according to the editing requirements input by the user, the editing starting point coordinates, and the editing end point coordinates includes: When the editing type is the in-place editing, determining the original coordinates of the target object according to the posture parameters; Using the original coordinates as the editing starting point coordinates; The editing parameters are determined according to the configuration value, the editing start point coordinates, and the editing end point coordinates.

7. The method according to claim 5, characterized in that The editing types include at least: target position editing; The determining of editing parameters according to the editing requirements input by the user, the editing starting point coordinates, and the editing end point coordinates includes: When the editing type is the target position editing, the editing parameters are determined according to the configuration value, the editing start point coordinates, and the editing end point coordinates.

8. The method according to any one of claims 6 or 7, characterized in that: The determining the editing parameters according to the configuration value, the editing starting point coordinates, and the editing end point coordinates includes: Determine an editing area according to the editing start point coordinates and the editing end point coordinates; Determining area parameters according to the edit area and the configuration value; The editing parameters are determined according to the configuration value, the editing start point coordinates, the editing end point coordinates and the area parameters.

9. The method according to claim 4, characterized in that Generating the editing result of the target object according to the template model, the editing plane and the editing parameters includes: generating a two-dimensional editing result according to the posture parameters and the editing parameters; generating a three-dimensional editing result according to the editing plane and the two-dimensional editing result; The three-dimensional editing result is used as the editing result.

10. The method according to claim 1, characterized in that After determining the editing plane, it also includes: In response to the user's first movement operation, obtaining the current coordinates at each moment; A master preview is generated according to the current coordinates and the template model.

11. The method according to claim 1, wherein After determining the coordinates of the editing starting point, it also includes: Generate an operation preview according to the editing starting point coordinates; In response to a second movement operation by the user, determining process parameters according to the editing starting point coordinates and the editing requirements; The operation preview is updated according to the template model, the editing plane and the process parameters.

12. The method according to claim 11, characterized in that The step of determining, in response to the second movement operation of the user, process parameters according to the editing starting point coordinates and the editing requirement includes: In response to the user's second movement operation, obtaining the current coordinates at each moment; The process parameters are generated according to the current coordinates, the editing starting point coordinates and the editing requirements.

13. The method according to claim 12, characterized in that The updating of the operation preview according to the template model, the editing plane and the process parameters includes: generating a process editing result according to the template model, the editing plane and the process parameters; The operation preview is updated according to the process editing result.

14. A batch real-time editing device for multi-dimensional objects, characterized in that: The device comprises: a model determination module, configured to determine a template model of the target object according to a camera position in response to a first selection operation by the user; a plane determining module, configured to determine an editing plane in response to a second selection operation by the user; a starting point determination module, configured to determine the coordinates of the editing starting point according to the editing plane in response to a third selection operation by the user; an end point determination module, configured to determine the coordinates of the editing end point according to the editing plane in response to a fourth selection operation by the user; A parameter determination module, configured to determine editing parameters according to the editing requirements input by the user, the editing start point coordinates, and the editing end point coordinates; The result generating module is used to generate the editing result of the target object according to the template model, the editing plane and the editing parameters.

15. An electronic device, characterized in that: The electronic device comprises: at least one processor; and a memory communicatively connected to at least one processor; wherein, The memory stores instructions that can be executed by at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the method of any one of claims 1 to 13.

16. A non-transitory computer-readable storage medium storing computer instructions, characterized in that: The computer instructions are for causing a computer to perform a method according to any one of claims 1-13.

Citation Information

Patent Citations

  • Movable platform control method and device and control system

    CN113906358A

  • Method and system for processing three-dimensional model in CAE (Computer Aided Engineering) software

    CN116433794A

  • Model array copy generation method and device in three-dimensional virtual scene modeling and medium

    CN118015183A