CN110021056A - A kind of broken modeling method of model and device calculate equipment and storage medium - Google Patents

A kind of broken modeling method of model and device calculate equipment and storage medium Download PDF

Info

Publication number
CN110021056A
CN110021056A CN201910305149.3A CN201910305149A CN110021056A CN 110021056 A CN110021056 A CN 110021056A CN 201910305149 A CN201910305149 A CN 201910305149A CN 110021056 A CN110021056 A CN 110021056A
Authority
CN
China
Prior art keywords
stage
fragment
external force
joint face
broken
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
CN201910305149.3A
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.)
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game Technology Co Ltd
Original Assignee
Zhuhai Xishan Mobile Game Technology Co Ltd
Zhuhai Kingsoft Online Game 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 Zhuhai Xishan Mobile Game Technology Co Ltd, Zhuhai Kingsoft Online Game Technology Co Ltd filed Critical Zhuhai Xishan Mobile Game Technology Co Ltd
Priority to CN201910305149.3A priority Critical patent/CN110021056A/en
Publication of CN110021056A publication Critical patent/CN110021056A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T13/00Animation
    • G06T13/203D [Three Dimensional] animation

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Management, Administration, Business Operations System, And Electronic Commerce (AREA)

Abstract

The application provides a kind of broken modeling method of model and device, calculates equipment and storage medium, wherein, which comprises object module cutting is divided into n grades of fragments, wherein, the fragment of i-stage includes at least two i+1 grade fragments, and i is positive integer and 1≤i≤n-1;It determines the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, the joint face of same level-one fragment is engaged, model to be broken is formed, wherein j is positive integer and 1≤j≤n;Under the action of by external force, determine the size and sphere of action of external force, according to the corresponding j-th stage crushing stress threshold value of the joint face of the size of external force, sphere of action and j-th stage fragment, determine the crushing effect of the model to be broken, without calculating in each modeling process each fragment, computing overhead is saved, the consumption of hardware resource is saved.

Description

A kind of broken modeling method of model and device calculate equipment and storage medium
Technical field
This application involves animation design technique field, in particular to the broken modeling method of a kind of model and device, calculating Equipment and storage medium.
Background technique
In the technical field of cartoon scene production, it is often necessary to various 3D models are made, to realize to the true of actual environment Real simulation, reaches animation effect true to nature.
In the prior art, when needing production to carry out broken 3D model, such as building, it needs the model point in advance Multiple fine grained chippings are segmented into, when carrying out subsequent broken calculating, need to carry out each fine grained chippings independent color applying drawing, and It needs accurately to consider its stress and physical motion state, each fragment is synchronized, thus bring computing overhead is very Greatly.Especially large complicated model is carried out in broken modeling process, occupy and consumes a large amount of hardware resource.
Summary of the invention
In view of this, the embodiment of the present application provides a kind of broken modeling method of model and device, calculates equipment and deposit Storage media, to solve technological deficiency existing in the prior art.
The embodiment of the present application discloses a kind of modeling method that model is broken, which comprises
Object module cutting is divided into n grades of fragments, wherein the fragment of i-stage includes at least two i+1 grade fragments, i For positive integer and 1≤i≤n-1;
It determines the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, the joint face of same level-one fragment is carried out Engagement, forms model to be broken, wherein j is positive integer and 1≤j≤n;
Under the action of by external force, determine the size and sphere of action of external force, according to the size of external force, sphere of action and The corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, determines the crushing effect of the model to be broken.
Optionally it is determined that the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, comprising:
Assignment is carried out to the corresponding i-stage crushing stress threshold value of the joint face of j-th stage fragment, wherein the j-th stage is broken Stress threshold increases with the increase of series j.
Optionally, the joint face of same level-one fragment is engaged, forms model to be broken, comprising:
S1, the sequence reduced according to rank i, the joint face of the fragment of i+1 grade is engaged, and forms i-stage fragment, Wherein, i is positive integer and 1≤i≤n-1;
S2, judge whether i is equal to 1, if so, step S3 is executed, if it is not, executing step S4;
S3, the joint face of i-stage fragment is engaged, forms model to be broken;
S4, i is subtracted 1 certainly, executes step S1.
Optionally it is determined that the sphere of action of external force, comprising: determine the position of external force;
According to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the effect model of external force is determined It encloses.
Optionally, according to the corresponding j-th stage crushing stress of joint face of the size of external force, sphere of action and j-th stage fragment Threshold value determines the crushing effect of the model to be broken, comprising:
S11, the injury diffusion index according to the size of external force, the damped expoential of external force and external force, determine the work of external force The size of the external force suffered by the joint face between the j-th stage fragment and the j-th stage fragment in range;
S12, the joint face that suffered external force is more than or equal to the j-th stage fragment of j-th stage crushing stress threshold value disconnect, and execute step Rapid S13;
S13, judge whether j is less than n, if so, step S14 is executed, if it is not, executing step S15;
S14, j is increased 1 certainly, return step S11;
S15, end.
Optionally, in the case where j >=2, step S12 includes:
S21, -1 grade of fragment of jth that joint face disconnects, the corresponding j-th stage of -1 grade of fragment of jth that joint face is disconnected are determined Fragment is as j-th stage target fragment;
S22, the joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value disconnect.
Optionally, the j-th stage crushing stress threshold value includes: that j-th stage is crushed shearing stress threshold value and the broken direct stress of j-th stage Threshold value;
Step S12 includes:
The company of j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force The suffered external force of junction, wherein suffered external force includes shearing stress and direct stress;
The suffered shearing stress of the joint face of j-th stage fragment is crushed shearing stress threshold value with j-th stage to be compared, by j-th stage The suffered direct stress of the joint face of fragment is crushed direct stress threshold value with j-th stage and is compared;
If the suffered shearing stress of the joint face of j-th stage fragment, which is more than or equal to j-th stage, is crushed shearing stress threshold value or j-th stage fragment The suffered direct stress of joint face be more than or equal to j-th stage and be crushed direct stress threshold value, the joint face of the j-th stage fragment is disconnected.
The embodiment of the present application discloses a kind of model building device that model is broken, and described device includes:
Cutting module is configured as object module cutting being divided into n grades of fragments, wherein the fragment of i-stage includes at least Two i+1 grade fragments, i are positive integer and 1≤i≤n-1;
Splice module is configured to determine that the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, will be same The joint face of grade fragment is engaged, and model to be broken is formed, wherein j is positive integer and 1≤j≤n;
Broken module, is configured as under the action of by external force, the size and sphere of action of external force is determined, according to external force Size, the corresponding j-th stage crushing stress threshold value of joint face of sphere of action and j-th stage fragment, determine the model to be broken Crushing effect.
Optionally, the splice module is specifically configured to: broken to the corresponding i-stage of the joint face of j-th stage fragment to answer Force threshold carries out assignment, wherein the j-th stage crushing stress threshold value increases with the increase of series j.
Optionally, the splice module is specifically configured to:
Fragment forms module, is configured as the sequence reduced according to rank i, and the joint face of the fragment of i+1 grade is carried out Engagement forms i-stage fragment, wherein i is positive integer and 1≤i≤n-1;
First judgment module is configured as judging whether i is equal to 1, if so, executing model forms module, if it is not, executing certainly Subtract module;
Model forms module, is configured as engaging the joint face of i-stage fragment, forms model to be broken;
From module is subtracted, it is configured as executing i into fragment formation module from subtracting 1.
Optionally, the broken module is specifically configured to: determining the position of external force;
According to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the effect model of external force is determined It encloses.
Optionally, the broken module is specifically configured to:
External force determining module is configured as being spread according to the injury of the size of external force, the damped expoential of external force and external force Index determines the big of external force suffered by the joint face between the j-th stage fragment and the j-th stage fragment in the sphere of action of external force It is small;
Module is disconnected, is configured as suffered external force being more than or equal to the connection of the j-th stage fragment of j-th stage crushing stress threshold value Face disconnects, and executes the second judgment module;
Second judgment module is configured as judging whether j is less than n, if so, executing from module is increased, if it is not, terminating;
From module is increased, it is configured as j executing external force determining module from increasing 1.
Optionally, in the case where j >=2, the disconnection module is specifically configured to:
Determine -1 grade of fragment of jth that joint face disconnects, the corresponding j-th stage fragment of -1 grade of fragment of jth that joint face is disconnected As j-th stage target fragment;
The joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value is disconnected.
Optionally, the j-th stage crushing stress threshold value includes: that j-th stage is crushed shearing stress threshold value and the broken direct stress of j-th stage Threshold value;The disconnection module is specifically configured to:
The company of j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force The suffered external force of junction, wherein suffered external force includes shearing stress and direct stress;
The suffered shearing stress of the joint face of j-th stage fragment is crushed shearing stress threshold value with j-th stage to be compared, by j-th stage The suffered direct stress of the joint face of fragment is crushed direct stress threshold value with j-th stage and is compared;
If the suffered shearing stress of the joint face of j-th stage fragment, which is more than or equal to j-th stage, is crushed shearing stress threshold value or j-th stage fragment The suffered direct stress of joint face be more than or equal to j-th stage and be crushed direct stress threshold value, the joint face of the j-th stage fragment is disconnected.
The embodiment of the present application discloses a kind of calculating equipment, including memory, processor and storage are on a memory and can The computer instruction run on a processor, the processor realize model as described above broken modeling when executing described instruction The step of method.
The embodiment of the present application discloses a kind of computer readable storage medium, is stored with computer instruction, the instruction quilt Processor realizes the step of model as described above broken modeling method when executing.
The broken modeling method of model provided by the present application and device, by the way that object module cutting is divided into n grades of fragments, Wherein, the fragment of i-stage includes at least two i+1 grade fragments, determines that the corresponding j-th stage of the joint face of j-th stage fragment is broken The joint face of same level-one fragment is engaged, forms model to be broken by stress threshold, wherein j is positive integer and 1≤j≤n; Under the action of by external force, the size and sphere of action of external force are determined, it is broken according to the size, sphere of action and j-th stage of external force The corresponding j-th stage crushing stress threshold value of the joint face of block, determines the crushing effect of the model to be broken, without building every time Each fragment is calculated in mold process, saves computing overhead, saves the consumption of hardware resource.
Detailed description of the invention
Fig. 1 is the structural schematic diagram of the calculating equipment of the embodiment of the present application;
Fig. 2 is the flow diagram of the broken modeling method of the model of one embodiment of the application;
Fig. 3 is the flow diagram of the broken modeling method of the model of one embodiment of the application;
Fig. 4 is the flow diagram of the broken modeling method of the model of one embodiment of the application;
Fig. 5 is the flow diagram of the broken modeling method of the model of one embodiment of the application;
Fig. 6 is the flow diagram of the broken modeling method of the model of one embodiment of the application;
Fig. 7 is the flow diagram of the broken modeling method of the model of another embodiment of the application;
Fig. 8 is the flow diagram of the broken model building device of the model of one embodiment of the application.
Specific embodiment
Many details are explained in the following description in order to fully understand the application.But the application can be with Much it is different from other way described herein to implement, those skilled in the art can be without prejudice to the application intension the case where Under do similar popularization, therefore the application is not limited by following public specific implementation.
The term used in this specification one or more embodiment be only merely for for the purpose of describing particular embodiments, It is not intended to be limiting this specification one or more embodiment.In this specification one or more embodiment and appended claims The "an" of singular used in book, " described " and "the" are also intended to including most forms, unless context is clearly Indicate other meanings.It is also understood that term "and/or" used in this specification one or more embodiment refers to and includes One or more associated any or all of project listed may combine.
It will be appreciated that though may be retouched using term first, second etc. in this specification one or more embodiment Various information are stated, but these information should not necessarily be limited by these terms.These terms are only used to for same type of information being distinguished from each other It opens.For example, first can also be referred to as second, class in the case where not departing from this specification one or more scope of embodiments As, second can also be referred to as first.Depending on context, word as used in this " if " can be construed to " ... when " or " when ... " or " in response to determination ".
In this application, a kind of broken modeling method of model and device are provided, calculates equipment and storage medium, under It is described in detail one by one in the embodiment in face.
Fig. 1 is to show the structural block diagram of the calculating equipment 100 according to one embodiment of this specification.The calculating equipment 100 Component include but is not limited to memory 110 and processor 120.Processor 120 is connected with memory 110 by bus 130, Database 150 is for saving data.
Calculating equipment 100 further includes access device 140, access device 140 enable calculate equipment 100 via one or Multiple networks 160 communicate.The example of these networks includes public switched telephone network (PSTN), local area network (LAN), wide area network (WAN), the combination of the communication network of personal area network (PAN) or such as internet.Access device 140 may include wired or wireless One or more of any kind of network interface (for example, network interface card (NIC)), such as IEEE802.11 wireless local area Net (WLAN) wireless interface, worldwide interoperability for microwave accesses (Wi-MAX) interface, Ethernet interface, universal serial bus (USB) connect Mouth, cellular network interface, blue tooth interface, near-field communication (NFC) interface, etc..
In one embodiment of this specification, unshowned other component in above-mentioned and Fig. 1 of equipment 100 is calculated It can be connected to each other, such as pass through bus.It should be appreciated that calculating device structure block diagram shown in FIG. 1 is merely for the sake of example Purpose, rather than the limitation to this specification range.Those skilled in the art can according to need, and increase or replace other portions Part.
Calculating equipment 100 can be any kind of static or mobile computing device, including mobile computer or mobile meter Calculate equipment (for example, tablet computer, personal digital assistant, laptop computer, notebook computer, net book etc.), movement Phone (for example, smart phone), wearable calculating equipment (for example, smartwatch, intelligent glasses etc.) or other kinds of shifting Dynamic equipment, or the static calculating equipment of such as desktop computer or PC.Calculating equipment 100 can also be mobile or state type Server.
Wherein, processor 120 can execute the step in method shown in Fig. 2.Fig. 2 is to show to be implemented according to the application one The schematic flow chart of the broken modeling method of the model of example, including step 201 is to step 203.
201, object module cutting is divided into n grades of fragments, wherein the fragment of i-stage includes that at least two i+1 grades are broken Block, i are positive integer, and 1≤i≤n-1.
It is to be understood that object module is 3D model, such as building.
In the present embodiment, by that hierarchically broken to model in the next steps can carry out fragment divided rank Modeling.
Wherein, n can value according to actual needs.Such as value is 3,4 or 5 etc..By taking n=3 as an example, first by target mould Type is divided into the 1st grade of fragment, is further divided to each 1st grade of fragment, and each 1st grade of fragment corresponding is obtained 2 grades of fragments, then each 2nd grade of fragment is divided, obtain the corresponding 3rd level fragment of each 2nd grade of fragment.
202, the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment is determined, by the joint face of same level-one fragment It is engaged, forms model to be broken, wherein j is positive integer and 1≤j≤n.
Specifically, in step 202, the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment is determined, comprising: right The corresponding i-stage crushing stress threshold value of the joint face of j-th stage fragment carries out assignment, wherein the j-th stage crushing stress threshold value with The increase of series j and increase.
Further, j-th stage crushing stress threshold value includes: that j-th stage is crushed shearing stress threshold value and the broken direct stress threshold of j-th stage Value;Assignment is carried out to the corresponding i-stage crushing stress threshold value of the joint face of j-th stage fragment, is specifically included: broken to j-th stage respectively The corresponding j-th stage of the joint face of block is crushed shearing stress threshold value and j-th stage direct stress threshold value carries out assignment.
Specifically, referring to Fig. 3, the joint face of same level-one fragment is engaged, model to be broken is formed, comprising:
301, the sequence reduced according to rank i, the joint face of the fragment of i+1 grade is engaged, and it is broken to form i-stage Block, wherein i is positive integer and 1≤i≤n-1.
302, judge whether i is equal to 1, if so, step 303 is executed, if it is not, executing step 304.
303, the joint face of i-stage fragment is engaged, forms model to be broken.
304, if it is not, executing step 301 by i from subtracting 1.
It should be noted that rank i is bigger, fragment is smaller.The method of the present embodiment is first by the company of the big fragment of rank Junction carries out engagement and generates next stage other fragment ... ..., until generating model to be broken.
For 3 grades, the joint face of 3rd level fragment is first carried out engagement and generates the 2nd grade of fragment by the present embodiment, then by the The joint face of 2 grades of fragments carries out engagement and generates the 1st grade of fragment, and the joint face of the 1st grade of fragment is then carried out engagement and is generated to broken Broken model.
203, under the action of by external force, the size and sphere of action of external force are determined, according to the size of external force, effect model J-th stage crushing stress threshold value corresponding with the joint face of j-th stage fragment is enclosed, determines the crushing effect of the model to be broken.
In this step, the sphere of action of external force is determined, comprising: the position for determining external force, further according to the size, outer of external force The damped expoential of power and the injury diffusion index of external force, determine the sphere of action of external force.
It should be explained that:
Damped expoential, refers to damped expoential of the injury of external force in diffusion process, such as external force is from j-th stage fragment The coefficient of decaying into the transmittance process of+1 grade of fragment of jth.
Diffusion index is injured, refers to the speed that the injury of external force is transmitted on object, the position apart from external force is 0 Point is by by all injuries, and then gradually diffusive attenuation is 0, and the point for being 0 by obtained injury can determine the work of external force Use range.
In this step, answered according to the corresponding j-th stage of the joint face of the size of external force, sphere of action and j-th stage fragment is broken Force threshold determines the crushing effect of the model to be broken, referring to fig. 4, comprising:
401, according to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the work of external force is determined The size of the external force suffered by the joint face between the j-th stage fragment and the j-th stage fragment in range.
Wherein, j is positive integer and 1≤j≤n.
Specifically, by the sphere of action of external force, all 1~n grades of fragments in range can be determined.Such as it acts on Range is range in external force point 100cm, determines in external force point 100cm all 1~n grades broken Block.
By the injury diffusion index of the size of external force, the damped expoential of external force and external force, j-th stage fragment can be determined Between joint face suffered by external force size.
It is ensured that for the fragment of same rank, joint face institute fragment between closer apart from external force point Bigger by external force, remoter apart from external force point, external force suffered by the joint face between fragment is smaller.
402, the joint face that suffered external force is more than or equal to the j-th stage fragment of j-th stage crushing stress threshold value disconnects, and executes step Rapid 403.
403, judge whether j is less than n, if so, step 404 is executed, if it is not, executing step 405.
404, j is increased 1 certainly, return step 401.
405, terminate.
Optionally, referring to Fig. 5, in the case where j >=2, step 402 includes:
501, -1 grade of fragment of jth that joint face disconnects, the corresponding j-th stage of -1 grade of fragment of jth that joint face is disconnected are determined Fragment is as j-th stage target fragment.
502, the joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value disconnects.
By step 501~502, during judging whether the joint face of j-th stage fragment disconnects, without selecting external force The joint face of all j-th stage fragments in sphere of action, it is only necessary to the corresponding jth of -1 grade of fragment of jth for selecting joint face to disconnect Grade fragment, can further reduce the selection range of j-th stage fragment in this way, be conducive to save computing cost, save hardware money The consumption in source.
It specifically, include: that the broken shearing stress threshold value of j-th stage and j-th stage are broken for j-th stage crushing stress threshold value referring to Fig. 6 The situation of broken direct stress threshold value, step 402 include the following steps 601~603:
601, j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force Joint face suffered external force, wherein suffered external force includes shearing stress and direct stress.
602, the suffered shearing stress of the joint face of j-th stage fragment and j-th stage are crushed shearing stress threshold value to be compared, by the The suffered direct stress of the joint face of j grades of fragments is crushed direct stress threshold value with j-th stage and is compared.
If 603, the suffered shearing stress of the joint face of j-th stage fragment is more than or equal to the broken shearing stress threshold value of j-th stage or j-th stage The suffered direct stress of the joint face of fragment is more than or equal to j-th stage and is crushed direct stress threshold value, and the joint face of the j-th stage fragment is broken It opens.
Step 601 through this embodiment~603 are more than or equal to jth in the suffered direct stress of the joint face of j-th stage fragment Two conditions that the broken direct stress threshold value of grade, suffered shearing stress are more than or equal to the broken shearing stress threshold value of j-th stage meet any feelings Under condition, the joint face of the j-th stage fragment can be disconnected.
The broken modeling method of model provided by the present application, by the way that object module cutting is divided into n grades of fragments, wherein The fragment of i-stage includes at least two i+1 grade fragments, determines the corresponding j-th stage crushing stress threshold of the joint face of j-th stage fragment Value, the joint face of same level-one fragment is engaged, model to be broken is formed, wherein j is positive integer and 1≤j≤n;By Under the action of external force, the size and sphere of action of external force are determined, according to the company of the size of external force, sphere of action and j-th stage fragment The corresponding j-th stage crushing stress threshold value of junction, determines the crushing effect of the model to be broken, without each modeling process In each fragment is calculated, save computing overhead, save the consumption of hardware resource.
Specifically, the method for the present embodiment carries out independent when carrying out broken calculate without each fragment to n grades of fragments Calculate, but can only the 1st grade of piecemeal or the 2nd grade of piecemeal are calculated, therefore save a large amount of computing overhead with And synchronous flow.For the CPU of equipment, because collision body and rigid body quantity are more in physical manipulations, calculate consumption and get over Greatly, the present processes can reduce the quantity of collision body and rigid body that iteration is needed when operation, and the operation pressure of CPU is effectively reduced Power.
For rendering (GPU), since each fragment at least needs to call a render instruction (DrawCall), and Render instruction is more, and rendering consumption is bigger.The method of the present embodiment can first render the 1st grade of fragment, if the 1st grade Fragment is not crushed, just will not the 2nd grade of fragment corresponding to the 1st grade of fragment render, to reduce the number of render instruction Amount, it is possible to rendering consumption be effectively reduced.
Secondly, during judging whether the joint face of j-th stage fragment disconnects, without selecting within the scope of external force The joint face of all j-th stage fragments, it is only necessary to which the corresponding j-th stage fragment of -1 grade of fragment of jth for selecting joint face to disconnect in this way may be used To further reduce the selection range of j-th stage fragment, is conducive to save computing cost, saves the consumption of hardware resource.
In addition, the suffered direct stress in the joint face of j-th stage fragment is more than or equal to j-th stage and is crushed direct stress threshold value, suffered Shearing stress be more than or equal to j-th stage be crushed shearing stress threshold value two conditions meet it is any in the case where, can be broken by the j-th stage The joint face of block disconnects.
Below by taking 3 grades of fragments as an example, the broken modeling method of the model to the application is illustrated.
One embodiment of the application also provides a kind of modeling method that model is broken, referring to Fig. 7, comprising:
701, object module cutting is divided into 3 grades of fragments.
Wherein, object module cutting is divided at least two the 1st grades of fragments, each 1st grade of fragment includes at least two 2nd grade of fragment, each 2nd grade of fragment include at least two 3rd level fragments.
702, the corresponding j-th stage crushing stress threshold value of the joint face of the 1st grade of fragment, the joint face pair of the 2nd grade of fragment are determined The 2nd grade of crushing stress threshold value answered, the corresponding 3rd level crushing stress threshold value of the joint face of 3rd level fragment.
703, the joint face of 3rd level fragment is engaged, formed the 2nd grade of fragment, then by the joint face of the 2nd grade of fragment into Row engagement, forms the 1st grade of fragment, finally engages the joint face of the 1st grade of fragment, form model to be broken.
704, under the action of by external force, the position of external force is determined, according to the size of external force, the damped expoential of external force And the injury diffusion index of external force, determine the sphere of action of external force.
705, according to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the work of external force is determined The size of the external force suffered by the joint face between the 1st grade of fragment and the 1st grade of fragment in range.
706, joint face of the external force more than or equal to the 1st grade of fragment of the 1st grade of crushing stress threshold value is judged whether there is, if It is to execute step 707, if it is not, executing step 714.
707, the joint face that suffered external force is more than or equal to the 1st grade of fragment of the 1st grade of crushing stress threshold value disconnects, and executes step Rapid 708.
708, it determines the 1st grade of fragment corresponding 2nd grade of fragment that joint face disconnects, is declined according to the size of external force, external force The injury diffusion index for subtracting index and external force determines outer suffered by the joint face between above-mentioned 2nd grade of fragment and the 2nd grade of fragment The size of power.
709, joint face of the external force more than or equal to the 2nd grade of fragment of the 2nd grade of crushing stress threshold value is judged whether there is, if It is to execute step 710, if it is not, executing step 714.
710, the joint face that suffered external force is more than or equal to the 2nd grade of fragment of the 2nd grade of crushing stress threshold value disconnects, and executes step Rapid 711.
711, it determines the 2nd grade of fragment corresponding 3rd level fragment that joint face disconnects, is declined according to the size of external force, external force The injury diffusion index for subtracting index and external force determines outer suffered by the joint face between above-mentioned 3rd level fragment and 3rd level fragment The size of power.
712, joint face of the external force more than or equal to the 3rd level fragment of 3rd level crushing stress threshold value is judged whether there is, if It is to execute step 713, if it is not, executing step 714.
713, the joint face that suffered external force is more than or equal to the 3rd level fragment of 3rd level crushing stress threshold value disconnects.
714, terminate process.
The broken modeling method of the model of the present embodiment determines jth by the way that object module cutting is divided into 3 grades of fragments The corresponding j-th stage crushing stress threshold value of joint face of grade fragment, the joint face of same level-one fragment is engaged, and is formed to be broken Model, wherein j is positive integer and 1≤j≤3;Under the action of by external force, the size and sphere of action of external force are determined, according to Size, the corresponding j-th stage crushing stress threshold value of joint face of sphere of action and j-th stage fragment of external force, determine described to be broken The crushing effect of model saves computing overhead, saves without calculating in each modeling process each fragment The consumption of hardware resource.
The broken modeling method of the above-mentioned model for the embodiment of the present application schematically illustrates.Below to the mould of the present embodiment The broken model building device of type is schematically illustrated.
One embodiment of the application also provides a kind of model building device that model is broken, and referring to Fig. 8, described device includes:
Cutting module 801, is configured as cutting object module and is divided into n grades of fragments, wherein the fragment of i-stage includes At least two i+1 grade fragments, i are positive integer and 1≤i≤n-1;
Splice module 802 is configured to determine that the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, will be same The joint face of level-one fragment is engaged, and model to be broken is formed, wherein j is positive integer and 1≤j≤n;
Broken module 803, is configured as under the action of by external force, determines the size and sphere of action of external force, according to Size, the corresponding j-th stage crushing stress threshold value of joint face of sphere of action and j-th stage fragment of external force, determine described to be broken The crushing effect of model.
Optionally, the splice module 802 is specifically configured to: broken to the corresponding i-stage of the joint face of j-th stage fragment Stress threshold carries out assignment, wherein the j-th stage crushing stress threshold value increases with the increase of series j.
Optionally, the splice module 802 is specifically configured to:
Fragment forms module, is configured as the sequence reduced according to rank i, and the joint face of the fragment of i+1 grade is carried out Engagement forms i-stage fragment, wherein i is positive integer and 1≤i≤n-1;
First judgment module is configured as judging whether i is equal to 1, if so, executing model forms module, if it is not, executing certainly Subtract module;
Model forms module, is configured as engaging the joint face of i-stage fragment, forms model to be broken;
From module is subtracted, it is configured as executing i into fragment formation module from subtracting 1.
Optionally, it is crushed module 803 to be specifically configured to: determining the position of external force, according to the size of external force, external force The injury diffusion index of damped expoential and external force, determines the sphere of action of external force.
Optionally, module 803 is crushed to be specifically configured to:
External force determining module is configured as being spread according to the injury of the size of external force, the damped expoential of external force and external force Index determines the big of external force suffered by the joint face between the j-th stage fragment and the j-th stage fragment in the sphere of action of external force It is small;
Module is disconnected, is configured as suffered external force being more than or equal to the connection of the j-th stage fragment of j-th stage crushing stress threshold value Face disconnects, and executes the second judgment module;
Second judgment module is configured as judging whether j is less than n, if so, executing from module is increased, if it is not, terminating;
From module is increased, it is configured as j executing external force determining module from increasing 1.
Optionally, it in the case where j >=2, disconnects module and is specifically configured to:
Determine -1 grade of fragment of jth that joint face disconnects, the corresponding j-th stage fragment of -1 grade of fragment of jth that joint face is disconnected As j-th stage target fragment;
The joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value is disconnected.
Optionally, j-th stage crushing stress threshold value includes: that j-th stage is crushed shearing stress threshold value and the broken direct stress threshold of j-th stage Value;Module is disconnected to be specifically configured to:
The company of j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force The suffered external force of junction, wherein suffered external force includes shearing stress and direct stress;
The suffered shearing stress of the joint face of j-th stage fragment is crushed shearing stress threshold value with j-th stage to be compared, by j-th stage The suffered direct stress of the joint face of fragment is crushed direct stress threshold value with j-th stage and is compared;
If the suffered shearing stress of the joint face of j-th stage fragment, which is more than or equal to j-th stage, is crushed shearing stress threshold value or j-th stage fragment The suffered direct stress of joint face be more than or equal to j-th stage and be crushed direct stress threshold value, the joint face of the j-th stage fragment is disconnected.
The broken model building device of model provided by the present application, by the way that object module cutting is divided into n grades of fragments, wherein The fragment of i-stage includes at least two i+1 grade fragments, determines the corresponding j-th stage crushing stress threshold of the joint face of j-th stage fragment Value, the joint face of same level-one fragment is engaged, model to be broken is formed, wherein j is positive integer and 1≤j≤n;By Under the action of external force, the size and sphere of action of external force are determined, according to the company of the size of external force, sphere of action and j-th stage fragment The corresponding j-th stage crushing stress threshold value of junction, determines the crushing effect of the model to be broken, without each modeling process In each fragment is calculated, save computing overhead, save the consumption of hardware resource.
One embodiment of the application also provides a kind of computer readable storage medium, is stored with computer instruction, the instruction The step of modeling method that model as previously described is crushed is realized when being executed by processor.
A kind of exemplary scheme of above-mentioned computer readable storage medium for the present embodiment.It should be noted that this is deposited The technical solution for the modeling method that the technical solution of storage media and above-mentioned model are crushed belongs to same design, the skill of storage medium The detail content that art scheme is not described in detail may refer to the description of the technical solution of the broken modeling method of above-mentioned model.
The computer instruction includes computer program code, the computer program code can for source code form, Object identification code form, executable file or certain intermediate forms etc..The computer-readable medium may include: that can carry institute State any entity or device, recording medium, USB flash disk, mobile hard disk, magnetic disk, CD, the computer storage of computer program code Device, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), Electric carrier signal, telecommunication signal and software distribution medium etc..It should be noted that the computer-readable medium include it is interior Increase and decrease appropriate can be carried out according to the requirement made laws in jurisdiction with patent practice by holding, such as in certain jurisdictions of courts Area does not include electric carrier signal and telecommunication signal according to legislation and patent practice, computer-readable medium.
It should be noted that for the various method embodiments described above, describing for simplicity, therefore, it is stated as a series of Combination of actions, but those skilled in the art should understand that, the application is not limited by the described action sequence because According to the application, certain steps can use other sequences or carry out simultaneously.Secondly, those skilled in the art should also know It knows, the embodiments described in the specification are all preferred embodiments, and related actions and modules might not all be this Shen It please be necessary.
In the above-described embodiments, it all emphasizes particularly on different fields to the description of each embodiment, there is no the portion being described in detail in some embodiment Point, it may refer to the associated description of other embodiments.
The application preferred embodiment disclosed above is only intended to help to illustrate the application.There is no detailed for alternative embodiment All details are described, are not limited the invention to the specific embodiments described.Obviously, according to the content of this specification, It can make many modifications and variations.These embodiments are chosen and specifically described to this specification, is in order to preferably explain the application Principle and practical application, so that skilled artisan be enable to better understand and utilize the application.The application is only It is limited by claims and its full scope and equivalent.

Claims (16)

1. a kind of broken modeling method of model, which is characterized in that the described method includes:
Object module cutting is divided into n grades of fragments, wherein the fragment of i-stage includes at least two i+1 grade fragments, and i is positive Integer and 1≤i≤n-1;
It determines the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, the joint face of same level-one fragment is connect It closes, forms model to be broken, wherein j is positive integer and 1≤j≤n;
Under the action of by external force, the size and sphere of action of external force are determined, according to the size, sphere of action and jth of external force The corresponding j-th stage crushing stress threshold value of joint face of grade fragment, determines the crushing effect of the model to be broken.
2. the broken modeling method of model as described in claim 1, which is characterized in that determine the joint face pair of j-th stage fragment The j-th stage crushing stress threshold value answered, comprising:
Assignment is carried out to the corresponding i-stage crushing stress threshold value of the joint face of j-th stage fragment, wherein the j-th stage crushing stress Threshold value increases with the increase of series j.
3. the broken modeling method of model as described in claim 1, which is characterized in that carry out the joint face of same level-one fragment Engagement, forms model to be broken, comprising:
S1, the sequence reduced according to rank i, the joint face of the fragment of i+1 grade is engaged, and forms i-stage fragment, In, i is positive integer and 1≤i≤n-1;
S2, judge whether i is equal to 1, if so, step S3 is executed, if it is not, executing step S4;
S3, the joint face of i-stage fragment is engaged, forms model to be broken;
S4, i is subtracted 1 certainly, executes step S1.
4. the broken modeling method of model as described in claim 1, which is characterized in that determine the sphere of action of external force, comprising:
Determine the position of external force;
According to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the sphere of action of external force is determined.
5. the broken modeling method of model as described in claim 1, which is characterized in that according to the size of external force, sphere of action J-th stage crushing stress threshold value corresponding with the joint face of j-th stage fragment, determines the crushing effect of the model to be broken, comprising:
S11, the injury diffusion index according to the size of external force, the damped expoential of external force and external force, determine the effect model of external force The size of external force suffered by the joint face between j-th stage fragment and the j-th stage fragment in enclosing;
S12, the joint face that suffered external force is more than or equal to the j-th stage fragment of j-th stage crushing stress threshold value disconnect, and execute step S13;
S13, judge whether j is less than n, if so, step S14 is executed, if it is not, executing step S15;
S14, j is increased 1 certainly, return step S11;
S15, end.
6. the broken modeling method of model as claimed in claim 5, which is characterized in that in the case where j >=2, step S12 packet It includes:
S21, -1 grade of fragment of jth that joint face disconnects, the corresponding j-th stage fragment of -1 grade of fragment of jth that joint face is disconnected are determined As j-th stage target fragment;
S22, the joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value disconnect.
7. the broken modeling method of model as claimed in claim 5, which is characterized in that the j-th stage crushing stress threshold value packet Include: j-th stage is crushed shearing stress threshold value and j-th stage is crushed direct stress threshold value;
Step S12 includes:
The joint face of j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force Suffered external force, wherein suffered external force includes shearing stress and direct stress;
The suffered shearing stress of the joint face of j-th stage fragment is crushed shearing stress threshold value with j-th stage to be compared, by j-th stage fragment Suffered direct stress and the j-th stage of joint face be crushed direct stress threshold value and be compared;
If the suffered shearing stress of the joint face of j-th stage fragment is more than or equal to the company that j-th stage is crushed shearing stress threshold value or j-th stage fragment The suffered direct stress of junction is more than or equal to j-th stage and is crushed direct stress threshold value, and the joint face of the j-th stage fragment is disconnected.
8. a kind of broken model building device of model, which is characterized in that described device includes:
Cutting module is configured as object module cutting being divided into n grades of fragments, wherein the fragment of i-stage includes at least two I+1 grade fragment, i are positive integer and 1≤i≤n-1;
Splice module is configured to determine that the corresponding j-th stage crushing stress threshold value of the joint face of j-th stage fragment, will be broken with level-one The joint face of block is engaged, and model to be broken is formed, wherein j is positive integer and 1≤j≤n;
Broken module, is configured as under the action of by external force, the size and sphere of action of external force is determined, according to the big of external force The corresponding j-th stage crushing stress threshold value of the joint face of small, sphere of action and j-th stage fragment determines the broken of the model to be broken Broken effect.
9. the broken model building device of model as claimed in claim 8, which is characterized in that the splice module is specifically configured Are as follows: assignment is carried out to the corresponding i-stage crushing stress threshold value of the joint face of j-th stage fragment, wherein the j-th stage crushing stress Threshold value increases with the increase of series j.
10. the broken model building device of model as claimed in claim 8, which is characterized in that the splice module is specifically configured Are as follows:
Fragment forms module, is configured as the sequence reduced according to rank i, the joint face of the fragment of i+1 grade is engaged, Form i-stage fragment, wherein i is positive integer and 1≤i≤n-1;
First judgment module is configured as judging whether i is equal to 1, if so, executing model forms module, subtracts mould certainly if it is not, executing Block;
Model forms module, is configured as engaging the joint face of i-stage fragment, forms model to be broken;
From module is subtracted, it is configured as executing i into fragment formation module from subtracting 1.
11. the broken model building device of model as claimed in claim 8, which is characterized in that the broken module is specifically configured Are as follows:
Determine the position of external force;
According to the injury diffusion index of the size of external force, the damped expoential of external force and external force, the sphere of action of external force is determined.
12. the broken model building device of model as claimed in claim 8, which is characterized in that the broken module is specifically configured Are as follows:
External force determining module is configured as the injury diffusion index according to the size of external force, the damped expoential of external force and external force, Determine the size of external force suffered by the joint face between the j-th stage fragment and the j-th stage fragment in the sphere of action of external force;
Module is disconnected, is configured as breaking the joint face for the j-th stage fragment that suffered external force is more than or equal to j-th stage crushing stress threshold value It opens, executes the second judgment module;
Second judgment module is configured as judging whether j is less than n, if so, executing from module is increased, if it is not, terminating;
From module is increased, it is configured as j executing external force determining module from increasing 1.
13. the broken model building device of model as claimed in claim 12, which is characterized in that described disconnected in the case where j >=2 Die sinking block is specifically configured to:
Determine joint face disconnect -1 grade of fragment of jth, using joint face disconnect the corresponding j-th stage fragment of -1 grade of fragment of jth as J-th stage target fragment;
The joint face that suffered external force is more than or equal to the j-th stage target fragment of j-th stage crushing stress threshold value is disconnected.
14. the broken model building device of model as claimed in claim 12, which is characterized in that the j-th stage crushing stress threshold value It include: that j-th stage is crushed shearing stress threshold value and the broken direct stress threshold value of j-th stage;
The disconnection module is specifically configured to:
The joint face of j-th stage fragment is determined according to the injury diffusion index of the size of external force, the damped expoential of external force and external force Suffered external force, wherein suffered external force includes shearing stress and direct stress;
The suffered shearing stress of the joint face of j-th stage fragment is crushed shearing stress threshold value with j-th stage to be compared, by j-th stage fragment Suffered direct stress and the j-th stage of joint face be crushed direct stress threshold value and be compared;
If the suffered shearing stress of the joint face of j-th stage fragment is more than or equal to the company that j-th stage is crushed shearing stress threshold value or j-th stage fragment The suffered direct stress of junction is more than or equal to j-th stage and is crushed direct stress threshold value, and the joint face of the j-th stage fragment is disconnected.
15. a kind of calculating equipment including memory, processor and stores the calculating that can be run on a memory and on a processor Machine instruction, which is characterized in that the processor realizes that model described in claim 1-7 any one is broken when executing described instruction Modeling method the step of.
16. a kind of computer readable storage medium, is stored with computer instruction, which is characterized in that the instruction is held by processor The step of modeling method that model described in claim 1-7 any one is crushed is realized when row.
CN201910305149.3A 2019-04-16 2019-04-16 A kind of broken modeling method of model and device calculate equipment and storage medium Pending CN110021056A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910305149.3A CN110021056A (en) 2019-04-16 2019-04-16 A kind of broken modeling method of model and device calculate equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910305149.3A CN110021056A (en) 2019-04-16 2019-04-16 A kind of broken modeling method of model and device calculate equipment and storage medium

Publications (1)

Publication Number Publication Date
CN110021056A true CN110021056A (en) 2019-07-16

Family

ID=67191512

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910305149.3A Pending CN110021056A (en) 2019-04-16 2019-04-16 A kind of broken modeling method of model and device calculate equipment and storage medium

Country Status (1)

Country Link
CN (1) CN110021056A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838172A (en) * 2021-09-03 2021-12-24 网易(杭州)网络有限公司 Model processing method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050151733A1 (en) * 2004-01-09 2005-07-14 Microsoft Corporation Multi-chart geometry images
WO2017027957A1 (en) * 2015-08-17 2017-02-23 Side Effects Software Inc. Physically based simulation methods for modeling and animating two- and three-dimensional deformable objects
CN108492371A (en) * 2018-03-29 2018-09-04 合肥工业大学 A kind of three-dimensional building model dynamic and visual method towards fire

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050151733A1 (en) * 2004-01-09 2005-07-14 Microsoft Corporation Multi-chart geometry images
WO2017027957A1 (en) * 2015-08-17 2017-02-23 Side Effects Software Inc. Physically based simulation methods for modeling and animating two- and three-dimensional deformable objects
CN108492371A (en) * 2018-03-29 2018-09-04 合肥工业大学 A kind of three-dimensional building model dynamic and visual method towards fire

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
吕长建等: "多样化实时刚体破碎模拟", 《中国图象图形学报》 *
徐琨等: "基于离散元法的颗粒破碎模拟研究进展", 《岩土工程学报》 *
赵凤芝等: "基于PhysX物理引擎的刚体破碎特效仿真", 《计算机工程与设计》 *
郭晶晶等: "刚体破碎仿真研究", 《信息通信》 *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113838172A (en) * 2021-09-03 2021-12-24 网易(杭州)网络有限公司 Model processing method and device

Similar Documents

Publication Publication Date Title
CN111242282B (en) Deep learning model training acceleration method based on end edge cloud cooperation
CN103533015B (en) A kind of method of limit speed-raising
CN109543200A (en) A kind of text interpretation method and device
CN108900770A (en) A kind of method, apparatus, smartwatch and the mobile terminal of the rotation of control camera
EP4105848A1 (en) Method and apparatus for evaluating joint training model
CN106469376A (en) A kind of risk control method and equipment
KR102555607B1 (en) Method and apparatus for annotating data, device, storage medium and computer program
CN107729570A (en) Data migration method and device for server
CN103634413A (en) Cloud data connection and management platform for Internet of Things of smart city in PAAS (Platform As A Service) mode
CN111159897A (en) Target optimization method and device based on system modeling application
CN110021056A (en) A kind of broken modeling method of model and device calculate equipment and storage medium
CN115423132A (en) Engineering machinery predictive maintenance method based on digital twinning
CN112734425A (en) Identification method for phishing users in Ether house platform
CN115187821B (en) Method, related device and program product for verifying correctness of model before and after conversion
CN113572647B (en) Block chain-edge calculation combined system based on reinforcement learning
CN110472731A (en) Gradient synchronous method and device during a kind of distribution is trained
CN103796226B (en) A kind of network optimized approach and device
CN110009748A (en) A kind of model construction method and system calculate equipment and storage medium
CN114841267A (en) Real-time prediction method and device, electronic equipment and computer program product
CN109981361B (en) Method and device for determining infection source in propagation network
CN106254527B (en) A kind of data migration method and mobile terminal
CN104657476A (en) On-line analytical processing method and system
CN112581492A (en) Moving target detection method and device
CN109408235A (en) A kind of data processing method and device, a kind of calculating equipment and storage medium
CN115271987B (en) Cross-application group relation analysis method based on mobile phone data

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
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20190716