CN109934909A - Reconstruct method, apparatus, electronic equipment and the storage medium of 3D model - Google Patents

Reconstruct method, apparatus, electronic equipment and the storage medium of 3D model Download PDF

Info

Publication number
CN109934909A
CN109934909A CN201910160385.0A CN201910160385A CN109934909A CN 109934909 A CN109934909 A CN 109934909A CN 201910160385 A CN201910160385 A CN 201910160385A CN 109934909 A CN109934909 A CN 109934909A
Authority
CN
China
Prior art keywords
model
constituent parts
unit
submodel
queue
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.)
Granted
Application number
CN201910160385.0A
Other languages
Chinese (zh)
Other versions
CN109934909B (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.)
Shenzhen Mini Play Technology Co Ltd
Original Assignee
Shenzhen Mini Play 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 Shenzhen Mini Play Technology Co Ltd filed Critical Shenzhen Mini Play Technology Co Ltd
Priority to CN201910160385.0A priority Critical patent/CN109934909B/en
Publication of CN109934909A publication Critical patent/CN109934909A/en
Application granted granted Critical
Publication of CN109934909B publication Critical patent/CN109934909B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • 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/02Total factory control, e.g. smart factories, flexible manufacturing systems [FMS] or integrated manufacturing systems [IMS]

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a kind of method, apparatus, electronic equipment and storage mediums for reconstructing 3D model, it is related to 3D model treatment field, this method comprises: restoring based on the 3D model data obtained in advance to 3D model, wherein, the 3D model is made of each unit model for supporting independent control;In response to in the 3D model, the selected instruction of submodel restored, the constituent parts model that the submodel includes is placed in queue;It is independent to be converted accordingly to constituent parts model in the queue in response to the transformation directive to the submodel, to realize the reconstruct to the 3D model.The method increase the flexibility ratios of processing 3D model.

Description

Reconstruct method, apparatus, electronic equipment and the storage medium of 3D model
Technical field
The present invention relates to 3D model treatment fields, more particularly to the method, apparatus of reconstruct 3D model, electronic equipment and deposit Storage media.
Background technique
Information processing technology high development instantly, the processing for 3D model, example will be related in various fields Such as: indoor design field, archaeology reduction field.It in the prior art, is according to the 3D obtained when being restored to 3D model Model data is reduced directly out integrated 3D model.The 3D model restored by this method be it is integrated, into one Flexibility ratio is low in the processing of step, is unable to satisfy user and simulates the specific building course of corresponding scene or the structure to 3D model Carry out the demand of customized change.
Summary of the invention
Based on this, solve how from technological layer to solve processing in the related technology that 3D model flexibility ratio is low is faced Technical problem, the present invention provides a kind of method, apparatus, electronic equipment and storage mediums for reconstructing 3D model.
In a first aspect, providing a kind of method for reconstructing 3D model, comprising:
Based on the 3D model data obtained in advance, 3D model is restored, wherein the 3D model is independent by each support The unit model of control forms;
In response to in the 3D model, the selected instruction of submodel restored, each list for including by the submodel Bit model is placed in queue;
It is independent to be become accordingly to constituent parts model in the queue in response to the transformation directive to the submodel It changes, to realize the reconstruct to the 3D model.
In an exemplary embodiment of the disclosure, 3D model data is stored by way of Binary Serialization.
In an exemplary embodiment of the disclosure, 3D model data is stored by way of XML file serializes.
In an exemplary embodiment of the disclosure, unit model supports independent control by the following method:
Unified data structure is pre-designed to each unit model, wherein the data structure includes the unit The unique identification of model, the unit model are relative to the location information of recovery basic point, the required list of the recovery unit model Position duration.
In an exemplary embodiment of the disclosure, based on the 3D model data obtained in advance, 3D model is restored, Include:
In response to restoring the instruction of 3D model, from preconfigured recovery used time parameter, determines and restore the 3D model Required total duration;
Based on total duration needed for restoring the 3D model, when determining unit needed for constituent parts model in the recovery 3D model It is long;
Based on the 3D model data, with the unit time, constituent parts model in the 3D model is successively restored.
In an exemplary embodiment of the disclosure, based on total duration needed for restoring the 3D model, determine described in restoring Unit time needed for constituent parts model in 3D model, comprising:
Determine the sum of unit model in the 3D model;
By the total duration divided by the sum of the unit model, the unit time is obtained.
In an exemplary embodiment of the disclosure, successively restored based on the 3D model data with the unit time Constituent parts model in the 3D model, comprising:
Determine the recovery basic point of the 3D model;
Based on the constituent parts model relative to the location information for restoring basic point, on the basis of the recovery basic point, according to The mark sequence of constituent parts model, with the unit time, successively restores constituent parts model in the 3D model.
In an exemplary embodiment of the disclosure, in response to in the 3D model, the submodel that has restored it is selected Instruction, the constituent parts model that the submodel includes is placed in queue, comprising:
The constituent parts model that the submodel includes successively is set according to the sequence of corresponding unique identification from small to large In queue.
In an exemplary embodiment of the disclosure, in response to the transformation directive to the submodel, in the queue Constituent parts model, it is independent to be converted accordingly, to realize the reconstruct to the 3D model, comprising:
By the transformation directive to the submodel, it is determined as that constituent parts model in the queue should be carried out Map function;
To constituent parts model in the queue, according to the tandem in the queue, the transformation behaviour is successively carried out Make.
According to the second aspect of the disclosure, a kind of device for reconstructing 3D model is provided, comprising:
Restoration module, for being restored to 3D model based on the 3D model data obtained in advance, wherein the 3D mould Type is made of each unit model for supporting independent control;
Module is established in queue, in response to in the 3D model, the selected instruction of submodel restored, will be described The constituent parts model that submodel includes is placed in queue;
Conversion module, it is independent to constituent parts model in the queue in response to the transformation directive to the submodel It is converted accordingly, to realize the reconstruct to the 3D model.
According to the third aspect of the disclosure, a kind of electronic equipment for reconstructing 3D model is provided, comprising:
Memory is configured to storage executable instruction.
Processor is configured to execute the executable instruction stored in the memory, to execute the process described above.
According to the fourth aspect of the disclosure, a kind of computer readable storage medium is provided, computer program is stored with Instruction makes computer execute the process described above when the computer instruction is computer-executed.
It is that entire 3D mould out is directly restored according to 3D model data when being restored in the prior art for 3D model Type.Wherein, the 3D model for restoring in this way out be it is integrated, it is indivisible.This has resulted in multiple by this method The 3D model that original goes out, can not support the independent control to wherein submodel, such as: translation, rotation.Therefore, the embodiment of the present disclosure Propose a kind of method for reconstructing 3D model.In the method, 3D model is by each unit model group for supporting independent control At.By the independent control to constituent parts model, to realize the transformation to submodel in 3D model, to reach reconstruct 3D mould The purpose of type improves the flexibility of processing 3D model.
Other characteristics and advantages of the disclosure will be apparent from by the following detailed description, or partially by the disclosure Practice and acquistion.
It should be understood that the above general description and the following detailed description are merely exemplary, this can not be limited It is open.
Detailed description of the invention
Fig. 1 shows the flow chart of the reconstruct 3D model according to one example embodiment of the disclosure.
Fig. 2 shows according to one example embodiment of the disclosure based on the 3D model data that obtains in advance, to 3D model into The detail flowchart that row restores.
Fig. 3 shows the block diagram of the device of the reconstruct 3D model according to one example embodiment of the disclosure.
Fig. 4 shows the electronic equipment figure of the reconstruct 3D model according to one example embodiment of the disclosure.
Fig. 5 shows the computer readable storage medium figure of the reconstruct 3D model according to one example embodiment of the disclosure.
Specific embodiment
Example embodiment is described more fully with reference to the drawings.However, example embodiment can be with a variety of shapes Formula is implemented, and is not understood as limited to example set forth herein;On the contrary, providing these example embodiments makes the disclosure Description will be more full and complete, and the design of example embodiment is comprehensively communicated to those skilled in the art.Attached drawing The only schematic illustrations of the disclosure are not necessarily drawn to scale.Identical appended drawing reference indicates same or like in figure Part, thus repetition thereof will be omitted.
In addition, described feature, structure or characteristic can be incorporated in one or more examples in any suitable manner In embodiment.In the following description, many details are provided to provide filling to the example embodiment of the disclosure Sub-argument solution.It will be appreciated, however, by one skilled in the art that the specific detail can be omitted with technical solution of the disclosure In it is one or more, or can be using other methods, constituent element, step etc..In other cases, it is not shown in detail or retouches Known features, method, realization or operation are stated to avoid a presumptuous guest usurps the role of the host and all aspects of this disclosure is made to thicken.
Some block diagrams shown in the drawings are functional entitys, not necessarily must be with physically or logically independent entity phase It is corresponding.These functional entitys can be realized using software form, or in one or more hardware modules or integrated circuit in fact These existing functional entitys, or these functions reality is realized in heterogeneous networks and/or processor device and/or microcontroller device Body.
The subject of implementation of the embodiment of the present disclosure is a terminal that can implement the method, for example, server terminal, individual Terminal.The terminal for implementing the method can support the transformation to submodel any in 3D model, to realize to this The flexible processing of 3D model.
The process of the embodiment of the present disclosure is illustrated with reference to the accompanying drawing.
Fig. 1 shows the flow chart of the method for the reconstruct 3D model according to one example embodiment of the disclosure, the method packet It includes:
Step S100: based on the 3D model data obtained in advance, 3D model is restored, wherein the 3D model by Each unit model composition for supporting independent control;
Step S110: in response to in the 3D model, the selected instruction of submodel restored, by the submodel packet The constituent parts model contained is placed in queue;
Step S120: independent to carry out to constituent parts model in the queue in response to the transformation directive to the submodel Corresponding transformation, to realize the reconstruct to the 3D model.
In the step s 100, based on the 3D model data obtained in advance, 3D model is restored, wherein the 3D mould Type is made of each unit model for supporting independent control.
3D model data refers in a manner of numerical value, describes the data of 3D model specific structure.
Unit model refers to the minimum unit of 3D model that is having unified structure.Wherein, unit model is by the 3D model The constructor of data, it is predetermined according to self-demand.For example, 3D model is a building, according to pre-defined, the building Minimum unit be form the building brick, then, every piece of stock mould type in the 3D model is the unit model of the 3D model.
In one embodiment, 3D model data is stored by way of Binary Serialization.
In the embodiment, it is described to the description of subclass attribute value from the superclass attribute value of top, 3D model data objects are real The relevant class data of example are outputted as binary word throttling in advance, and are stored in 3D model data file, for terminal reading.
The advantages of embodiment, is, enables the terminal to more rapidly read 3D model data, eliminate to 3D mould The process that type data are parsed, to more efficiently restore 3D model.
In one embodiment, 3D model data is stored by way of XML file serializes.
In the embodiment, 3D model data is stored as XML file in advance, and is serialized into byte stream and is stored in 3D mould In type data file, for terminal reading.
The advantages of embodiment is, the 3D model data of XML file serializing can multiple system platforms (for example, WINDOWS, ANDROID) between shared, improve the compatibility of 3D model data.
The structure of constituent parts model in 3D model is described below.
In one embodiment, unit model supports independent control by the following method:
Unified data structure is pre-designed to each unit model, wherein the data structure includes the unit The unique identification of model, the unit model are relative to the location information of recovery basic point, the required list of the recovery unit model Position duration.
It restores basic point and refers to the reference point in three-dimensional system of coordinate, when restoring to 3D model.
In the embodiment, 3D model data store the corresponding data structure of constituent parts model.The data of constituent parts model Structure includes but is not limited to that the unique identification (for example, number ID of the unit model) of the unit model, the unit model are opposite In restore basic point location information (for example, each vertex of unit model relative to restore basic point coordinate), restore the unit Required unit time.Terminal can realize the independence to constituent parts model by the control of the data structure to constituent parts model Control (for example, change location information is to realize the translation to unit model, rotation).
The advantages of embodiment, is that support is independently controlled constituent parts model in 3D model, so that terminal The respective specific part of 3D model can be changed, while not influencing the other parts of 3D model according to the instruction of acquisition.
The detailed process for restoring 3D model is described below.
In one embodiment, as shown in Fig. 2, step S100 includes:
Step S1001: the instruction in response to restoring 3D model is determined and is restored from preconfigured recovery used time parameter Total duration needed for the 3D model;
Step S1002: it based on total duration needed for restoring the 3D model, determines and restores constituent parts model in the 3D model Required unit time;
Step S1003: each list in the 3D model is successively restored with the unit time based on the 3D model data Bit model.
In one embodiment, the instruction for restoring 3D model can be pressed by clicking in the default interface of terminal, release command Button triggering.
In one embodiment, restoring used time parameter can be configured by user in the parameter configuration interface of terminal.If not The recovery used time parameter that user configures in parameter configuration interface is received, then is determined as the recovery used time of default to restore the 3D Total duration needed for model.
In one embodiment, it after terminal receives the instruction for restoring 3D model, from the recovery used time parameter of configuration, determines Total duration needed for restoring the 3D model, and then determine and restore unit time needed for constituent parts model in the 3D model.To with this Unit time restores constituent parts model in the 3D model.
The advantages of embodiment, is, 3D model is restored by way of gradually restoring constituent parts model, can be intuitively The generating process of each structure of 3D model is shown, to meet the demand that user corresponds to the building course of scene for simulating.
In one embodiment, it based on total duration needed for restoring the 3D model, determines and restores constituent parts in the 3D model Unit time needed for model, comprising:
Determine the sum of unit model in the 3D model;
By the total duration divided by the sum of the unit model, the unit time is obtained.
It, should so that it is determined that restoring from the sum for determining unit model in the 3D model in 3D model data in the embodiment Unit time needed for constituent parts model in 3D model.
In one embodiment, it is based on the 3D model data, with the unit time, is successively restored each in the 3D model Unit model, comprising:
Determine the recovery basic point of the 3D model;
Based on the constituent parts model relative to the location information for restoring basic point, on the basis of the recovery basic point, according to The mark sequence of constituent parts model, with the unit time, successively restores constituent parts model in the 3D model.
In the embodiment, which is previously determined according to the mark of unit model and restores constituent parts model Sequentially, such as: successively restored according to the ID sequence from small to large of unit model.
Terminal is when restoring the 3D model, it is first determined restores basic point.The recovery basic point can be by receiving user It is determined in the recovery basic point parameter of terminal configuration interface, configuration.For example, user is in the recovery basic point that terminal configuration interface inputs (0,10,10), then the point (0,10,10) in three-dimensional system of coordinate is determined as the recovery basic point of 3D model by terminal.If not receiving The recovery basic point of default is then determined as the recovery of the 3D model in terminal configuration interface, the recovery basic point parameter of configuration by user Basic point.For example, the origin (0,0,0) in three-dimensional system of coordinate.
Terminal is according to fixed, constituent parts model recovery sequence, based on constituent parts model relative to recovery basic point Location information, with unit time, successively restores constituent parts model in the 3D model on the basis of restoring basic point.Such as, it has been determined that Restoring basic point is (0,10,10), and unit time 0.5s successively restores ID according to the ID sequence from small to large of unit model From 001~009 unit model.Wherein, ID is 001 the data structure definition of the unit model unit model: ID is 001, relative to restore basic point eight vertex coordinate be [(0,0,0), (0,10,0), (10,10,0), (10,0,0), (0, 0,10), (0,10,10), (10,10,10), (10,0,10)], unit time 0.5s.Then to ID be 001 unit model into When row restores, used time 0.5s, restore out its eight vertex [(0,10,10), (0,20,10), (10,20,10), (10,10,10), (0,10,20), (0,20,20), (10,20,20), (10,10,20)].
The advantages of embodiment, is that it is possible to the accurately requirement with user for recovery 3D model velocity, simulates 3D The building course of the corresponding scene of model.
Restructuring procedure to 3D model is described below.
In step s 110, in response to in the 3D model, the selected instruction of submodel restored, by the submodule The constituent parts model that type includes is placed in queue.
Submodel refers to the 3D model of part, can be a unit model in 3D model, is also possible in 3D model The combination of multiple unit models.
In one embodiment, the selected instruction of submodel can be and is inputted by the console of terminal, it can also To be to be obtained by mouse in the circle choosing for selecting interface.
In one embodiment, in response to in the 3D model, the selected instruction of submodel restored, by the submodule The constituent parts model that type includes is placed in queue, comprising:
The constituent parts model that the submodel includes successively is set according to the sequence of corresponding unique identification from small to large In queue.
In the embodiment, receive in 3D model, after the selected instruction of submodel restored, for selected submodule Type, the sequence by wherein constituent parts model according to mark from small to large, is sequentially placed into queue.For example, in selected submodel The unit model for including has: model 001, model 006, model 002, model 007.Then by constituent parts model according to mark from it is small to The queue that big sequence obtains are as follows: model 001, model 002, model 006, model 007.
The advantages of embodiment is, when so as to the subsequently received transformation directive to the submodel, by queue Constituent parts model successively carry out it is corresponding transformation to realize the transformation to the submodel, without influence whether in 3D model in addition to Other positions outside the submodel.
In the step s 120, independent to constituent parts model in the queue in response to the transformation directive to the submodel It is converted accordingly, to realize the reconstruct to the 3D model.
In embodiment of the disclosure, it is made of due to 3D model each unit model for supporting independent control, Submodel is converted, can be realized by carrying out corresponding transformation to constituent parts model in submodel.
In one embodiment, include but is not limited to the transformation directive of the submodel: duplication, translation, rotation.
In one embodiment, independent to constituent parts model in the queue in response to the transformation directive to the submodel It is converted accordingly, to realize the reconstruct to the 3D model, comprising:
By the transformation directive to the submodel, it is determined as that constituent parts model in the queue should be carried out Map function;
To constituent parts model in the queue, according to the tandem in the queue, the transformation behaviour is successively carried out Make.
In the embodiment, after receiving the transformation directive to submodel, terminal determines the transformation directive to submodel pair The map function that constituent parts model should carry out in queue.For example, receiving the transformation directive to submodel are as follows: " by the submodule Type rotates 70 degree as axle center using X-axis positive direction counterclockwise ";The map function that then the constituent parts model in queue should be carried out Are as follows: " the unit model is rotated 70 degree as axle center using X-axis positive direction counterclockwise ".
After determining to the map function of constituent parts model in queue, according to tandem in the queue, successively to queue Middle constituent parts model carries out the map function, to realize the transformation to submodel, i.e., is reconstructed to the 3D model.Example Such as, which is a bedroom model, and it is " by the son that terminal, which is received to the transformation directive of a cup model in the bedroom model, Model translates 10 unit distances along X-axis positive direction ".Then to the constituent parts model in the corresponding queue of cup model, just along X-axis Direction translates 10 unit distances, realizes the transformation directive for translating the cup model, is reconstructed the bedroom model.
The advantages of embodiment, is, due to that can carry out independent control to unit model, so as to entire 3D model Reconstruct it is very flexible.
According to the embodiment of the present disclosure, as shown in figure 3, additionally providing a kind of device for reconstructing 3D model, comprising:
Restoration module 210, for being restored to 3D model based on the 3D model data obtained in advance, wherein the 3D Model is made of each unit model for supporting independent control;
Module 220 is established in queue, in response to in the 3D model, the selected instruction of submodel restored, will The constituent parts model that the submodel includes is placed in queue;
Conversion module 230, in response to the transformation directive to the submodel, to constituent parts model in the queue, It is independent to be converted accordingly, to realize the reconstruct to the 3D model.
In one embodiment, 3D model data is stored by way of Binary Serialization.
In one embodiment, 3D model data is stored by way of XML file serializes.
In one embodiment, unit model supports independent control by the following method:
Unified data structure is pre-designed to each unit model, wherein the data structure includes the unit The unique identification of model, the unit model are relative to the location information of recovery basic point, the required list of the recovery unit model Position duration.
In one embodiment, based on the 3D model data obtained in advance, 3D model is restored, comprising:
In response to restoring the instruction of 3D model, from preconfigured recovery used time parameter, determines and restore the 3D model Required total duration;
Based on total duration needed for restoring the 3D model, when determining unit needed for constituent parts model in the recovery 3D model It is long;
Based on the 3D model data, with the unit time, constituent parts model in the 3D model is successively restored.
In one embodiment, it based on total duration needed for restoring the 3D model, determines and restores constituent parts in the 3D model Unit time needed for model, comprising:
Determine the sum of unit model in the 3D model;
By the total duration divided by the sum of the unit model, the unit time is obtained.
In one embodiment, it is based on the 3D model data, with the unit time, is successively restored each in the 3D model Unit model, comprising:
Determine the recovery basic point of the 3D model;
Based on the constituent parts model relative to the location information for restoring basic point, on the basis of the recovery basic point, according to The mark sequence of constituent parts model, with the unit time, successively restores constituent parts model in the 3D model.
In one embodiment, in response to in the 3D model, the selected instruction of submodel restored, by the submodule The constituent parts model that type includes is placed in queue, comprising:
The constituent parts model that the submodel includes successively is set according to the sequence of corresponding unique identification from small to large In queue.
In one embodiment, independent to constituent parts model in the queue in response to the transformation directive to the submodel It is converted accordingly, to realize the reconstruct to the 3D model, comprising:
By the transformation directive to the submodel, it is determined as that constituent parts model in the queue should be carried out Map function;
To constituent parts model in the queue, according to the tandem in the queue, the transformation behaviour is successively carried out Make.
It should be noted that although being referred to several modules or list for acting the equipment executed in the above detailed description Member, but this division is not enforceable.In fact, according to embodiment of the present disclosure, it is above-described two or more Module or the feature and function of unit can embody in a module or unit.Conversely, an above-described mould The feature and function of block or unit can be to be embodied by multiple modules or unit with further division.
In addition, although describing each step of method in the disclosure in the accompanying drawings with particular order, this does not really want These steps must be executed in this particular order by asking or implying, or having to carry out step shown in whole could realize Desired result.Additional or alternative, it is convenient to omit multiple steps are merged into a step and executed by certain steps, and/ Or a step is decomposed into execution of multiple steps etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, mobile terminal or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of electronic equipment that can be realized the above method is additionally provided.
Person of ordinary skill in the field it is understood that various aspects of the invention can be implemented as system, method or Program product.Therefore, various aspects of the invention can be embodied in the following forms, it may be assumed that complete hardware embodiment, complete The embodiment combined in terms of full Software Implementation (including firmware, microcode etc.) or hardware and software, can unite here Referred to as circuit, " module " or " system ".
The electronic equipment 400 of this embodiment according to the present invention is described referring to Fig. 4.The electronics that Fig. 4 is shown Equipment 400 is only an example, should not function to the embodiment of the present invention and use scope bring any restrictions.
As shown in figure 4, electronic equipment 400 is showed in the form of universal computing device.The component of electronic equipment 400 can wrap It includes but is not limited to: at least one above-mentioned processing unit 410, at least one above-mentioned storage unit 420, the different system components of connection The bus 430 of (including storage unit 420 and processing unit 410).
Wherein, the storage unit is stored with program code, and said program code can be held by the processing unit 410 Row, so that various according to the present invention described in the execution of the processing unit 410 above-mentioned " illustrative methods " part of this specification The step of illustrative embodiments.For example, the processing unit 410 can execute step S100 as shown in fig. 1: based on preparatory The 3D model data of acquisition, restores 3D model, wherein the 3D model is by each unit model group for supporting independent control At;Step S110: in response to in the 3D model, the selected instruction of submodel restored, include by the submodel Constituent parts model is placed in queue;Step S120: in response to the transformation directive to the submodel, to constituent parts in the queue Model, it is independent to be converted accordingly, to realize the reconstruct to the 3D model.
Storage unit 420 may include the readable medium of volatile memory cell form, such as Random Access Storage Unit (RAM) 4201 and/or cache memory unit 4202, it can further include read-only memory unit (ROM) 4203.
Storage unit 420 can also include program/utility with one group of (at least one) program module 4205 4204, such program module 4205 includes but is not limited to: operating system, one or more application program, other program moulds It may include the realization of network environment in block and program data, each of these examples or certain combination.
Bus 430 can be to indicate one of a few class bus structures or a variety of, including storage unit bus or storage Cell controller, peripheral bus, graphics acceleration port, processing unit use any bus structures in a variety of bus structures Local bus.
Electronic equipment 400 can also be with one or more external equipments 500 (such as keyboard, sensing equipment, bluetooth equipment Deng) communication, can also be enabled a user to one or more equipment interact with the electronic equipment 400 communicate, and/or with make Any equipment (such as the router, modulation /demodulation that the electronic equipment 400 can be communicated with one or more of the other calculating equipment Device etc.) communication.This communication can be carried out by input/output (I/O) interface 450.Also, electronic equipment 400 can be with By network adapter 460 and one or more network (such as local area network (LAN), wide area network (WAN) and/or public network, Such as internet) communication.As shown, network adapter 460 is communicated by bus 430 with other modules of electronic equipment 400. It should be understood that although not shown in the drawings, other hardware and/or software module can not used in conjunction with electronic equipment 400, including but not Be limited to: microcode, device driver, redundant processing unit, external disk drive array, RAID system, tape drive and Data backup storage system etc..
Through the above description of the embodiments, those skilled in the art is it can be readily appreciated that example described herein is implemented Mode can also be realized by software realization in such a way that software is in conjunction with necessary hardware.Therefore, according to the disclosure The technical solution of embodiment can be embodied in the form of software products, which can store non-volatile at one Property storage medium (can be CD-ROM, USB flash disk, mobile hard disk etc.) in or network on, including some instructions are so that a calculating Equipment (can be personal computer, server, terminal installation or network equipment etc.) is executed according to disclosure embodiment Method.
In an exemplary embodiment of the disclosure, a kind of computer readable storage medium is additionally provided, energy is stored thereon with Enough realize the program product of this specification above method.In some possible embodiments, various aspects of the invention may be used also In the form of being embodied as a kind of program product comprising program code, when described program product is run on the terminal device, institute Program code is stated for executing the terminal device described in above-mentioned " illustrative methods " part of this specification according to this hair The step of bright various illustrative embodiments.
Refering to what is shown in Fig. 5, describing the program product for realizing the above method of embodiment according to the present invention 600, can using portable compact disc read only memory (CD-ROM) and including program code, and can in terminal device, Such as it is run on PC.However, program product of the invention is without being limited thereto, in this document, readable storage medium storing program for executing can be with To be any include or the tangible medium of storage program, the program can be commanded execution system, device or device use or It is in connection.
Described program product can be using any combination of one or more readable mediums.Readable medium can be readable letter Number medium or readable storage medium storing program for executing.Readable storage medium storing program for executing for example can be but be not limited to electricity, magnetic, optical, electromagnetic, infrared ray or System, device or the device of semiconductor, or any above combination.The more specific example of readable storage medium storing program for executing is (non exhaustive List) include: electrical connection with one or more conducting wires, portable disc, hard disk, random access memory (RAM), read-only Memory (ROM), erasable programmable read only memory (EPROM or flash memory), optical fiber, portable compact disc read only memory (CD-ROM), light storage device, magnetic memory device or above-mentioned any appropriate combination.
Computer-readable signal media may include in a base band or as carrier wave a part propagate data-signal, In carry readable program code.The data-signal of this propagation can take various forms, including but not limited to electromagnetic signal, Optical signal or above-mentioned any appropriate combination.Readable signal medium can also be any readable Jie other than readable storage medium storing program for executing Matter, the readable medium can send, propagate or transmit for by instruction execution system, device or device use or and its The program of combined use.
The program code for including on readable medium can transmit with any suitable medium, including but not limited to wirelessly, have Line, optical cable, RF etc. or above-mentioned any appropriate combination.
The program for executing operation of the present invention can be write with any combination of one or more programming languages Code, described program design language include object oriented program language-Java, C++ etc., further include conventional Procedural programming language-such as " C " language or similar programming language.Program code can be fully in user It calculates and executes in equipment, partly executes on a user device, being executed as an independent software package, partially in user's calculating Upper side point is executed on a remote computing or is executed in remote computing device or server completely.It is being related to far Journey calculates in the situation of equipment, and remote computing device can pass through the network of any kind, including local area network (LAN) or wide area network (WAN), it is connected to user calculating equipment, or, it may be connected to external computing device (such as utilize ISP To be connected by internet).
In addition, above-mentioned attached drawing is only the schematic theory of processing included by method according to an exemplary embodiment of the present invention It is bright, rather than limit purpose.It can be readily appreciated that the time that above-mentioned processing shown in the drawings did not indicated or limited these processing is suitable Sequence.In addition, be also easy to understand, these processing, which can be, for example either synchronously or asynchronously to be executed in multiple modules.
Those skilled in the art after considering the specification and implementing the invention disclosed here, will readily occur to its of the disclosure His embodiment.This application is intended to cover any variations, uses, or adaptations of the disclosure, these modifications, purposes or Adaptive change follow the general principles of this disclosure and including the undocumented common knowledge in the art of the disclosure or Conventional techniques.The description and examples are only to be considered as illustrative, and the true scope and spirit of the disclosure are by claim It points out.

Claims (10)

1. a kind of method for reconstructing 3D model, which is characterized in that the described method includes:
Based on the 3D model data obtained in advance, 3D model is restored, wherein the 3D model is by each support independent control Unit model composition;
In response to in the 3D model, the selected instruction of submodel restored, the constituent parts mould for including by the submodel Type is placed in queue;
It is independent to be converted accordingly to constituent parts model in the queue in response to the transformation directive to the submodel, with Realize the reconstruct to the 3D model.
2. the method according to claim 1, wherein the unit model supports independent control by the following method System:
Unified data structure is pre-designed to each unit model, wherein the data structure includes the unit model Unique identification, the unit model relative to restoring the location information of basic point, restoring the required unit of the unit model when It is long.
3. according to the method described in claim 2, it is characterized in that, the data structure by way of Binary Serialization into Row storage.
4. the method according to claim 1, wherein described based on the 3D model data obtained in advance, to 3D mould Type is restored, comprising:
In response to restoring the instruction of 3D model, from preconfigured recovery used time parameter, determine needed for restoring the 3D model Total duration;
Based on total duration needed for restoring the 3D model, determines and restore unit time needed for constituent parts model in the 3D model;
Based on the 3D model data, with the unit time, constituent parts model in the 3D model is successively restored.
5. according to the method described in claim 4, it is characterized in that, described be based on the 3D model data, when with the unit It is long, successively restore constituent parts model in the 3D model, comprising:
Determine the recovery basic point of the 3D model;
Based on the constituent parts model relative to the location information for restoring basic point, on the basis of the recovery basic point, according to each list The mark sequence of bit model, with the unit time, successively restores constituent parts model in the 3D model.
6. the method according to claim 1, wherein it is described in response to in the 3D model, the son that has restored The constituent parts model that the submodel includes is placed in queue by the selected instruction of model, comprising:
Team is sequentially placed into according to the sequence of corresponding unique identification from small to large to the constituent parts model that the submodel includes In column.
7. the method according to claim 1, wherein the transformation directive in response to the submodel, right Constituent parts model in the queue, it is independent to be converted accordingly, to realize the reconstruct to the 3D model, comprising:
By the transformation directive to the submodel, it is determined as the transformation that constituent parts model in the queue, should be carried out Operation;
To constituent parts model in the queue, according to the tandem in the queue, the map function is successively carried out.
8. a kind of device for reconstructing 3D model characterized by comprising
Restoration module, for being restored to 3D model based on the 3D model data obtained in advance, wherein the 3D model by Each unit model composition for supporting independent control;
Module is established in queue, in response to in the 3D model, the selected instruction of submodel restored, by the submodule The constituent parts model that type includes is placed in queue;
Conversion module, in response to the transformation directive to the submodel, to constituent parts model in the queue, independent progress Corresponding transformation, to realize the reconstruct to the 3D model.
9. a kind of electronic equipment for reconstructing 3D model characterized by comprising
Memory is configured to storage executable instruction;
Processor is configured to execute the executable instruction stored in the memory, with any in execution according to claim 1-7 A method.
10. a kind of computer readable storage medium, which is characterized in that it is stored with computer program instructions, when the computer When instruction is computer-executed, computer is made to execute method described in any of -7 according to claim 1.
CN201910160385.0A 2019-03-04 2019-03-04 Method and device for reconstructing 3D model, electronic equipment and storage medium Active CN109934909B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910160385.0A CN109934909B (en) 2019-03-04 2019-03-04 Method and device for reconstructing 3D model, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910160385.0A CN109934909B (en) 2019-03-04 2019-03-04 Method and device for reconstructing 3D model, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN109934909A true CN109934909A (en) 2019-06-25
CN109934909B CN109934909B (en) 2023-05-23

Family

ID=66986341

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910160385.0A Active CN109934909B (en) 2019-03-04 2019-03-04 Method and device for reconstructing 3D model, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN109934909B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090065965A (en) * 2007-12-18 2009-06-23 주식회사 케이티 3d image model generation method and apparatus, image recognition method and apparatus using the same and recording medium storing program for performing the method thereof
US20100191753A1 (en) * 2009-01-26 2010-07-29 Microsoft Corporation Extracting Patterns from Sequential Data
US20150109415A1 (en) * 2013-10-17 2015-04-23 Samsung Electronics Co., Ltd. System and method for reconstructing 3d model
US9158796B1 (en) * 2013-03-11 2015-10-13 Ca, Inc. Data source modeling methods for heterogeneous data sources and related computer program products and systems
CN105989198A (en) * 2015-01-29 2016-10-05 中交宇科(北京)空间信息技术有限公司 BIM-based (building information modeling based) road parametric auto-modeling method and system
CN108197376A (en) * 2017-12-28 2018-06-22 中铁二局集团有限公司 A kind of temporary building design and modeling method and system based on BIM
KR101934645B1 (en) * 2017-08-09 2019-01-02 한국동서발전(주) System and method for managing construction activity of 4-dimension using virtual construction simulation
CN109254965A (en) * 2018-08-22 2019-01-22 中国平安人寿保险股份有限公司 Model treatment method and system, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20090065965A (en) * 2007-12-18 2009-06-23 주식회사 케이티 3d image model generation method and apparatus, image recognition method and apparatus using the same and recording medium storing program for performing the method thereof
US20100191753A1 (en) * 2009-01-26 2010-07-29 Microsoft Corporation Extracting Patterns from Sequential Data
US9158796B1 (en) * 2013-03-11 2015-10-13 Ca, Inc. Data source modeling methods for heterogeneous data sources and related computer program products and systems
US20150109415A1 (en) * 2013-10-17 2015-04-23 Samsung Electronics Co., Ltd. System and method for reconstructing 3d model
CN105989198A (en) * 2015-01-29 2016-10-05 中交宇科(北京)空间信息技术有限公司 BIM-based (building information modeling based) road parametric auto-modeling method and system
KR101934645B1 (en) * 2017-08-09 2019-01-02 한국동서발전(주) System and method for managing construction activity of 4-dimension using virtual construction simulation
CN108197376A (en) * 2017-12-28 2018-06-22 中铁二局集团有限公司 A kind of temporary building design and modeling method and system based on BIM
CN109254965A (en) * 2018-08-22 2019-01-22 中国平安人寿保险股份有限公司 Model treatment method and system, storage medium and electronic equipment

Also Published As

Publication number Publication date
CN109934909B (en) 2023-05-23

Similar Documents

Publication Publication Date Title
CN106846497B (en) Method and device for presenting three-dimensional map applied to terminal
WO2016082311A1 (en) System and method for generating machining control data of numerical control machine tool
CN110046116B (en) Tensor filling method, device, equipment and storage medium
CN110019498A (en) Log synchronous method and device, storage medium, electronic equipment
JP7128188B2 (en) 3D MODEL CONSTRUCTION METHOD, APPARATUS AND SYSTEM
CN112367370A (en) Management method, device, equipment and medium for hybrid cloud resource data
CN109816768B (en) Indoor reconstruction method, device, equipment and medium
CN110478898B (en) Configuration method and device of virtual scene in game, storage medium and electronic equipment
CN112966824A (en) Deployment method and device of inference library and electronic equipment
KR20160125783A (en) Electronic apparatus and method for displaying contetns
CN115131476A (en) Bone binding migration method, device, equipment and storage medium of virtual object
CN111966361A (en) Method, device and equipment for determining model to be deployed and storage medium thereof
US11194465B2 (en) Robot eye lamp control method and apparatus and terminal device using the same
CN102541620A (en) Seamless application integration apparatus and method
CN111652675A (en) Display method and device and electronic equipment
CN108701045A (en) Client operating system screenshot method and device in computer equipment
CN104487932A (en) Speech recognition support for remote applications and desktops
CN111124409A (en) Sketch-based business page generation method, device, equipment and storage medium
CN107423291A (en) A kind of data translating method and client device
CN112807695B (en) Game scene generation method and device, readable storage medium and electronic equipment
CN109684103A (en) A kind of interface call method, device, server and storage medium
CN111462269B (en) Image processing method and device, storage medium and electronic equipment
CN109934909A (en) Reconstruct method, apparatus, electronic equipment and the storage medium of 3D model
CN108667902B (en) Remote control system, method, device and equipment of iOS equipment
CN105204774B (en) A kind of data processing method and electronic equipment

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