CN107788600A - A kind of two-dimensional digital garment fashion drawing design system - Google Patents
A kind of two-dimensional digital garment fashion drawing design system Download PDFInfo
- Publication number
- CN107788600A CN107788600A CN201710959310.XA CN201710959310A CN107788600A CN 107788600 A CN107788600 A CN 107788600A CN 201710959310 A CN201710959310 A CN 201710959310A CN 107788600 A CN107788600 A CN 107788600A
- Authority
- CN
- China
- Prior art keywords
- control point
- point
- hand
- drawing line
- line
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Classifications
-
- A—HUMAN NECESSITIES
- A41—WEARING APPAREL
- A41H—APPLIANCES OR METHODS FOR MAKING CLOTHES, e.g. FOR DRESS-MAKING OR FOR TAILORING, NOT OTHERWISE PROVIDED FOR
- A41H3/00—Patterns for cutting-out; Methods of drafting or marking-out such patterns, e.g. on the cloth
- A41H3/007—Methods of drafting or marking-out patterns using computers
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F30/00—Computer-aided design [CAD]
Landscapes
- Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- Theoretical Computer Science (AREA)
- Computer Hardware Design (AREA)
- Evolutionary Computation (AREA)
- Geometry (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Textile Engineering (AREA)
- Processing Or Creating Images (AREA)
Abstract
The present invention proposes a kind of two-dimensional digital garment fashion drawing design system, belongs to digitalized clothing design field.The present invention incorporates the drawing process of designer in garment fashion drawing design system, and the two-dimentional dress designing style figure that the traditional paper pen of designer is drawn is converted into the two-dimensional digital style figure with coordinate information, including step:The style graph line drawn using B-spline curves fitting designer;The editor such as drawn, changed to garment fashion drawing by the way of interactive;The lines of style figure are read, preserved using the data structure of single-track link table.The present invention is not only increased the editorial efficiency of Freehandhand-drawing and can be stored manual draw using single-track link table data structure storage hand-drawing line control point data.
Description
Technical field
The invention belongs to digitalized clothing design field, and in particular to a kind of two-dimensional digital clothes fashion G- Design
System.
Background technology
Currently for the diversity of clothes species, there is the design system of a variety of digitalized clothing style figures.
The clothes fashion digitizing solution based on style as disclosed in CN1632813, it proposes the clothes money based on style
Formula design system, extracts clothes profile information and detailed information carries out level standardization division, and above-mentioned garment data information is protected
Deposit into database.
A kind of intelligent skirt style and pattern design system as disclosed in CN101482897, it digitizes Design modelling mould
Block is based on the basis of skirt digitlization graphics module, and the Parametric designing of skirt style figure is realized by inference technology, with
It is adapted to conventional skirt style.By case illation technology, retrieval example storehouse obtains satisfactory style figure, suitable complexity,
The style of change.
A kind of and for example method for drafting of garment fashion drawing disclosed in CN105615091A, based on style figure and real garment,
And the relation between real garment and human body, the chi of garment fashion drawing is represented with the human body key position dimensional parameters
It is very little, complete the system that garment fashion drawing is drawn.
But above-mentioned digitized garment fashion drawing design system does not have the drawing process for being directly related to designer,
Key is that extracting the style information completed carries out data division and preservation, or using machine learning mode to style figure
Carry out parameter designing.
The content of the invention
The technical problems to be solved by the invention are the defects of being directed to background technology, to melt in garment fashion drawing design system
Enter the drawing process of designer, the two-dimentional dress designing style figure that the traditional paper pen of designer is drawn is converted into having and sat
Mark the two-dimensional digital style figure of information.
It is as follows that the present invention is used for technological means used by solving above-mentioned technical problem:
A kind of two-dimensional digital garment fashion drawing design system, the system include being used for the computer for drawing garment fashion drawing,
The computer is programmed to perform following steps:
(1), the style graph line drawn with B-spline curves fitting designer;
(2), editor is drawn or changed to garment fashion drawing by the way of interactive;
(3) lines of style figure, are read, preserved using the data structure of single-track link table.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, step (1) are bent using B-spline
What line fitting designer free hand line was formed is continuous and smooth curve, while also needs to provide rupturing operation, makes fitting
Every two-dimentional free hand line is independent, discontinuous, can individually edited;At the end of a free hand line is drawn, while
Provide end mark.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, when drawing style figure, use
Following two lines:
(a) lines are applied to draw the outline lines of clothing silhouette;
(b) lines are applied to draw the bottom of pendency and the fold lines of clothing surface.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, to the editor of garment fashion drawing
Operation includes:Increase new control point, mobile control point, the drafting deleted control point, terminate a hand-drawing line, preservation manual draw
And read in the manual draw preserved.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, the preservation of hand-drawing line is will be every
The control point of one B-spline hand-drawing line is got off with the data structure records of a single-track link table, in each element of chained list, is deposited
Store up the control point of each hand-drawing line.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, increase new control point and realize
Process include:
The first step:It is window coordinates by the Coordinate Conversion of left mouse button point;
Second step:FindMatchingPointIndex (point_x, point_y) function is called, finds the rope of left mouse button point
Draw value;
3rd step:The index value of point is assigned to a global variable, for mouse mobile messaging receptance function;
4th step:Index value such as fruit dot is less than 0, then this left button point is a new point, represents to increase new control point-rendering B samples
Bar, herein, control point px [], the py [] coordinate at new control point being assigned to respectively in chained list, while increase control point
Number;
5th step:If the index of the left mouse button point is consistent with the index at some existing control point, expression user
The point is moved, the index of left button point is assigned to the temporary variable for representing transfer point;
6th step:Drafting function RenderScene () is called, repaints scene.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, the mistake that mobile control point is realized
Journey includes:
The first step:Judge to represent the value of mobile temporary variable, that is, the index value put, if index value is less than 0, do not perform movement
Operation, is returned immediately;
Second step:It is window coordinates by the Coordinate Conversion of mouse transfer point if index value is more than 0;
3rd step:Index value is more than 0, and the point belongs to the control point of current hand-drawing line, then is assigned to point coordinates in real time
The interim array for preserving point coordinates;
4th step:Index value is more than 0, and the point belongs to the control point for preserving certain hand-drawing line in chained list, then moves mouse
The window coordinates of point pass to control point px [], py [] in chained list, realize the coordinate for changing mobile control point in real time;
5th step:Drafting function RenderScene () is called, repaints scene.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, delete control point and specifically include
Following steps:
The first step:It is window coordinates by the Coordinate Conversion of right mouse button point;
Second step:If the control point number on current hand-drawing line is more than or equal to 0, control point can be just deleted;
3rd step:Under conditions of second step is met, cycle criterion is carried out to all control points on current hand-drawing line, if mouse
The distance between some control point on the coordinate and current hand-drawing line of right button point is less than given threshold value, then it is assumed that have selected and works as
Some preceding control point, is deleted, and the number at current hand-drawing line control point subtracts one;
4th step:Drafting function RenderScene () is called, repaints scene.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, one hand-drawing line of end are painted
System is specially:
If what the first step, mouse clicked on is saved hand-drawing line control point, into Save_ControlPoint chained lists,
Using the control point on the hand-drawing line as current control point, and return to the index value at control point, 0~Ni- 1, i be 0~9 it is whole
Number;
If what second step, mouse were clicked on is not saved hand-drawing line control point, it is divided into two kinds of situations:If mouse is clicked on
Be control point on the current hand-drawing line drawn, then by judgement within threshold value, return to control point in current rope
Draw value, if the point that mouse is clicked on also is not belonging to some control point on current hand-drawing line, function returns to -1.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, preserve manual draw when the step of
For:The first step:If the number at control point is less than 4, any order is not performed;
Second step:In the case where control point number is more than 4, if there is no the hand-drawing line control point preserved, protect instantly
What is deposited is the control point of first hand-drawing line, to preserve control point Save_ControlPoint chained list storage allocation space, together
When pointer cur_Save_ControlPoint point to Save_ControlPoint chained lists;
3rd step:If there are the hand-drawing line control point preserved, i.e. the first of Save_ControlPoint chained lists element
Have, it is necessary to the data-linkage at ensuing hand-drawing line control point up;New memory headroom is distributed first, with one
Interim pointer temp_Save_ControlPoint is allocated, then the next of Save_ControlPoint chained lists
Pointer (next) points to this newly assigned internal memory, and such chained list Save_ControlPoint just has second element,
The control point information of two hand-drawing lines is stored in into second element;Pointer cur_Save_ControlPoint is allowed to be also directed to simultaneously
The memory headroom opened up by temp_Save_ControlPoint, such second element space just turn into current pointer cur_
What Save_ControlPoint was pointed to, it is ensured that the next of current pointer sensing is NULL, so reads in a plurality of free hand line
Control point is until terminate.
Further, a kind of two-dimensional digital garment fashion drawing design system of the invention, reading manual draw needs guarantor
The x, y, z Coordinate Conversion for representing hand-drawing line control point in file is deposited into the numerical value of floating type, while hand-drawing line control point
Number is converted into shaping numerical value.
The present invention has following technique effect using above technical scheme:
The design system is that the two-dimentional dress designing style figure that the traditional paper pen of designer is drawn is converted into coordinate
The two-dimensional digital style figure of information, the core algorithm of conversion are that two-dimentional Freehandhand-drawing style is desired to make money or profit to be fitted with B-spline curves.
Man-machine interaction mode is that user enters edlin by mouse, keyboard and menu operation to two-dimentional manual draw, due to
Before each free hand line is all independent in manual draw, and each hand-drawing line exists in logic with other free hand lines
Relation afterwards, so using each free hand line in single-track link table this data structure storage two dimension manual draw, so both keep
The independence of single free hand line, the continuity of whole manual draw is imparted again.So interactive Freehandhand-drawing in the present system
On interface, freely drawing for two-dimentional garment fashion drawing can be both carried out, whole style figure can be preserved again, and the mode preserved is
The B-spline control point of each independent hand-drawing line is recorded into chained list.
Test result indicates that the rendering request of lines can be met using B-spline curves, interactive mouse and keyboard behaviour
Make the edit operation that can be added, remove and change to free hand line, utilize single-track link table data structure storage hand-drawing line
Point data is controlled, the editorial efficiency of Freehandhand-drawing is not only increased and style figure can be stored.
Brief description of the drawings
Fig. 1 is the B-spline curves containing 4 control points.
Fig. 2 is the bottom curve of the B-spline simulating two-dimensional garment fashion drawing at multiple control points.
The whole Fashion Design flow charts of Fig. 3.
Fig. 4 is drafting flow when designer draws skirt style figure, and sequence number represents drawing order.(a) represent that design is painted
The skirt style figure of system, (b) represent that the skirt style figure includes 10 independent B-splines altogether, and each is that designer draws
Free hand line, from 0-9 sequence numbers also indicated that designer drawing order or be referred to as draw flow.
Fig. 5 is the data structure records schematic diagram with a single-track link table by the control point of each B-spline hand-drawing line.
Fig. 6 is the software execution flow journey figure of the present invention.
Fig. 7 be designer utilize the system draw garment fashion drawing, respectively vest, skirt and trousers, and clothes money
Preservation form (the part hand-drawing line control point of formula figure:The number and coordinate information at the control point containing every hand-drawing line).
Embodiment
Hereinafter, further it is described in detail for technical scheme based on accompanying drawing.
1st, the identification of garment fashion drawing:
(1) it is fitted two-dimentional free hand line using B-spline curves
The present invention is fitted two-dimentional free hand line using rational quadratic B-spline curve, because quadratic b-spline curve is continuous,
Each control point in Quadric Spline is influenceed by hithermost three control points, that is to say, that each control point shadow
Three adjacent curved sections are rung, when the position at mobile control point, this feature ensures that the smoothness and locality of batten,
The shape of whole free hand line is adjusted by changing the position at control point.
The drafting key of style graph line is spline control points, is drawing interface click just using mouse in the present invention
It can obtain, most basic B-spline is containing 4 control point (p0,p1,p2,p3) 3 rank B-spline curves, it is expressed such as formula (1)
It is shown.
Each control point of B-spline curves and basic function Bi,3(u) related, P (u) is the B-spline curves drawn.At me
Program in selection parameter u ∈ [2,4] section, while meet u+=0.01 to ensure that the curve drawn out is smooth continuous
, formula (2) be with recursiveness basic function expression formula:
In the present system, the basic function B of rational quadratic B-splinei,3(u) it is respectively:
2nd, the editor of garment fashion drawing
The editor of garment fashion drawing includes the edit operations such as the increase, deletion and modification of free hand line.Because a width is complete
Style figure by it is many individually free hand lines form, and using B-spline fitting free hand line formed be continuous and smooth
Curve;Also need to provide rupturing operation simultaneously, every two-dimentional free hand line for making fitting is independent, discontinuous, Ke Yidan
Solely edit;At the end of a free hand line is drawn, while also to provide end mark.
(1) operating instruction of style figure software editing
Fig. 1, Fig. 2 give the mobile schematic diagram at two-dimentional hand-drawing line B-spline control point.Fig. 1 is a B sample containing 4 control points
Bar curve, mobile one of control point, curve change shape.Fig. 2 is the B-spline simulating two-dimensional clothes fashion at multiple control points
The bottom curve of figure, corresponding movement can also be carried out to change the shape of lines.
Designer can typically use such two kinds of lines when drawing style figure:
(a) lines are applied to draw the outline lines of clothing silhouette;
(b) lines are applied to draw the fold lines of the dangle preferable bottom and clothing surface.
Designer need to only understand this simple basic law, with reference to software operating instruction, it is possible to according to painting for oneself
Mode processed designs clothes fashion.
Whole garment fashion drawing design system includes reading file, editor's manual draw and output manual draw.Flow such as Fig. 3 institutes
Show, in the present system, all B-splines control point data is stored in the form of single-track link table.The editor of manual draw is grasped
Work includes:Increase new control point, mobile control point, the drafting deleted control point, terminate a hand-drawing line, preserve manual draw with
And read in the manual draw preserved.
When style figure is read and is edited, the present invention is using wall scroll hand-drawing line as construction unit.In order to
Description is for the sake of simplicity, the present invention gets up every hand-drawing line of half body skirt two dimension anter manual draw with numeral mark, such as Fig. 4 institutes
Show.The preservation of hand-drawing line is that the control point of each B-spline hand-drawing line is got off with the data structure records of a single-track link table,
As shown in figure 5, in each element of chained list, the control point of each hand-drawing line is store, because this skirt shares 10
Hand-drawing line is formed, so the control point number on hand-drawing line is respectively N0,…,N9.Distinguished with one-dimension array type at these control points
The x, y, z coordinate at control point is preserved, is recorded as px [], py [], pz [], it is contemplated that the requirement actually drawn, the present invention is every
One hand-drawing line distributes the memory headroom at 100 control points.
Four control points are to obtain the minimum value of B-spline curves, typically if lines compare in the drawing process of reality
It is complicated, then four control points can not obtain the lines required for designer certainly, so n have to be larger than equal to 4, in the system
In consider the actual memory headroom drawn, give 100 control points.
Such Memory Allocation fully meets current drafting demand.Here array pz [] default value is floating point type
0 because the data point on two-dimentional hand-drawing line is not need coordinate information, and be assigned to 0 value to their storage allocations, be in order to
During matching between the data point of two-dimentional hand-drawing line and three-dimensional template summit, each data point can be in the form of three-dimensional coordinate
It is corresponding, then directly carry out computing.
According to Fig. 5 data structure, the control point of hand-drawing line is saved as chain sheet form, is named as Save_ by the present invention
ControlPoint, the entitled SavePoint of type, its structure are singly linked lists as shown in table 1.All volumes to hand-drawing line
It is exactly that the data of this chained list and its inside are carried out with various editors that it is actual, which to collect operation, and the present invention is at searching hand-drawing line control point
Index findMatchingPointIndex (float point_x, float point_y), storage hand-drawing line control point SaveP
Unidirectional chain is all make use of when (int Pnumber, Point*p) and reading hand-drawing line control point ReadSketch (FILE*f)
Table structure is handled data.
The C language of the single-track link table type structure of table 1 represents
The row of single left button mouse click message response function OnLButtonDown (UINT nFlags, CPoint point) realization
It is to include two parts:
First, the control point that increase is new;Second, prepared to change the position at control point movement mouse.The process of realization is summarized
Into the following steps:
The first step:It is window coordinates by the Coordinate Conversion of left mouse button point.
Second step:FindMatchingPointIndex (point_x, point_y) function is called, finds left mouse button point
Index value.
3rd step:The index value of point is assigned to a global variable, for mouse mobile messaging receptance function.
4th step:Index value such as fruit dot is less than 0, then this left button point is a new point, and representing, which increases new control point, paints
B-spline processed, herein, control point px [], the py [] coordinate at new control point being assigned to respectively in chained list, increase simultaneously
The number at control point.
5th step:If the index of the left mouse button point is consistent with the index at some existing control point, expression
User will move the point, and the index of left button point is assigned to the temporary variable for representing transfer point.
6th step:Drafting function RenderScene () is called, repaints scene.
The message response function OnMouseMove (UINT nFlags, CPoint point) of mobile mouse, realizes movement
Mouse adjusts SPL to change the position at some control point.
The first step:Judge to represent the value of mobile temporary variable, that is, the index value put, if index value is less than 0, do not perform
Moving operation, return immediately.
Second step:It is window coordinates by the Coordinate Conversion of mouse transfer point if index value is more than 0.
3rd step:Index value is more than 0, and the point belongs to the control point of current hand-drawing line, then assigns point coordinates in real time
It is worth to the interim array (after lower keyboard " A ", can just be saved into Save_ControlPoint chained lists) for preserving point coordinates.
4th step:Index value is more than 0, and the point belongs to the control point for preserving certain hand-drawing line in chained list, then will
The window coordinates of mouse transfer point pass to control point px [], py [] in chained list, realize and change mobile control in real time
Make the coordinate of point.
5th step:Drafting function RenderScene () is called, repaints scene.
The message response function OnRButtonDown (UINT nFlags, CPoint point) of right mouse button is pressed, is deleted
Except last point on current hand-drawing line.
The first step:It is window coordinates by the Coordinate Conversion of right mouse button point.
Second step:If the control point number on current hand-drawing line is more than or equal to 0, control point can be just deleted.
3rd step:Under conditions of second step is met, cycle criterion is carried out to all control points on current hand-drawing line.If
The distance between some control point on the coordinate and current hand-drawing line of right mouse button point is less than given threshold value, it is possible to thinks
Some current control point is have selected, is deleted, the number at current hand-drawing line control point subtracts one.
4th step:Drafting function RenderScene () is called, repaints scene.
Look for mouse click on control point index function findMatchingPointIndex (float point_x,
Float point_y), the parameter of function is the window coordinates of mouse point, returns to index value or -1.If returning to -1, mouse is represented
The point that punctuate is hit is not some control point.Control point index on every hand-drawing line is all since 0, is divided into saved
Hand-drawing line control point and current Freehandhand-drawing line traffic control point.The hand-drawing line control point preserved is stored in Save_ControlPoint chains
In table, current hand-drawing line control point is saved into chained list after lower keyboard " A " is pressed.
The first step:What if mouse was clicked on is saved hand-drawing line control point, into Save_ControlPoint chains
Table, using the control point on the hand-drawing line as current control point, and return to the index value (0~N at control pointi- 1 (i is 0~9
Integer)).
Second step:If what mouse was clicked on is not saved hand-drawing line control point, two kinds of situations can be divided into again, such as
What fruit mouse was clicked on is the control point on the current hand-drawing line drawn, then by judgement within threshold value, returns to control point
In current index value.If the point that mouse is clicked on also is not belonging to some control point on current hand-drawing line, function returns to -1.
Table 2:It is respectively SavePoin types to define two pointers
The function SaveP (int Pnumber, Point*p) that hand-drawing line control point is preserved, the parameter of function is current hand-drawing line
Control point total number, and point to control point pointer.We need to use two pointers of the definition of table 2 herein.
The first step:If the number at control point is less than 4, any order is not performed.
Second step:In the case where control point number is more than 4, if there is no the hand-drawing line control point preserved, when
Lower preservation be first hand-drawing line control point.It is empty to preserve control point Save_ControlPoint chained list storage allocation
Between, while pointer cur_Save_ControlPoint is pointed to Save_ControlPoint chained lists.
3rd step:If there are the hand-drawing line control point preserved, i.e. the first of Save_ControlPoint chained lists
Element (i.e. gauge outfit) has had, it is necessary to the data-linkage at ensuing hand-drawing line control point up.Distribute first new interior
Space is deposited, is allocated with an interim pointer temp_Save_ControlPoint, then Save_ControlPoint
Next pointer (next) of chained list points to this newly assigned internal memory, and such chained list Save_ControlPoint just has
Two elements, the control point information of Article 2 hand-drawing line can be stored in into second element.Allow pointer cur_Save_ simultaneously
ControlPoint is also directed to the memory headroom opened up by temp_Save_ControlPoint, and such second element space is just
Pointed to as current pointer cur_Save_ControlPoint, certainly it is also to be ensured that the next of current pointer sensing is
NULL.The control point of a plurality of free hand line is so read in until terminating.
It is similar to read operation of manual draw ReadSketch (FILE*f) operation with preserving manual draw, is for hand-drawing line
Point sequence distribution memory space is controlled, and is stored with the structure of single-track link table.The difference is that it is that character string is grasped to read manual draw
Make, so the numerical value the x, y, z Coordinate Conversion for representing hand-drawing line control point in preservation file into floating type is needed, while handle
The number at hand-drawing line control point is converted into shaping numerical value.
Whole interactive garment fashion drawing design system is the system being combined in VC++MFC with OpenGL graphic interfaces
Completed under framework.The message response function of the MFC acquiescences based on view class has been used in the application process of system interaction formula,
The engineering is named as 2DSketch, and corresponding view class is C2DSketchView, and these message response functions are summarized in table 3
In.It is the constructed fuction and destructor function generated when engineering creates that starting and ending in software execution flow journey is corresponding respectively,
And other customized call functions are all summarized in table 4.
Table 3:The message response function of MFC acquiescences based on view class
Table 4:Constructed fuction, destructor function and customized call function
It should be noted that described above is only the preferred embodiment of the present invention, it will be appreciated that for those skilled in the art
For, some changes and improvements can also be made on the premise of the technology of the present invention design is not departed from, these are included in this hair
In bright protection domain.
Claims (10)
1. a kind of two-dimensional digital garment fashion drawing design system, it is characterised in that the system includes being used to draw clothes money
The computer of formula figure, the computer are programmed to perform following steps:
(1), the style graph line drawn with B-spline curves fitting designer;
(2), editor is drawn or changed to garment fashion drawing by the way of interactive;
(3) lines of style figure, are read, preserved using the data structure of single-track link table.
A kind of 2. two-dimensional digital garment fashion drawing design system according to claim 1, it is characterised in that step (1)
What it is using B-spline curves fitting designer free hand line formation is continuous and smooth curve, while also needs to provide cut-out behaviour
Make, make every two-dimentional free hand line of fitting be independent, discontinuous, can individually edit;When a free hand line draws knot
Shu Shi, while also to provide end mark.
3. a kind of two-dimensional digital garment fashion drawing design system according to claim 1, it is characterised in that drawing money
During formula figure, using following two lines:
(a) lines are applied to draw the outline lines of clothing silhouette;
(b) lines are applied to draw the bottom of pendency and the fold lines of clothing surface.
4. a kind of two-dimensional digital garment fashion drawing design system according to claim 1, it is characterised in that to clothes money
The edit operation of formula figure includes:Increase new control point, mobile control point, the drafting deleted control point, terminate a hand-drawing line,
Preserve manual draw and read in the manual draw preserved.
5. a kind of two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that increase new
The process that control point is realized includes:
The first step:It is window coordinates by the Coordinate Conversion of left mouse button point;
Second step:FindMatchingPointIndex (point_x, point_y) function is called, finds the rope of left mouse button point
Draw value;
3rd step:The index value of point is assigned to a global variable, for mouse mobile messaging receptance function;
4th step:Index value such as fruit dot is less than 0, then this left button point is a new point, represents to increase new control point-rendering B samples
Bar, herein, control point px [], the py [] coordinate at new control point being assigned to respectively in chained list, while increase control point
Number;
5th step:If the index of the left mouse button point is consistent with the index at some existing control point, expression user
The point is moved, the index of left button point is assigned to the temporary variable for representing transfer point;
6th step:Drafting function RenderScene () is called, repaints scene.
A kind of 6. two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that mobile control
The process that point is realized includes:
The first step:Judge to represent the value of mobile temporary variable, that is, the index value put, if index value is less than 0, do not perform movement
Operation, is returned immediately;
Second step:It is window coordinates by the Coordinate Conversion of mouse transfer point if index value is more than 0;
3rd step:Index value is more than 0, and the point belongs to the control point of current hand-drawing line, then is assigned to point coordinates in real time
The interim array for preserving point coordinates;
4th step:Index value is more than 0, and the point belongs to the control point for preserving certain hand-drawing line in chained list, then moves mouse
The window coordinates of point pass to control point px [], py [] in chained list, realize the coordinate for changing mobile control point in real time;
5th step:Drafting function RenderScene () is called, repaints scene.
7. a kind of two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that delete control
Point specifically includes following steps:
The first step:It is window coordinates by the Coordinate Conversion of right mouse button point;
Second step:If the control point number on current hand-drawing line is more than or equal to 0, control point can be just deleted;
3rd step:Under conditions of second step is met, cycle criterion is carried out to all control points on current hand-drawing line, if mouse
The distance between some control point on the coordinate and current hand-drawing line of right button point is less than given threshold value, then it is assumed that have selected and works as
Some preceding control point, is deleted, and the number at current hand-drawing line control point subtracts one;
4th step:Drafting function RenderScene () is called, repaints scene.
8. a kind of two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that terminate one
The drafting of hand-drawing line is specially:
If what the first step, mouse clicked on is saved hand-drawing line control point, into Save_ControlPoint chained lists,
Using the control point on the hand-drawing line as current control point, and return to the index value at control point, 0~Ni- 1, i be 0~9 it is whole
Number;
If what second step, mouse were clicked on is not saved hand-drawing line control point, it is divided into two kinds of situations:If mouse is clicked on
Be control point on the current hand-drawing line drawn, then by judgement within threshold value, return to control point in current rope
Draw value, if the point that mouse is clicked on also is not belonging to some control point on current hand-drawing line, function returns to -1.
9. a kind of two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that preserve Freehandhand-drawing
The step of during figure is:
The first step:If the number at control point is less than 4, any order is not performed;
Second step:In the case where control point number is more than 4, if there is no the hand-drawing line control point preserved, protect instantly
What is deposited is the control point of first hand-drawing line, to preserve control point Save_ControlPoint chained list storage allocation space, together
When pointer cur_Save_ControlPoint point to Save_ControlPoint chained lists;
3rd step:If there are the hand-drawing line control point preserved, i.e. the first of Save_ControlPoint chained lists element
Have, it is necessary to the data-linkage at ensuing hand-drawing line control point up;New memory headroom is distributed first, with one
Interim pointer temp_Save_ControlPoint is allocated, then the next of Save_ControlPoint chained lists
Pointer (next) points to this newly assigned internal memory, and such chained list Save_ControlPoint just has second element,
The control point information of two hand-drawing lines is stored in into second element;Pointer cur_Save_ControlPoint is allowed to be also directed to simultaneously
The memory headroom opened up by temp_Save_ControlPoint, such second element space just turn into current pointer cur_
What Save_ControlPoint was pointed to, it is ensured that the next of current pointer sensing is NULL, so reads in a plurality of free hand line
Control point is until terminate.
10. a kind of two-dimensional digital garment fashion drawing design system according to claim 4, it is characterised in that read hand
Drawing needs the numerical value into floating type the x, y, z Coordinate Conversion for representing hand-drawing line control point in preservation file, while handle
The number at line drawing control point is converted into shaping numerical value.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959310.XA CN107788600A (en) | 2017-10-16 | 2017-10-16 | A kind of two-dimensional digital garment fashion drawing design system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201710959310.XA CN107788600A (en) | 2017-10-16 | 2017-10-16 | A kind of two-dimensional digital garment fashion drawing design system |
Publications (1)
Publication Number | Publication Date |
---|---|
CN107788600A true CN107788600A (en) | 2018-03-13 |
Family
ID=61533234
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201710959310.XA Pending CN107788600A (en) | 2017-10-16 | 2017-10-16 | A kind of two-dimensional digital garment fashion drawing design system |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN107788600A (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109452710A (en) * | 2018-10-26 | 2019-03-12 | 四川大学 | A kind of method of circular fitting clothes curve |
CN109471142A (en) * | 2018-10-25 | 2019-03-15 | 国网福建省电力有限公司厦门供电公司 | A kind of working trajectory recognition methods based on RTK Differential positioning |
WO2021191692A1 (en) * | 2020-03-27 | 2021-09-30 | International Business Machines Corporation | Annotation of digital images for machine learning |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038603A (en) * | 2007-04-20 | 2007-09-19 | 东华大学 | System and method for digitalized recognizing clothing collar fashion drawing |
CN101482897A (en) * | 2009-02-24 | 2009-07-15 | 东华大学 | Intelligent skirt style and pattern design system |
CN101826126A (en) * | 2010-04-02 | 2010-09-08 | 浙江大学 | Garment design method based on three-dimensional sketch in any sight |
CN103678769A (en) * | 2013-11-12 | 2014-03-26 | 浙江大学 | Realistic clothes creating method based on human skeleton and two-dimensional deformation |
-
2017
- 2017-10-16 CN CN201710959310.XA patent/CN107788600A/en active Pending
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101038603A (en) * | 2007-04-20 | 2007-09-19 | 东华大学 | System and method for digitalized recognizing clothing collar fashion drawing |
CN101482897A (en) * | 2009-02-24 | 2009-07-15 | 东华大学 | Intelligent skirt style and pattern design system |
CN101826126A (en) * | 2010-04-02 | 2010-09-08 | 浙江大学 | Garment design method based on three-dimensional sketch in any sight |
CN103678769A (en) * | 2013-11-12 | 2014-03-26 | 浙江大学 | Realistic clothes creating method based on human skeleton and two-dimensional deformation |
Non-Patent Citations (1)
Title |
---|
蒋娟芬: "基于二维手绘图的虚拟服装三维同构造型的实现方法", 《中国博士学位论文全文数据库》 * |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109471142A (en) * | 2018-10-25 | 2019-03-15 | 国网福建省电力有限公司厦门供电公司 | A kind of working trajectory recognition methods based on RTK Differential positioning |
CN109452710A (en) * | 2018-10-26 | 2019-03-12 | 四川大学 | A kind of method of circular fitting clothes curve |
WO2021191692A1 (en) * | 2020-03-27 | 2021-09-30 | International Business Machines Corporation | Annotation of digital images for machine learning |
US11205287B2 (en) | 2020-03-27 | 2021-12-21 | International Business Machines Corporation | Annotation of digital images for machine learning |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN104978762B (en) | Clothes threedimensional model generation method and system | |
CN103366633B (en) | Water conservation map data model-based flood risk map drawing method and system thereof | |
CN102521878B (en) | Programmable three-dimensional human body modeling and human body measurement system and method thereof | |
CN107788600A (en) | A kind of two-dimensional digital garment fashion drawing design system | |
CN104091005B (en) | A kind of Overhead Line Project measures indoor and field integration system | |
CN102136218A (en) | Automatic collocation method for map lettering during map making through computer | |
CN108932097B (en) | Take down notes generation method, electronic equipment and computer storage medium | |
CN105808244A (en) | Dynamic data visualized analysis tool based on workflows | |
CN105045583B (en) | A kind of IETM failure classes data module composition apparatus and its creative method based on visible process | |
CN111985025A (en) | Intelligent visualization system and method for building engineering construction standard atlas based on Unity3D | |
CN103838829A (en) | Raster vectorization system based on hierarchical boundary-topology search model | |
CN104598553B (en) | A kind of method of the Mapping Geological Map automatic Synthesis of combined type | |
CN109614671A (en) | A kind of three-dimensional MBD process model tissue and expression based on view | |
CN104616356B (en) | Sub-compartment boundary three-dimensional visual editing method | |
CN106294686B (en) | Method for rapidly updating tree node position coordinates in thought guide graph applied to computer technical field | |
CN102074027B (en) | Two-dimensional geological model agglomerating method | |
CN106202768B (en) | Attribute input method in house property area Calculation Plane figure | |
Li | [Retracted] Virtual Garment Piece Design and Stitching Algorithm Based on Virtual Simulation Technology | |
CN107170023B (en) | A kind of method for visualizing developed towards multivariate individual central site network | |
CN111428439B (en) | Method for generating three-dimensional character model based on contour tree structure and applicable to mobile terminal | |
Ponciano et al. | Graph-based interactive volume exploration | |
CN113721823A (en) | Human-computer interaction data visualization method based on dragging | |
CN112181381B (en) | Flow chart construction method based on branch circulation | |
CN110162531A (en) | A kind of distribution concurrent data processing assignment decisions method | |
CN104199660B (en) | Customized type output and the method for achievement Dynamic Announce in water conservancy software |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
RJ01 | Rejection of invention patent application after publication | ||
RJ01 | Rejection of invention patent application after publication |
Application publication date: 20180313 |