CN110599397B - Orange peel forming art design method and device - Google Patents

Orange peel forming art design method and device Download PDF

Info

Publication number
CN110599397B
CN110599397B CN201910891910.6A CN201910891910A CN110599397B CN 110599397 B CN110599397 B CN 110599397B CN 201910891910 A CN201910891910 A CN 201910891910A CN 110599397 B CN110599397 B CN 110599397B
Authority
CN
China
Prior art keywords
projection
shape
preset
area
target
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.)
Active
Application number
CN201910891910.6A
Other languages
Chinese (zh)
Other versions
CN110599397A (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.)
University of Science and Technology of China USTC
Original Assignee
University of Science and Technology of China USTC
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 University of Science and Technology of China USTC filed Critical University of Science and Technology of China USTC
Priority to CN201910891910.6A priority Critical patent/CN110599397B/en
Publication of CN110599397A publication Critical patent/CN110599397A/en
Application granted granted Critical
Publication of CN110599397B publication Critical patent/CN110599397B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/18Image warping, e.g. rearranging pixels individually

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Apparatuses For Bulk Treatment Of Fruits And Vegetables And Apparatuses For Preparing Feeds (AREA)

Abstract

The invention discloses a method and a device for orange peel forming art design, wherein the method comprises the following steps: when an input shape is received, preprocessing the input shape to obtain a grid body; projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape; calculating a first projection proportion of the target projection shape on the preset orange curved surface; when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to the corresponding requirement until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape; and determining a target curve of the target output shape on the preset orange surface. According to the method, the input shape is constructed into the grid body, the grid body is projected to the surface of the preset citrus, the projection is adjusted, and the target output shape can be obtained.

Description

Orange peel forming art design method and device
Technical Field
The invention relates to the technical field of shape design, in particular to an orange peel forming art design method and device.
Background
The orange peel shaping art is designed by designing a planar shape and a corresponding curve on the orange peel such that the planar shape along which the peel is cut and spread is similar to the designed planar shape. The existing art design methods are usually manually tried methods, and specifically, a curve is drawn on the orange by imagining, the result is stripped and viewed and improved according to the result, and a new curve is drawn on the new orange until the result is satisfied.
The present inventors have conducted research into existing orange peel shaping art design methods and have found that the operator must be a highly experienced professional, and that the effort required is constant, wasteful of citrus fruit, time consuming, likely not to achieve the desired result, and difficult to reproduce.
Disclosure of Invention
In view of the above, the present invention provides a method and a device for orange peel shaping artistic design, which are used to solve the problems that an operator must be a very experienced professional in the existing orange peel shaping artistic design process, orange is wasted due to continuous trial and error, time is consumed, a desired result is probably not obtained, and the reproduction is difficult, and the specific scheme is as follows:
a method for forming an artistic design of orange peel comprises the following steps:
when an input shape is received, preprocessing the input shape to obtain a grid body;
projecting the grid body onto a preset citrus curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape;
calculating a first projection proportion of the target projection shape on the preset orange curved surface;
when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to corresponding requirements until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape;
and determining a target curve of the target output shape on the preset orange surface.
In the foregoing method, optionally, the preprocessing is performed on the input shape to obtain a mesh body, and the method includes:
resampling and meshing the input shape to obtain a first mesh area;
adjusting the first mesh area to be a second mesh area which is the same as the preset citrus curved surface area;
and expanding the second grid area into a square grid area, and converting the square grid area into a grid body.
Optionally, in the method, the projecting the mesh onto a preset curved surface of the citrus to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape includes:
setting the grid body and the preset citrus curved surface to be concentric to obtain a projection shape;
respectively calculating first energy of the projection shape and the input shape and second energy of an uncovered area and an overlapped area in the preset citrus curved surface and the projection shape according to a preset objective function;
and adjusting the projection shape according to a first energy ratio to obtain a target projection shape, wherein the ratio of the first energy to the second energy is used as the first energy ratio.
The above method, optionally, adjusting the projection shape according to the first energy ratio, further includes:
and in the adjusting process, ensuring that the boundary of the covered area in the preset citrus curved surface and the projection shape is the same as the boundary of the sum of the uncovered area and the overlapped area, and ensuring that the adjusted projection shape falls on the preset citrus curved surface.
Optionally, in the method, when the first projection ratio does not reach the preset projection ratio threshold, the adjustment is performed according to the corresponding requirement until the corresponding second projection ratio reaches the preset projection ratio threshold, so as to obtain the target output shape, where the method includes:
acquiring the requirement;
when the requirement is that the input shape is forbidden to be modified, the first energy ratio is adjusted to a second energy ratio, the second projection ratio reaches a preset projection ratio threshold value, and a target output shape is obtained, wherein the second energy ratio is higher than the first energy ratio;
and when the requirement is that the input shape is allowed to be modified, judging whether a preset iteration number is reached, if not, providing a modification reference for the input shape, and adjusting the input shape according to the modification reference until the second projection ratio reaches a preset projection ratio threshold value to obtain a target output shape.
The method described above, optionally, the modifying reference comprises: at least one of an add operation, a delete operation, an angle enhance operation, and an add secant operation.
The above method, optionally, further includes:
and drawing a graticule in the preset citrus curved surface, and drawing the target curve on the graticule.
An orange peel shaping art design device comprising:
the preprocessing module is used for preprocessing the input shape to obtain a grid body when the input shape is received;
the projection and adjustment module is used for projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape;
the calculation module is used for calculating a first projection proportion of the target projection shape on the preset orange curved surface;
the adjusting module is used for adjusting according to corresponding requirements when the first projection proportion does not reach a preset projection proportion threshold value until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape;
and the determining module is used for determining a target curve of the target output shape on the preset orange surface.
The above apparatus, optionally, the preprocessing module includes:
the resampling and dividing unit is used for resampling and meshing the input shape to obtain a first mesh area;
the adjusting unit is used for adjusting the first grid area into a second grid area which is the same as the preset citrus curved surface area;
and the expansion unit is used for expanding the second grid area into a square grid area and converting the square grid area into a grid body.
The above apparatus, optionally, the projection and adjustment module includes:
the acquisition unit is used for setting the grid body and the preset citrus curved surface to be concentric to acquire a projection shape;
the calculation unit is used for respectively calculating first energy of the projection shape and the input shape and second energy of an uncovered area and an overlapped area in the preset citrus curved surface and the projection shape according to a preset objective function;
and the adjusting unit is used for adjusting the projection shape according to a first energy ratio to obtain a target projection shape, wherein the ratio of the first energy to the second energy is used as the first energy ratio.
Compared with the prior art, the invention has the following advantages:
the invention discloses a method and a device for orange peel forming art design, wherein the method comprises the following steps: when an input shape is received, preprocessing the input shape to obtain a grid body; projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape; calculating a first projection proportion of the target projection shape on the preset orange curved surface; when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to the corresponding requirement until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape; and determining a target curve of the target output shape on the preset orange surface. According to the method, the input shape is constructed into the grid body, the grid body is projected to the surface of the preset citrus, the projection is adjusted, and the target output shape can be obtained.
Of course, it is not necessary for any product in which the invention is practiced to achieve all of the above-described advantages at the same time.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present invention, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
FIG. 1 is a flow chart of an orange peel shaping art design method disclosed in the embodiments of the present application;
FIG. 2 is a schematic design diagram of an orange peel shaping art design method disclosed in the embodiments of the present application;
FIG. 3 is a modified reference diagram of an artistic design method for orange peel shaping disclosed in an embodiment of the present application;
FIG. 4 is a schematic view of an artistic method for forming orange peel with graticules according to an embodiment of the present application;
fig. 5 is a structural block diagram of an orange peel shaping art design device disclosed in the embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The previous description of the disclosed embodiments is provided to enable any person skilled in the art to make or use the present invention. Various modifications to these embodiments will be readily apparent to those skilled in the art, and the generic principles defined herein may be applied to other embodiments without departing from the spirit or scope of the invention. Thus, the present invention is not intended to be limited to the embodiments shown herein but is to be accorded the widest scope consistent with the principles and novel features disclosed herein.
The invention discloses an orange peel forming artistic design method and device, which are applied to the orange peel forming artistic design process, can meet the orange peel forming artistic shape expected by a user, can reduce the waste of time and oranges, and allow non-professional personnel to set, and the execution flow of the design method is shown in figure 1 and comprises the following steps:
s101, when an input shape is received, preprocessing the input shape to obtain a grid body;
in the embodiment of the invention, when an input shape selected by a user is received, the input shape is converted into a curve and is resampled, the resampled curve is converted into a plane triangular mesh area by using a general triangulation algorithm to obtain a first mesh area, the first mesh area is adjusted into a second mesh area which is the same as the area of the preset citrus curved surface, wherein the preset citrus curved surface can be approximated by using the following equation of a rotating surface
r(φ)=((1-ρ)cos2φ+ρ)r0 (1)
Wherein r is0The radius parameter is rho, the proportion parameter is rho, the user adjusts the parameter of the simulated citrus to be the same as the length-width ratio of the citrus on the hand of the user as much as possible, and the curved surface is recorded as a citrus curved surface. And then scaling the curve to make the enclosed area the same as the surface area of the citrus curve, and generating a square enclosure box by the second grid area and meshing the square enclosure box as shown in fig. 2 (a). Then, the square is folded into a mesh body, in the embodiment of the present invention, the mesh body is centrosymmetric, and the mesh body is an octahedron as an example for explanation, but the specific type of the mesh body is not limited. Wherein the input shape can be selected by drawing a curve, drawing a discount segment or extracting the boundary of a picture.
S102, projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape;
in the embodiment of the invention, the center of the regular octahedron and the center of the preset orange surface are set to be concentric, the regular octahedron is projected onto the preset orange curved surface to obtain a projection shape, the projection shape is a shape obtained by performing initialization mapping on the input shape on the preset orange curved surface, and the projection shape is represented by a discrete triangular mesh.
After the projection shape is obtained, the projection shape needs to be adjusted to obtain a target projection shape, wherein the target projection shape can gradually cover the preset citrus curved surface. The adjusting process is adjusted by adopting a preset optimization function, wherein the preset optimization function is as follows:
min Eiso(Sm,S)+wEshr(R) (2)
where S is the input shape, SmIs input model mappingProjected shape onto said predetermined citrus surface, R being the sum of the regions that are not covered and that overlap each other, these regions also being represented by discrete triangular meshes, Eiso(SmS) is the equidistant energy of the input shape and the projected shape, having the form:
Figure BDA0002209009560000071
wherein f isiIndicates a triangle in shape, Area (f)i) Is the area of a triangle, JiIs the Jacobian matrix, R, of this triangle in the mapiIs an orthogonal matrix of which the phase of the signal,
Figure BDA0002209009560000072
is the F norm of the difference of the two matrices
Figure BDA0002209009560000073
The geometric meaning of the equation is that the two matrixes are as close as possible, and the result of making the Jacobian matrix and the orthogonal matrix close is that each triangle has as little shape change as possible, and the whole shape is as unchanged as possible because the projection shape is dispersed into the triangle.
Eshr(R) is the energy that contracts the uncovered area and the overlapped area, and has the form:
Figure BDA0002209009560000074
wherein, tiIndicates an uncovered triangle, Area (t)i) Is the area of a triangle, JiIs the Jacobian matrix of this triangle in the map, BiIs a matrix of rank one, the geometric meaning of equation (4) is to let each triangle to be shrunk shrink into a line.
w is the ratio between the equidistant energy and the energy of contraction, adjustedThe ratio can be controlled, the projection shape can be controlled to be as close as possible to the input shape by a small ratio, the preset orange curved surface can be better covered by a large ratio, the ratio can be set according to specific conditions, the boundaries of the two regions must be completely the same when each step of optimization is carried out, all points still fall on the preset orange curved surface, the operation can be met by combining the two regions into one region, and after each step of optimization iteration, the position of a new point is projected to the preset orange curved surface. S obtained by optimization solutionmAnd R is a final residual region.
S103, calculating a first projection proportion of the target projection shape on the preset orange curved surface;
in the embodiment of the invention, the area of each triangle in the target projection shape is accumulated to obtain the total area of the target projection shape, and the ratio of the total area of the target projection shape to the total area of the preset citrus curved surface is used as the first projection proportion.
S104, when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to corresponding requirements until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape;
in the embodiment of the present invention, the first projection ratio is compared with a preset projection ratio threshold, and whether the first projection ratio reaches the preset projection ratio threshold is determined, where the preset projection ratio threshold may be set according to experience or actual conditions, when the first projection ratio does not reach the preset projection ratio threshold, a current requirement is obtained, when the requirement is that modification of the input shape is prohibited, the first energy ratio is adjusted to a second energy ratio, and the second projection ratio reaches the preset projection ratio threshold, so as to obtain a target output shape, where the second energy ratio is higher than the first energy ratio;
when the requirement is that the input shape is allowed to be modified, whether a preset iteration number is reached is judged, and the reason for setting the maximum interactive iteration step number is as follows: not all shapes are suitable for orange peel forming art, such as a rectangle, a disc, etc. The maximum interactive iteration step number is preset by a user and represents how many times a graph can be modified at most, and if the maximum interactive iteration step number reaches the maximum interactive iteration step number, the maximum interactive iteration step number means that the modification times are too many, namely the input graph is not suitable for the problem. The principle of setting is empirically set to 10-20 times in general.
In the embodiment of the present invention, when the first projection ratio does not reach the preset projection ratio threshold and does not reach the preset iteration number, it is indicated that the input shape does not meet the artistic requirement, and the user needs to be instructed to modify the input shape, first, the preset citrus curved surface is decomposed according to the target projection shape, as shown in fig. 2(b), into the projected part S of the input shapemThe uncovered part and the input shape are overlapped with each other, then the connection part between some very small areas is deleted, the uncovered part is divided into several mutually exclusive parts, and is marked by different colors. Finally, the parts are unfolded on the plane respectively, the unfolding method can adopt a parameterization method, and the requirement that the uncovered and overlapped parts are unfolded on the plane needs to be adjacent to the boundary of the target projection shape, and the adjacent parts must be the adjacent parts of the target projection shape on the preset citrus curve, and the requirement can be met by adding a limiting condition in the parameterization. From these requirements, an optimization problem is solved for the shape development, which has the form, for each segmented part:
Figure BDA0002209009560000091
wherein
Figure BDA0002209009560000092
Is the ith block area on the preset citrus curved surface and is dispersed into a triangular mesh to be represented,
Figure BDA0002209009560000093
is a corresponding planar triangular mesh area, and is required if
Figure BDA0002209009560000094
And SmOn a curved surface
Figure BDA0002209009560000095
Their corresponding planar development should also suffice
Figure BDA0002209009560000096
Satisfy the minimum energy
Figure BDA0002209009560000097
It is the unfolding of this part. Firstly optimizing energy to obtain S in solvingmThen sequentially optimizing the energy spread for the other portions. Each of the uncovered and overlapped regions after the segmentation may have a plurality of different planar expansions corresponding to different positions adjacent to each other, as shown in fig. 2 (c). The expansions can provide modification references for the input shape, after the input shape is modified, the ratio of the area of the projection shape corresponding to the modified input shape to the total area of the preset citrus curved surface is used as a second projection proportion, and when the second projection proportion reaches a preset projection proportion threshold value, a target output shape is obtained.
In an embodiment of the present invention, the modification reference includes at least one of an addition operation, a deletion operation, an angle enhancement operation, and an addition secant operation. Wherein, one implementation of the adding operation is to select a region identified as adding, then draw the shape to be added in this region by using spline curve, and after drawing, further modify the shape to be added by dragging the control point, and then add the just drawn part to the input shape as shown in fig. 3 (a); one implementation of the delete operation is to select a region identified as overlapping, and then use spline curve to draw the deleted shape in this region, and after drawing, the deleted shape can be further modified by dragging the control point, and then the input shape outside the newly drawn shape will be deleted as shown in fig. 3 (b); one implementation of the angle enhancement operation is to select a region to be enhanced, draw a curve in the region by using a spline curve, cut the region, automatically generate two new curves meeting the angle condition by using function fitting by the program, further modify the shape of the generated curve by dragging the control point after drawing, and then add the enclosed shape of the two newly generated curves to the input shape as shown in fig. 3 (c); one implementation of adding a secant is to draw a spline curve from a point on the boundary of the input shape to extend inward, modify the cut curve further by dragging the control point after drawing, and then tear open and further flatten the input model along the newly added secant. A plurality of different operations may be performed in one plane modification step, in this example, one adding operation and a plurality of adding one secant operation are performed, as shown in fig. 2 (d).
Some pre-processing operations may also be performed after the input shape is modified. The preprocessing operation allows to emphasize important parts of the input shape, an implementation of which is to draw a curve that circles the part to be emphasized, giving it a greater weight. The pre-processing operation also allows for pre-alignment of the input shape, where the user can move the parts that naturally look adjacent to each other and that he wishes to eventually abut together in advance by dragging, while keeping the other parts as unchanged as possible, one implementation of the alignment is to use a local shape morphing operation, as shown in fig. 2(d), where the user has outlined the head as a significant area, and then has pre-aligned the two front legs and the two rear legs, while moving the head appropriately, and keeping the other parts as unchanged as possible.
Further, after modification and preprocessing operations are performed, an adjusted mesh body is obtained, and S102-S103 are performed again, that is, the adjusted mesh body is projected onto a preset orange curved surface and is adjusted to obtain an adjusted target projection shape, a third projection ratio of the adjusted target projection shape on the preset orange curved surface is calculated, and if the third projection ratio does not reach a preset projection ratio threshold value and the iteration number does not reach a preset iteration number, S102-S103 are performed again until the preset projection ratio is reached, so that the target output shape is obtained.
And S105, determining a target curve of the target output shape on the preset orange surface.
In the embodiment of the present invention, the target output shape is on the preset citrus curved surface, the covered citrus curved surface exceeds the preset projection ratio threshold, the uncovered part of the target output shape needs to be processed, and from a cusp, a triangle with the smallest area is sequentially selected and contracted into a line segment by using a minimum spanning tree principle, so as to obtain a broken line on the citrus curved surface, and the broken line is smoothed, and the target curve can be appropriately modified, wherein one implementation is to delete an unwanted curve on the curved surface, then draw a new curve to replace the previous curve, and finally obtain a curve which is smooth on the curved surface and has no ring, as shown in fig. 2(f), and the method further shows a preview result, as shown in fig. 2 (g).
In the embodiment of the invention, further, as for the target curve, as for a globe is made, since the preset citrus curved surface is a rotating curved surface, a graticule can be drawn thereon, then a final curve corresponding to a planar shape is drawn on the preset citrus curved surface with the graticule, then the target curve is cut along the longitude and is unfolded to a plane, and simultaneously all curves are printed on a drawing to obtain a graticule map, as shown in fig. 4(a-b), the corresponding curve is drawn on the real citrus by using the graticule map, then the citrus peel is cut along the curve, and finally the citrus peel is peeled off and flattened to obtain the planar shape, so that the citrus peel shaping art is realized.
The invention discloses an orange peel forming art design method, which comprises the following steps: when an input shape is received, preprocessing the input shape to obtain a grid body; projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape; calculating a first projection proportion of the target projection shape on the preset orange curved surface; when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to the corresponding requirement until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape; and determining a target curve of the target output shape on the preset orange surface. According to the method, the input shape is constructed into the grid body, the grid body is projected to the surface of the preset citrus, the projection is adjusted, and the target output shape can be obtained.
Based on the above-mentioned orange peel forming art design method, in the embodiment of the present invention, an orange peel forming art design apparatus is further provided, a structural block diagram of the design apparatus is shown in fig. 5, and the design apparatus includes:
a preprocessing module 201, a projection and adjustment module 202, a calculation module 203, and an adjustment module 204.
Wherein the content of the first and second substances,
the preprocessing module 201 is configured to, when an input shape is received, preprocess the input shape to obtain a mesh body;
the projection and adjustment module 202 is configured to project the mesh onto a preset citrus curved surface to obtain a projection shape, and adjust the projection shape to obtain a target projection shape;
the calculating module 203 is configured to calculate a first projection ratio of the target projection shape on the preset orange curved surface;
the adjusting module 204 is configured to, when the first projection ratio does not reach a preset projection ratio threshold, adjust according to a corresponding requirement until the corresponding second projection ratio reaches the preset projection ratio threshold, so as to obtain a target output shape;
and the determining module is used for determining a target curve of the target output shape on the preset orange surface.
The invention discloses an orange peel forming art design device, which comprises: when an input shape is received, preprocessing the input shape to obtain a grid body; projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape; calculating a first projection proportion of the target projection shape on the preset orange curved surface; when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to the corresponding requirement until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape; and determining a target curve of the target output shape on the preset orange surface. According to the device, the input shape is constructed into the grid body, the grid body is projected to the surface of the preset citrus, the projection is adjusted, and the target output shape can be obtained.
In this embodiment of the present invention, the preprocessing module 201 includes:
a resampling and dividing unit 205, an adjusting unit 206 and an expanding unit 207.
Wherein the content of the first and second substances,
the resampling and dividing unit 205 is configured to resample and divide a mesh of the input shape to obtain a first mesh region;
the adjusting unit 206 is configured to adjust the first mesh region to a second mesh region having the same area as the preset citrus curved surface;
the expansion unit 207 is configured to expand the second grid area into a square grid area, and convert the square grid area into a grid body.
In this embodiment of the present invention, the projection and adjustment module 202 includes:
an acquisition unit 208, a calculation unit 209, and an adjustment unit 210.
Wherein the content of the first and second substances,
the obtaining unit 208 is configured to set the mesh body and the preset citrus curved surface to be concentric, and obtain a projection shape;
the calculating unit 209 is configured to calculate, according to a preset objective function, first energies of the projection shape and the input shape, and second energies of an uncovered region and an overlapped region in the preset citrus curved surface and the projection shape, respectively;
the adjusting unit 210 is configured to adjust the projection shape according to a first energy ratio to obtain a target projection shape, where a ratio of the first energy to the second energy is used as the first energy ratio.
It should be noted that, in the present specification, the embodiments are all described in a progressive manner, each embodiment focuses on differences from other embodiments, and the same and similar parts among the embodiments may be referred to each other. For the device-like embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, reference may be made to the partial description of the method embodiment.
Finally, it should also be noted that, herein, relational terms such as first and second, and the like may be used solely to distinguish one entity or action from another entity or action without necessarily requiring or implying any actual such relationship or order between such entities or actions. Also, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other identical elements in a process, method, article, or apparatus that comprises the element.
For convenience of description, the above devices are described as being divided into various units by function, and are described separately. Of course, the functions of the units may be implemented in the same software and/or hardware or in a plurality of software and/or hardware when implementing the invention.
From the above description of the embodiments, it is clear to those skilled in the art that the present invention can be implemented by software plus necessary general hardware platform. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which may be stored in a storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device, etc.) to execute the method according to the embodiments or some parts of the embodiments.
The method and the device for orange peel forming art design provided by the invention are described in detail, a specific example is applied in the text to explain the principle and the implementation mode of the invention, and the description of the embodiment is only used for helping to understand the method and the core idea of the invention; meanwhile, for a person skilled in the art, according to the idea of the present invention, there may be variations in the specific embodiments and the application scope, and in summary, the content of the present specification should not be construed as a limitation to the present invention.

Claims (10)

1. A method for forming artistic design of orange peel is characterized by comprising the following steps:
when an input shape is received, preprocessing the input shape to obtain a grid body;
projecting the grid body onto a preset citrus curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape;
calculating a first projection proportion of the target projection shape on the preset orange curved surface;
when the first projection proportion does not reach a preset projection proportion threshold value, adjusting according to corresponding requirements until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape;
and determining a target curve of the target output shape on the preset orange surface.
2. The method of claim 1, wherein preprocessing the input shape to obtain a mesh volume comprises:
resampling and meshing the input shape to obtain a first mesh area;
adjusting the first mesh area to be a second mesh area which is the same as the preset citrus curved surface area;
and expanding the second grid area into a square grid area, and converting the square grid area into a grid body.
3. The method of claim 1, wherein projecting the mesh onto a predetermined citrus surface to obtain a projected shape, and adjusting the projected shape to obtain a target projected shape comprises:
setting the grid body and the preset citrus curved surface to be concentric to obtain a projection shape;
respectively calculating equidistant energy of the projection shape and the input shape and energy of contraction of an uncovered area and an overlapped area in the preset citrus curved surface and the projection shape according to a preset objective function;
and adjusting the projection shape according to a first energy ratio to obtain a target projection shape, wherein the ratio of the equidistant energy to the contracted energy is used as the first energy ratio.
4. The method of claim 3, wherein adjusting the projection shape in accordance with a first energy ratio, further comprises:
and in the adjusting process, the boundary of the covered area in the projection shape is ensured to be the same as the boundary of the sum of the uncovered area and the overlapped area, and the adjusted projection shape falls on the preset citrus curved surface.
5. The method of claim 3, wherein when the first projection ratio does not reach a preset projection ratio threshold, adjusting according to a corresponding requirement until the corresponding second projection ratio reaches the preset projection ratio threshold to obtain the target output shape comprises:
acquiring the requirement;
when the requirement is that the input shape is forbidden to be modified, the first energy ratio is adjusted to a second energy ratio, the second projection ratio reaches a preset projection ratio threshold value, and a target output shape is obtained, wherein the second energy ratio is higher than the first energy ratio;
and when the requirement is that the input shape is allowed to be modified, judging whether a preset iteration number is reached, if not, providing a modification reference for the input shape, and adjusting the input shape according to the modification reference until the second projection ratio reaches a preset projection ratio threshold value to obtain a target output shape.
6. The method of claim 5, wherein the modified reference comprises at least one of an add operation, a delete operation, an angle enhance operation, and an add secant operation.
7. The method of claim 1, further comprising:
and drawing a graticule in the preset citrus curved surface, and drawing the target curve on the graticule.
8. An orange peel shaping art design device, comprising:
the preprocessing module is used for preprocessing the input shape to obtain a grid body when the input shape is received;
the projection and adjustment module is used for projecting the grid body onto a preset orange curved surface to obtain a projection shape, and adjusting the projection shape to obtain a target projection shape;
the calculation module is used for calculating a first projection proportion of the target projection shape on the preset orange curved surface;
the adjusting module is used for adjusting according to corresponding requirements when the first projection proportion does not reach a preset projection proportion threshold value until the corresponding second projection proportion reaches the preset projection proportion threshold value to obtain a target output shape;
and the determining module is used for determining a target curve of the target output shape on the preset orange surface.
9. The apparatus of claim 8, wherein the pre-processing module comprises:
the resampling and dividing unit is used for resampling and meshing the input shape to obtain a first mesh area;
the adjusting unit is used for adjusting the first grid area into a second grid area which is the same as the preset citrus curved surface area;
and the expansion unit is used for expanding the second grid area into a square grid area and converting the square grid area into a grid body.
10. The apparatus of claim 8, wherein the projection and adjustment module comprises:
the acquisition unit is used for setting the grid body and the preset citrus curved surface to be concentric to acquire a projection shape;
the computing unit is used for respectively computing equidistant energy of the projection shape and the input shape and energy of contraction of an uncovered area and an overlapped area in the preset citrus curved surface and the projection shape according to a preset objective function;
and the adjusting unit is used for adjusting the projection shape according to a first energy ratio to obtain a target projection shape, wherein the ratio of the equidistant energy to the contracted energy is used as the first energy ratio.
CN201910891910.6A 2019-09-20 2019-09-20 Orange peel forming art design method and device Active CN110599397B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201910891910.6A CN110599397B (en) 2019-09-20 2019-09-20 Orange peel forming art design method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201910891910.6A CN110599397B (en) 2019-09-20 2019-09-20 Orange peel forming art design method and device

Publications (2)

Publication Number Publication Date
CN110599397A CN110599397A (en) 2019-12-20
CN110599397B true CN110599397B (en) 2021-04-23

Family

ID=68861726

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201910891910.6A Active CN110599397B (en) 2019-09-20 2019-09-20 Orange peel forming art design method and device

Country Status (1)

Country Link
CN (1) CN110599397B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114581561B (en) * 2022-03-04 2024-03-29 中国科学技术大学 Mirror cup artistic design method and device

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774124A (en) * 1994-11-07 1998-06-30 International Business Machines Corporation Finite element modeling method and computer system for converting a triangular mesh surface to a quadrilateral mesh surface
CN103447692A (en) * 2012-11-02 2013-12-18 深圳信息职业技术学院 Method and device of three-dimensional laser marking and three-dimensional marking machine
CN104259669A (en) * 2014-09-11 2015-01-07 苏州菲镭泰克激光技术有限公司 Precise three-dimensional curved surface laser marking method
CN109360272A (en) * 2018-09-21 2019-02-19 浙江理工大学 A kind of grid surface curve design method based on distance restraint

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5774124A (en) * 1994-11-07 1998-06-30 International Business Machines Corporation Finite element modeling method and computer system for converting a triangular mesh surface to a quadrilateral mesh surface
CN103447692A (en) * 2012-11-02 2013-12-18 深圳信息职业技术学院 Method and device of three-dimensional laser marking and three-dimensional marking machine
CN104259669A (en) * 2014-09-11 2015-01-07 苏州菲镭泰克激光技术有限公司 Precise three-dimensional curved surface laser marking method
CN109360272A (en) * 2018-09-21 2019-02-19 浙江理工大学 A kind of grid surface curve design method based on distance restraint

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
日本人民橘子新玩法——剪橘皮艺术;lindan9997;《http://www.360doc.com/content/13/1118/16/535749_330268493.shtml》;20131118;第1-3页 *

Also Published As

Publication number Publication date
CN110599397A (en) 2019-12-20

Similar Documents

Publication Publication Date Title
Kho et al. Sketching mesh deformations
CN1916966B (en) Process for creating from a mesh an isotopologic set of parameterized surfaces
JP4237806B2 (en) Progressive mesh adaptive subdivision method and apparatus
JP4083238B2 (en) Progressive mesh adaptive subdivision method and apparatus
US7400323B2 (en) Process for creating a parametric surface having a required geometrical continuity
US6025847A (en) Three dimensional modeling system with visual feedback
US6859202B2 (en) Conversion of a hierarchical subdivision surface to nurbs
US8736605B2 (en) Method and apparatus for constraint-based texture generation
JP2007305132A (en) System and method for mesh and body hybrid modeling using three-dimensional scan data
JP2006031715A (en) Deformation of computer creation model
KR20060002856A (en) System and method for defining t-spline and t-nurcc surfaces using local refinements
JPH08131252A (en) Hair picture adaptation method and computer system
KR20130123336A (en) Designing a 3d modeled object
JP5534791B2 (en) Method for editing images and video
CN110599397B (en) Orange peel forming art design method and device
Zhang et al. Local barycenter based efficient tree-support generation for 3D printing
CN108492370A (en) Triangle gridding filtering method based on TV and anisotropy Laplacian regular terms
GB2425432A (en) Manipulating digital images using masks
US7336851B1 (en) Interactive tool for removal of isolated objects on raster images
CN113744401A (en) Terrain splicing method and device, electronic equipment and storage medium
Santos et al. Integration of CAD Models into Game Engines.
CN114596221A (en) Face contour automatic smoothing method and device, electronic equipment and storage medium
WO2020129660A1 (en) Three-dimensional model editing device, three-dimensional model editing method, and program
CN110232260B (en) Hierarchical operating system, method, computer-readable storage medium and computer terminal for CAD system reference
KR100512567B1 (en) Displaced Subdivision Mesh restoration method for face animation

Legal Events

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