Content of the invention
This application provides a kind of method and system for realizing the online fast browsing of threedimensional model, solves existing three-dimensional mould
The technical problem of type data load time length.
For solving above-mentioned technical problem, the application is employed the following technical solutions and is achieved:
A kind of method for realizing the online fast browsing of threedimensional model is proposed, including:The size for judging original three-dimensional model data is
No more than first threshold;If so, the original three-dimensional model data are divided into n sub- threedimensional model according to Second Threshold size
Packet;It is n sub- three-dimensional modeling data compressed package by n sub- three-dimensional modeling data packet compressions respectively;Receiving client
After the browse request of transmission, the n sub- three-dimensional modeling data compressed package is sent to client in order.
Further, respectively by n sub- three-dimensional modeling data packet compressions be n sub- three-dimensional modeling data compressed package it
Afterwards, methods described also includes:Packet encryption is compressed to the n sub- three-dimensional modeling data respectively;Then, client transmission is being received
Browse request after, the n of the encryption sub- three-dimensional modeling data compressed packages are sent to client in order.
Further, methods described also includes:If judging the size of original three-dimensional model data less than the first threshold,
Then by the original three-dimensional model data compression be original three-dimensional model compression data packet;Receiving browsing for client transmission
After request, the original three-dimensional model compression data packet is sent to client.
Further, after being original three-dimensional model compression data packet by the original three-dimensional model data compression, institute
Stating method also includes:To the original three-dimensional model data compression packet encryption;Then, in the browse request for receiving client transmission
Afterwards, the original three-dimensional model compression data packet of the encryption is sent to client.
A kind of method for realizing the online fast browsing of threedimensional model is proposed, including:Browse request is sent to cloud platform;Receive
The n sub- three-dimensional modeling data compressed package that the cloud platform sends;Wherein, the n sub- three-dimensional modeling data compressed package is original
Beginning three-dimensional modeling data is divided according to Second Threshold size;In order the n sub- three-dimensional modeling data compressed package is carried out
Decompress display of contracing.
Further, after the n sub- three-dimensional modeling data compressed package that the cloud platform sends is received, methods described is also
Including:The n three-dimensional modeling data compressed package is decrypted.
Further, after browse request is sent to cloud platform, methods described also includes:Receive the cloud platform to send
Three-dimensional modeling data compressed package;Wherein, the three-dimensional modeling data compressed package is original three-dimensional model size of data less than the
Compress during one threshold value;Display of contracing is decompressed to the three-dimensional modeling data compressed package.
Further, after the three-dimensional modeling data compressed package that the cloud platform sends is received, methods described also includes:
The three-dimensional modeling data compressed package is decrypted.
A kind of system for realizing the online fast browsing of threedimensional model is proposed, including cloud platform and client, the cloud platform
Including judge module, division module, compression module and sending module;The judge module, for judging original three-dimensional model number
According to size whether be more than first threshold, the if so, then division module, for by the original three-dimensional model data according to the
Two threshold sizes are divided into n sub- three-dimensional modeling data bag;The compression module, for respectively by n sub- three-dimensional modeling data
Packet compression is n sub- three-dimensional modeling data compressed package;The sending module, for receiving browsing for the client transmission
After request, the n sub- three-dimensional modeling data compressed package is sent to the client in order;The client includes browsing
Request sending module, receiver module, decompression module and display module;The browse request sending module, for the cloud
Platform sends browse request;The receiver module, for receiving the n sub- three-dimensional modeling data compression that the cloud platform sends
Bag;The decompression module, for decompressing to the n sub- three-dimensional modeling data compressed package in order;The display
Module, for showing the three-dimensional modeling data of the decompression module decompression.
Further, the cloud platform also includes encrypting module;The encrypting module, for respectively to described n son three
Dimension module data compression packet encryption so that the sending module is by the n of the encryption sub- three-dimensional modeling data compressed package by suitable
Sequence is sent to the client;The client also includes that deciphering module, the deciphering module are used for receiver module reception
N sub- three-dimensional modeling data compressed package decryption of encryption.
Compared with prior art, the advantage of the application and good effect are:What the application was proposed realizes that threedimensional model is online
In the method and system of fast browsing, by three-dimensional modeling data using first threshold size as limit value, when which is less than first threshold
During value, cloud platform directly compresses it and/or is sent to after encrypting client, client decrypted after the receipt, decompress after show
Show and browse to client;When which is more than first threshold, in units of Second Threshold size, two or more are divided into
Sub- three-dimensional modeling data bag, and respectively many sub- three-dimensional modeling data bags are compressed and/or are sent to after encrypting in order
Client, after client is received, shows after encryption and decompression in order and browses to client;Three-dimensional in due to transmitting procedure
Model data is less than a threshold value size compressed data so that data transmission bauds is improved, the download speed of client
Degree also just improves, and in the application, initial three-dimensional data are divided into after n sub- three-dimensional data packet compression and/or encryption by suitable
Sequence is sent to client, after client is received, in order decryption, on-line loaded shows after decompression, for client, without the need for etc.
Browsed after this original three-dimensional model data is downloaded completely again, improve surfing, solve existing threedimensional model
The technical problem of data load time length, also solving complex model or high-precision model loading time-out causes to browse asking for failure
Topic.And in transmitting procedure, employing encryption technology protection, additionally it is possible to effective protection three-dimensional modeling data is not stolen or distorts, and protects
The copyright of designer or product design is protected.
After the detailed description of the application embodiment is read in conjunction with the accompanying, other features of the application and advantage will become more
Plus it is clear.
Specific embodiment
Below in conjunction with the accompanying drawings the specific embodiment of the application is described in more detail.
The application aims to provide a kind of method and system for realizing the online fast browsing of threedimensional model, solves existing three-dimensional mould
The technical problem that transmits slow, load time length and cause viewing experience poor that type data are caused due to data volume greatly.In three-dimensional mould
In type customization platform system, original three-dimensional model data are uploaded to cloud platform by threedimensional model design side, and it is relevant to fill in other
Product information, completes the restocking of threedimensional model product after examination & verification so that client on-line loaded can browse on the client
Three-dimensional modeling data, and the customization purchase that placed an order after customization is determined online.
As shown in figure 1, the method for realizing the online fast browsing of threedimensional model that the application is proposed, comprises the steps:
Step S11:Judge the size of original three-dimensional model data whether more than first threshold.
Here first threshold is a limit value for setting, original three-dimensional model data data volume more than this first
During the data volume that threshold value is limited, illustrate that original three-dimensional model data volume is excessive, adding for transmission speed and client can be significantly affected
Speed is carried, is reduced client's viewing experience, is then executed,
Step S12:Original three-dimensional model data are divided into n sub- three-dimensional modeling data bag according to Second Threshold size.
After original three-dimensional model data are more than first threshold, in units of Second Threshold size, by original three-dimensional model number
According to n sub- three-dimensional modeling data bag is divided into, n here is at least 2, and the data volume of each packet is limited for Second Threshold
Data volume, so as to larger data volume is divided into multiple packets compared with small data quantity.
Step S13:It is n sub- three-dimensional modeling data compressed package by n sub- three-dimensional modeling data packet compressions respectively.
After original three-dimensional model data are divided with Second Threshold, then respectively to pressing per individual sub- three-dimensional modeling data bag
Contracting, further reduces data volume.
Step S14:After the browse request for receiving client transmission, by n sub- three-dimensional modeling data compressed package by suitable
Sequence is sent to client.
Three-dimensional modeling data in due to transmitting procedure is less than a threshold value size compressed data, the number of reduction
The transmission of the original three-dimensional model data of big data quantity is compared according to amount transmission, it is possible to increase data transmission bauds, also can just carry
The speed of download of high client.
And in step s 11, if judge that the data volume of initial three-dimensional data is limited less than first threshold, without the need for dividing son
Packet, only needs execution step S15:It is three-dimensional modeling data compressed package by original three-dimensional model data compression, and is receiving
After the browse request that client sends, three-dimensional modeling data compressed package is sent to client.
For ensure three-dimensional modeling data in transmitting procedure maliciously do not stolen or distorted, for the embodiment of the present application in
N sub- three-dimensional modeling data compressed package of division or original three-dimensional model compression data packet can be encrypted, and connect
After receiving the browse request of client transmission, by the n sub- three-dimensional modeling data compressed package or the initial three-dimensional mould of encryption of encryption
Type compression data packet is sent to client.
The enforcement of said method step is based on cloud platform end, during the application is implemented, based on client it is also proposed that a kind of realize
The method of the online fast browsing of threedimensional model, as shown in figure 1, comprise the steps:
Step S21:After browse request being sent to cloud platform, receive the n sub- three-dimensional modeling data compressed package that cloud platform sends
Or original three-dimensional model compression data packet.
Step S22:Carry out decompression in order to contract display or to initial three-dimensional mould to n sub- three-dimensional modeling data compressed packages
Type compression data packet is decompressed and is shown.
Client receives the n compressed son three that cloud platform is sent in order from cloud platform after browse request is sent
Dimension module compression data packet, is stored in local storage after decompressing in order, and is successively read decompression from memorizer
Data shown that realize the online browse of client, client is without waiting for entering after the completion of the download of whole three-dimensional modeling data again
Row is browsed, and the mode for solving flanging loaded and displayed according to side realizes the online browse of client, improves client's surfing and experience, solution
The technical problem of existing three-dimensional modeling data load time length of having determined, also solves complex model or high-precision model loading time-out
The problem for causing to browse failure.
For n sub- three-dimensional modeling data compressed package or the original three-dimensional model compression data packet of encryption, client is in solution
First to n sub- three-dimensional modeling data compressed package or the decryption of original three-dimensional model compression data packet before pressure, after decryption, decompression is deposited
Online browse is realized in storage loading.
In transmitting procedure to compressed data packets using encryption technology protect, can effective protection three-dimensional modeling data not by
Steal or distort, protect the copyright of designer or product design.
Based on the set forth above method for realizing the online fast browsing of threedimensional model, the application proposes a kind of three-dimensional mould of realization
The system of the online fast browsing of type, as shown in Fig. 2 the system includes cloud platform 31 and client 32;Cloud platform 31 includes judging
Module 311, division module 312, compression module 313 and sending module 314;Judge module 311 is used for judging original three-dimensional model
Whether the size of data is more than first threshold, and if so, then division module 312 will be big according to Second Threshold for original three-dimensional model data
Little it is divided into n sub- three-dimensional modeling data bags;N sub- three-dimensional modeling data packet compressions are n sub three by compression module 313 respectively
Dimension module compression data packet;Sending module 314 then after the browse request for receiving client transmission, by n sub- threedimensional models
Compression data packet is sent to client in order.
Client 32 includes browse request sending module 321, receiver module 322, decompression module 323 and display module
324;Browse request sending module 321 is used for sending browse request to cloud platform;Receiver module 322 receives the n that cloud platform sends
Individual sub- three-dimensional modeling data compressed package;Decompression module 323 is decompressed to n sub- three-dimensional modeling data compressed package in order
Contracting;Display module 324 then reads and shows the three-dimensional modeling data of decompression module decompression.
If original three-dimensional model data are less than first threshold, original three-dimensional model data are divided without the need for division module 312,
But original three-dimensional model data compression is directly original three-dimensional model compression data packet by compression module 313, in client
Original three-dimensional model compression data packet decompression is condensed to original three-dimensional model data, display module 324 by end, decompression module 323
Load and show original three-dimensional model data.
In the embodiment of the present application, cloud platform 31 also includes encrypting module 315, for respectively to n sub- three-dimensional modeling data
Compression packet encryption so that the n of encryption sub- three-dimensional modeling data compressed package is sent to client by sending module 314 in order;
Client 32 also includes deciphering module 325, for the n sub- three-dimensional modeling data compression to encryption that receiver module 322 is received
Bag decryption.The compress three-dimensional model data of encryption ensure that three-dimensional modeling data in transmitting procedure is not stolen or usurps
Change, the copyright of effective protection three-dimensional modeling data and product.
In the method and system for realizing the online fast browsing of threedimensional model that above-mentioned the application is proposed, by three-dimensional modeling data
Using first threshold size as limit value, when which is less than the first threshold, cloud platform is sent after directly compressing it and/or encrypting
Give client, client decrypted after the receipt, decompress after show and browse to client;When which is more than first threshold, with second
Threshold size is unit, is divided into two or more sub- three-dimensional modeling data bags, and respectively by many height three-dimensional mould
Type packet is sent to client in order after being compressed and/or encrypting, after client is received, press after encryption and decompression
Order display is browsed to client;Three-dimensional modeling data in due to transmitting procedure is less than a threshold value size compressed number
According to so that data transmission bauds is improved, and the speed of download of client also just improves, and in the application, initial three-dimensional data are drawn
Sent after being divided into n sub- three-dimensional data packet compression and/or encryption in order to client, after client is received, decrypt in order,
After decompression, on-line loaded shows, for client, is carried out after downloading completely without waiting for this original three-dimensional model data again
Browse, improve surfing, solve the technical problem of existing three-dimensional modeling data load time length, also solve complex die
Type or high-precision model loading time-out cause the problem for browsing failure.And in transmitting procedure, employ encryption technology protection, moreover it is possible to
Enough effective protection three-dimensional modeling datas are not stolen or distort, and protect the copyright of designer or product design.
It should be noted that described above is not limitation of the present invention, the present invention is also not limited to the example above,
Change, remodeling, interpolation or replacement that those skilled in the art are made in the essential scope of the present invention, also should
Belong to protection scope of the present invention.