CN113656359A - Method and device for lightening three-dimensional model, computer equipment and storage medium - Google Patents

Method and device for lightening three-dimensional model, computer equipment and storage medium Download PDF

Info

Publication number
CN113656359A
CN113656359A CN202110887929.0A CN202110887929A CN113656359A CN 113656359 A CN113656359 A CN 113656359A CN 202110887929 A CN202110887929 A CN 202110887929A CN 113656359 A CN113656359 A CN 113656359A
Authority
CN
China
Prior art keywords
model
lightweight
file
request
data packet
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.)
Pending
Application number
CN202110887929.0A
Other languages
Chinese (zh)
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.)
China Coal Research Institute CCRI
Original Assignee
China Coal Research Institute CCRI
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 China Coal Research Institute CCRI filed Critical China Coal Research Institute CCRI
Priority to CN202110887929.0A priority Critical patent/CN113656359A/en
Publication of CN113656359A publication Critical patent/CN113656359A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • G06F9/4881Scheduling strategies for dispatcher, e.g. round robin, multi-level priority queues

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Software Systems (AREA)
  • Human Computer Interaction (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The application provides a light weight method and device of a three-dimensional model, computer equipment and a storage medium, and relates to the technical field of computers. The method comprises the following steps: receiving a model data set to be processed, wherein the model data set comprises a model file data packet and model lightweight configuration parameters; sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, wherein the lightweight request comprises the model data set; receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file; and issuing model browsing service based on the lightweight model file. Therefore, lightweight processing of model data is achieved, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.

Description

Method and device for lightening three-dimensional model, computer equipment and storage medium
Technical Field
The present application relates to the field of computer technologies, and in particular, to a method and an apparatus for lightening a three-dimensional model, a computer device, and a storage medium.
Background
The model lightweight means that the complexity and the calculation amount of the model are reduced as much as possible on the premise of not losing the authenticity of the model, so that the model can be displayed more conveniently and flexibly. At present, the lightweight processing of the three-dimensional model generally requires a user to download a resource file, deploy a lightweight tool locally, and compress model data by using the processing capacity of terminal equipment. This has a high performance requirement on the customer premise equipment, which results in a heavy burden on the user to implement model weight reduction, and a low efficiency of model weight reduction. Therefore, how to quickly realize the lightweight of the model data and reduce the workload of the user side becomes a problem which needs to be solved urgently.
Disclosure of Invention
The present application is directed to solving, at least to some extent, one of the technical problems in the related art.
An embodiment of a first aspect of the present application provides a method for lightening a three-dimensional model, including:
receiving a model data set to be processed, wherein the model data set comprises a model file data packet and model lightweight configuration parameters;
sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, wherein the lightweight request comprises the model data set;
receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file;
and issuing model browsing service based on the lightweight model file.
The embodiment of the second aspect of the present application provides a method for lightening a three-dimensional model, including:
receiving a model lightweight request, wherein the lightweight request comprises a model file data packet and model lightweight configuration parameters;
and generating a model lightweight task according to the lightweight request so that a lightweight server performs lightweight processing on the model file data packet according to the model lightweight configuration parameters.
An embodiment of a third aspect of the present application provides a light-weight apparatus for a three-dimensional model, including:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a model data set to be processed, and the model data set comprises a model file data packet and model lightweight configuration parameters;
the cloud management system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, and the lightweight request comprises a model data set;
the second receiving module is used for receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file;
and the service publishing module is used for publishing the model browsing service based on the lightweight model file.
Optionally, the apparatus further comprises:
a storage module, configured to specify a storage space for the model data set to store the model data set;
a generating module for reading the model dataset from the storage space to generate the model lightweight request.
Optionally, the service publishing module is specifically configured to:
sending the lightweight model file to a designated application server to obtain an access path of the lightweight model file;
generating a browsing address corresponding to the lightweight model according to the access path;
and issuing the model browsing service based on the browsing address.
Optionally, the lightweight result file further includes attribute information of the model component, and the apparatus further includes: and the association module is used for associating the attribute information with the model browsing service.
Optionally, the association module is specifically configured to:
storing attribute information of the model component to determine a storage address of the attribute information;
and associating the storage address with the model component so as to inquire attribute information corresponding to the model component according to the storage address.
An embodiment of a fourth aspect of the present application provides a light-weight apparatus for a three-dimensional model, including:
a first receiving module, configured to receive a model lightweight request, where the lightweight request includes a model file data packet and model lightweight configuration parameters;
and the generating module is used for generating a model lightweight task according to the lightweight request so as to enable a lightweight server to carry out lightweight processing on the model file data packet according to the model lightweight configuration parameters.
Optionally, the model lightweight request further includes an edge identifier, and the apparatus further includes:
the second receiving module is used for receiving the model lightweight result file returned by the lightweight server;
and the sending module is used for sending the lightweight result file to the edge end corresponding to the edge end identifier.
Optionally, the apparatus further comprises:
the storage module is used for appointing a storage space for the model file data packet and the model lightweight configuration parameters so as to determine storage addresses of the model file data packet and the model lightweight configuration parameters;
the generation module is specifically configured to:
and generating a model lightweight task based on the storage address of the model file data packet and the model lightweight configuration parameter, so that the lightweight server reads the model file data packet and the model lightweight configuration parameter from the storage address, and carrying out lightweight processing on the model file data packet according to the model lightweight configuration parameter.
An embodiment of a fifth aspect of the present application provides a computer device, including: the present invention relates to a method for reducing weight of a three-dimensional model, and more particularly, to a method for reducing weight of a three-dimensional model, which is provided by embodiments of the first and/or second aspects of the present application.
A sixth aspect of the present application provides a non-transitory computer-readable storage medium storing a computer program, which when executed by a processor, implements a method for weight reduction of a three-dimensional model as set forth in the first and/or second aspect of the present application.
A seventh aspect of the present application proposes a computer program product, which when executed by an instruction processor performs the method for lightening a three-dimensional model proposed in the first and/or second aspects of the present application.
The light-weight method, the light-weight device, the computer equipment and the storage medium of the three-dimensional model have the following beneficial effects:
firstly, receiving a model data set to be processed, wherein the model data set comprises a model file data packet and model lightweight configuration parameters; then sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, wherein the lightweight request comprises a model data set; then receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file; and finally, issuing model browsing service based on the lightweight model file. Therefore, lightweight processing of model data is achieved, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.
Additional aspects and advantages of the present application will be set forth in part in the description which follows and, in part, will be obvious from the description, or may be learned by practice of the present application.
Drawings
The foregoing and/or additional aspects and advantages of the present application will become apparent and readily appreciated from the following description of the embodiments, taken in conjunction with the accompanying drawings of which:
fig. 1 is a schematic flow chart of a method for lightening a three-dimensional model according to an embodiment of the present disclosure;
fig. 2 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present disclosure;
fig. 3 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present application;
fig. 4 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present application;
fig. 5 is a schematic structural diagram of a three-dimensional model weight reduction device according to an embodiment of the present application;
fig. 6 is a schematic structural diagram of a weight reduction apparatus for a three-dimensional model according to another embodiment of the present application;
fig. 7 is a schematic structural diagram of a weight reduction apparatus for a three-dimensional model according to another embodiment of the present application;
fig. 8 is a schematic structural diagram of a weight reduction apparatus for a three-dimensional model according to another embodiment of the present application;
FIG. 9 illustrates a block diagram of an exemplary computer device suitable for use to implement embodiments of the present application.
Detailed Description
Reference will now be made in detail to embodiments of the present application, examples of which are illustrated in the accompanying drawings, wherein like or similar reference numerals refer to the same or similar elements or elements having the same or similar function throughout. The embodiments described below with reference to the drawings are exemplary and intended to be used for explaining the present application and should not be construed as limiting the present application.
A method, an apparatus, a computer device, and a storage medium for weight reduction of a three-dimensional model according to embodiments of the present application are described below with reference to the accompanying drawings.
Fig. 1 is a schematic flow chart of a method for reducing weight of a three-dimensional model according to an embodiment of the present application.
The embodiment of the present application is exemplified by the method for reducing the weight of a three-dimensional model disposed at an edge, and the method for reducing the weight of a three-dimensional model at an edge can be applied to any computer device so that the computer device can perform a function of reducing the weight of a three-dimensional model.
The Computer device may be a Personal Computer (PC), a cloud device, a mobile device, and the like, and the mobile device may be a hardware device having various operating systems, touch screens, and/or display screens, such as a mobile phone, a tablet Computer, a Personal digital assistant, a wearable device, and an in-vehicle device.
In the embodiment of the application, firstly, a model data set to be processed is received by a lightening device of a three-dimensional model at an edge end, a model lightening request is sent, then, a cloud management platform generates a model lightening task according to the lightening request, and finally, a lightening server executes the corresponding lightening task to lighten a model file.
As shown in fig. 1, the method for lightening a three-dimensional model may include the steps of:
step 101, receiving a model data set to be processed, wherein the model data set comprises a model file data packet and model lightweight configuration parameters.
In the embodiment of the present application, the model requesting for light weight may be a three-dimensional model of any building, such as a coal mine three-dimensional model, a road and bridge three-dimensional model, and the present application does not limit this.
It can be understood that after a user completes construction of the three-dimensional model through the design platform, related model data can be uploaded so as to perform lightweight processing on the model by using the lightweight server of the cloud management platform.
In this embodiment, the model data set to be processed may include a model file data packet and model lightweight configuration parameters. The model file data package may include a model file to be processed, model file metadata, and the like, where the model file metadata is a descriptive file of the model.
102, sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, wherein the lightweight request comprises a model data set.
It can be understood that different users can respectively request to carry out lightweight processing on different models, and for each model needing lightweight, a model lightweight request can be respectively generated and sent to the cloud management platform.
Furthermore, when the cloud management platform receives a plurality of model lightweight requests, a model lightweight task can be generated according to the received sequence and is placed in a lightweight task queue.
The cloud management platform can be used for arranging a plurality of GPU servers to form a lightweight service cluster, selecting one task from a lightweight task queue by using a lightweight task scheduling process in sequence, and designating one GPU server for processing.
And 103, receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file.
In the embodiment of the application, after any GPU server completes a model lightweight task, the obtained lightweight result file can be returned to the cloud management platform, and then the model lightweight result file is returned to the edge device by the cloud management platform.
The model lightweight result file can comprise a lightweight model file, and the model can be displayed more conveniently and flexibly through the lightweight model file.
And 104, issuing a model browsing service based on the lightweight model file.
It can be understood that the weight reduction process is performed on the model in order to enable a user to browse the model conveniently and quickly. Therefore, in the embodiment of the application, after the device at the edge end obtains the lightweight model file, a model browsing service can be provided, so that a user can load and browse the three-dimensional model.
In the embodiment of the application, a to-be-processed model data set is received at first, then a model lightweight request is sent to a cloud management platform, so that the cloud management platform generates a model lightweight task, then a model lightweight result file returned by the cloud management platform is received, and finally model browsing service issuing is carried out based on the lightweight model file. Therefore, lightweight processing of model data is achieved, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.
Fig. 2 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present application. As shown in fig. 2, the method for lightening a three-dimensional model may include the steps of:
step 201, receiving a model data set to be processed, wherein the model data set includes a model file data packet and model lightweight configuration parameters.
For a specific implementation manner of step 201, reference may be made to the detailed description of other embodiments of the present application, which is not described herein again.
Step 202, a storage space is designated for the model data set to store the model data set.
After the device at the edge end receives the model data set uploaded by the user, the data can be stored in a designated storage space, such as a database, a designated folder, and the like.
Wherein different types of data may be stored in different locations. For example, the model file may be stored in a designated folder, and the model file metadata and the model lightweight configuration parameters may be stored in a database, which is not limited in this application.
Step 203, reading the model data set from the storage space to generate a model lightweight request.
It should be noted that, after the model data set uploaded by the user is received, a corresponding data receiving record may be formed. Therefore, the device at the edge end can read the model data set, namely the model file data packet and the model lightweight configuration parameters from the designated storage space at regular time according to the data receiving record, and generate the model lightweight request based on the model data set.
And 204, sending a model file lightweight request to the cloud management platform so that the cloud management platform generates a model file lightweight task, wherein the lightweight request comprises a model data set.
Step 205, receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file.
The detailed implementation manner of the step 204-205 can refer to the detailed description of other embodiments of the present application, and is not described herein again.
And step 206, issuing the model browsing service based on the lightweight model file.
Specifically, the lightweight model file can be sent to a designated application server to generate an access path of the lightweight model file; then, generating a browsing address corresponding to the lightweight model according to the access path; and finally, issuing the model browsing service based on the browsing address.
The application server can be provided with an application program supporting visualization of the three-dimensional model, and when a user views the corresponding three-dimensional model through a browsing address, the application server can form the visualized three-dimensional model based on the lightweight model file and display the visualized three-dimensional model on a display interface of the user.
Step 207, associating the attribute information with the model browsing service.
In one possible implementation manner of the embodiment of the application, the lightweight result file may further include attribute information of the model component. In order to enable the user to acquire attribute information of the model member when browsing the three-dimensional model, the attribute information may be associated with a type browsing service.
Specifically, the attribute information of the model component may be stored first to determine the storage address of the attribute information; and then associating the storage address with the model component so as to inquire attribute information corresponding to the model component according to the storage address.
When a user browses the three-dimensional model, according to any model component selected by the user, a storage address corresponding to the component can be determined, corresponding attribute information can be inquired through the storage address, and the attribute information is returned to a display interface of the user for displaying.
In the embodiment of the application, the attribute information of the model component is associated with the model browsing service, so that a user can simultaneously acquire the attribute information of the model component when browsing the three-dimensional model, the model browsing service is further optimized, and the requirements of the user are met.
Fig. 3 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present application.
The embodiment of the present application is exemplified by the lightweight method of the three-dimensional model being configured in a cloud management platform, and the cloud management platform can be applied to any computer device, so that the computer device can execute a processing function of a service.
As shown in fig. 3, the method for lightening a three-dimensional model may include the steps of:
step 301, receiving a model lightweight request, wherein the lightweight request includes a model file data packet and model lightweight configuration parameters.
For a specific implementation manner of the model lightweight request, reference may be made to detailed descriptions of other embodiments of the present application, which are not described herein again.
And 302, generating a model lightweight task according to the lightweight request so that the lightweight server can carry out lightweight processing on the model file data packet according to the model lightweight configuration parameters.
The cloud management platform can be used for arranging a plurality of GPU servers to form a lightweight service cluster, and when the cloud management platform receives a plurality of model lightweight requests, a model lightweight task can be generated respectively according to the received sequence and is placed in a lightweight task queue. And then, a lightweight task scheduling process is utilized to sequentially select a task from the lightweight task queue, and a lightweight server is designated for processing.
In the embodiment of the application, the cloud management platform receives the model lightweight request, and generates the model lightweight task based on the lightweight request, so that the lightweight server performs lightweight processing on the model file data packet according to the model lightweight configuration parameters. Therefore, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.
Fig. 4 is a schematic flow chart of a method for lightening a three-dimensional model according to another embodiment of the present application. As shown in fig. 4, the method for reducing the weight of the three-dimensional model may include the steps of:
step 401, receiving a model lightweight request, where the lightweight request includes a model file data packet, model lightweight configuration parameters, and an edge identifier.
For a specific implementation manner of the model lightweight request, reference may be made to detailed descriptions of other embodiments of the present application, which are not described herein again.
Step 402, appointing a storage space for the model file data packet and the model lightweight configuration parameters to determine storage addresses of the model file data packet and the model lightweight configuration parameters.
After the cloud management platform receives the model lightweight request sent by the edge terminal, the data in the request can be stored in a specified storage space, such as a database, a specified folder and the like.
Wherein different types of data may be stored in different locations. For example, the model file may be stored in a designated folder, and the model file metadata and the model lightweight configuration parameters may be stored in a database, which is not limited in this application.
And step 403, generating a model lightweight task based on the storage address of the model file data packet and the model lightweight configuration parameters, so that the lightweight server reads the model file data packet and the model lightweight configuration parameters from the storage address, and performs lightweight processing on the model file data packet according to the model lightweight configuration parameters.
It should be noted that, after the cloud management platform receives the model lightweight request sent by the edge, the corresponding model lightweight task may be generated based on the model file data packet and the storage address of the model lightweight configuration parameter, and the lightweight task may be allocated to the lightweight server in the lightweight service cluster. Furthermore, the lightweight server can read the model file data packet and the model lightweight configuration parameters from the corresponding storage address according to the lightweight task, and carry out lightweight processing on the model file data packet according to the model lightweight configuration parameters.
And step 404, receiving a model lightweight result file returned by the lightweight server.
And 405, sending the lightweight result file to an edge terminal corresponding to the edge terminal identification.
It can be understood that different users can send model lightweight requests to the cloud management platform through different edge terminals to perform lightweight processing on different models.
Therefore, in order to enable different edge terminals to receive the corresponding model lightweight result files, the model lightweight request sent by each edge terminal may further include the corresponding edge terminal identifier. And after the cloud management platform receives the model lightweight result file returned by the lightweight server, the model lightweight result file can be returned to the corresponding edge terminal according to the edge terminal identification.
In addition, since the same edge can transmit a plurality of model lightening requests, the lightening server also returns a plurality of lightening result files according to the model lightening requests. In order to distinguish the model weight reduction requests corresponding to the respective weight reduction result files, the weight reduction server may further include model identifiers corresponding thereto when returning the weight reduction result files.
It is understood that the process of model lightening may last for a long time. In order to enable a user to know the model lightweight process, in the embodiment of the application, each lightweight server can be controlled to establish the model lightweight monitoring log, and the model lightweight monitoring log is returned to the cloud management platform. For example, when the server starts to start the model lightweight process, the server can be controlled to synchronously establish the model lightweight monitoring log, and the model lightweight log can monitor the model lightweight process in real time until the model lightweight process is completed.
In the embodiment of the application, the edge end identification is added into the model lightweight request, so that after the lightweight server completes lightweight processing of the model, the cloud management platform can return the lightweight result file to the corresponding edge end according to the edge end identification, the cloud management platform can provide model lightweight service for the edge ends, and lightweight efficiency of the model is further improved.
In order to achieve the above embodiments, the present application also provides a weight reduction apparatus for a three-dimensional model.
Fig. 5 is a schematic structural diagram of a three-dimensional model weight reduction device according to an embodiment of the present application.
As shown in fig. 5, the three-dimensional model weight reducing apparatus 100 may include: a first receiving module 110, a first sending module 120, a second receiving module 130 and a service publishing module 140.
The first receiving module 110 is configured to receive a model data set to be processed, where the model data set includes a model file data packet and model lightweight configuration parameters.
The first sending module 120 is configured to send a model lightweight request to the cloud management platform, so that the cloud management platform generates a model lightweight task, where the lightweight request includes a model data set.
The second receiving module 130 is configured to receive a model lightweight result file returned by the cloud management platform, where the lightweight result file includes a lightweight model file.
And the service publishing module 140 is configured to publish the model browsing service based on the lightweight model file.
Further, in a possible implementation manner of the embodiment of the present application, the service publishing module 140 is specifically configured to: sending the lightweight model file to a designated application server to obtain an access path of the lightweight model file; generating a browsing address corresponding to the lightweight model according to the access path; based on the browsing address, a model browsing service is published.
The functions and specific implementation principles of the modules in the embodiments of the present application may refer to the embodiments of the methods, which are not described herein again.
The light-weight device of the three-dimensional model of the embodiment of the application firstly receives a model data set to be processed, then sends a model light-weight request to the cloud management platform, so that the cloud management platform generates a model light-weight task, then receives a model light-weight result file returned by the cloud management platform, and finally carries out model browsing service release based on the light-weight model file. Therefore, lightweight processing of model data is achieved, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.
Further, in a possible implementation manner of the embodiment of the present application, referring to fig. 6, on the basis of the embodiment shown in fig. 5, the lightweight result file further includes attribute information of the model component, and the apparatus further includes a storage module 150, a generation module 160, and an association module 170.
The storage module 150 is configured to specify a storage space for the model data set to store the model data set.
A generating module 160, configured to read the model data set from the storage space to generate a model lightweight request.
And the associating module 170 is configured to associate the attribute information with the model browsing service.
Further, in a possible implementation manner of the embodiment of the present application, the association module 170 is specifically configured to: storing attribute information of the model component to determine a storage address of the attribute information; and associating the storage address with the model component so as to inquire attribute information corresponding to the model component according to the storage address.
The functions and specific implementation principles of the modules in the embodiments of the present application may refer to the embodiments of the methods, which are not described herein again.
Fig. 7 is a schematic structural diagram of a three-dimensional model weight reduction device according to another embodiment of the present application.
As shown in fig. 7, the three-dimensional model weight reducing apparatus 200 may include: a first receiving module 210 and a generating module 220.
The first receiving module 210 is configured to receive a model lightweight request, where the lightweight request includes a model file data packet and model lightweight configuration parameters.
And the generating module 220 is used for generating a model lightweight task according to the lightweight request, so that the lightweight server performs lightweight processing on the model file data packet according to the model lightweight configuration parameters.
The functions and specific implementation principles of the modules in the embodiments of the present application may refer to the embodiments of the methods, which are not described herein again.
The three-dimensional model lightweight device receives a model lightweight request through the cloud management platform, and generates a model lightweight task based on the lightweight request, so that a lightweight server performs lightweight processing on a model file data packet according to model lightweight configuration parameters. Therefore, the efficiency of model lightweight is effectively improved, and the workload of a user is reduced.
Further, in a possible implementation manner of the embodiment of the present application, referring to fig. 8, on the basis of the embodiment shown in fig. 7, the model lightweight request further includes an edge identifier, and the apparatus may further include a second receiving module 230, a sending module 240, and a storing module 250.
The second receiving module 230 is configured to receive the model lightweight result file returned by the lightweight server.
And a sending module 240, configured to send the lightweight result file to the edge corresponding to the edge identifier.
And the storage module 250 is used for specifying a storage space for the model file data packet and the model lightweight configuration parameters so as to determine storage addresses of the model file data packet and the model lightweight configuration parameters.
Further, in a possible implementation manner of the embodiment of the present application, the generating module 220 is specifically configured to: and generating a model lightweight task based on the storage address of the model file data packet and the model lightweight configuration parameters, so that the lightweight server reads the model file data packet and the model lightweight configuration parameters from the storage address, and performs lightweight processing on the model file data packet according to the model lightweight configuration parameters.
The functions and specific implementation principles of the modules in the embodiments of the present application may refer to the embodiments of the methods, which are not described herein again.
The light-weight device of three-dimensional model of this application embodiment, through adding the marginal end sign in the light-weight request of model for after lightweight server accomplishes the lightweight processing of model, the high in the clouds management platform can return corresponding marginal end with lightweight result file according to the marginal end sign, thereby realizes that the high in the clouds management platform provides the light-weight service of model for a plurality of marginal ends, further improves the light-weighted efficiency of model.
In order to implement the foregoing embodiments, the present application also provides a computer device, including: the present invention relates to a method for reducing the weight of a three-dimensional model, and more particularly, to a method for reducing the weight of a three-dimensional model, which is provided in an embodiment of the present invention.
In order to achieve the above embodiments, the present application also proposes a non-transitory computer-readable storage medium storing a computer program which, when executed by a processor, implements a method of lightening a three-dimensional model as proposed in the foregoing embodiments of the present application.
In order to achieve the above embodiments, the present application also proposes a computer program product, which when executed by an instruction processor in the computer program product, performs the method for lightening the three-dimensional model as proposed in the foregoing embodiments of the present application.
FIG. 9 illustrates a block diagram of an exemplary computer device suitable for use to implement embodiments of the present application. The computer device 12 shown in fig. 9 is only an example, and should not bring any limitation to the function and the scope of use of the embodiments of the present application.
As shown in FIG. 9, computer device 12 is in the form of a general purpose computing device. The components of computer device 12 may include, but are not limited to: one or more processors or processing units 16, a system memory 28, and a bus 18 that couples various system components including the system memory 28 and the processing unit 16.
Bus 18 represents one or more of any of several types of bus structures, including a memory bus or memory controller, a peripheral bus, an accelerated graphics port, and a processor or local bus using any of a variety of bus architectures. These architectures include, but are not limited to, Industry Standard Architecture (ISA) bus, Micro Channel Architecture (MAC) bus, enhanced ISA bus, Video Electronics Standards Association (VESA) local bus, and Peripheral Component Interconnect (PCI) bus, to name a few.
Computer device 12 typically includes a variety of computer system readable media. Such media may be any available media that is accessible by computer device 12 and includes both volatile and nonvolatile media, removable and non-removable media.
Memory 28 may include computer system readable media in the form of volatile Memory, such as Random Access Memory (RAM) 30 and/or cache Memory 32. Computer device 12 may further include other removable/non-removable, volatile/nonvolatile computer system storage media. By way of example only, storage system 34 may be used to read from and write to non-removable, nonvolatile magnetic media (not shown in FIG. 9, and commonly referred to as a "hard drive"). Although not shown in FIG. 9, a disk drive for reading from and writing to a removable, nonvolatile magnetic disk (e.g., a "floppy disk") and an optical disk drive for reading from or writing to a removable, nonvolatile optical disk (e.g., a Compact disk Read Only Memory (CD-ROM), a Digital versatile disk Read Only Memory (DVD-ROM), or other optical media) may be provided. In these cases, each drive may be connected to bus 18 by one or more data media interfaces. Memory 28 may include at least one program product having a set (e.g., at least one) of program modules that are configured to carry out the functions of embodiments of the application.
A program/utility 40 having a set (at least one) of program modules 42 may be stored, for example, in memory 28, such program modules 42 including, but not limited to, an operating system, one or more application programs, other program modules, and program data, each of which examples or some combination thereof may comprise an implementation of a network environment. Program modules 42 generally perform the functions and/or methodologies of the embodiments described herein.
Computer device 12 may also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), with one or more devices that enable a user to interact with computer device 12, and/or with any devices (e.g., network card, modem, etc.) that enable computer device 12 to communicate with one or more other computing devices. Such communication may be through an input/output (I/O) interface 22. Moreover, computer device 12 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public Network such as the Internet) via Network adapter 20. As shown, network adapter 20 communicates with the other modules of computer device 12 via bus 18. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with computer device 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems, among others.
The processing unit 16 executes various functional applications and data processing, for example, implementing the methods mentioned in the foregoing embodiments, by executing programs stored in the system memory 28.
In the description herein, reference to the description of the term "one embodiment," "some embodiments," "an example," "a specific example," or "some examples," etc., means that a particular feature, structure, material, or characteristic described in connection with the embodiment or example is included in at least one embodiment or example of the application. In this specification, the schematic representations of the terms used above are not necessarily intended to refer to the same embodiment or example. Furthermore, the particular features, structures, materials, or characteristics described may be combined in any suitable manner in any one or more embodiments or examples. Furthermore, various embodiments or examples and features of different embodiments or examples described in this specification can be combined and combined by one skilled in the art without contradiction.
Furthermore, the terms "first", "second" and "first" are used for descriptive purposes only and are not to be construed as indicating or implying relative importance or implicitly indicating the number of technical features indicated. Thus, a feature defined as "first" or "second" may explicitly or implicitly include at least one such feature. In the description of the present application, "plurality" means at least two, e.g., two, three, etc., unless specifically limited otherwise.
Any process or method descriptions in flow charts or otherwise described herein may be understood as representing modules, segments, or portions of code which include one or more executable instructions for implementing steps of a custom logic function or process, and alternate implementations are included within the scope of the preferred embodiment of the present application in which functions may be executed out of order from that shown or discussed, including substantially concurrently or in reverse order, depending on the functionality involved, as would be understood by those reasonably skilled in the art of the present application.
The logic and/or steps represented in the flowcharts or otherwise described herein, e.g., an ordered listing of executable instructions that can be considered to implement logical functions, can be embodied in any computer-readable medium for use by or in connection with an instruction execution system, apparatus, or device, such as a computer-based system, processor-containing system, or other system that can fetch the instructions from the instruction execution system, apparatus, or device and execute the instructions. For the purposes of this description, a "computer-readable medium" can be any means that can contain, store, communicate, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device. More specific examples (a non-exhaustive list) of the computer-readable medium would include the following: an electrical connection (electronic device) having one or more wires, a portable computer diskette (magnetic device), a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber device, and a portable compact disc read-only memory (CDROM). Additionally, the computer-readable medium could even be paper or another suitable medium upon which the program is printed, as the program can be electronically captured, via for instance optical scanning of the paper or other medium, then compiled, interpreted or otherwise processed in a suitable manner if necessary, and then stored in a computer memory.
It should be understood that portions of the present application may be implemented in hardware, software, firmware, or a combination thereof. In the above embodiments, the various steps or methods may be implemented in software or firmware stored in memory and executed by a suitable instruction execution system. If implemented in hardware, as in another embodiment, any one or combination of the following techniques, which are known in the art, may be used: a discrete logic circuit having a logic gate circuit for implementing a logic function on a data signal, an application specific integrated circuit having an appropriate combinational logic gate circuit, a Programmable Gate Array (PGA), a Field Programmable Gate Array (FPGA), or the like.
It will be understood by those skilled in the art that all or part of the steps carried by the method for implementing the above embodiments may be implemented by hardware that is related to instructions of a program, and the program may be stored in a computer-readable storage medium, and when executed, the program includes one or a combination of the steps of the method embodiments.
In addition, functional units in the embodiments of the present application may be integrated into one processing module, or each unit may exist alone physically, or two or more units are integrated into one module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The integrated module, if implemented in the form of a software functional module and sold or used as a separate product, may also be stored in a computer readable storage medium.
The storage medium mentioned above may be a read-only memory, a magnetic or optical disk, etc. Although embodiments of the present application have been shown and described above, it is understood that the above embodiments are exemplary and should not be construed as limiting the present application, and that variations, modifications, substitutions and alterations may be made to the above embodiments by those of ordinary skill in the art within the scope of the present application.

Claims (10)

1. A method for reducing the weight of a three-dimensional model, comprising:
receiving a model data set to be processed, wherein the model data set comprises a model file data packet and model lightweight configuration parameters;
sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, wherein the lightweight request comprises the model data set;
receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file;
and issuing model browsing service based on the lightweight model file.
2. The method of claim 1, after said receiving a model dataset to be processed, further comprising:
specifying a storage space for the model dataset to store the model dataset;
before the model lightweight request is sent to the cloud management platform, the method further comprises the following steps:
reading the model dataset from the storage space to generate the model lightweight request.
3. The method of claim 1, wherein the model browsing service publication based on the lightweight model file comprises:
sending the lightweight model file to a designated application server to obtain an access path of the lightweight model file;
generating a browsing address corresponding to the lightweight model according to the access path;
and issuing the model browsing service based on the browsing address.
4. The method of any of claims 1-3, wherein the lightweighting result file further includes attribute information of model components, and further comprising, after the model browsing service publication based on the lightweighting model file:
and associating the attribute information with the model browsing service.
5. The method of claim 4, wherein said associating said attribute information with said model browsing service comprises:
storing attribute information of the model component to determine a storage address of the attribute information;
and associating the storage address with the model component so as to inquire attribute information corresponding to the model component according to the storage address.
6. A method for reducing the weight of a three-dimensional model, comprising:
receiving a model lightweight request, wherein the lightweight request comprises a model file data packet and model lightweight configuration parameters;
and generating a model lightweight task according to the lightweight request so that a lightweight server performs lightweight processing on the model file data packet according to the model lightweight configuration parameters.
7. The method of claim 6, wherein the model lightweight request further comprises an edge termination identification, further comprising, after the generating a model lightweight task in accordance with the lightweight request:
receiving a model lightweight result file returned by the lightweight server;
and sending the lightweight result file to an edge end corresponding to the edge end identifier.
8. The method of claim 6 or 7, further comprising, after said receiving a model lightweight request:
appointing a storage space for the model file data packet and the model lightweight configuration parameter so as to determine the storage addresses of the model file data packet and the model lightweight configuration parameter;
the generating of a model lightweight task according to the lightweight request so that a lightweight server can carry out lightweight processing on the model file data packet according to the model lightweight configuration parameters comprises the following steps:
and generating a model lightweight task based on the storage address of the model file data packet and the model lightweight configuration parameter, so that the lightweight server reads the model file data packet and the model lightweight configuration parameter from the storage address, and carrying out lightweight processing on the model file data packet according to the model lightweight configuration parameter.
9. A three-dimensional model weight reduction device is characterized by comprising:
the device comprises a first receiving module, a second receiving module and a third receiving module, wherein the first receiving module is used for receiving a model data set to be processed, and the model data set comprises a model file data packet and model lightweight configuration parameters;
the cloud management system comprises a first sending module, a second sending module and a third sending module, wherein the first sending module is used for sending a model lightweight request to a cloud management platform so that the cloud management platform generates a model lightweight task, and the lightweight request comprises a model data set;
the second receiving module is used for receiving a model lightweight result file returned by the cloud management platform, wherein the lightweight result file comprises a lightweight model file;
and the service publishing module is used for publishing the model browsing service based on the lightweight model file.
10. A three-dimensional model weight reduction device is characterized by comprising:
a first receiving module, configured to receive a model lightweight request, where the lightweight request includes a model file data packet and model lightweight configuration parameters;
and the generating module is used for generating a model lightweight task according to the lightweight request so as to enable a lightweight server to carry out lightweight processing on the model file data packet according to the model lightweight configuration parameters.
CN202110887929.0A 2021-08-03 2021-08-03 Method and device for lightening three-dimensional model, computer equipment and storage medium Pending CN113656359A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110887929.0A CN113656359A (en) 2021-08-03 2021-08-03 Method and device for lightening three-dimensional model, computer equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110887929.0A CN113656359A (en) 2021-08-03 2021-08-03 Method and device for lightening three-dimensional model, computer equipment and storage medium

Publications (1)

Publication Number Publication Date
CN113656359A true CN113656359A (en) 2021-11-16

Family

ID=78490323

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110887929.0A Pending CN113656359A (en) 2021-08-03 2021-08-03 Method and device for lightening three-dimensional model, computer equipment and storage medium

Country Status (1)

Country Link
CN (1) CN113656359A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291842A (en) * 2022-08-24 2022-11-04 金航数码科技有限责任公司 Light-weight conversion and online browsing method and system for CAD structural part
CN116704156A (en) * 2023-04-28 2023-09-05 北京优酷科技有限公司 Model generation method, electronic equipment and model generation system

Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291826A (en) * 2017-05-26 2017-10-24 北京金山安全管理系统技术有限公司 File search processing method and processing device
CN107392561A (en) * 2017-06-06 2017-11-24 青岛中德信息服务有限公司 Architectural environment panorama based on BIM and internet shows method
CN108647330A (en) * 2018-05-11 2018-10-12 厦门海迈科技股份有限公司 A kind of 3D lightweight conversion methods based on BIM model files
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN109345628A (en) * 2018-08-07 2019-02-15 云南电网有限责任公司曲靖供电局 A kind of model light-weight technologg method, apparatus and electronic equipment
CN110020391A (en) * 2019-04-17 2019-07-16 华夏天信(北京)智能低碳技术研究院有限公司 Coal mine work area designs the offline dissemination method of GIM mathematical model
CN110706345A (en) * 2019-08-28 2020-01-17 中国铁道科学研究院集团有限公司电子计算技术研究所 Railway BIM model lightweight method and system based on component instance combination
CN110751712A (en) * 2019-10-22 2020-02-04 中设数字技术股份有限公司 Online three-dimensional rendering technology and system based on cloud platform
CN110865835A (en) * 2019-10-15 2020-03-06 网联清算有限公司 Configuration file updating method and device, computer equipment and storage medium
CN111177107A (en) * 2019-12-31 2020-05-19 百度在线网络技术(北京)有限公司 File processing method, device, equipment and storage medium based on block chain
CN111708752A (en) * 2020-04-10 2020-09-25 国网安徽省电力有限公司 Three-dimensional standard model library management system for power transmission equipment
CN111898052A (en) * 2020-07-29 2020-11-06 国网上海市电力公司 WEB-side online display method of lightweight BIM model
CN112035433A (en) * 2020-08-12 2020-12-04 华设设计集团股份有限公司 Method for converting BIM model into GIS model supporting large-volume grading loading
CN112182700A (en) * 2020-09-17 2021-01-05 中北大学 BIM three-dimensional building model display method based on Web end
CN112395257A (en) * 2020-10-10 2021-02-23 北京仿真中心 Lightweight CAD (computer-aided design) model service method and system
CN112860411A (en) * 2021-03-12 2021-05-28 中国人民解放军93114部队 Edge calculation method and system based on model compression and service distribution
CN112988499A (en) * 2019-12-16 2021-06-18 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN113140041A (en) * 2021-04-29 2021-07-20 安徽省绿安建筑信息模型咨询有限公司 Cloud-based three-dimensional automatic modeling system and modeling method for building field

Patent Citations (18)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107291826A (en) * 2017-05-26 2017-10-24 北京金山安全管理系统技术有限公司 File search processing method and processing device
CN107392561A (en) * 2017-06-06 2017-11-24 青岛中德信息服务有限公司 Architectural environment panorama based on BIM and internet shows method
CN108647330A (en) * 2018-05-11 2018-10-12 厦门海迈科技股份有限公司 A kind of 3D lightweight conversion methods based on BIM model files
CN109345628A (en) * 2018-08-07 2019-02-15 云南电网有限责任公司曲靖供电局 A kind of model light-weight technologg method, apparatus and electronic equipment
CN109120645A (en) * 2018-10-25 2019-01-01 北京大米未来科技有限公司 A kind of file uploading method, device, electronic equipment and medium
CN110020391A (en) * 2019-04-17 2019-07-16 华夏天信(北京)智能低碳技术研究院有限公司 Coal mine work area designs the offline dissemination method of GIM mathematical model
CN110706345A (en) * 2019-08-28 2020-01-17 中国铁道科学研究院集团有限公司电子计算技术研究所 Railway BIM model lightweight method and system based on component instance combination
CN110865835A (en) * 2019-10-15 2020-03-06 网联清算有限公司 Configuration file updating method and device, computer equipment and storage medium
CN110751712A (en) * 2019-10-22 2020-02-04 中设数字技术股份有限公司 Online three-dimensional rendering technology and system based on cloud platform
CN112988499A (en) * 2019-12-16 2021-06-18 北京百度网讯科技有限公司 Data processing method and device, electronic equipment and storage medium
CN111177107A (en) * 2019-12-31 2020-05-19 百度在线网络技术(北京)有限公司 File processing method, device, equipment and storage medium based on block chain
CN111708752A (en) * 2020-04-10 2020-09-25 国网安徽省电力有限公司 Three-dimensional standard model library management system for power transmission equipment
CN111898052A (en) * 2020-07-29 2020-11-06 国网上海市电力公司 WEB-side online display method of lightweight BIM model
CN112035433A (en) * 2020-08-12 2020-12-04 华设设计集团股份有限公司 Method for converting BIM model into GIS model supporting large-volume grading loading
CN112182700A (en) * 2020-09-17 2021-01-05 中北大学 BIM three-dimensional building model display method based on Web end
CN112395257A (en) * 2020-10-10 2021-02-23 北京仿真中心 Lightweight CAD (computer-aided design) model service method and system
CN112860411A (en) * 2021-03-12 2021-05-28 中国人民解放军93114部队 Edge calculation method and system based on model compression and service distribution
CN113140041A (en) * 2021-04-29 2021-07-20 安徽省绿安建筑信息模型咨询有限公司 Cloud-based three-dimensional automatic modeling system and modeling method for building field

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
刘晓燕: "《建设数字黄河工程》", vol. 1, 31 January 2002, 郑州:黄河水利出版社, pages: 143 *

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115291842A (en) * 2022-08-24 2022-11-04 金航数码科技有限责任公司 Light-weight conversion and online browsing method and system for CAD structural part
CN115291842B (en) * 2022-08-24 2024-01-30 金航数码科技有限责任公司 CAD structural member lightweight conversion and online browsing method and system
CN116704156A (en) * 2023-04-28 2023-09-05 北京优酷科技有限公司 Model generation method, electronic equipment and model generation system

Similar Documents

Publication Publication Date Title
CN109189841B (en) Multi-data source access method and system
CN113656359A (en) Method and device for lightening three-dimensional model, computer equipment and storage medium
CN108021333B (en) System, device and method for randomly reading and writing data
US10411977B2 (en) Visualization of workload distribution on server resources
JP2022076475A (en) Computer-implemented method, computer program product and system (container image creation and deployment)
US10681180B2 (en) Dynamically transitioning the file system role of compute nodes for provisioning a storlet
US20220147517A1 (en) Content-aware node selection for container creation
CN109766319B (en) Compression task processing method and device, storage medium and electronic equipment
CN110781159B (en) Ceph directory file information reading method and device, server and storage medium
JP2021515299A (en) A system for chronological out-of-place updates, a method for chronological out-of-place updates, and a computer program for chronological out-of-place updates.
CN110471740A (en) Execute method, apparatus, equipment and the computer storage medium of machine learning task
CN114461691A (en) Control method and device of state machine, electronic equipment and storage medium
US9342527B2 (en) Sharing electronic file metadata in a networked computing environment
CN112395257A (en) Lightweight CAD (computer-aided design) model service method and system
US10346424B2 (en) Object processing
CN116339927A (en) Equipment determining method, device, storage medium and electronic device
US9298487B2 (en) Managing virtual machine images in a distributed computing environment
CN113626099B (en) Application program starting method and device and electronic equipment
CN113407339A (en) Resource request feedback method and device, readable storage medium and electronic equipment
CN113535673A (en) Method and device for generating configuration file and processing data
CN107045549B (en) Method and device for acquiring page number of electronic book
CN102253940B (en) Method and device for processing data by tree view
CN106886373B (en) Physical machine and magnetic disk operation method and device thereof
US11663119B2 (en) Select decompression headers and symbol start indicators used in writing decompressed data
CN114707680B (en) Aircraft 3D model generation method and device, electronic equipment and readable medium

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