Online vector house type graph processing method and device

Through the combination of batch rendering technology, texture set technology and rendering engine, the rendering process of vector floor plan is optimized, and the problem of excessive rendering times in the existing technology is solved, efficient rendering and online editing is achieved, and user experience is improved. Teamwork efficiency.

CN119065564APending Publication Date: 2024-12-03BEIJING FANGTIANXIA JIAJU NETWORK TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202411044901.0
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-07-31
Publication Date
2024-12-03

AI Technical Summary

Technical Problem

Existing online drawing tools render too many times during the real-time rendering of vector floor plans, resulting in low rendering efficiency.

Method used

Batch rendering technology and texture set technology combined with the rendering engine are used to optimize the rendering of vector floor plans, and cloud storage is carried out through cloud services to reduce the number of rendering calls and realize rapid drawing, editing and interactive display.

Benefits of technology

It improves the rendering efficiency of vector floor plan, supports multi-user online editing, promotes teamwork and remote design, and improves user interaction experience.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119065564A_ABST
    Figure CN119065564A_ABST
Patent Text Reader

Abstract

The invention discloses an online vector house type image processing method and device. The method comprises the following steps: acquiring a house type data structure; the house type data structure at least comprises corner points, wall types and room types, responding to user interaction instructions of different users with authority, determining the user interaction instructions based on the house type data structure, and executing operations corresponding to instruction types through a pre-constructed vector graphic tool set for the user interaction instructions of the different users. The operation corresponding to the instruction type comprises one or more of an adding operation, a moving operation, a zooming operation and a rotating operation, and performing optimization rendering on the vector house type image through a preset optimization rendering technology and a rendering engine and displaying the vector house type image. The preset optimization rendering technology at least comprises a batch rendering technology and a texture set technology, and the preset optimization rendering technology is used for reducing the number of times of rendering calling.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the fields of Internet technology and graphics processing technology, and more specifically, to an online vector floor plan processing method and device. Background Art

[0002] With the development of Internet technology, users' demand for online design tools is growing. Especially in industries such as real estate planning and interior design, the ability to conveniently draw and modify floor plans online has become an urgent need.

[0003] The prior art is to perform real-time rendering of vector floor plans through some online drawing tools. However, the existing online drawing tools have low rendering efficiency of the vector floor plans due to excessive rendering times during the real-time rendering of the vector floor plans.

[0004] Therefore, how to improve the rendering efficiency of vector floor plans is a problem that needs to be solved urgently in this application. Summary of the invention

[0005] In view of this, the present application discloses an online vector floor plan processing method and device, which aims to reduce the number of rendering calls, improve the rendering efficiency of vector floor plans, and achieve the purpose of fast drawing, editing and interactive display of online vector floor plans.

[0006] In order to achieve the above purpose, the disclosed technical solution is as follows:

[0007] The first aspect of the present application discloses an online vector floor plan processing method, the method comprising:

[0008] Acquire a housing type data structure; the housing type data structure at least includes corner points, wall types and room types;

[0009] Responding to user interaction instructions of different authorized users; the user interaction instructions are determined based on the apartment data structure;

[0010] For user interaction instructions of different users, the operation corresponding to the instruction type is executed through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure; the operation corresponding to the instruction type includes one or more of an adding operation, a moving operation, a scaling operation and a rotating operation;

[0011] The vector floor plan is optimized and rendered and displayed through preset optimized rendering technology and rendering engine, and the optimized rendered vector floor plan is stored in the cloud through cloud service; wherein, the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

[0012] Preferably, the responding to the user interaction instructions of different authorized users includes:

[0013] Responding to user interaction instructions for drawing corner points generated by different authorized users according to the corner points in the apartment data structure;

[0014] Responding to user interaction instructions for drawing wall types generated by different authorized users according to the wall types in the apartment data structure;

[0015] Respond to user interaction instructions of drawing room types generated by different authorized users according to the room types in the apartment data structure.

[0016] Preferably, the user interaction instructions for different users execute operations corresponding to the instruction types through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure, including:

[0017] According to a pre-built vector graphics tool set, executing a corner point drawing operation corresponding to the user interaction instruction for drawing the corner point;

[0018] According to the vector graphics tool set, executing the wall drawing operation corresponding to the user interaction instruction for drawing the wall;

[0019] According to the vector graphics toolset, a room class drawing operation corresponding to the user interaction instruction for drawing a room class is executed to draw a vector floor plan corresponding to the floor plan data structure.

[0020] Preferably, the optimizing rendering and displaying the vector floor plan by using a preset optimized rendering technology and a rendering engine, and storing the optimized rendered vector floor plan in the cloud by using a cloud service, includes:

[0021] Optimizing and rendering the vector floor plan by using batch rendering technology and texture set technology;

[0022] Obtain the screen parameters of the display device and use the adaptive rendering technology of the rendering engine to adaptively display the optimized rendered vector floor plan;

[0023] The optimized and rendered vector floor plan is stored in the cloud through a cloud service; wherein the cloud service is used to realize online storage and real-time synchronization of floor plan data, and support multiple users to edit the same vector floor plan online at the same time.

[0024] Preferably, before responding to the user interaction instructions of different authorized users, the method further includes:

[0025] Initialize the rendering engine application in the web page environment to complete the settings of the renderer and stage, and provide a basic environment for vector graphics drawing.

[0026] Preferably, the process of constructing a vector graphics toolset includes:

[0027] A vector graphics toolset created through an abstract base class for the graphics context of a rendering engine.

[0028] The second aspect of the present application discloses an online vector floor plan processing device, the device comprising:

[0029] An acquisition unit, used to acquire a house type data structure; the house type data structure at least includes corner points, wall types and room types;

[0030] A response unit, used to respond to user interaction instructions of different authorized users; the user interaction instructions are determined based on the apartment data structure;

[0031] An execution unit is used to execute operations corresponding to the user interaction instructions of different users through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure; the operations corresponding to the instruction types include one or more of an adding operation, a moving operation, a scaling operation, and a rotating operation;

[0032] An optimized rendering unit is used to optimize the rendering and display of the vector floor plan through preset optimized rendering technology and rendering engine, and to store the optimized rendered vector floor plan in the cloud through cloud service; wherein, the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

[0033] Preferably, the response unit comprises:

[0034] The first response module is used to respond to user interaction instructions for drawing corner points generated by different authorized users according to the corner points in the house type data structure;

[0035] The second response module is used to respond to user interaction instructions for drawing wall types generated by different authorized users according to the wall types in the apartment data structure;

[0036] The third response module is used to respond to user interaction instructions for drawing room types generated by different authorized users according to the room types in the apartment data structure.

[0037] Preferably, the execution unit includes:

[0038] A first execution module, configured to execute a corner point drawing operation corresponding to the user interaction instruction for drawing corner points according to a pre-built vector graphics tool set;

[0039] A second execution module, configured to execute the wall drawing operation corresponding to the user interaction instruction for drawing the wall class according to the vector graphics tool set;

[0040] The third execution module is used to execute the room class drawing operation corresponding to the user interaction instruction for drawing the room class according to the vector graphics tool set, so as to draw the vector floor plan corresponding to the floor plan data structure.

[0041] Preferably, the optimization rendering unit includes:

[0042] An optimized rendering module, used for optimizing the rendering of the vector floor plan by using batch rendering technology and texture set technology;

[0043] An acquisition module is used to acquire screen parameters of a display device and to adaptively display the optimized rendered vector floor plan using the adaptive rendering technology of a rendering engine;

[0044] The storage module is used to store the optimized and rendered vector floor plan in the cloud through a cloud service; wherein the cloud service is used to realize online storage and real-time synchronization of floor plan data, and support multiple users to edit the same vector floor plan online at the same time.

[0045] It can be known from the above technical scheme that the present application discloses an online vector floor plan processing method and device, which obtains a floor plan data structure; the floor plan data structure includes at least corner points, wall types and room types, responds to user interaction instructions of different authorized users, and the user interaction instructions are determined based on the floor plan data structure. For the user interaction instructions of different users, the operations corresponding to the instruction types are executed through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure. The operations corresponding to the instruction types include one or more of adding operations, moving operations, scaling operations and rotating operations. The vector floor plan is optimized and rendered and displayed through preset optimized rendering technology and rendering engine, and the optimized and rendered vector floor plan is stored in the cloud through cloud service, wherein the preset optimized rendering technology includes at least batch rendering technology and texture set technology, and the preset optimized rendering technology is used to reduce the number of rendering calls. Through the above scheme, in the process of optimizing the rendering of the vector floor plan, the vector floor plan is optimized and rendered through batch rendering technology, texture set technology and rendering engine. Since batch rendering technology can reduce the number of drawing calls, texture set technology reduces the number of times the image processor loads textures by merging multiple textures into a large texture atlas, thereby reducing the number of rendering calls and improving the rendering efficiency of the vector floor plan. In addition, the optimized and rendered vector floor plan is stored in the cloud through cloud services to achieve online storage and real-time synchronization of floor plan data, respond to user interaction instructions of different authorized users, support multiple users to edit the same floor plan online at the same time, promote teamwork and remote design, and use the rendering engine to optimize the rendering of the vector floor plan, so as to achieve the purpose of fast drawing, editing and interactive display of online vector floor plans. BRIEF DESCRIPTION OF THE DRAWINGS

[0046] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art will be briefly introduced below. Obviously, the drawings described below are only embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on the provided drawings without paying any creative work.

[0047] Figure 1 A schematic diagram of a process of an online vector floor plan processing method disclosed in an embodiment of the present application;

[0048] Figure 2 A schematic diagram of executing corresponding operations according to a user interaction instruction determined according to an apartment type data structure disclosed in an embodiment of the present application;

[0049] Figure 3 A schematic diagram of the structure of an online vector floor plan processing device disclosed in an embodiment of the present application;

[0050] Figure 4 This is a schematic diagram of the structure of an electronic device disclosed in an embodiment of the present application. DETAILED DESCRIPTION

[0051] The following will be combined with the drawings in the embodiments of the present application to clearly and completely describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work are within the scope of protection of this application.

[0052] In this application, the terms "comprises", "comprising" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, article or device comprising a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, an element defined by the sentence "comprising a ..." does not exclude the presence of other identical elements in the process, method, article or device comprising the element.

[0053] As can be seen from the background technology, the prior art is to use some online drawing tools to perform real-time rendering of vector floor plans. However, the existing online drawing tools have low rendering efficiency of vector floor plans due to excessive rendering times during the real-time rendering of vector floor plans. Therefore, how to improve the rendering efficiency of vector floor plans is a problem that needs to be solved urgently in this application.

[0054] In order to solve the above problems, the present application discloses an online vector floor plan processing method and device. In the process of optimizing and rendering the vector floor plan, the vector floor plan is optimized and rendered through batch rendering technology, texture set technology and rendering engine. Since batch rendering technology can reduce the number of drawing calls, texture set technology reduces the number of times the image processor loads textures by merging multiple textures into a large texture atlas, thereby reducing the number of rendering calls and improving the rendering efficiency of the vector floor plan. In addition, the optimized and rendered vector floor plan is stored in the cloud through cloud services to achieve online storage and real-time synchronization of floor plan data, respond to user interaction instructions from different authorized users, support multiple users to edit the same floor plan online at the same time, promote teamwork and remote design, and use the rendering engine to optimize the rendering of the vector floor plan, so as to achieve the purpose of rapid drawing, editing and interactive display of online vector floor plans. The specific implementation method is specifically described through the following embodiments.

[0055] refer to Figure 1As shown, an online vector floor plan processing method disclosed in an embodiment of the present application is provided. The online vector floor plan processing method mainly includes the following steps:

[0056] S101: Acquire a house type data structure; the house type data structure at least includes corner points, wall types and room types.

[0057] The house type data structure is a data model used to describe and organize the internal layout information of a house. This data structure usually includes information such as corner points, wall types, room types, room size, shape, location, purpose, and relationship with other rooms.

[0058] When designing the housing data structure, it is necessary to consider how to effectively express these complex spatial relationships to facilitate computer processing and user interaction.

[0059] Initialize the rendering engine (PixiJS) application in the web environment to complete the settings of the renderer and stage, providing a basic environment for the subsequent drawing of vector floor plans.

[0060] S102: Responding to user interaction instructions of different authorized users; the user interaction instructions are determined based on the apartment type data structure.

[0061] The specific process of responding to user interaction instructions of different authorized users is as follows:

[0062] Respond to user interaction instructions for drawing corner points generated by different authorized users based on the corner points in the apartment data structure; respond to user interaction instructions for drawing wall classes generated by different authorized users based on the wall classes in the apartment data structure; respond to user interaction instructions for drawing room classes generated by different authorized users based on the room classes in the apartment data structure.

[0063] Respond to user interaction commands from authorized users to support multiple users editing the same floor plan online at the same time, promoting teamwork and remote design.

[0064] Permissions are a key mechanism to ensure system security and data protection, which involves the allocation of roles and responsibilities of different users in different systems or applications. It aims to ensure that only authorized users can perform online vector floor plan drawing.

[0065] S103: For user interaction instructions of different users, the operation corresponding to the instruction type is executed through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure; the operation corresponding to the instruction type includes one or more of an adding operation, a moving operation, a scaling operation and a rotating operation.

[0066] In S103, a vector graphics toolset is created through the abstract base class (Graphics class) of the graphics context of PixiJS.

[0067] You can also use the brush tool (PIXI.Graphics) to create a series of vector graphics drawing tools, namely the vector graphics tool set, such as the rectangle tool for drawing walls, the custom path tool for doors and windows, etc., and implement customized functions such as color filling and border style.

[0068] The vector graphics toolset is a vector graphics toolset used to draw floor plans. The vector graphics toolset supports the drawing of basic shapes such as straight lines, curves, rectangles, circles, and the customization of line styles and fill colors, making it possible to accurately outline room layouts.

[0069] Drawing floor plans through user interaction commands combined with vector graphics toolsets has become an efficient and flexible method that not only accurately represents spatial layouts, but also allows for easy modification and sharing, meeting the needs of different user groups.

[0070] User interaction instructions refer to the commands issued by users to the vector graphics toolset through the graphical user interface (GUI) or command line interface (CLI) to control the creation, editing and operation of graphics. These instructions include creating objects, editing objects, setting properties, combining and decomposing, and managing layers.

[0071] Create objects: such as drawing basic shapes such as straight lines, rectangles, circles, etc.

[0072] Edit objects: including moving, scaling, rotating, cutting, copying, pasting, etc.

[0073] Property settings: Set the object’s color, line width, fill and other styles.

[0074] Combination and decomposition: combine multiple objects into a whole, or decompose the whole into single objects.

[0075] Layer management: create, delete, switch layers, and adjust the order and visibility of layers.

[0076] Among them, the PixiJS event system is used to develop interactive components such as drag-and-drop functions, resizing tools, and object alignment guides to improve the user's control experience and accuracy during the drawing process. Users can draw and modify vector floor plans directly in the browser using a mouse or touch screen.

[0077] Vector graphics toolsets are a series of software tools used to create, edit and manipulate vector graphics. Vector graphics toolsets include but are not limited to Adobe Illustrator, CorelDRAW and other vector graphics toolsets. These toolsets usually have the following functions:

[0078] 1. Vector drawing: Create graphics using vector format to ensure clarity at any resolution;

[0079] 2. Precise control: Provide precise coordinate and size input to ensure the accuracy of the graphics;

[0080] 3. Layer management: support layer operations, easy to organize and manage complex graphics;

[0081] 4. Data import / export: supports data import and export in multiple formats to facilitate data exchange and sharing.

[0082] The process of drawing a vector floor plan is as follows:

[0083] 1. Initialization interface: start the vector graphics tool, set the workspace and unit system;

[0084] 2. Create basic shapes: Use the Create Object command to draw basic elements such as rooms, corners, walls, rooms, doors, windows, etc.

[0085] 3. Edit and adjust: Use editing commands to adjust the position, size and properties of the object to match the actual apartment data;

[0086] 4. Add details: such as furniture, decorations, etc., to further enrich the details of the floor plan;

[0087] 5. Layer management: Use layer management commands to organize graphic elements and improve editing efficiency;

[0088] 6. Export and save: Export the completed floor plan into vector format for easy subsequent editing and use.

[0089] According to the latest industry trends, the application of vector graphics toolsets in drawing floor plans can be continuously optimized. For example, by integrating artificial intelligence technology, hand-drawn sketches can be automatically recognized and converted into precise vector graphics, thereby improving work efficiency. In addition, some software also provides integration with cloud platforms, making team collaboration and remote work more convenient.

[0090] By combining user interaction commands with vector graphics toolsets, floor plans can be drawn efficiently and accurately, meeting the needs of all aspects from design to construction and sales. With the continuous advancement of technology, the application of this field will become more extensive and in-depth.

[0091] For user interaction instructions of different users, the process of executing the operation corresponding to the instruction type through the pre-built vector graphics tool set to draw the vector floor plan corresponding to the floor plan data structure is as follows:

[0092] According to the pre-built vector graphics toolset, the corner point drawing operation corresponding to the user interaction instruction for drawing the corner point is executed; according to the vector graphics toolset, the wall drawing operation corresponding to the user interaction instruction for drawing the wall class is executed; according to the vector graphics toolset, the room drawing operation corresponding to the user interaction instruction for drawing the room class is executed to draw the vector floor plan corresponding to the floor plan data structure.

[0093] It should be noted that the graphics tool set is bound to mouse actions, such as mouse press, mouse move, mouse lift, etc., to implement operations corresponding to the instruction type, such as graphics addition, movement, scaling, rotation, etc. At the same time, auxiliary tools such as grid systems and alignment guides are developed to improve the accuracy of user operations.

[0094] To facilitate understanding of the operations corresponding to the instruction types executed by the pre-built vector graphics toolset, combined with Figure 2 To explain, Figure 2 A schematic diagram showing operations corresponding to instruction types executed by a pre-built vector graphics tool set.

[0095] Figure 2 In the floor plan data interface, the Floorplan class includes the Corner class, the Wall class, and the Room class. The Corner UI class inherits PIXI.Sprite; the Wall UI class inherits PIXI.Graphics; and the Room UI class inherits PIXI.Graphics.

[0096] The CornerUI class inherits Corner and executes the corner drawing operations corresponding to the user interaction instructions for drawing corners as follows:

[0097] 1. Respond to the signal generated by the mouse being pressed (mousedown), trigger the setting of the drag object as the current corner point, so that the user can drag the corner point. The dragging function is implemented in the pointermove of the scene class (scene);

[0098] 2. Respond to the signal generated by mouse movement (mousemove), trigger the setting of the current corner point state mouseMoved to true;

[0099] 3. In response to the signal generated by the mouse being raised (mouseup), the following steps are triggered:

[0100] (1) If the current corner point is dragged, the operation record is written to facilitate the undo operation and the recovery operation after undo;

[0101] (2) If the dragged point falls on another point, the two points are merged and the operation record is written;

[0102] (3) If the current mode is deletion, delete the corner point and perform related processing (determine whether the related wall needs to be deleted), and write the operation record;

[0103] (4) Restore the current object state.

[0104] 4. In response to the signal generated by mouseover, the hotspot object is set as the current corner point, so that the user can judge whether to merge the two points when adding a new corner point or dragging and dropping other corner points;

[0105] 5. In response to the signal generated by the mouse moving away (mouseout), trigger the cancellation of setting the hotspot object as the current corner point;

[0106] 6. Draw the corner points (setTexture) and set different textures according to whether it is selected, whether the mouse is moved over, and whether the house is closed, so that users can quickly identify the current status.

[0107] Through the WallUI class inheriting the Wall class, the wall class drawing operations corresponding to the user interaction instructions for drawing the wall class are as follows:

[0108] 1. Respond to the signal generated by the mouse being pressed (pointerdown) to trigger setting the dragged object as the current object, so that the user can drag the wall. The dragging function is implemented in pointermove of the scene class;

[0109] 2. Respond to the signal generated by the mouse movement and trigger the setting of the current object state mouseMoved to true;

[0110] 3. In response to the signal generated by the mouse being raised (mouseup), perform the following steps:

[0111] (1) If the current object is dragged, the operation record is written to facilitate the undo operation and the recovery operation after the undo operation;

[0112] (2) For spacing or boundaries (such as the wall of a residential area), if a click signal is received, a setting dialog box for spacing or boundaries is called up;

[0113] (3) If the current mode is deletion, delete the object and perform related processing (determine whether the related wall needs to be deleted), and write the operation record;

[0114] (4) Restore the current object state.

[0115] 4. In response to the signal generated by the mouse over, the hotspot object is set as the current object, so that when the user adds a new corner point, it can be judged that it falls on the household and processed accordingly (for example, when adding the building spacing function, it is convenient to determine which two buildings are the distance);

[0116] 5. In response to the signal generated by the mouse moving away, trigger the cancellation of setting the hotspot object as the current object;

[0117] 6. Draw the wall graphic draw, and draw the wall as a closed shape with a width of 1 pixel and a length equal to the distance between the two endpoints.

[0118] The RoomUI class inherits the Room class and executes the room class drawing operations corresponding to the user interaction instructions of the room class as follows:

[0119] 1. Respond to the signal generated by the mouse being pressed (pointerdown), trigger the setting of the dragged object as the current object, so that the user can drag the object. The dragging function is implemented in pointermove of the scene class;

[0120] 2. Respond to the signal generated by mousemove and trigger setting the current object state mouseMoved to true;

[0121] 3. In response to the signal generated by mouseup, trigger the execution of the following steps:

[0122] (1) If the current object is dragged, the operation record is written to facilitate the undo operation and the recovery operation after the undo operation;

[0123] (2) If the signal received is a click signal, the room settings dialog box is called up.

[0124] (3) Restore the current object state.

[0125] 4. In response to mouseover, trigger setting the hotspot object as the current object, so that when the user adds a new corner point, it can be judged that it falls on the household room and make corresponding processing (for example, when adding the building spacing function, it is convenient to determine which two buildings are the distance);

[0126] 5. In response to the signal generated by mouseout, trigger the cancellation of setting the hotspot object as the current object;

[0127] 6. Draw the graphics of the drawing room.

[0128] S104: Optimize rendering and display the vector floor plan through preset optimized rendering technology and PixiJS, and store the optimized rendered vector floor plan in the cloud through cloud service; wherein the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

[0129] Batch rendering technology is a method used by most engines to improve rendering efficiency. The basic principle is to combine some objects with the same rendering state into a large object and submit it to the GPU for drawing at one time. If it is not batched, it will have to be submitted many times. Therefore, batch rendering technology can significantly save draw calls. In fact, this mainly saves CPU time. The CPU goes from submitting multiple times to submitting once, and the GPU does not need to switch rendering states multiple times, thereby improving rendering efficiency.

[0130] Texture set technology reduces the number of times the graphics processing unit (GPU) loads textures by merging multiple textures into one large texture map, namely a texture atlas, thereby improving rendering efficiency. Texture set technology reduces the burden on the GPU by reducing the frequency of texture switching, making scene rendering more efficient. In Unity, the use of texture sets involves assigning materials to game objects and correctly mapping each texture to the object using UV coordinates as a reference. In this way, the performance and rendering efficiency of 3D scenes can be significantly improved.

[0131] PixiJS's batch rendering and atlas technology are used to reduce the number of rendering calls and improve drawing efficiency, maintaining a smooth user experience even when processing complex floor plans.

[0132] By batch processing graphic elements and rationally organizing texture sets, GPU load is reduced to ensure efficient rendering of a large number of graphic elements.

[0133] Develop backend interfaces to implement cloud storage, version control, and real-time synchronization of floor plan data, and support multi-user collaborative editing.

[0134] Specifically, the vector floor plan is optimized and rendered and displayed through the preset optimized rendering technology and PixiJS, and the optimized and rendered vector floor plan is stored in the cloud through the cloud service, as shown in A1-A3.

[0135] A1: Optimize the rendering of vector floor plans through batch rendering technology and texture set technology.

[0136] A2: Obtain the screen parameters of the display device and use the adaptive rendering technology of the rendering engine to adaptively display the optimized rendered vector floor plan.

[0137] It should be noted that the adaptive rendering capabilities of PixiJS can be used to ensure that the drawing interface can be well displayed on different devices and screen sizes, thereby improving the consistency of cross-platform use.

[0138] A3: The optimized and rendered vector floor plan is stored in the cloud through cloud services. The cloud service is used to realize online storage and real-time synchronization of floor plan data, and supports multiple users to edit the same vector floor plan online at the same time.

[0139] It should be noted that, combined with cloud services, online storage and real-time synchronization of floor plan data can be achieved, supporting multiple users to edit the same floor plan online at the same time, thus promoting teamwork and remote design.

[0140] This solution aims to use the powerful functions of PixiJS to realize an efficient, easy-to-use and highly interactive online vector floor plan drawing platform.

[0141] The method provided by this solution not only improves the efficiency and quality of online vector floor plan drawing, but also greatly enhances the user interaction experience and lowers the technical threshold, allowing designers and ordinary users to easily create professional-level floor plan designs. In addition, the cloud integration feature further promotes collaboration between teams and efficient project management.

[0142] This solution deeply integrates PixiJS's graphics processing capabilities with modern Web technologies to create a high-performance, highly interactive online vector floor plan drawing platform. Using PixiJS, a high-performance 2D rendering library, it enables the rapid drawing, editing, and interactive display of vector floor plans online. This effectively fills the market gap and is of great significance to promoting the digitalization of related industries.

[0143] In the embodiment of the present application, in the process of optimizing the rendering of the vector floor plan, the vector floor plan is optimized and rendered through batch rendering technology, texture set technology and rendering engine. Since batch rendering technology can reduce the number of drawing calls, texture set technology reduces the number of times the image processor loads textures by merging multiple textures into a large texture atlas, thereby reducing the number of rendering calls and improving the rendering efficiency of the vector floor plan. In addition, the optimized and rendered vector floor plan is stored in the cloud through cloud services to achieve online storage and real-time synchronization of floor plan data, respond to user interaction instructions of different authorized users, support multiple users to edit the same floor plan online at the same time, promote teamwork and remote design, and use the rendering engine to optimize the rendering of the vector floor plan, so as to achieve the purpose of fast drawing, editing and interactive display of online vector floor plans.

[0144] Based on the above embodiments Figure 1 The disclosed online vector floor plan processing method, the embodiment of the present application also discloses an online vector floor plan processing device, such as Figure 3 As shown, the online vector floor plan processing device includes:

[0145] The acquisition unit 301 is used to acquire a house type data structure; the house type data structure at least includes corner points, wall types and room types;

[0146] A response unit 302 is used to respond to user interaction instructions of different users with authority; the user interaction instructions are determined based on the apartment data structure;

[0147] The execution unit 303 is used to execute the operation corresponding to the instruction type through the pre-built vector graphics tool set according to the user interaction instruction of each different user, so as to draw the vector floor plan corresponding to the floor plan data structure; the operation corresponding to the instruction type includes one or more of an adding operation, a moving operation, a scaling operation and a rotating operation;

[0148] The optimized rendering unit 304 is used to optimize the rendering and display of the vector floor plan through the preset optimized rendering technology and rendering engine, and to store the optimized rendered vector floor plan in the cloud through the cloud service; wherein the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

[0149] Furthermore, the response unit 302 includes:

[0150] The first response module is used to respond to user interaction instructions for drawing corner points generated by different authorized users according to the corner points in the house type data structure;

[0151] The second response module is used to respond to user interaction instructions for drawing wall types generated by different authorized users according to the wall types in the apartment data structure;

[0152] The third response module is used to respond to user interaction instructions for drawing room types generated by different authorized users according to the room types in the apartment data structure.

[0153] Furthermore, the execution unit 303 includes:

[0154] A first execution module is used to execute a corner point drawing operation corresponding to a user interaction instruction for drawing a corner point according to a pre-built vector graphics tool set;

[0155] A second execution module is used to execute a wall drawing operation corresponding to a user interaction instruction for drawing a wall according to a vector graphics tool set;

[0156] The third execution module is used to execute the room class drawing operation corresponding to the user interaction instruction of drawing the room class according to the vector graphics tool set, so as to draw the vector floor plan corresponding to the floor plan data structure.

[0157] Further, the optimization rendering unit 304 includes:

[0158] Optimized rendering module, used to optimize the rendering of vector floor plans through batch rendering technology and texture set technology;

[0159] An acquisition module is used to acquire screen parameters of a display device and to adaptively display the optimized rendered vector floor plan using the adaptive rendering technology of a rendering engine;

[0160] The storage module is used to store the optimized and rendered vector floor plan in the cloud through cloud services; the cloud service is used to realize the online storage and real-time synchronization of floor plan data, and support multiple users to edit the same vector floor plan online at the same time.

[0161] Furthermore, the online vector floor plan processing device also includes:

[0162] The initialization unit is used to initialize the rendering engine application in the web page environment to complete the settings of the renderer and the stage, and provide a basic environment for vector graphics drawing.

[0163] Furthermore, the execution unit 303 for constructing the vector graphics toolset is specifically used to create the vector graphics toolset through the abstract base class of the graphics context of the rendering engine.

[0164] In the embodiment of the present application, in the process of optimizing the rendering of the vector floor plan, the vector floor plan is optimized and rendered through batch rendering technology, texture set technology and rendering engine. Since batch rendering technology can reduce the number of drawing calls, texture set technology reduces the number of times the image processor loads textures by merging multiple textures into a large texture atlas, thereby reducing the number of rendering calls and improving the rendering efficiency of the vector floor plan. In addition, the optimized and rendered vector floor plan is stored in the cloud through cloud services to achieve online storage and real-time synchronization of floor plan data, respond to user interaction instructions of different authorized users, support multiple users to edit the same floor plan online at the same time, promote teamwork and remote design, and use the rendering engine to optimize the rendering of the vector floor plan, so as to achieve the purpose of fast drawing, editing and interactive display of online vector floor plans.

[0165] An embodiment of the present application further provides a storage medium, which includes stored instructions, wherein when the instructions are executed, the device where the storage medium is located is controlled to execute the above-mentioned online vector floor plan processing method.

[0166] The present application also provides an electronic device, whose structural diagram is as follows: Figure 4 As shown, it specifically includes a memory 401 and one or more instructions 402, wherein the one or more instructions 402 are stored in the memory 401 and are configured to be executed by one or more processors 403 to execute the one or more instructions 402 to perform the above-mentioned online vector floor plan processing method.

[0167] For the aforementioned method embodiments, for the sake of simplicity, they are all described as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the order of the actions described, because according to the present application, some steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.

[0168] It should be noted that each embodiment in this specification is described in a progressive manner, and each embodiment focuses on the differences from other embodiments, and the same or similar parts between the embodiments can be referred to each other. For the device embodiment, since it is basically similar to the method embodiment, the description is relatively simple, and the relevant parts can be referred to the partial description of the method embodiment.

[0169] The steps in the methods of the embodiments of the present application can be adjusted in order, combined, and deleted according to actual needs.

[0170] Finally, it should be noted that, in this article, relational terms such as first and second, etc. are merely used to distinguish one entity or operation from another entity or operation, and do not necessarily require or imply any actual relationship or order between these entities or operations.

[0171] The above description of the disclosed embodiments enables those skilled in the art to implement or use the present application. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the scope of the present application. Therefore, the present application will not be limited to the embodiments shown herein, but will conform to the widest scope consistent with the principles and novel features disclosed herein.

[0172] The above is only a preferred embodiment of the present application. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principles of the present application. These improvements and modifications should also be regarded as the scope of protection of the present application.

Claims

1. An online vector floor plan processing method, characterized in that: The method comprises: Acquire a housing type data structure; the housing type data structure at least includes corner points, wall types and room types; Responding to user interaction instructions of different authorized users; the user interaction instructions are determined based on the apartment data structure; For user interaction instructions of different users, the operation corresponding to the instruction type is executed through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure; the operation corresponding to the instruction type includes one or more of an adding operation, a moving operation, a scaling operation and a rotating operation; The vector floor plan is optimized and rendered and displayed through preset optimized rendering technology and rendering engine, and the optimized rendered vector floor plan is stored in the cloud through cloud service; wherein, the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

2. The method according to claim 1, characterized in that The responding to the user interaction instructions of different authorized users includes: Responding to user interaction instructions for drawing corner points generated by different authorized users according to the corner points in the apartment data structure; Responding to user interaction instructions for drawing wall types generated by different authorized users according to the wall types in the apartment data structure; Respond to user interaction instructions of drawing room types generated by different authorized users according to the room types in the apartment data structure.

3. The method according to claim 2, characterized in that The user interaction instructions for different users are executed by using a pre-built vector graphics tool set to perform operations corresponding to the instruction types, so as to draw a vector floor plan corresponding to the floor plan data structure, including: According to a pre-built vector graphics tool set, executing a corner point drawing operation corresponding to the user interaction instruction for drawing the corner point; According to the vector graphics tool set, executing the wall drawing operation corresponding to the user interaction instruction for drawing the wall; According to the vector graphics toolset, a room class drawing operation corresponding to the user interaction instruction for drawing a room class is executed to draw a vector floor plan corresponding to the floor plan data structure.

4. The method according to claim 1, characterized in that: The method of optimizing and rendering the vector floor plan by using a preset optimized rendering technology and a rendering engine and displaying the vector floor plan, and storing the optimized and rendered vector floor plan in the cloud by using a cloud service, includes: Optimizing and rendering the vector floor plan by using batch rendering technology and texture set technology; Obtain the screen parameters of the display device and use the adaptive rendering technology of the rendering engine to adaptively display the optimized rendered vector floor plan; The optimized and rendered vector floor plan is stored in the cloud through a cloud service; wherein the cloud service is used to realize online storage and real-time synchronization of floor plan data, and support multiple users to edit the same vector floor plan online at the same time.

5. The method according to claim 1, characterized in that Before responding to user interaction instructions from different authorized users, it also includes: Initialize the rendering engine application in the web page environment to complete the settings of the renderer and stage, and provide a basic environment for vector graphics drawing.

6. The method according to claim 1, characterized in that The process of building a vector graphics toolset includes: A vector graphics toolset created through an abstract base class for the graphics context of a rendering engine.

7. An online vector floor plan processing device, characterized in that: The device comprises: An acquisition unit, used to acquire a house type data structure; the house type data structure at least includes corner points, wall types and room types; A response unit, used to respond to user interaction instructions of different authorized users; the user interaction instructions are determined based on the apartment data structure; An execution unit is used to execute operations corresponding to the user interaction instructions of different users through a pre-built vector graphics tool set to draw a vector floor plan corresponding to the floor plan data structure; the operations corresponding to the instruction types include one or more of an adding operation, a moving operation, a scaling operation, and a rotating operation; An optimized rendering unit is used to optimize the rendering and display of the vector floor plan through preset optimized rendering technology and rendering engine, and to store the optimized rendered vector floor plan in the cloud through cloud service; wherein, the preset optimized rendering technology at least includes batch rendering technology and texture set technology; the preset optimized rendering technology is used to reduce the number of rendering calls.

8. The device according to claim 7, characterized in that Response unit, comprising: The first response module is used to respond to user interaction instructions for drawing corner points generated by different authorized users according to the corner points in the house type data structure; The second response module is used to respond to user interaction instructions for drawing wall types generated by different authorized users according to the wall types in the apartment data structure; The third response module is used to respond to user interaction instructions for drawing room types generated by different authorized users according to the room types in the apartment data structure.

9. The device according to claim 8, characterized in that The execution unit comprises: A first execution module, configured to execute a corner point drawing operation corresponding to the user interaction instruction for drawing corner points according to a pre-built vector graphics tool set; A second execution module, configured to execute the wall drawing operation corresponding to the user interaction instruction for drawing the wall class according to the vector graphics tool set; The third execution module is used to execute the room class drawing operation corresponding to the user interaction instruction for drawing the room class according to the vector graphics tool set, so as to draw the vector floor plan corresponding to the floor plan data structure.

10. The device according to claim 7, characterized in that The optimization rendering unit comprises: An optimized rendering module, used for optimizing the rendering of the vector floor plan by using batch rendering technology and texture set technology; An acquisition module is used to acquire screen parameters of a display device and to adaptively display the optimized rendered vector floor plan using the adaptive rendering technology of a rendering engine; The storage module is used to store the optimized and rendered vector floor plan in the cloud through a cloud service; wherein the cloud service is used to realize online storage and real-time synchronization of floor plan data, and support multiple users to edit the same vector floor plan online at the same time.