CN104143209A - Method for engraving three-dimensional model based on line pattern - Google Patents

Method for engraving three-dimensional model based on line pattern Download PDF

Info

Publication number
CN104143209A
CN104143209A CN201410281067.7A CN201410281067A CN104143209A CN 104143209 A CN104143209 A CN 104143209A CN 201410281067 A CN201410281067 A CN 201410281067A CN 104143209 A CN104143209 A CN 104143209A
Authority
CN
China
Prior art keywords
line
engraving
pixel
dimensional
carved
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
CN201410281067.7A
Other languages
Chinese (zh)
Other versions
CN104143209B (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.)
Zhejiang University of Technology ZJUT
Original Assignee
Zhejiang University of Technology ZJUT
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 Zhejiang University of Technology ZJUT filed Critical Zhejiang University of Technology ZJUT
Priority to CN201410281067.7A priority Critical patent/CN104143209B/en
Publication of CN104143209A publication Critical patent/CN104143209A/en
Application granted granted Critical
Publication of CN104143209B publication Critical patent/CN104143209B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a method for engraving a three-dimensional model based on a line pattern. The method for engraving the three-dimensional model based on the line pattern comprises the steps that the two-dimensional line pattern needing to be engraved by a user is input, the input pattern is pre-processed according to a method, and the line center of the input line pattern is extracted by conducting edge shrinkage to serve as an engraving contour line; for different types of three-dimensional models, parameterization is conducted on areas to be engraved on the surface of the model; the obtained two-dimensional engraving contour line is discretized and is mapped into discrete engraving lines on the surface of the three-dimensional model through parameterized mapping; the distances between the peak to be engraved on the three-dimensional model and the three-dimensional engraving lines are calculated, the horizontally-moving distance and the direction of the peak of the area to be engraved are determined according to an engraving function, and the peak to be engraved is moved horizontally, so that the three-dimensional engraving effect of the model is achieved.

Description

Three-dimensional model engraving process based on line drawing pattern
Technical field
Patent design of the present invention, for the two-dimensional line picture case of user's input, provides a kind of method that can generate quickly and easily this pattern engraving effect at three-dimensional model.
Background technology
A kind of main flow as three-dimensional body profile represents mode, and three-dimensional model has obtained being widely used in fields such as digital entertainment industry, industrial design field, virtual realities.The characterization attributes of three-dimensional model comprises two aspects: the geometric attribute (as the topological link information between vertex position information and summit) of three-dimensional model and the appearance attribute of three-dimensional model (as Facing material attribute, geometry texture and color and vein information etc.).In order to make the three-dimensional model generating have more the sense of reality; increase aesthetic property and the artistry of three-dimensional model simultaneously, conventionally can add three-dimensional feature texture to three-dimensional model, in existing technology; can be divided into bump mapping technology, bump mapping technology and relief grain mapping techniques.In recent years, many synthetic algorithms of texture based on feature are suggested, comprising three-dimensional engraving technology, three-dimensional engraving refers to the process that along the specific lines of model surface, its summit is moved to generate surperficial complex geometry texture, and it is a kind of important method that complex model superficial makings generates.The digital engraving of three-dimensional model is as a kind of modelling means that generates complex model, can on original model basis, generate easily and efficiently and there is the complex model that enriches surface relief texture by specific engraving process, thereby the modeling content of greatly having enriched 3 D complex model, this method will be with a wide range of applications.Existing three-dimensional engraving technology is mainly by hand-drawing line bar on three-dimensional model, utilize engraving function to calculate translation direction and the distance on the summit in texture width, obtain realistic three-dimensional engraving effect, this technology mainly realizes by user interactions, but, the user-interactive tasks amount that designs complicated three-dimensional engraving effect requirement is larger, simultaneously because the generation of outline line is the curve simulating by user's designated key point, therefore concrete tendency is not directly controlled by user, user is difficult to the complicated engraving effect that design needs on model.Our method directly, using two-dimensional line picture case to be carved as input, can conveniently realize the engraving effect on three-dimensional model surface.Because the engraving outline line in the method is automatic acquisition from input picture, therefore make user's operation quite easy, also realize the three-dimensional engraving effect of more complicated simultaneously.
Summary of the invention
For overcome the interworking amount of existing three-dimensional grid model superficial makings in synthetic greatly, more time-consuming and engraving effect is simply not enough, the invention provides a kind of simple to operate, engraving is convenient, engraving effect controllability is strong three-dimensional engraving process based on two-dimensional line picture case.
The technical solution adopted for the present invention to solve the technical problems is:
Three-dimensional model engraving process based on line drawing pattern, described method comprises following four steps:
1) user inputs the two-dimensional line picture case that needs engraving, and method is carried out pre-service to input pattern, and the lines center line in drawing by edge shrinkage operation extraction input line is as engraving outline line;
Transfer the two-dimensional line picture case of input to gray-scale map, and calculate the Grad of each pixel, the pixel that Grad is greater than to maximum of gradients 10% is as treating mobile pixel, and mobile pixel sum n treated in record move; For pixel to be moved, to move to center along its unit gradient direction, near each stopping in the time that mobile pixel moves to center moved; Judge that pixel stops mobile method as follows: first collect pixel p ineighborhood N i={ p j|| | p j-p i||≤1}, judges pixel p in this neighborhood jgradient direction with pixel p igradient direction whether consistent, when time, illustrate now and had the pixel p contrary with moving direction within the scope of neighborhood j, i.e. p jbe by with p ithe point that the contrary Boundary Moving of profile center line obtains relatively, now p inear profile center line; Judge again p iwhether move and cross p j, when meeting time, p icross p j, p is described iarrive profile centerline, therefore stop mobile.Along with stopping increasing of mobile pixel number, treat that mobile pixel is fewer and feweri, when treating that mobile pixel number is no more than λ n movetime, whole contraction process finishes (wherein parameter lambda desirable 0.01).After contraction finishes, may there is a small amount of isolated point situation in order to process, wherein neighborhood N iin the pixel number that comprises be less than the pixel p of 2 ias isolated point remove, thereby obtain two dimension engraving outline line.
2), for dissimilar three-dimensional model, parametrization is carried out respectively in model surface region to be carved;
For the three-dimensional model such as the face of cylinder, sphere, can be using whole model as carving area, with simple parametric method by whole model parameterization.For semi-cylindrical model, establish its height parallel with Z axis, appoint and get a bit as reference point O in XOY plane, the angle that on the face of cylinder, the subpoint of arbitrfary point M in XOY plane opened with reference point is θ, and cylinder height is h, and putting M parameter coordinate is (s, t)=(θ/π, || z m-z o||/h), wherein z mand z orespectively a Μ and the z coordinate of putting O.For hemisphere face model, the parameter coordinate of arbitrfary point P (x, y, z) is (s, t)=(arccos (z/r), arctan (y/x)), and wherein r is spherical radius.
For general three-dimensional model, first need Selection Model surface local region as region to be carved, then adopt local parameter method to carry out parametrization.Line of regional center Freehandhand-drawing that wherein region to be carved can be carved at needs by user, system generates carving area automatically according to this hand-drawing line, and detailed process is as follows: a) first hand-drawing line bar is carried out to Refinement operation; In thinning process, can obtain successively the intersection point of these Freehandhand-drawing lines and model surface, record the plane at each intersection point place, determine the dough sheet collection F of Freehandhand-drawing lines process line; After refinement finishes, to the intersection point collection v obtaining 1, v 2..., v ltri patch along process carries out uniform resampling, by the point set after uniform resampling as the datum line point set of carving area; The region of b) being carved as needs by much scope inner regions of its Freehandhand-drawing lines of user's chosen distance; Using the product of the average length of side of three-dimensional grid model and the given distance threshold of user as the maximum geodesic line apart from datum line point set apart from d max; Utilize graph theory thought, by the dough sheet collection F of hand-drawing line bar process on three-dimensional grid model linek-neighborhood F kregion is as candidate region and set up weighted graph, gets respectively the summit of grid model and limit summit and the limit as figure, and weights are taken as the corresponding length of side; Again by datum line point set join in weighted graph, three summits of each point and its place tri patch are connected to form respectively to limit, and the length on the limit obtaining using connection is as weights; Datum line is put to concentrated point simultaneously and be connected to form successively limit, weighting value is 0; Like this, k-neighborhood F kafter the weighted graph in region has been set up, adopt shortest path to calculate fast SPFA algorithm and calculate each vertex v ito the shortest path d of datum line i; If F kcertain dough sheet F in region imeet its three summits and be all less than d to the shortest path of datum line max, F so ibe dough sheet to be carved, F kall dough sheet set F that satisfy condition in region sbe exactly the carving area finally obtaining, now after region to be carved generates, then localized region carries out parametrization, and the parameter coordinate of the arbitrary mess vertex v in carving area can be obtained with respect to the position calculation of datum line by this summit, therefore the parameter coordinate of vertex v is wherein d is the geodesic line distance of a v to datum line, for parameter value on hand-drawing line, for arrive length, L lfor hand-drawing line total length; But now in carving area, the parameter coordinate of datum line both sides is identical, therefore need further to judge the direction of vertex v with respect to datum line: sign ( v ) = sign ( v v ‾ i · ( T v ‾ i × N v ‾ i ) ) , for normal direction, be tangent line on datum line, that v arrives vector, the parameter coordinate modification of vertex v is now vertex v is [1,1] in the codomain scope of s direction, in order to be translated into [0,1], and need to be by all summit relative datum alignment right translation d in carving area maxindividual unit, thus in general three-dimensional model surface local carving area, the final argument coordinate of any vertex v can be taken as ( s , t ) = ( ( sign ( v ) · d + d max ) / ( 2 · d max ) , t ( v ‾ i ) ) .
3) by the two dimension engraving outline line discretize obtaining, and utilize parametric maps to be mapped as the discrete engraving lines on three-dimensional model surface;
After carving area parametrization, two dimension be carved to outline line and be mapped as the discrete engraving lines of model surface, this process is as follows: establishing three-dimensional model surface engraving region is F s, dough sheet collection corresponding on parametrization back plane parameter field is method parameter field zoom in the same size with two dimensional image after, the pixel of engraving outline line is mapped on parameter field, after judging each pixel p mapping according to three apex coordinates of pixel coordinate and each parameter field dough sheet, drop on certain dough sheet of model surface, establish pixel p and be positioned at in, p can be by three points be expressed as follows: p = λ 1 p ‾ 0 + λ 2 p ‾ 1 + λ 3 p ‾ 2 , Wherein λ 1+ λ 2+ λ 3=1; If by corresponding three-dimensional model carving area dough sheet F isummit be respectively v 0, v 1, v 2, pixel p is mapped to three-dimensional model dough sheet F ion some v can be defined as v=λ 1v 0+ λ 2v 1+ λ 3v 2; Conventionally need to carry out down-sampled processing to 2-d contour before being mapped to model surface two dimension being carved to lines of outline, to each parameter field dough sheet that comprises pixel comprised all pixel coordinates are averaging, obtain the two dimension engraving wire-frame image vegetarian refreshments p after down-sampled, again pixel p is obtained to three-dimensional model surface point v by parametric maps, and all v are joined in original three-dimensional model, so just obtained the discrete engraving lines on three-dimensional model surface from the mapping of two dimension engraving lines.
4) calculate the summit to be carved on three-dimensional model surface to the distance of three-dimensional engraving lines, utilize engraving function to determine translation distance and the direction on summit, region to be carved, translation is carried out in summit to be carved and obtain three-dimensional engraving effect; When the distance of lines is carved to 3 d-dem in summit in calculating carving area, first specify engraving width by user, distance is less than to the summit of carve width and determines translation distance by carving function H (d), then carry out translation along vertex normal, finally realize three-dimensional engraving effect; Engraving function H (d) is wherein taken as:
H ( d ) = W 2 25 - d 2 + 32 W 45 ( 0 &le; d < W 5 ) 4 W 2 50 d - 5 W - 4 W 45 ( W 5 &le; d &le; W )
Technical conceive of the present invention is: based on the two-dimensional line picture case of user's input, extract lines center line as engraving outline line by edge shrinkage operation, two dimension is carved to outline line discretize and be the discrete engraving lines on three-dimensional model by parametric maps, utilization is defined as the engraving function of three-dimensional model summit to engraving lines collection distance, and this patent has proposed a kind of three-dimensional engraving process based on line drawing pattern.
Beneficial effect of the present invention is mainly manifested in: simple to operate, engraving facilitates, engraving effect controllability is strong.
Brief description of the drawings
Fig. 1 is the two-dimensional line picture case example of user's input of the present invention.
Fig. 2 is the two dimension engraving outline line obtaining after using Fig. 1 as the pre-service of input.
Fig. 3 exemplary plot that to be the present invention carve outline line and be mapped as three-dimensional model discretization of half-space surface engraving lines by two dimension.
Fig. 4 is the complicated engraving effect exemplary plot that the present invention utilizes two-dimensional line picture case to realize at different model surfaces.
Embodiment
Below in conjunction with accompanying drawing, the various three-dimensional model engraving effects of technical method of the present invention and generation are further described and are described in detail.
With reference to accompanying drawing 1---accompanying drawing 4, the three-dimensional model engraving process based on line drawing pattern, described method comprises following four steps:
1) user inputs the two-dimensional line picture case that needs engraving, and method is carried out pre-service to input pattern, and the lines center line in drawing by edge shrinkage operation extraction input line is as engraving outline line;
Transfer the two-dimensional line picture case (as accompanying drawing 1) of input to gray-scale map, and calculate the Grad of each pixel, the pixel that Grad is greater than to maximum of gradients 10% is as treating mobile pixel, and mobile pixel sum n treated in record move; For pixel to be moved, to move to center along its unit gradient direction, near each stopping in the time that mobile pixel moves to center moved; Judge that pixel stops mobile method as follows: first collect pixel p ineighborhood N i={ p j|| | p j-p i||≤1}, judges pixel p in this neighborhood jgradient direction with pixel p igradient direction whether consistent, when time, illustrate now and had the pixel p contrary with moving direction within the scope of neighborhood j, i.e. p jbe by with p ithe point that the contrary Boundary Moving of profile center line obtains relatively, now p inear profile center line; Judge again p iwhether move and cross p j, when meeting time, p icross p j, p is described iarrive profile centerline, therefore stop mobile.Along with stopping increasing of mobile pixel number, treat that mobile pixel is fewer and feweri, when treating that mobile pixel number is no more than λ n movetime, whole contraction process finishes (wherein parameter lambda desirable 0.01).After contraction finishes, may there is a small amount of isolated point situation in order to process, wherein neighborhood N iin the pixel number that comprises be less than the pixel p of 2 ias isolated point remove, thereby obtain the two dimension engraving outline line as accompanying drawing 2.
2), for dissimilar three-dimensional model, parametrization is carried out respectively in model surface region to be carved;
For the three-dimensional model such as the face of cylinder, sphere, can be using whole model as carving area, with simple parametric method by whole model parameterization.For semi-cylindrical model, establish its height parallel with Z axis, appoint and get a bit as reference point O in XOY plane, the angle that on the face of cylinder, the subpoint of arbitrfary point M in XOY plane opened with reference point is θ, and cylinder height is h, and putting M parameter coordinate is (s, t)=(θ/π, || z m-z o||/h), wherein z mand z orespectively a Μ and the z coordinate of putting O.For hemisphere face model, the parameter coordinate of arbitrfary point P (x, y, z) is (s, t)=(arccos (z/r), arctan (y/x)), and wherein r is spherical radius.
For general three-dimensional model, first need Selection Model surface local region as region to be carved, then adopt local parameter method to carry out parametrization.Line of regional center Freehandhand-drawing that wherein region to be carved can be carved at needs by user, system generates carving area automatically according to this hand-drawing line, and detailed process is as follows: a) first hand-drawing line bar is carried out to Refinement operation; In thinning process, can obtain successively the intersection point of these Freehandhand-drawing lines and model surface, record the plane at each intersection point place, determine the dough sheet collection F of Freehandhand-drawing lines process line; After refinement finishes, to the intersection point collection v obtaining 1, v 2..., v ltri patch along process carries out uniform resampling, by the point set after uniform resampling as the datum line point set of carving area; The region of b) being carved as needs by much scope inner regions of its Freehandhand-drawing lines of user's chosen distance; Using the product of the average length of side of three-dimensional grid model and the given distance threshold of user as the maximum geodesic line apart from datum line point set apart from d max; Utilize graph theory thought, by the dough sheet collection F of hand-drawing line bar process on three-dimensional grid model linek-neighborhood F kregion (desirable k=120) is as candidate region and set up weighted graph, gets respectively the summit of grid model and limit summit and the limit as figure, and weights are taken as the corresponding length of side; Again by datum line point set join in weighted graph, three summits of each point and its place tri patch are connected to form respectively to limit, and the length on the limit obtaining using connection is as weights; Datum line is put to concentrated point simultaneously and be connected to form successively limit, weighting value is 0; Like this, k-neighborhood F kafter the weighted graph in region has been set up, adopt shortest path to calculate fast SPFA algorithm and calculate each vertex v ito the shortest path d of datum line i; If F kcertain dough sheet F in region imeet its three summits and be all less than d to the shortest path of datum line max, F so ibe dough sheet to be carved, F kall dough sheet set F that satisfy condition in region sbe exactly the carving area finally obtaining, now after region to be carved generates, then localized region carries out parametrization, and the parameter coordinate of the arbitrary mess vertex v in carving area can be obtained with respect to the position calculation of datum line by this summit, therefore the parameter coordinate of vertex v is wherein d is the geodesic line distance of a v to datum line, for parameter value on hand-drawing line, for arrive length, L lfor hand-drawing line total length; But now in carving area, the parameter coordinate of datum line both sides is identical, therefore need further to judge the direction of vertex v with respect to datum line: sign ( v ) = sign ( v v &OverBar; i &CenterDot; ( T v &OverBar; i &times; N v &OverBar; i ) ) , for normal direction, be tangent line on datum line, that v arrives vector, the parameter coordinate modification of vertex v is now vertex v is [1,1] in the codomain scope of s direction, in order to be translated into [0,1], and need to be by all summit relative datum alignment right translation d in carving area maxindividual unit, thus in general three-dimensional model surface local carving area, the final argument coordinate of any vertex v can be taken as ( s , t ) = ( ( sign ( v ) &CenterDot; d + d max ) / ( 2 &CenterDot; d max ) , t ( v &OverBar; i ) ) .
3) by the two dimension engraving outline line discretize obtaining, and utilize parametric maps to be mapped as the discrete engraving lines on three-dimensional model surface;
After carving area parametrization, two dimension be carved to outline line and be mapped as the discrete engraving lines of model surface, this process is as follows: establishing three-dimensional model surface engraving region is F s, dough sheet collection corresponding on parametrization back plane parameter field is method parameter field zoom in the same size with two dimensional image after, the pixel of engraving outline line is mapped on parameter field, after judging each pixel p mapping according to three apex coordinates of pixel coordinate and each parameter field dough sheet, drop on certain dough sheet of model surface, establish pixel p and be positioned at in, p can be by three points be expressed as follows: p = &lambda; 1 p &OverBar; 0 + &lambda; 2 p &OverBar; 1 + &lambda; 3 p &OverBar; 2 , Wherein λ 1+ λ 2+ λ 3=1; If by corresponding three-dimensional model carving area dough sheet F isummit be respectively v 0, v 1, v 2, pixel p is mapped to three-dimensional model dough sheet F ion some v can be defined as v=λ 1v 0+ λ 2v 1+ λ 3v 2; Conventionally need to carry out down-sampled processing to 2-d contour before being mapped to model surface two dimension being carved to lines of outline, to each parameter field dough sheet that comprises pixel comprised all pixel coordinates are averaging, obtain the two dimension engraving wire-frame image vegetarian refreshments p after down-sampled, again pixel p is obtained to three-dimensional model surface point v by parametric maps, and all v are joined in original three-dimensional model, so just obtain the discrete engraving lines three-dimensional model as shown in Figure 3 from the mapping of two dimension engraving lines of outline.
4) calculate the summit to be carved on three-dimensional model surface to the distance of three-dimensional engraving lines, utilize engraving function to determine translation distance and the direction on summit, region to be carved, translation is carried out in summit to be carved and obtain three-dimensional engraving effect; When the distance of lines is carved to 3 d-dem in summit in calculating carving area, first specify engraving width by user, distance is less than to the summit of carve width and determines translation distance by carving function H (d), then carry out translation along vertex normal, finally realize three-dimensional engraving effect, as shown in Figure 4, engraving function H (d) is wherein taken as an example:
H ( d ) = W 2 25 - d 2 + 32 W 45 ( 0 &le; d < W 5 ) 4 W 2 50 d - 5 W - 4 W 45 ( W 5 &le; d &le; W )

Claims (1)

1. the three-dimensional model engraving process based on line drawing pattern, described method comprises following four steps:
1) user inputs the two-dimensional line picture case that needs engraving, and method is carried out pre-service to input pattern, and the lines center line in drawing by edge shrinkage operation extraction input line is as engraving outline line;
Transfer the two-dimensional line picture case of input to gray-scale map, and calculate the Grad of each pixel, the pixel that Grad is greater than to maximum of gradients 10% is as treating mobile pixel, and mobile pixel sum n treated in record move; For pixel to be moved, to move to center along its unit gradient direction, near each stopping in the time that mobile pixel moves to center moved; Judge that pixel stops mobile method as follows: first collect pixel p ineighborhood N i={ p j|| | p j-p i||≤1}, judges pixel p in this neighborhood jgradient direction with pixel p igradient direction whether consistent, when time, illustrate now and had the pixel p contrary with moving direction within the scope of neighborhood j, i.e. p jbe by with p ithe point that the contrary Boundary Moving of profile center line obtains relatively, now p inear profile center line; Judge again p iwhether move and cross p j, when meeting time, p icross p j, p is described iarrive profile centerline, therefore stop mobile.Along with stopping increasing of mobile pixel number, treat that mobile pixel is fewer and feweri, when treating that mobile pixel number is no more than λ n movetime, whole contraction process finishes (wherein parameter lambda desirable 0.01);
After contraction finishes, may there is a small amount of isolated point situation in order to process, wherein neighborhood N iin the pixel number that comprises be less than the pixel p of 2 ias isolated point remove, thereby obtain two dimension engraving outline line;
2), for dissimilar three-dimensional model, parametrization is carried out respectively in model surface region to be carved;
For the three-dimensional model of the face of cylinder, sphere, can be using whole model as carving area, with simple parametric method by whole model parameterization; For semi-cylindrical model, establish its height parallel with Z axis, appoint and get a bit as reference point O in XOY plane, the angle that on the face of cylinder, the subpoint of arbitrfary point M in XOY plane opened with reference point is θ, and cylinder height is h, and putting M parameter coordinate is (s, t)=(θ/π, || z m-z o||/h), wherein z mand z orespectively a Μ and the z coordinate of putting O; For hemisphere face model, the parameter coordinate of arbitrfary point P (x, y, z) is (s, t)=(arccos (z/r), arctan (y/x)), and wherein r is spherical radius;
For general three-dimensional model, first need Selection Model surface local region as region to be carved, then adopt local parameter method to carry out parametrization; Line of regional center Freehandhand-drawing that wherein region to be carved can be carved at needs by user, system generates carving area automatically according to this hand-drawing line, and detailed process is as follows: a) first hand-drawing line bar is carried out to Refinement operation; In thinning process, can obtain successively the intersection point of these Freehandhand-drawing lines and model surface, record the plane at each intersection point place, determine the dough sheet collection F of Freehandhand-drawing lines process line; After refinement finishes, to the intersection point collection v obtaining 1, v 2..., v ltri patch along process carries out uniform resampling, by the point set after uniform resampling as the datum line point set of carving area; The region of b) being carved as needs by much scope inner regions of its Freehandhand-drawing lines of user's chosen distance; Using the product of the average length of side of three-dimensional grid model and the given distance threshold of user as the maximum geodesic line apart from datum line point set apart from d max; Utilize graph theory thought, by the dough sheet collection F of hand-drawing line bar process on three-dimensional grid model linek-neighborhood F kregion is as candidate region and set up weighted graph, gets respectively the summit of grid model and limit summit and the limit as figure, and weights are taken as the corresponding length of side; Again by datum line point set join in weighted graph, three summits of each point and its place tri patch are connected to form respectively to limit, and the length on the limit obtaining using connection is as weights; Datum line is put to concentrated point simultaneously and be connected to form successively limit, weighting value is 0; Like this, k-neighborhood F kafter the weighted graph in region has been set up, adopt shortest path to calculate fast SPFA algorithm and calculate each vertex v ito the shortest path d of datum line i; If F kcertain dough sheet F in region imeet its three summits and be all less than d to the shortest path of datum line max, F so ibe dough sheet to be carved, F kall dough sheet set F that satisfy condition in region sbe exactly the carving area finally obtaining, now after region to be carved generates, then localized region carries out parametrization, and the parameter coordinate of the arbitrary mess vertex v in carving area can be obtained with respect to the position calculation of datum line by this summit, therefore the parameter coordinate of vertex v is wherein d is the geodesic line distance of a v to datum line, for parameter value on hand-drawing line, for arrive length, L lfor hand-drawing line total length; But now in carving area, the parameter coordinate of datum line both sides is identical, therefore need further to judge the direction of vertex v with respect to datum line: sign ( v ) = sign ( v v &OverBar; i &CenterDot; ( T v &OverBar; i &times; N v &OverBar; i ) ) , for normal direction, be tangent line on datum line, that v arrives vector, the parameter coordinate modification of vertex v is now vertex v is [1,1] in the codomain scope of s direction, in order to be translated into [0,1], and need to be by all summit relative datum alignment right translation d in carving area maxindividual unit, thus in general three-dimensional model surface local carving area, the final argument coordinate of any vertex v can be taken as ( s , t ) = ( ( sign ( v ) &CenterDot; d + d max ) / ( 2 &CenterDot; d max ) , t ( v &OverBar; i ) ) ;
3) by the two dimension engraving outline line discretize obtaining, and utilize parametric maps to be mapped as the discrete engraving lines on three-dimensional model surface;
After carving area parametrization, two dimension be carved to outline line and be mapped as the discrete engraving lines of model surface, this process is as follows: establishing three-dimensional model surface engraving region is F s, dough sheet collection corresponding on parametrization back plane parameter field is method parameter field zoom in the same size with two dimensional image after, the pixel of engraving outline line is mapped on parameter field, after judging each pixel p mapping according to three apex coordinates of pixel coordinate and each parameter field dough sheet, drop on certain dough sheet of model surface, establish pixel p and be positioned at in, p can be by three points be expressed as follows: p = &lambda; 1 p &OverBar; 0 + &lambda; 2 p &OverBar; 1 + &lambda; 3 p &OverBar; 2 , Wherein λ 1+ λ 2+ λ 3=1; If by corresponding three-dimensional model carving area dough sheet F isummit be respectively v 0, v 1, v 2, pixel p is mapped to three-dimensional model dough sheet F ion some v can be defined as v=λ 1v 0+ λ 2v 1+ λ 3v 2; Conventionally need to carry out down-sampled processing to 2-d contour before being mapped to model surface two dimension being carved to lines of outline, to each parameter field dough sheet that comprises pixel comprised all pixel coordinates are averaging, obtain the two dimension engraving wire-frame image vegetarian refreshments p after down-sampled, again pixel p is obtained to three-dimensional model surface point v by parametric maps, and all v are joined in original three-dimensional model, so just obtained the discrete engraving lines on three-dimensional model surface from the mapping of two dimension engraving lines;
4) calculate the summit to be carved on three-dimensional model surface to the distance of three-dimensional engraving lines, utilize engraving function to determine translation distance and the direction on summit, region to be carved, translation is carried out in summit to be carved and obtain three-dimensional engraving effect; When the distance of lines is carved to 3 d-dem in summit in calculating carving area, first specify engraving width by user, distance is less than to the summit of carve width and determines translation distance by carving function H (d), then carry out translation along vertex normal, finally realize three-dimensional engraving effect; Engraving function H (d) is wherein taken as:
H ( d ) = W 2 25 - d 2 + 32 W 45 ( 0 &le; d < W 5 ) 4 W 2 50 d - 5 W - 4 W 45 ( W 5 &le; d &le; W )
CN201410281067.7A 2014-06-20 2014-06-20 Method for engraving three-dimensional model based on line pattern Active CN104143209B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410281067.7A CN104143209B (en) 2014-06-20 2014-06-20 Method for engraving three-dimensional model based on line pattern

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410281067.7A CN104143209B (en) 2014-06-20 2014-06-20 Method for engraving three-dimensional model based on line pattern

Publications (2)

Publication Number Publication Date
CN104143209A true CN104143209A (en) 2014-11-12
CN104143209B CN104143209B (en) 2017-05-17

Family

ID=51852377

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410281067.7A Active CN104143209B (en) 2014-06-20 2014-06-20 Method for engraving three-dimensional model based on line pattern

Country Status (1)

Country Link
CN (1) CN104143209B (en)

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104827815A (en) * 2015-05-20 2015-08-12 安徽一威贸易有限公司 Layered sculpturing method
CN106408655A (en) * 2016-09-21 2017-02-15 江苏大学 Novel 3D hollow lampshade design method
CN108537858A (en) * 2018-03-23 2018-09-14 浙江工业大学 A kind of stroke lines dynamic merging method based on drawing sequential
CN109003243A (en) * 2018-07-20 2018-12-14 广州市普汉科技有限公司 A kind of anaglyph image processing method for laser engraving
CN110176072A (en) * 2018-02-21 2019-08-27 奥多比公司 Refine the localized parameterization for two dimensional image to be applied to threedimensional model
CN110356151A (en) * 2019-05-28 2019-10-22 合肥晌玥科技有限公司 A kind of automatic generation method and device in jade carving path
CN112462689A (en) * 2020-12-10 2021-03-09 德州钰雕机械设备有限公司 Method for generating handicraft digital model random carving four-axis three-linkage cutter path

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037583A1 (en) * 2002-08-20 2004-02-26 Fuji Xerox Co., Ltd. Image processing method, image formation method, image processing apparatus, and image formation apparatus
US20090322748A1 (en) * 2008-06-09 2009-12-31 Uti Limited Partnership Methods,systems, and computer program products for GPU-based point radiation for interactive volume sculpting and segmentation
US20110165374A1 (en) * 2008-09-19 2011-07-07 Barton Nelson, Inc. Method of producing solid decorated graphic arts objects
CN103226846A (en) * 2013-03-22 2013-07-31 浙江工业大学 Three-dimensional carving method based on hand-drawn lines
CN103473811A (en) * 2013-08-20 2013-12-25 浙江工业大学 Convenient generation method of three-dimensional solid model based on two-dimensional freehand line drawing

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040037583A1 (en) * 2002-08-20 2004-02-26 Fuji Xerox Co., Ltd. Image processing method, image formation method, image processing apparatus, and image formation apparatus
US20090322748A1 (en) * 2008-06-09 2009-12-31 Uti Limited Partnership Methods,systems, and computer program products for GPU-based point radiation for interactive volume sculpting and segmentation
US20110165374A1 (en) * 2008-09-19 2011-07-07 Barton Nelson, Inc. Method of producing solid decorated graphic arts objects
CN103226846A (en) * 2013-03-22 2013-07-31 浙江工业大学 Three-dimensional carving method based on hand-drawn lines
CN103473811A (en) * 2013-08-20 2013-12-25 浙江工业大学 Convenient generation method of three-dimensional solid model based on two-dimensional freehand line drawing

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
GIOACCHINO NORIS 等: "Topology-Driven Vectorization of Clean Line Drawings", 《ACM TRANSACTIONS ON GRAPHICS》 *
ZHENG QIN 等: "Precise Vector Textures for Real-Time 3D Rendering", 《PROCEEDINGS OF THE 2008 SYMPOSIUM ON INTERACTIVE 3D GRAPHICS AND GAMES》 *

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104827815A (en) * 2015-05-20 2015-08-12 安徽一威贸易有限公司 Layered sculpturing method
CN104827815B (en) * 2015-05-20 2017-08-25 安徽一威贸易有限公司 One kind layering engraving process
CN106408655A (en) * 2016-09-21 2017-02-15 江苏大学 Novel 3D hollow lampshade design method
CN106408655B (en) * 2016-09-21 2019-04-05 江苏大学 A kind of 3D hollowed-out light cover design method
CN110176072A (en) * 2018-02-21 2019-08-27 奥多比公司 Refine the localized parameterization for two dimensional image to be applied to threedimensional model
CN108537858A (en) * 2018-03-23 2018-09-14 浙江工业大学 A kind of stroke lines dynamic merging method based on drawing sequential
CN108537858B (en) * 2018-03-23 2022-06-21 浙江工业大学 Drawing time sequence-based stroke line dynamic merging method
CN109003243A (en) * 2018-07-20 2018-12-14 广州市普汉科技有限公司 A kind of anaglyph image processing method for laser engraving
CN109003243B (en) * 2018-07-20 2021-10-29 广州市普汉科技有限公司 Relief effect image processing method for laser engraving
CN110356151A (en) * 2019-05-28 2019-10-22 合肥晌玥科技有限公司 A kind of automatic generation method and device in jade carving path
CN112462689A (en) * 2020-12-10 2021-03-09 德州钰雕机械设备有限公司 Method for generating handicraft digital model random carving four-axis three-linkage cutter path

Also Published As

Publication number Publication date
CN104143209B (en) 2017-05-17

Similar Documents

Publication Publication Date Title
CN104143209A (en) Method for engraving three-dimensional model based on line pattern
Demarsin et al. Detection of closed sharp edges in point clouds using normal estimation and graph theory
CN103473806B (en) A kind of clothes 3 D model construction method based on single image
CN101719140B (en) Figure retrieving method
Chen et al. Reverse engineering in the design of turbine blades–a case study in applying the MAMDP
CN104966317B (en) A kind of three-dimensional method for automatic modeling based on ore body contour line
CN107067473A (en) 3D modeling object is reconstructed
CN101609564B (en) Method for manufacturing three-dimensional grid model by draft input
CN103678769B (en) Sense of reality clothing creation method based on human skeleton Yu two-dimensional deformation
Cao et al. Computation of medial axis and offset curves of curved boundaries in planar domain
Hui et al. A feature-based shape blending technique for industrial design
CN105225272B (en) A kind of tri-dimensional entity modelling method based on the reconstruct of more contour line triangulation networks
CN107562980A (en) A kind of Picking up geometry information method based on BIM models
CN107730587A (en) One kind is based on picture quick three-dimensional Interactive Modeling method
CN104134236A (en) Boolean operation method of three-dimensional planar solids
Zeng et al. Least squares quasi-developable mesh approximation
Orbay et al. Sketch-based surface design using malleable curve networks
Cordier et al. Sketch-based modeling
CN102063719B (en) Local matching method of three-dimensional model
CN105243137A (en) Draft-based three-dimensional model retrieval viewpoint selection method
CN106023314A (en) B spline master curve fitting method based on rotary axis direction mapping
An et al. Self-adaptive polygon mesh reconstruction based on ball-pivoting algorithm
CN107248163A (en) A kind of automatic generation method of decorative pattern expanded view towards rotationally symmetrical porcelain
CN105957141B (en) A kind of three-dimensional flower modeling method based on symmetrical structure
Zhang et al. Line-based sunken relief generation from a 3D mesh

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant