CN102270356A - Construction method of control cage based on comparison method - Google Patents

Construction method of control cage based on comparison method Download PDF

Info

Publication number
CN102270356A
CN102270356A CN2011102134242A CN201110213424A CN102270356A CN 102270356 A CN102270356 A CN 102270356A CN 2011102134242 A CN2011102134242 A CN 2011102134242A CN 201110213424 A CN201110213424 A CN 201110213424A CN 102270356 A CN102270356 A CN 102270356A
Authority
CN
China
Prior art keywords
summit
error
limit
control cage
calculating
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
CN2011102134242A
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.)
Sun Yat Sen University
Institute of Dongguan of Sun Yat Sen University
Original Assignee
Sun Yat Sen University
Institute of Dongguan of Sun Yat Sen University
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 Sun Yat Sen University, Institute of Dongguan of Sun Yat Sen University filed Critical Sun Yat Sen University
Priority to CN2011102134242A priority Critical patent/CN102270356A/en
Publication of CN102270356A publication Critical patent/CN102270356A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a construction method of a control cage based on a comparison method, comprising the steps of: (1) inputting a three-dimension gridding model; (2) calculating Q matrices of all the peaks in the three-dimension gridding model; (3) selecting all the edges to form peak pairs; (4) calculating the folding peaks and errors of the peak pairs based on the comparison method; (5) placing the peak pairs in a pile according to the size of the errors, wherein the smallest error is in the top; (6) removing the peak pair with the smallest error; (7) updating the peak pairs adjacent to the new peak, and returning to the step (4); and (8) generating a final model. According to the embodiment of the invention, the construction method which realizes the deformation by use of the control cage has the main advantages of simpleness in control and high calculating speed.

Description

A kind of building method of the control cage based on the method for unrealistically comparing
Technical field
The present invention relates to the Computer Processing technical field, relate in particular to a kind of building method of the control cage based on the method for unrealistically comparing.
Background technology
At present, in computer graphics, many computer graphics application are all used complicated, and the model with high degree of detail information reaches a kind of sense of reality.Therefore the structure of this model often needs a very high resolution.Yet, to manipulate intensive model directly and relate to tediously long operation, computing cost is very big.An existing space-like deformation method is controlled the distortion of master mould by a simplified model (being called the control cage) that encases master mould.
The target of control cage arrangement is triangle grid model of input, exports a grid that encases master mould of having simplified.Shortcut calculation before many can satisfy some demands aspect simplification, but in the requirement that encases, not fully up to expectations.
In recent years, the problem of curved surface simplification and multiresolution modeling more and more is subjected to people's attention, and some different shortcut calculations are suggested, and these algorithms can be classified as following three classes:
The first kind: summit extraction method
This method is to select a summit to simplify iteratively, removes all of its neighbor face on this summit, then the result to obtaining, trigonometric ratio again.
Second class: summit aggregation method
This method can be handled polygon model input arbitrarily, constructs a bounding box around master pattern, and is separated into grid.In each grid the inside, all summits that grid comprises are converged into a summit, and the dough sheet of model also changes accordingly.This process is very fast, and still, the size of grid has embodied the error boundary of a geometry, and the mass ratio of output is lower, and, because the number of dough sheet is determined that by concrete grid granularity also very difficulty is constructed the approximate model with concrete dough sheet number.
The 3rd class: the edge contraction method of iteration
The edge contraction method of many algorithms by iteration, simplification that can implementation model, the difference of these algorithm essence is, selects which bar limit to reject, and rejects by continuous execution limit, can simplify the data of grid.
More than these three class methods in efficient with above the quality, all can not satisfy control cage arrangement demand fully.The summit extraction method has strict requirement to the topological sum geometry of model; Summit aggregation method, speed are very fast, but the effect quality after simplifying is very low; The edge contraction method can not be supported to assemble.These methods are the similarity of concern and master mould usually, need encase and ignored.
Summary of the invention
Method of the present invention is to set up a simple more structure, and this structure has summit still less, operates original intensive model by operating this simple structure then.So-called control cage, the structure that can be surrounded original intensive model is used for realizing distortion exactly.
For reaching above-mentioned purpose, the technical solution used in the present invention is: a kind of control cage arrangement method based on the method for unrealistically comparing, and this method comprises with the lower part:
The structure of control cage mainly comprises following step:
(1) input three-dimensional grid model;
(2) calculate the Q matrix on all summits;
(3) it is right to select all limits to constitute the summit;
(4) summit is folded summit and error to calculating based on the method for unrealistically comparing;
(5) according to error size the summit to being placed in the heap least error top set.
(6) it is right to remove the summit of least error;
(7) renewal is right with the summit of new summit adjacency, forwards (4) to;
(8) generate final mask.
The Q matrix on all summits in the described calculating three-dimensional grid model comprises:
Q = Σ p ∈ planes ( v ) k p
k p = pp t = a 2 ab ac ad ab b 2 bc bd ac bd c 2 cd ad bd cd d 2
P=[a wherein, b, c, d] TBe the face adjacent, by ac+by+cz+d=0 and a with vertex v 2+ b 2+ c 2=1 determines, uses Q iRepresent and vertex v iCorresponding Q matrix.
Described the summit is comprised calculate folding summit and error based on the method for unrealistically comparing:
Every limit (v to master mould i, v j), if be folded into a bit The following calculating of corresponding error that causes:
E ( v ‾ ) = v ‾ t ( Q i + Q j ) v ‾
As limit (v i, v j) be folded into point
Figure BDA0000079333530000032
Just directly use
Figure BDA0000079333530000033
The Q matrix of representing new point; Originally and v iOr v jThe point that links to each other, become and
Figure BDA0000079333530000034
Link to each other, and remove the coincidence limit.
In embodiments of the present invention, use the control cage to realize that the major advantage of distortion is that control is simple, fast operation.The model of a sealing of operation, for example, triangle gridding needs quite little computing cost, only to need the element of calculation control cage be the linear combination of weight to calculate good parameter coordinate in advance because change these summits.Because these advantages, many distortion select to use the control cage, although it is very complicated to control cage sometimes.
Description of drawings
In order to be illustrated more clearly in the embodiment of the invention or technical scheme of the prior art, to do to introduce simply to the accompanying drawing of required use in embodiment or the description of the Prior Art below, apparently, accompanying drawing in describing below only is some embodiments of the present invention, for those of ordinary skills, under the prerequisite of not paying creative work, can also obtain other accompanying drawing according to these accompanying drawings.
Fig. 1 is the process flow diagram based on the control cage arrangement method of the method for unrealistically comparing in the embodiment of the invention;
Fig. 2 is the folding synoptic diagram based on the control cage arrangement method of the method for unrealistically comparing in the embodiment of the invention;
Fig. 3 is the experiment effect figure based on the control cage arrangement method of the method for unrealistically comparing in the embodiment of the invention.
Embodiment
Below in conjunction with the accompanying drawing in the embodiment of the invention, the technical scheme in the embodiment of the invention is clearly and completely described, obviously, described embodiment only is the present invention's part embodiment, rather than whole embodiment.Based on the embodiment among the present invention, those of ordinary skills belong to the scope of protection of the invention not making the every other embodiment that is obtained under the creative work prerequisite.
Fig. 1 shows the process flow diagram of a kind of control cage arrangement method based on the method for unrealistically comparing in the embodiment of the invention, comprises as follows:
S101: input three-dimensional grid model;
S102: the Q matrix that calculates all summits in the three-dimensional grid model;
S103: it is right to select all limits to constitute the summit;
S104: the summit is folded summit and error to calculating based on the method for unrealistically comparing;
S105: according to error size the summit to being placed in the heap least error top set;
S106: the summit that removes least error is right;
S107: it is right to upgrade with the summit of new summit adjacency, forwards S104 to;
S108: generate final mask.
At first import three-dimensional grid model, calculate the Q matrix on all summits then, the computing method that Q is ordered are as follows:
Figure BDA0000079333530000041
a 2+ b 2+ c 2=1 determines.
Use Q iRepresent and vertex v iCorresponding Q matrix.So to every limit (v of master mould i, v j), if be folded into a bit
Figure BDA0000079333530000042
The corresponding error that causes can followingly be calculated:
E ( v ‾ ) = v ‾ t ( Q i + Q j ) v ‾ - - - ( 2 )
As limit (v i, v j) be folded into point
Figure BDA0000079333530000044
Just directly use
Figure BDA0000079333530000045
The Q matrix of representing new point.Originally and v iOr v jThe point that links to each other, become and
Figure BDA0000079333530000046
Link to each other, and remove the coincidence limit.With this limit of constantly reducing error minimum in the model, simplify.
In order to construct the control cage that encases master mould, how need to think better of selected point
Figure BDA0000079333530000047
Here adopt the method for unrealistically comparing to seek, to certain bar limit (v s, v e), it is as follows to seek flow process:
{ initialization error emin is infinitely great, and vmin is empty.
To all with v sLimit (v for the summit s, v i)
To all with v eFace (v for the summit e, v j, v k)
Vtmp=limit (v s, v i) and face (v e, v j, v k) intersection point
Etmp=uses formula (2) to calculate vtmp with respect to limit (v s, v e) error
If etmp is less than emin{
Whether check vtmp always and limit (v s, v e) outside the face that links to each other
If not, continue to look for next face (v e, v j, v k)
If vtmp always and limit (v s, v e) face that links to each other outer
Vmin=vtmp is set; Emin=etmp;
To all with v eLimit (v for the summit e, v i)
To all with v sFace (v for the summit s, v j, v k)
If limit (v e, v i) and face (v s, v j, v k) considered that just skipped following step, continue to seek next face (v s, v j, v k).
Vtmp=limit (v e, v i) and face (v s, v j, v k) intersection point
Etmp=uses formula (2) to calculate vtmp with respect to limit (v s, v e) error
If etmp is less than emin{
Whether check vtmp always and limit (v s, v e) outside the face that links to each other
If not, continue to look for next face (v s, v j, v k)
If vtmp always and limit (v s, v e) face that links to each other outer
Vmin=vtmp is set; Emin=etmp;
Check vmin be sky
Return vmin and emin}
Otherwise
Return a far point, and a very big error amount.}
}
Because the process of top searching point is to seek intersection point constantly, and their error of comparison, it is big to give up error, and it is little to get error, so, this method is called the method for unrealistically comparing.
As shown in Figure 2, the summit that straight line connected of dash area is to v iAnd v j, be that the summit that will fold is right,
Figure BDA0000079333530000051
Be the summit that is used for replacing, after folding, the dough sheet of dash area is eliminated, originally with v iAnd v jAdjacent dough sheet is also followed again Adjacent.
Upgrade all of its neighbor limit on new summit then, and calculate and to be used for the summit and the consequent error of replacing next time, promptly enter next iteration.So iteration is gone down until producing final model.Fig. 3 specifies three kinds of different top to count respectively to a stick model (palpus of octopus model), uses this method to construct the experimental result of control cage.
Because the method for unrealistically comparing is calculated new point and is depended on dough sheet around the limit, after we eliminate a limit, except new point and error need be calculated in the limit of new generation, the limit that links to each other with new limit owing to its on every side dough sheet change, so also be subjected to influence.
Such problem is also arranged in QEM, and new point produces, and causes that new limit produces, and produces new dough sheet, equally so the limit that links to each other with new limit also is affected.But,, do not mind whether intersecting,, but continue to allow it based on initial Q matrix so it does not recomputate the error on the limit that links to each other with new limit with model because the QEM purpose is to approach master mould.
But in control cage arrangement process, similar except needs with master mould, also need to remain on the model outside.And control cage under the prerequisite that remains on the model outside, and approximate model is good more, and degree of approximation still can be weighed by QEM.Produce as new limit, the dough sheet that links to each other with it will change, and therefore the error on the limit that links to each other with it may also can change, and need recomputate.
More than to what the embodiment of the invention provided, be described in detail, used specific case herein principle of the present invention and embodiment set forth, the explanation of above embodiment just is used for help understanding method of the present invention and core concept thereof; Simultaneously, for one of ordinary skill in the art, according to thought of the present invention, the part that all can change in specific embodiments and applications, in sum, this description should not be construed as limitation of the present invention.

Claims (3)

1. building method based on the control cage of the method for unrealistically comparing is characterized in that described method comprises:
(1) input three-dimensional grid model;
(2) the Q matrix on all summits in the calculating three-dimensional grid model;
(3) it is right to select all limits to constitute the summit;
(4) summit is folded summit and error to calculating based on the method for unrealistically comparing;
(5) according to error size the summit to being placed in the heap least error top set;
(6) it is right to remove the summit of least error;
(7) renewal is right with the summit of new summit adjacency, forwards (4) to;
(8) generate final mask.
2. the method for claim 1 is characterized in that, the Q matrix on all summits in the described calculating three-dimensional grid model comprises:
Q = Σ p ∈ planes ( v ) k p
k p = pp t = a 2 ab ac ad ab b 2 bc bd ac bd c 2 cd ad bd cd d 2
P=[a wherein, b, c, d] TBe the face adjacent, by ac+by+cz+d=0 and a with vertex v 2+ b 2+ c 2=1 determines, uses Q iRepresent and vertex v iCorresponding Q matrix.
3. method as claimed in claim 2 is characterized in that, described the summit is comprised calculate folding summit and error based on the method for unrealistically comparing:
Every limit (v to master mould i, v j), if be folded into a bit
Figure FDA0000079333520000013
The following calculating of corresponding error that causes:
E ( v ‾ ) = v ‾ t ( Q i + Q j ) v ‾
As limit (v i, v j) be folded into point
Figure FDA0000079333520000015
Just directly use
Figure FDA0000079333520000016
The Q matrix of representing new point; Originally and v iOr v jThe point that links to each other, become and
Figure FDA0000079333520000017
Link to each other, and remove the coincidence limit.
CN2011102134242A 2011-07-28 2011-07-28 Construction method of control cage based on comparison method Pending CN102270356A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN2011102134242A CN102270356A (en) 2011-07-28 2011-07-28 Construction method of control cage based on comparison method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN2011102134242A CN102270356A (en) 2011-07-28 2011-07-28 Construction method of control cage based on comparison method

Publications (1)

Publication Number Publication Date
CN102270356A true CN102270356A (en) 2011-12-07

Family

ID=45052650

Family Applications (1)

Application Number Title Priority Date Filing Date
CN2011102134242A Pending CN102270356A (en) 2011-07-28 2011-07-28 Construction method of control cage based on comparison method

Country Status (1)

Country Link
CN (1) CN102270356A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408644A (en) * 2016-09-12 2017-02-15 海南师范大学 Three-dimensional control cage constructing method
CN112506217A (en) * 2020-11-19 2021-03-16 一飞(海南)科技有限公司 Method for rapidly generating cluster unmanned aerial vehicle performance three-dimensional picture by using three-dimensional model

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106408644A (en) * 2016-09-12 2017-02-15 海南师范大学 Three-dimensional control cage constructing method
CN106408644B (en) * 2016-09-12 2019-01-25 海南师范大学 Three dimensions control cage arrangement method
CN112506217A (en) * 2020-11-19 2021-03-16 一飞(海南)科技有限公司 Method for rapidly generating cluster unmanned aerial vehicle performance three-dimensional picture by using three-dimensional model

Similar Documents

Publication Publication Date Title
CN102306396B (en) Three-dimensional entity model surface finite element mesh automatic generation method
CN108228972B (en) Method for determining arrangement of at least one circuit for reconfigurable logic device
EP3092624B1 (en) Method for structure preserving topology optimization of lattice structures for additive manufacturing
CN101308579B (en) Adaptive simplifying method for three-dimensional animation model
CN103065354A (en) Device and method for point cloud optimization
CN103714577A (en) Three-dimensional model simplification method suitable for model with textures
CN101287889A (en) Apparatus, method and system for improved reservoir simulation using an algebraic cascading class linear solver
Wu et al. Design of metamaterial mechanisms using robust topology optimization and variable linking scheme
CN111985137B (en) Multivariable cutting level set optimization method for porous structure topology optimization
CN104658033A (en) Method and device for global illumination rendering under multiple light sources
WO2023173506A1 (en) Modeling method for fitting generalized cylinder curved surface on the basis of waterbomb origami derivative structure
CN100468464C (en) Progressive lattice generating method based on inverse loop subdivision
CN102270356A (en) Construction method of control cage based on comparison method
Wang Whole aero-engine meshing and CFD simulation
CN104732589B (en) Quick hybrid grid generation method
CN103745072B (en) Automatically the method for extended defect shape library
CN105574903A (en) Geometric texture synthesis method and system based on GPU (Graphics Processing Unit) acceleration
AU2013399651B2 (en) Global grid building in reverse faulted areas by an optimized unfaulting method
US8022949B2 (en) System and method for generating curvature adapted isosurface based on delaunay triangulation
Kedward et al. Efficient multi-resolution approaches for exploration of external aerodynamic shape and topology
CN102930589B (en) A kind of non-structural cartesian mesh intersection modification method
CN100385464C (en) Three dimension net figure simplifying method based on quadrangle folding
CN103824331A (en) Iteration generation method of hexahedral mesh model
CN103903304A (en) Axle wire generating method of random quadrangular curved surface for product three-dimensional data processing
Wang et al. Automated hex meshing for turbomachinery secondary air system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20111207