CN113689571B - Large-scale geometric model front-end editing method, device, equipment and storage medium - Google Patents

Large-scale geometric model front-end editing method, device, equipment and storage medium Download PDF

Info

Publication number
CN113689571B
CN113689571B CN202110911324.0A CN202110911324A CN113689571B CN 113689571 B CN113689571 B CN 113689571B CN 202110911324 A CN202110911324 A CN 202110911324A CN 113689571 B CN113689571 B CN 113689571B
Authority
CN
China
Prior art keywords
geometric model
scale geometric
model
block
modules
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202110911324.0A
Other languages
Chinese (zh)
Other versions
CN113689571A (en
Inventor
易建成
张运
张凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Hangzhou Qunhe Information Technology Co Ltd
Original Assignee
Hangzhou Qunhe Information Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Hangzhou Qunhe Information Technology Co Ltd filed Critical Hangzhou Qunhe Information Technology Co Ltd
Priority to CN202110911324.0A priority Critical patent/CN113689571B/en
Publication of CN113689571A publication Critical patent/CN113689571A/en
Application granted granted Critical
Publication of CN113689571B publication Critical patent/CN113689571B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T19/00Manipulating 3D models or images for computer graphics
    • G06T19/20Editing of 3D images, e.g. changing shapes or colours, aligning objects or positioning parts
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/10Geometric CAD
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Computer Graphics (AREA)
  • Computer Hardware Design (AREA)
  • Mathematical Analysis (AREA)
  • Evolutionary Computation (AREA)
  • Pure & Applied Mathematics (AREA)
  • Architecture (AREA)
  • Mathematical Optimization (AREA)
  • Computational Mathematics (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application discloses a method, a device, equipment and a storage medium for editing a front end of a large-scale geometric model. The method comprises the following steps: the front end acquires a plurality of block modules after the rear end performs block processing on the large-scale geometric model in a multi-block parallel loading mode; according to the acquired multiple block modules and the basic information of the large-scale geometric model, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules; and editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end. The application can rapidly display the large-scale geometric model at the front end, improves the efficiency and speed of front-end editing, and improves the performance of the Web-based geometric modeling software in editing the large-scale geometric model.

Description

Large-scale geometric model front-end editing method, device, equipment and storage medium
Technical Field
The present disclosure relates generally to the field of 3D graphics design technology, and in particular, to a method, apparatus, device, and storage medium for editing a front end of a large-scale geometric model.
Background
The creation and editing of 3D geometric models has been mature in desktop software of PC computers. However, with the rapid development of internet technology and the popularization of mobile internet, the requirements for creating and editing 3D geometric models based on cloud are also becoming stronger, and particularly, 3D geometric modeling software based on Web is also continuously developing. However, these Web-based software is not comparable to conventional desktop-side software in terms of the degree of perfection of the functionality, and in particular, there is a large gap in terms of the performance of editing large-scale geometric models.
Therefore, a more scientific approach is desired that promotes the performance of Web-based geometric modeling software in editing large-scale geometric models.
Disclosure of Invention
In view of the foregoing drawbacks or shortcomings in the prior art, it is desirable to provide a method, apparatus, device, and storage medium for large-scale geometric model front-end editing, which can meet the requirements of Web-based modeling software for large-scale geometric model editing.
According to one aspect of the embodiment of the application, the embodiment of the application provides a method for editing a front end of a large-scale geometric model, which comprises the following steps:
the front end acquires a plurality of block modules after the rear end performs block processing on the large-scale geometric model in a multi-block parallel loading mode, wherein the front end is a display end of the large-scale geometric model, and the rear end is a storage end of the large-scale geometric model;
according to the acquired basic information of the large-scale geometric model, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the large-scale geometric model, wherein the basic information comprises the size of the large-scale geometric model, the number of the large-scale geometric model and the relation among the large-scale geometric model;
and editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end.
In one embodiment, the method for editing the front end of the large-scale geometric model further comprises:
And obtaining external geometric model data, importing the external geometric model data into the rear end for format conversion and performing blocking processing.
In one embodiment, the method for editing the front end of the large-scale geometric model further comprises:
setting different display orders, and simplifying the display of the model view displayed at the front end, wherein the display orders are related to the material data of the model view displayed at the front end;
and storing the large-scale geometric models with different display orders and corresponding material data to the rear end according to different paths according to different display orders.
In one embodiment, the front end obtains a plurality of block modules after the back end performs the block processing on the large-scale geometric model through a multi-block parallel loading mode, and the method includes:
the back end performs blocking processing on the large-scale geometric model, divides the large-scale geometric figure into a plurality of blocking modules, and acquires and stores basic information of the large-scale geometric model;
grouping the block modules to obtain grouped block modules;
storing the group block modules into a group model library of the group block modules;
the front end obtains a plurality of block modules from one or a plurality of group model libraries in a mode of parallel loading of a plurality of blocks according to display requirements.
In one embodiment, the step of obtaining, by the front end, basic information of the large-scale geometric model according to the obtained plurality of block modules, and updating, by parsing the block modules, a model view of the large-scale geometric model displayed by the front end includes:
according to the basic information of the large-scale geometric model, a display frame of the large-scale geometric model is built at the front end, and the display frame comprises the position information of the block module;
acquiring corresponding block modules on a display frame according to the front-end display requirements;
analyzing one or more block modules to obtain updated block modules;
and updating the model view of the large-scale geometric model displayed at the front end according to the updated block module.
In one embodiment, editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the back end, and updating the large-scale geometric model stored at the back end, including:
acquiring one or more block modules edited at the front end;
acquiring data information of the block modules to be edited stored at the rear end according to the acquired one or more block modules edited at the front end;
Analyzing the data information according to the acquired data information of the to-be-edited block module, and editing parameters in the data information;
updating the front-end display effect of the large-scale geometric model according to the edited data information parameters;
according to the front-end display effect of the large-scale geometric model, adjusting data information parameters until the front-end display effect of the large-scale geometric model reaches a target effect;
storing the data information parameters of the edited block module, and transmitting the data information of the edited block module to the rear end in a multi-block parallel mode;
updating the large-scale geometric model stored in the back end.
In one embodiment, the setting different display orders, and simplifying the display of the model view displayed by the front end, includes:
setting different display orders according to the display requirements of the front end on the large-scale geometric model;
according to different display orders, the large-scale geometric model is converted into a pure triangular surface patch mode with different proportion parameters for display, wherein the pure triangular surface patch is a triangular surface patch only comprising vertexes, normal directions and mapping.
In accordance with another aspect of an embodiment of the present invention, there is disclosed a large-scale geometric model front-end editing apparatus, the apparatus comprising:
The model loading module is used for obtaining a plurality of block modules after the rear end performs block processing on the large-scale geometric model through a multi-block parallel loading mode at the front end, wherein the front end is a display end of the large-scale geometric model, and the rear end is a storage end of the large-scale geometric model;
the model analysis module is used for acquiring basic information of the large-scale geometric model according to the acquired multiple block modules and the front end, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules, wherein the basic information comprises the size of the large-scale geometric model, the number of the block modules and the relation among the block modules;
and the model editing module is used for editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end.
In accordance with yet another aspect of an embodiment of the present invention, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; the one or more programs, when executed by the processor, cause the processor to implement the method for large-scale geometric model front-end editing provided by the embodiments of the present invention.
In accordance with yet another aspect of embodiments of the present application, a computer-readable storage medium storing a computer program that, when executed, implements a method for large-scale geometric model front-end editing provided by embodiments of the present application is disclosed.
In the embodiment of the application, the front end acquires a plurality of block modules after the back end performs block processing on the large-scale geometric model in a multi-block parallel loading mode, the front end acquires basic information of the large-scale geometric model, updates a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules, edits one or a plurality of block modules in the model view at the front end according to the model view displayed by the front end, saves the edited block modules to the back end, and updates the large-scale geometric model stored by the back end. The method and the device can rapidly display the large-scale geometric model at the front end, can realize operations such as modeling, editing and modifying the large-scale geometric model at the Web page, improve the efficiency and speed of editing the large-scale geometric model at the front end, remarkably improve the performance of editing operation, improve the success rate and the preservation speed of the edited model, and improve the performance of the Web-based geometric modeling software in editing the large-scale geometric model.
Drawings
Other features, objects and advantages of the present application will become more apparent upon reading of the detailed description of non-limiting embodiments, made with reference to the accompanying drawings in which:
FIG. 1 is a flow chart of a method for front-end editing of a large-scale geometric model provided by one embodiment of the application;
FIG. 2 is a schematic structural diagram of a large-scale geometric model front-end editing device according to an embodiment of the present application;
fig. 3 is an internal structural diagram of an electronic device according to an embodiment of the present application.
Detailed Description
The application is described in further detail below with reference to the drawings and examples. It is to be understood that the specific embodiments described herein are merely illustrative of the application and are not limiting of the application. It should be noted that, for convenience of description, only the portions related to the application are shown in the drawings.
It should be noted that, without conflict, the embodiments of the present application and features of the embodiments may be combined with each other. The application will be described in detail below with reference to the drawings in connection with embodiments.
Referring to fig. 1, an exemplary flow of a large-scale geometric model front-end editing method to which embodiments of the present application may be applied is shown.
As shown in fig. 1, in step 110, the front end obtains a plurality of block modules after the back end performs the block processing on the large-scale geometric model in a multi-block parallel loading manner, where the front end is a display end of the large-scale geometric model, and the back end is a storage end of the large-scale geometric model.
Specifically, as the data size of the large-scale geometric model is larger, when the WEB browser or the user client of the front end loads the large-scale geometric model data, the data size required to be acquired is also larger, the time consumed by the network for data transmission is longer, the large-scale geometric model is divided into a plurality of block modules by performing block processing on the large-scale geometric model at the rear end, the data size of each large-scale geometric model is reduced, and then the block modules of the large-scale geometric model are loaded from the rear end to the front end in a multi-block parallel loading mode, so that the time consumed by the large-scale geometric model data request is reduced, and the loading efficiency of the large-scale geometric model is improved.
Specifically, in one embodiment of the present application, the front end obtains, by using a multi-block parallel loading manner, a plurality of block modules after the back end performs a block processing on the large-scale geometric model, where the block modules include:
The back end performs blocking processing on the large-scale geometric model, divides the large-scale geometric figure into a plurality of blocking modules, and acquires and stores basic information of the large-scale geometric model; specifically, the blocking processing of the large-scale geometric model is performed by the back end, the back end generally performs blocking processing on the large-scale geometric model according to a set blocking size, the blocking size generally is determined according to network transmission parameters, the capacity of front end multiple blocks loaded in parallel, the size of the large-scale geometric model, the composition structure of the large-scale geometric model and the like, generally, one large-scale geometric model may be divided into multiple components, for example, one large-scale geometric model is a building model, then the blocking module of the large-scale geometric model may comprise multiple specific wall structure modules, window structure modules, door structure modules, pipeline structure modules, stair structure modules, elevator structure modules, ground structure modules and the like, after the large-scale geometric module is subjected to blocking processing, basic information of the large-scale geometric module needs to be acquired, the basic information includes the size of the large-scale geometric model, the number of the blocking modules, the relation among the blocking modules and the like, and the basic information can be used for calling one large-scale geometric module at the front end, so that each blocking module can be accurately set at each blocking position of the large-scale geometric module.
Grouping the block modules to obtain grouped block modules; specifically, after the large-scale geometric model is subjected to the blocking treatment, as one large-scale geometric model comprises various blocking modules, meanwhile, some blocking modules have uniformity in type, for example, the door structure modules may comprise various door structure modules such as a single door, a double door, a revolving door, a sliding door, a rolling door and the like, after the blocking modules are subjected to the grouping treatment, the blocking modules of the same type are set into a group to form a group of blocking modules.
Storing the group block modules into a group model library of the group block modules; specifically, in order to achieve the purposes of quick access and parallel loading of multiple blocks, for the rear end, after the large-scale geometric model is subjected to block processing, the same type of block modules are stored in a database, so that the number of the database can be reduced, a corresponding block module can be conveniently obtained, each block module is provided with a single storage path, and different block modules are provided with different storage paths, so that the purpose of parallel loading of multiple blocks at the front end can be achieved.
The front end obtains a plurality of block modules from one or a plurality of grouped model libraries in a multi-block parallel loading mode according to display requirements, specifically, when the front end displays a large-scale geometric model, the front end obtains corresponding block modules from different grouped model libraries according to the block modules formed by the large-scale geometric model, and loads each block module to the front end for display in the multi-block parallel loading mode.
In step 120, a display frame of the large-scale geometric model is constructed according to the acquired multiple block modules and the basic information of the large-scale geometric model acquired by the front end, and a model view of the large-scale geometric model displayed by the front end is updated in a manner of analyzing the block modules, wherein the basic information comprises the size of the large-scale geometric model, the number of the block modules and the relation among the block modules.
Specifically, after the front end acquires the plurality of block modules, a display frame for displaying the large-scale geometric model at the front end is constructed according to the basic information of the large-scale geometric model, each frame is used for setting the block module, and the corresponding display effect is realized through the splicing of the plurality of block modules.
Specifically, in one embodiment of the present application, the obtaining, according to the obtained plurality of block modules and the front end, basic information of the large-scale geometric model, constructing a display frame of the large-scale geometric model, and updating, by parsing the block modules, a model view of the large-scale geometric model displayed by the front end, includes:
according to the basic information of the large-scale geometric model, a display frame of the large-scale geometric model is built at the front end, and the display frame comprises the position information of the block module; specifically, because the basic information of the large-scale geometric model includes the size of the large-scale geometric model, the number of the block modules and the relation among the block modules, the display frame at the front end of the large-scale geometric model can be constructed through the basic information of the large-scale geometric model, the number of the display frames in the display frame is determined according to the number of the block modules forming the large-scale geometric model, each block module corresponds to one display frame, the position of each display frame is determined, and the corresponding block module information is also determined on each display frame, so that the display frame includes the position information of the block modules.
Acquiring corresponding block modules on a display frame according to the front-end display requirements; specifically, a block module is arranged in each display frame of the display frame, and because the position relation of each block module is known, the display frame comprises the position information of the block module, so that after one block module is obtained, the position of the display frame in which the block module is arranged can be known, and the parallel loading of a plurality of block modules into the corresponding display frames can be realized.
Analyzing one or more block modules to obtain updated block modules; specifically, after loading all the block modules, part or all of the block modules need to be analyzed to obtain data information of the block modules, and because display parameters of the front end or hardware working parameters of equipment have different requirements on the data information of the corresponding block modules, the corresponding parameter information of the block modules need to be updated, and the block modules are matched with the display requirements of the front end by updating the parameters of the block modules, for example, the picture resolution of the block modules is 1024×768, and the resolution of the front end display is 1920×1080, then the display resolution of the block modules needs to be modified to adapt to the resolution of the front end display, and after the block modules are analyzed at this time, the updated block modules can be obtained by updating the set mode.
And updating the model view of the large-scale geometric model displayed at the front end according to the updated block module. Specifically, after the block module completes updating, the front end can display the model view of the large-scale geometric model according to the updated block module.
Particularly, for a large-scale geometric model, in order to simplify model data, the display performance of the large-scale geometric model carried out by the front end is improved, the rear end stores not only the complete data information of the large-scale geometric model, but also a plurality of corresponding light-weight model data with different precision after being simplified by a proper algorithm, the front end selects a light-weight model with proper precision according to the proper algorithm through the computer performance of a user, the complexity of the model, the distance of the model from a camera and the like, and the light-weight model data are only used for displaying the front end model.
In step 130, one or more block modules in the model view are edited at the front end according to the model view displayed at the front end, the edited block modules are saved to the back end, and the large-scale geometric model stored at the back end is updated.
Specifically, the model view displayed at the front end is formed by splicing a plurality of block modules, namely, the model view of the large-scale geometric model is divided into a plurality of independent units, so that when the large-scale geometric model is edited, the model view of the large-scale geometric model can be edited by editing one or more independent units, namely, the block modules, and after the editing is finished, the block modules to be edited are saved to the rear end in a parallel mode according to a plurality of blocks, and the block module data in the corresponding model library are automatically updated, so that the editing and updating of the large-scale geometric model are realized.
Specifically, in one embodiment of the present application, the editing, at the front end, one or more block modules in the model view according to the model view displayed at the front end, storing the edited block modules at the back end, and updating the large-scale geometric model stored at the back end, where the method includes:
acquiring one or more block modules edited at the front end;
acquiring data information of the block modules to be edited stored at the rear end according to the acquired one or more block modules edited at the front end; specifically, after the block module to be edited is determined, the data information of the block module to be edited stored at the back end is obtained, so that the parameter data of the block module to be edited is obtained.
Analyzing the data information according to the acquired data information of the to-be-edited block module, and editing parameters in the data information; specifically, editing the block module can be achieved by editing the data information of the block module, for example, for a rectangular block module, the data information parameters include: the length of the long side, the length of the short side, the thickness of the line, the color of the line and the like, and the specific display effect of the rectangular block module can be adjusted by editing the parameters.
Updating the front-end display effect of the large-scale geometric model according to the edited data information parameters; specifically, after the editing of the data information parameters of the block module is completed, the edited effect of the block module can be obtained through a front-end display mode, and the block module can be edited again or the editing of the block module can be confirmed to be completed according to the display effect.
According to the front-end display effect of the large-scale geometric model, adjusting data information parameters until the front-end display effect of the large-scale geometric model reaches a target effect;
storing the data information parameters of the edited block module, and transmitting the data information of the edited block module to the rear end in a multi-block parallel mode; specifically, for a plurality of block modules edited simultaneously, in order to improve the data transmission efficiency after editing, the data information of the block modules after editing is sent to the back end in a multi-block parallel mode, and the parameters of the block modules in the corresponding model library are updated by the back end.
Updating the large-scale geometric model stored in the back end.
Specifically, in a specific embodiment, the editing of the block module mainly includes the following types:
one is an operation of moving, rotating, copying, deleting, etc. the block modules, which performs one or more block modules to be edited as a whole.
The other type is to perform local editing on the block module, such as stretching a surface, performing boolean operations on the block module, and the like, and for this type of operation, requesting, through a network, the block module data with a partially complete model to be edited in the model library before performing editing. And then analyzing the data of the block module, updating the front-end display effect, and finally performing geometric editing.
After the local editing of the block module is completed, the edited block module is stored, the complete block module data information is released from the front end, the light-weight geometric model data of the block module of the modified part is requested again from the rear end, and the front end is updated.
The front end of the large-scale geometric model is edited, the original model view of the non-edited block module is kept by using the block module editing mode, so that very good editing performance is achieved, and meanwhile, the requirement of local detailed editing of the large-scale geometric model can be completely met.
After the large-scale geometric model is edited by the block module from the front end, the edited block module is required to be stored in a corresponding model library, new lightweight model data is generated at the rear end to replace an old lightweight model, and the success rate and the performance of storing the large-scale geometric model after editing are also important parts. The application discloses a method for carrying out block and increment preservation on a large-scale geometric model, which comprises the steps of firstly, carrying out block editing on the geometric large model, only preserving the edited block module part during preservation, preserving the edited block modules of a plurality of block modules, carrying out parallel data transmission on the edited block module data to the rear end for preservation according to a proper algorithm, thereby shortening the time for preserving the large-scale geometric model to be a fraction of the original time, and improving the success rate of preserving the large-scale geometric model after editing.
In step 140, external geometric model data is acquired, imported to the backend for format conversion and chunking.
Specifically, in order to support multiplexing of large-scale geometric models, the cost of user modeling is reduced. The method generally needs to support the importing of the external geometric model, is also suitable for a mode of parallel loading of a plurality of blocks when importing the external geometric model data, firstly carries out format conversion when the importing of the external geometric model data is acquired by the rear end so that the importing of the external geometric model data is suitable for the front end display requirement of the application, and then carries out blocking processing on the importing of the external geometric model so as to adapt to the requirement of parallel loading of the plurality of blocks by the front end.
In step 150, different display orders are set, the display of the model view displayed at the front end is simplified, the display orders are related to the material data of the model view displayed at the front end, and according to the different display orders, the large-scale geometric models with different display orders and the corresponding material data are stored at the rear end according to different paths.
In particular, the same-appearance model, a pure triangular patch model, uses less memory on the display and requires less time than an editable model. Therefore, the lightweight data are displayed in a manner of converting a common geometric model into a pure triangular surface patch, the model view displayed at the front end is displayed and simplified by setting different display orders, the display orders are related to the material data of the model view displayed at the front end, the block module data are simplified to a reasonable proportion by using a proper simplification algorithm, the simplified lightweight model data are stored in a database at the rear end, the file is uploaded to a remote file storage server, meanwhile, the material information and the path address of the file are stored in the database, when the front end requests the lightweight data, the rear end quickly returns the file path and the material information, and the front end automatically downloads the file according to the file path, so that the data dependence on the rear end service is reduced.
According to the stored complete large-scale geometric model data, the display magnitude can be set to be 5 types, and the display magnitude can be divided into: 1,0.8,0.6,0.4,0.2, 5 lightweight models with different precision are generated, the models with different precision are uploaded to file storage servers of different paths, and a plurality of model paths and material data used by the models are stored in a database. When the front end requests, a plurality of model paths and materials with different precision are returned to the front end, and the front end determines which model with different precision is adopted. Material data for different display orders: directly storing basic properties such as color, brightness, transparency and the like of the material; if the material has a map, the corresponding file path is stored in the material attribute.
Specifically, in one embodiment of the present application, the setting different display orders, and displaying the model view displayed on the front end is simplified, including:
setting different display orders according to the display requirements of the front end on the large-scale geometric model; specifically, different display orders, namely different requirements on display fineness of model views according to front-end display, are used for generating a plurality of lightweight models with different precision by using a proper simplification algorithm and a plurality of parameters for a large-scale geometric model, and the more the simplification degree is, the more serious model distortion is, and accordingly, memory and time consumption required for display can be reduced.
According to different display orders, the large-scale geometric model is converted into a pure triangular surface patch mode with different proportion parameters for display, wherein the pure triangular surface patch is a triangular surface patch only comprising vertexes, normal directions and mapping. Specifically, as the data of the real block module enables the data to be discrete and only comprises vertexes, normal directions and triangular patches of the mapping, according to different display orders, a large-scale geometric model is converted into a pure triangular patch mode with different proportion parameters for display, different display orders can be realized, in the actual use process, the display orders are generally divided into 1,0.8,0.6,0.4,0.2 according to the reduction degree, and in addition, the display orders are generally divided into 5 display orders; 1 indicates that the original block module is not simplified, and 0.8 indicates that the original block module is simplified to 0.8 times, namely to 80% of the original block module.
In the embodiment of the application, the front end acquires a plurality of block modules after the back end performs block processing on the large-scale geometric model in a multi-block parallel loading mode, the front end acquires basic information of the large-scale geometric model, updates a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules, edits one or a plurality of block modules in the model view at the front end according to the model view displayed by the front end, saves the edited block modules to the back end, and updates the large-scale geometric model stored by the back end. The method and the device can rapidly display the large-scale geometric model at the front end, can realize operations such as modeling, editing and modifying the large-scale geometric model at the Web page, improve the efficiency and speed of editing the large-scale geometric model at the front end, remarkably improve the performance of editing operation, improve the success rate and the preservation speed of the edited model, and improve the performance of the Web-based geometric modeling software in editing the large-scale geometric model.
It should be understood that, although the steps in the flowchart of fig. 1 are shown in sequence as indicated by the arrows, the steps are not necessarily performed in sequence as indicated by the arrows. The steps are not strictly limited to the order of execution unless explicitly recited herein, and the steps may be executed in other orders. Moreover, at least some of the steps in fig. 1 may include multiple sub-steps or stages that are not necessarily performed at the same time, but may be performed at different times, nor do the order in which the sub-steps or stages are performed necessarily performed in sequence, but may be performed alternately or alternately with at least a portion of other steps or sub-steps of other steps.
Fig. 2 is a schematic structural diagram of a large-scale geometric model front-end editing apparatus according to an embodiment of the present application, and as shown in fig. 2, the large-scale geometric model front-end editing apparatus includes:
the system comprises a model loading module, a model analyzing module and a model editing module;
the model loading module is used for obtaining a plurality of block modules after the rear end performs block processing on the large-scale geometric model through a multi-block parallel loading mode at the front end, wherein the front end is a display end of the large-scale geometric model, and the rear end is a storage end of the large-scale geometric model;
The model analysis module is used for acquiring basic information of the large-scale geometric model according to the acquired multiple block modules and the front end, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules, wherein the basic information comprises the size of the large-scale geometric model, the number of the block modules and the relation among the block modules;
and the model editing module is used for editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end.
Specifically, in another embodiment of the present application, the model loading module is configured to acquire external geometric model data, import the external geometric model data to the backend for format conversion, and perform blocking processing.
Specifically, in another embodiment of the present application, the model parsing module is configured to set different display orders, and simplify display of the model view displayed on the front end, where the display orders are related to material data of the model view displayed on the front end; and storing the large-scale geometric models with different display orders and corresponding material data to the rear end according to different paths according to different display orders.
Specifically, in another embodiment of the present application, the model loading module is configured to perform a blocking process on the large-scale geometric model at the back end, divide the large-scale geometric figure into a plurality of blocking modules, and acquire and store basic information of the large-scale geometric model; grouping the block modules to obtain grouped block modules; storing the group block modules into a group model library of the group block modules; the front end obtains a plurality of block modules from one or a plurality of group model libraries in a mode of parallel loading of a plurality of blocks according to display requirements.
Specifically, in another embodiment of the present application, the model parsing module is configured to construct, at a front end, a display frame of the large-scale geometric model according to basic information of the large-scale geometric model, where the display frame includes location information of the block module; acquiring corresponding block modules on a display frame according to the front-end display requirements; analyzing one or more block modules to obtain updated block modules; and updating the model view of the large-scale geometric model displayed at the front end according to the updated block module.
Specifically, in another embodiment of the present application, the electric model editing module is configured to obtain one or more block modules edited at the front end; acquiring data information of the block modules to be edited stored at the rear end according to the acquired one or more block modules edited at the front end; analyzing the data information according to the acquired data information of the to-be-edited block module, and editing parameters in the data information; updating the front-end display effect of the large-scale geometric model according to the edited data information parameters; according to the front-end display effect of the large-scale geometric model, adjusting data information parameters until the front-end display effect of the large-scale geometric model reaches a target effect; storing the data information parameters of the edited block module, and transmitting the data information of the edited block module to the rear end in a multi-block parallel mode; updating the large-scale geometric model stored in the back end.
Specifically, in another embodiment of the present application, the model parsing module is configured to set different display orders according to a display requirement of the front end on the large-scale geometric model; according to different display orders, the large-scale geometric model is converted into a pure triangular surface patch mode with different proportion parameters for display, wherein the pure triangular surface patch is a triangular surface patch only comprising vertexes, normal directions and mapping.
In the embodiment of the application, a model loading module acquires a plurality of block modules after the back end performs block processing on a large-scale geometric model in a multi-block parallel loading mode at the front end; the model analysis module acquires basic information of the large-scale geometric model according to the acquired multiple block modules and the front end, constructs a display frame of the large-scale geometric model, and updates a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules; and the model editing module edits one or more block modules in the model view at the front end according to the model view displayed at the front end, saves the edited block modules to the rear end, and updates the large-scale geometric model stored at the rear end. The method and the device can rapidly display the large-scale geometric model at the front end, can realize operations such as modeling, editing and modifying the large-scale geometric model at the Web page, improve the efficiency and speed of editing the large-scale geometric model at the front end, remarkably improve the performance of editing operation, improve the success rate and the preservation speed of the edited model, and improve the performance of the Web-based geometric modeling software in editing the large-scale geometric model.
For specific limitations of the large-scale geometric model front-end editing apparatus, reference may be made to the above limitations of the large-scale geometric model front-end editing method, and no further description is given here. The modules in the large-scale geometrical model front-end editing device can be all or partially realized by software, hardware and a combination thereof. The above modules may be embedded in hardware or may be independent of a processor in the computer device, or may be stored in software in a memory in the computer device, so that the processor may call and execute operations corresponding to the above modules.
In particular, according to an embodiment of the present disclosure, as shown in FIG. 3, an electronic device is disclosed that includes one or more processors and memory for storing one or more programs; the one or more programs, when executed by the processor, cause the processor to implement the method for large-scale geometric model front-end editing according to embodiments of the present invention.
In particular, according to an embodiment of the present disclosure, the large-scale geometric model front-end editing method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a large-scale geometric model front-end editing method. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The one or more programs are stored in a read-only memory ROM or a random access memory RAM to perform various appropriate actions and processes. In the random access memory RAM, software programs for the server to complete the corresponding service are included, as well as various programs and data required for the driving operation of the vehicle. The server and its controlled hardware devices, read-only memory ROM, random access memory RAM are connected to each other via a bus to which various input/output interfaces are also connected.
The following components are connected to the input/output interface: an input section including a keyboard, a mouse, etc.; an output section including a cathode ray tube CRT, a liquid crystal display LCD, etc., and a speaker, etc.; and a communication section including a network interface card such as a LAN card, a modem, and the like. The communication section performs communication processing via a network such as the internet. The drive is also connected to the input/output interface as needed. Removable media such as magnetic disks, optical disks, magneto-optical disks, semiconductor memories, and the like are mounted on the drive as needed so that a computer program read therefrom is mounted into the memory as needed.
In particular, according to an embodiment of the present disclosure, the large-scale geometric model front-end editing method described in any of the above embodiments may be implemented as a computer software program. For example, embodiments of the present disclosure include a computer program product comprising a computer program tangibly embodied on a machine-readable medium, the computer program comprising program code for performing a large-scale geometric model front-end editing method. In such embodiments, the computer program may be downloaded and installed from a network via a communication portion, and/or installed from a removable medium.
The units or modules involved in the embodiments of the present application may be implemented in software or in hardware. The described units or modules may also be provided in a processor. The names of these units or modules do not in some way constitute a limitation of the unit or module itself.
The above description is only illustrative of the preferred embodiments of the present application and of the principles of the technology employed. It will be appreciated by persons skilled in the art that the scope of the application referred to in the present application is not limited to the specific combinations of the technical features described above, but also covers other technical features formed by any combination of the technical features described above or their equivalents without departing from the inventive concept. Such as the above-mentioned features and the technical features disclosed in the present application (but not limited to) having similar functions are replaced with each other.

Claims (9)

1. A method for front-end editing of a large-scale geometric model, the method comprising:
the front end acquires a plurality of block modules after the rear end performs block processing on the large-scale geometric model in a multi-block parallel loading mode, wherein the front end is a display end of the large-scale geometric model, and the rear end is a storage end of the large-scale geometric model;
according to the acquired basic information of the large-scale geometric model, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the large-scale geometric model, wherein the basic information comprises the size of the large-scale geometric model, the number of the large-scale geometric model and the relation among the large-scale geometric model;
editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end;
further comprises:
setting different display orders, and simplifying the display of the model view displayed at the front end, wherein the display orders are related to the material data of the model view displayed at the front end;
And storing the large-scale geometric models with different display orders and corresponding material data to the rear end according to different paths according to different display orders.
2. The method as recited in claim 1, further comprising:
and obtaining external geometric model data, importing the external geometric model data into the rear end for format conversion and performing blocking processing.
3. The method of claim 1, wherein the front-end obtains a plurality of partitioning modules after the back-end performs the partitioning processing on the large-scale geometric model by using a multi-block parallel loading manner, and the method comprises the following steps:
the back end performs blocking processing on the large-scale geometric model, divides the large-scale geometric figure into a plurality of blocking modules, and acquires and stores basic information of the large-scale geometric model;
grouping the block modules to obtain grouped block modules;
storing the group block modules into a group model library of the group block modules;
the front end obtains a plurality of block modules from one or a plurality of group model libraries in a mode of parallel loading of a plurality of blocks according to display requirements.
4. The method according to claim 1, wherein the obtaining basic information of the large-scale geometric model according to the obtained plurality of block modules and the front end, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end by parsing the block modules includes:
According to the basic information of the large-scale geometric model, a display frame of the large-scale geometric model is built at the front end, and the display frame comprises the position information of the block module;
acquiring corresponding block modules on a display frame according to the front-end display requirements;
analyzing one or more block modules to obtain updated block modules;
and updating the model view of the large-scale geometric model displayed at the front end according to the updated block module.
5. The method of claim 1, wherein editing one or more tile modules in the model view at the front end based on the model view displayed at the front end, saving the edited tile modules to the back end, and updating the large-scale geometric model stored at the back end, comprises:
acquiring one or more block modules edited at the front end;
acquiring data information of the block modules to be edited stored at the rear end according to the acquired one or more block modules edited at the front end;
analyzing the data information according to the acquired data information of the to-be-edited block module, and editing parameters in the data information;
updating the front-end display effect of the large-scale geometric model according to the edited data information parameters;
According to the front-end display effect of the large-scale geometric model, adjusting data information parameters until the front-end display effect of the large-scale geometric model reaches a target effect;
storing the data information parameters of the edited block module, and transmitting the data information of the edited block module to the rear end in a multi-block parallel mode;
updating the large-scale geometric model stored in the back end.
6. The method of claim 1, wherein setting different display orders, display simplifying the model view of the front-end display, comprises:
setting different display orders according to the display requirements of the front end on the large-scale geometric model;
according to different display orders, the large-scale geometric model is converted into a pure triangular surface patch mode with different proportion parameters for display, wherein the pure triangular surface patch is a triangular surface patch only comprising vertexes, normal directions and mapping.
7. A large-scale geometric model front-end editing apparatus, the apparatus comprising:
the model loading module is used for obtaining a plurality of block modules after the rear end performs block processing on the large-scale geometric model through a multi-block parallel loading mode at the front end, wherein the front end is a display end of the large-scale geometric model, and the rear end is a storage end of the large-scale geometric model;
The model analysis module is used for acquiring basic information of the large-scale geometric model according to the acquired multiple block modules and the front end, constructing a display frame of the large-scale geometric model, and updating a model view of the large-scale geometric model displayed by the front end in a mode of analyzing the block modules, wherein the basic information comprises the size of the large-scale geometric model, the number of the block modules and the relation among the block modules; the model analysis module is also used for setting different display orders, and simplifying the display of the model view displayed at the front end, wherein the display orders are related to the material data of the model view displayed at the front end; according to different display orders, storing the large-scale geometric models with different display orders and corresponding material data to the rear end according to different paths;
and the model editing module is used for editing one or more block modules in the model view at the front end according to the model view displayed at the front end, storing the edited block modules at the rear end, and updating the large-scale geometric model stored at the rear end.
8. An electronic device comprising one or more processors and memory for storing one or more programs;
The one or more programs, when executed by the processor, cause the processor to implement the method of any of claims 1-6.
9. A computer readable storage medium storing a computer program, characterized in that the computer program when executed implements the method according to any one of claims 1 to 6.
CN202110911324.0A 2021-08-10 2021-08-10 Large-scale geometric model front-end editing method, device, equipment and storage medium Active CN113689571B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110911324.0A CN113689571B (en) 2021-08-10 2021-08-10 Large-scale geometric model front-end editing method, device, equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110911324.0A CN113689571B (en) 2021-08-10 2021-08-10 Large-scale geometric model front-end editing method, device, equipment and storage medium

Publications (2)

Publication Number Publication Date
CN113689571A CN113689571A (en) 2021-11-23
CN113689571B true CN113689571B (en) 2023-11-28

Family

ID=78579396

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110911324.0A Active CN113689571B (en) 2021-08-10 2021-08-10 Large-scale geometric model front-end editing method, device, equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113689571B (en)

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN102413164A (en) * 2011-08-31 2012-04-11 北京华电万通科技有限公司 Web-based three-dimensional scenic visualized editing device and method
CN103546505A (en) * 2012-07-12 2014-01-29 百度在线网络技术(北京)有限公司 Method, system and device for displaying page blocks in priority order
CN103914868A (en) * 2013-12-20 2014-07-09 柳州腾龙煤电科技股份有限公司 Method for mass model data dynamic scheduling and real-time asynchronous loading under virtual reality
CN106599493A (en) * 2016-12-19 2017-04-26 重庆市勘测院 Visual implementation method of BIM model in three-dimensional large scene
KR102017075B1 (en) * 2018-12-28 2019-09-03 한국건설기술연구원 the virtual reality simulation platform based BIM data and the virtual reality simulation method using the same
CN111275814A (en) * 2020-01-21 2020-06-12 山东浪潮通软信息科技有限公司 WEBGL application-oriented three-dimensional model lightweight method
CN112465953A (en) * 2020-12-02 2021-03-09 杭州群核信息技术有限公司 Rapid parameterization modeling method based on template
CN112596727A (en) * 2020-10-30 2021-04-02 南京北冥鲲科技有限公司 Web end lightweight display method suitable for Revit BIM model

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20100013833A1 (en) * 2008-04-14 2010-01-21 Mallikarjuna Gandikota System and method for modifying features in a solid model
US10957117B2 (en) * 2018-10-15 2021-03-23 Adobe Inc. Intuitive editing of three-dimensional models
US10937211B2 (en) * 2018-11-09 2021-03-02 Autodesk, Inc. Automated parametrization of floor-plan sketches for multi-objective building optimization tasks

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102314486A (en) * 2011-08-04 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for browsing page
CN102413164A (en) * 2011-08-31 2012-04-11 北京华电万通科技有限公司 Web-based three-dimensional scenic visualized editing device and method
CN103546505A (en) * 2012-07-12 2014-01-29 百度在线网络技术(北京)有限公司 Method, system and device for displaying page blocks in priority order
CN103914868A (en) * 2013-12-20 2014-07-09 柳州腾龙煤电科技股份有限公司 Method for mass model data dynamic scheduling and real-time asynchronous loading under virtual reality
CN106599493A (en) * 2016-12-19 2017-04-26 重庆市勘测院 Visual implementation method of BIM model in three-dimensional large scene
KR102017075B1 (en) * 2018-12-28 2019-09-03 한국건설기술연구원 the virtual reality simulation platform based BIM data and the virtual reality simulation method using the same
CN111275814A (en) * 2020-01-21 2020-06-12 山东浪潮通软信息科技有限公司 WEBGL application-oriented three-dimensional model lightweight method
CN112596727A (en) * 2020-10-30 2021-04-02 南京北冥鲲科技有限公司 Web end lightweight display method suitable for Revit BIM model
CN112465953A (en) * 2020-12-02 2021-03-09 杭州群核信息技术有限公司 Rapid parameterization modeling method based on template

Also Published As

Publication number Publication date
CN113689571A (en) 2021-11-23

Similar Documents

Publication Publication Date Title
WO2021164150A1 (en) Web terminal real-time hybrid rendering method and apparatus in combination with ray tracing, and computer device
CN112270756A (en) Data rendering method applied to BIM model file
US20220301273A1 (en) A webgl-based replaceable model hybrid rendering display method, system and storage medium
US10713420B2 (en) Composition and declaration of sprited images in a web page style sheet
WO2021142977A1 (en) Vray-based method and system for rendering pbr materials
US12008227B2 (en) Performant configuration user interface
WO2023197762A1 (en) Image rendering method and apparatus, electronic device, computer-readable storage medium, and computer program product
US11315300B2 (en) Multi-spectral rendering for synthetics
CN116091672A (en) Image rendering method, computer device and medium thereof
JP2022539290A (en) Visual programming for deep learning
CN117132699A (en) Cloud rendering system and method based on computer
US20050259108A1 (en) System and method for dynamically generating images using repeatable textures
CN116758204B (en) Rendering processing method and related device based on line renderer
CN113689571B (en) Large-scale geometric model front-end editing method, device, equipment and storage medium
CN113705156A (en) Character processing method and device
US11461874B2 (en) Graphics processing using matrices of transformations
CA3203326A1 (en) Session collaboration system
AU2019200269B2 (en) An interactive user interface and its corresponding engine for improving image completion quality
CN114491352A (en) Model loading method and device, electronic equipment and computer readable storage medium
CN113419806B (en) Image processing method, device, computer equipment and storage medium
CN113379814A (en) Three-dimensional space relation judgment method and device
US20240153172A1 (en) Automatically generating axes for data visualizations including data bound objects
US20230274040A1 (en) Modeling shapes using differentiable signed distance functions
US20240153170A1 (en) Managing multiple datasets for data bound objects
TW202341062A (en) Computer graphic processing method and system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant