CN112700549B - Sample garment simulation method and device - Google Patents

Sample garment simulation method and device Download PDF

Info

Publication number
CN112700549B
CN112700549B CN202011609455.5A CN202011609455A CN112700549B CN 112700549 B CN112700549 B CN 112700549B CN 202011609455 A CN202011609455 A CN 202011609455A CN 112700549 B CN112700549 B CN 112700549B
Authority
CN
China
Prior art keywords
boundary line
sample
dimensional digital
garment
sampling
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
CN202011609455.5A
Other languages
Chinese (zh)
Other versions
CN112700549A (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.)
Beijing Institute Fashion Technology
Original Assignee
Beijing Institute Fashion Technology
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 Beijing Institute Fashion Technology filed Critical Beijing Institute Fashion Technology
Publication of CN112700549A publication Critical patent/CN112700549A/en
Application granted granted Critical
Publication of CN112700549B publication Critical patent/CN112700549B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T17/00Three dimensional [3D] modelling, e.g. data description of 3D objects
    • G06T17/20Finite element generation, e.g. wire-frame surface description, tesselation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F30/00Computer-aided design [CAD]
    • G06F30/20Design optimisation, verification or simulation

Landscapes

  • Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Geometry (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Graphics (AREA)
  • Software Systems (AREA)
  • Computer Hardware Design (AREA)
  • Evolutionary Computation (AREA)
  • General Engineering & Computer Science (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiment of the invention discloses a sample garment simulation method, which comprises the following steps: marking sample fragments of real clothing, and generating data nodes containing numbers of boundary lines matched with the boundary lines of each boundary line; and constructing three-dimensional digital sample clothes according to each marked template fragment and the data node, and constructing three-dimensional digital sample clothes with different resolutions by taking the constructed three-dimensional digital sample clothes as a reference. Therefore, the three-dimensional digital sample garment is obtained by processing the sample of the sample garment of the real garment, the real effect simulation of the sample garment is realized, and the real dressing structure of the sample garment can be reflected. In addition, by generating the three-dimensional digital sample clothes with different resolutions, different dressing effects of the sample clothes are displayed, and the requirements of large-scale events and customization on simulation are met.

Description

Sample garment simulation method and device
The present application claims priority from the national application filed in the chinese patent office, application No. 202011023738. X, entitled "method and apparatus for simulation of sample garment" at 25/12/2020, the entire contents of which are incorporated herein by reference.
Technical Field
The invention relates to the field of clothing design, in particular to a simulation method and device of sample clothing.
Background
In the development process of large-scale racing clothes, feedback of dressing effect of sample clothes is usually needed, and the dressing effect is continuously adjusted through the feedback information, but in reality, if the sample clothes are printed into ready-made clothes, feedback of dressing effect is obtained through model try-on, time and labor are consumed, and cost is high.
In order to solve the above problems, in the prior art, a computer is generally used to simulate the dressing effect, but the simulation in the prior art can only realize the effect on the visual scale, and cannot reflect the effect of the real dressing structure.
Disclosure of Invention
The embodiment of the invention discloses a simulation method of a sample garment, which not only realizes the simulation of a real sample garment structure, but also can show different dressing effects of the sample garment, thereby meeting the requirements of large-scale events and customization on simulation.
The embodiment of the invention discloses a simulation method of a sample garment, which comprises the following steps:
Receiving each sample plate slice of the sample garment;
marking the position of the sample plate fragment on the sample garment and the first attribute information of each boundary line in each sample plate fragment;
Generating a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
constructing a three-dimensional digital sample garment according to each marked sample plate fragment and the data node;
And constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats.
Optionally, the first attribute information of each boundary line includes:
the type of the boundary line, the position of the start point of the boundary line, the end point position, the length of the boundary line, other boundary lines adjacent to the boundary line, the number of the boundary line.
Optionally, the second attribute information of each boundary line included in the data node includes:
a line segment vector of a boundary line, a boundary line type, a boundary line length, a boundary line type adjacent to the boundary line, a length of a boundary line adjacent to the boundary line, and a number of a boundary line matching the boundary line.
Optionally, the identifying process of the boundary line type includes:
Calculating the length of the line segment of the boundary line;
calculating Euclidean distance between a starting point position and an end point position of the boundary line;
If the length of the line segment of the boundary line is greater than the Euclidean distance between the starting point position and the end point position of the boundary line, the boundary line is represented as a curve;
And if the length of the boundary line is equal to the Euclidean distance between the starting point position and the ending point position of the boundary line, the boundary line is indicated to be a straight line.
Optionally, the determining the number of the boundary line matched with the boundary line includes:
Generating an initial data node of each boundary line; the initial data node comprises: a line segment vector of a boundary line, a boundary line type, a boundary line length, a type of a boundary line adjacent to the boundary line, and a length of a boundary line adjacent to the boundary line;
Determining the subordinate relation between each boundary line and each template fragment;
determining a target template fragment corresponding to the template fragment subordinate to the target boundary line; the target boundary line is any boundary line;
searching a target data node matched with the initial data node in the target boundary line in the target template fragment;
and taking the serial number of the boundary line corresponding to the target data node as the serial number of the boundary line matched with the target boundary line.
Optionally, the constructing a three-dimensional digital sample garment according to each marked template fragment and the data node includes:
Marking the positions of the sample plates on the sample clothes according to the sample plate fragments, and distributing the sample plate fragments in a three-dimensional space;
Determining boundary lines matched with each other according to the data nodes of the boundary lines;
and aligning the boundary lines matched with each other, and combining the aligned boundary lines in a grid manner to obtain the three-dimensional digital sample garment.
Optionally, the distributing each template fragment in the three-dimensional space according to the position of the template fragment on the sample garment marked by the template fragment includes:
Obtaining a three-dimensional mannequin model;
And distributing each sample plate slice on the three-dimensional mannequin according to the position of the marked sample plate slice on the sample garment.
Optionally, the constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats includes:
determining a plurality of groups of sampling parameters, wherein the sampling parameters comprise sampling step length and offset;
Sampling the three-dimensional digital sample garment according to the multiple groups of sampling parameters to obtain multiple groups of sampling point sets;
And (5) gridding the points in each group of sampling point set to obtain three-dimensional digital sample clothes with different resolutions.
Optionally, the sampling the three-dimensional digital sample garment according to the plurality of groups of sampling parameters to obtain a plurality of groups of sampling point sets, including:
For any one set of sampling parameters:
A cross section plane is adopted to vertically intersect with a preset initial position in the three-dimensional digital sample garment, so that a first cross section plane intersection line is obtained;
Sampling the first cross-section plane intersection line according to a sampling step length in the set of sampling parameters;
translating the section plane in a preset direction according to the offset in the set of sampling parameters, and obtaining a second section plane intersection line;
Sampling the intersecting line of the second section plane according to the sampling step length in the set of sampling parameters;
Repeating the steps until the section plane is vertically intersected with a preset end position in the three-dimensional digital sample garment to obtain a third section plane;
Sampling the third section plane according to the sampling step length in the set of sampling parameters;
a set of sampling points is generated that contains all the sampling points.
Optionally, the method further comprises:
three-dimensional digital sample clothes with different resolutions are arranged in a distance view field.
Optionally, the arranging the three-dimensional digital sample clothes with different resolutions in the distance view field includes:
Determining the relative position relation of each three-dimensional digital sample garment and other digital sample garments and the displacement information of each three-dimensional digital sample garment;
Determining a movement mode and a movement route;
Taking the relative position relation of each three-dimensional digital sample garment and other digital sample garments as constraint conditions, and moving the three-dimensional digital sample garment according to the displacement information of each three-dimensional digital sample garment and a preset movement mode and route, wherein the three-dimensional digital sample garment with different resolutions is arranged in a distance view field, and the method comprises the following steps:
Taking the mannequin model and the three-dimensional digital sample clothes arranged on the mannequin model as meta-nodes;
Forming a metanode array by all metanodes;
translating the metanode.
Optionally, the method further comprises:
determining index information from the second attribute information; the index information is at least one piece of second attribute information;
and establishing an index for the data node based on the index information.
The embodiment of the invention discloses a sample garment simulation device, which comprises:
the receiving unit is used for receiving each sample plate slice of the sample garment;
a marking unit for marking the position of the sample piece on the sample garment and the first attribute information of each boundary line in each sample piece;
a generation unit configured to generate a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
The first construction unit is used for constructing a three-dimensional digital sample garment according to each marked sample plate slice and the data node;
and the second construction unit is used for constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats.
The embodiment of the invention discloses a sample garment simulation method, which comprises the following steps: marking sample fragments of real clothing, and generating data nodes containing numbers of boundary lines matched with the boundary lines of each boundary line; and constructing three-dimensional digital sample clothes according to each marked template fragment and the data node, and constructing three-dimensional digital sample clothes with different resolutions by taking the constructed three-dimensional digital sample clothes as a reference. Therefore, the three-dimensional digital sample garment is obtained by processing the sample of the sample garment of the real garment, the real effect simulation of the sample garment is realized, and the real dressing structure of the sample garment can be reflected. In addition, by generating the three-dimensional digital sample clothes with different resolutions, different dressing effects of the sample clothes are displayed, and the requirements of large-scale events and customization on simulation are met.
Drawings
In order to more clearly illustrate the embodiments of the present invention or the technical solutions in the prior art, the drawings that are required to be used in the embodiments or the description of the prior art will be briefly described below, and it is obvious that the drawings in the following description are only embodiments of the present invention, and that other drawings can be obtained according to the provided drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic flow chart of a simulation method of a sample garment according to an embodiment of the present invention;
FIG. 2 shows a schematic diagram of a sample slice;
FIG. 3 is a flow chart of a method for constructing a three-dimensional digital garment according to an embodiment of the present invention;
FIG. 4 is a flow chart of another method for constructing a three-dimensional digital garment according to an embodiment of the present invention;
FIG. 5 is a flow chart of a method for constructing digital jackets with different resolutions according to an embodiment of the present invention;
FIG. 6 is a schematic illustration of another process of a sample garment simulation method according to the embodiment of the present invention;
FIG. 7 shows a schematic diagram of a data queue;
fig. 8 shows a schematic structural diagram of a device for simulating a sample garment according to an embodiment of the present invention.
Detailed Description
The following description of the embodiments of the present invention will be made clearly and completely with reference to the accompanying drawings, in which it is apparent that the embodiments described are only some embodiments of the present invention, but not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
Referring to fig. 1, a flow chart of a simulation method of a sample garment according to an embodiment of the present invention is shown, and in this embodiment, the method includes:
S101: receiving each sample plate slice of the sample garment;
in this embodiment, the sample plate segments are the parts that form the sample garment, and the sample plate segments that form the sample garment include a front plate, a rear plate, a left plate, a right plate, and the like.
The received template fragments are in the form of pictures, and represent the structures and the shapes of the template fragments.
S102, marking the position of the sample plate slice on the sample coat at each sample plate slice, and first attribute information of each boundary line;
In this embodiment, the location of the template fragment on the sample garment may include: the front, rear, left, right, etc. are marked on the sample plate fragments to indicate which position in the sample garment the sample plate fragments belong to, wherein the specific marking form is not limited, and any form can be used for marking. For example, front, rear, left, and right may be denoted by reference numeral P f,Pb,Pl,Pr, respectively.
In this embodiment, the first attribute information of the boundary line includes:
the type of the boundary line, the position of the start point of the boundary line, the end point position, the length of the boundary line, other boundary lines adjacent to the boundary line, the number of the boundary line.
The boundary line represents a line segment on the boundary of each template segment, and as shown in fig. 2, the line segment Ei is a boundary line.
In this embodiment, the types of boundary lines include: curves and straight lines.
The boundary line type identification method includes a plurality of types, and is not limited in this embodiment, and preferably may include the following methods:
Calculating the length of a line segment of the boundary line;
calculating Euclidean distance between a starting point position and an end point position of the boundary line;
if the length of the boundary line is greater than the Euclidean distance between the starting point position and the end point position of the boundary line, the boundary line is represented as a curve;
And if the length of the boundary line is equal to the Euclidean distance between the starting point position and the ending point position of the boundary line, the boundary line is indicated to be a straight line.
Illustrating: as shown in fig. 2, the line segment Ei (a) Ei (b) is a curve, the length of the curve is LEi, the euclidean distance between the start point Ei (a) and the end point Ei (b) is represented as dei= |r i |= |i Ei (a-Ei (b) |, where LEi > dEi, and the line segment Ei (a) Ei (b) is the curve.
In this embodiment, the other boundary lines adjacent to the boundary line may include: the boundary lines on the left and right sides adjacent to the boundary line are indicated as the left side of the boundary line and the right side of the boundary line.
Illustrating: as shown in fig. 2, the left neighbor of the boundary line Ei is Ei-1, and the right neighbor of the boundary line ei+1.
In this embodiment, the number of the boundary line is identification information uniquely indicating the boundary line. The number information of the boundary line may include the following information: the template fragment to which the boundary line belongs (i.e., the boundary line belongs to the front, rear, left, and right fragments of the template fragment), the serial number in the subordinate template fragment, the type of the boundary line, and the like.
In this embodiment, for the first attribute information of the boundary line, the first attribute information of the boundary line is identified in advance before the template fragment is marked, and after the identification, the identified first attribute information is marked on the template fragment.
S103: generating a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
in this embodiment, the second attribute information includes: a line segment vector of a boundary line, a boundary line type, a boundary line length, a boundary line type adjacent to the boundary line, a length of a boundary line adjacent to the boundary line, and a number of a boundary line matching the boundary line.
In the present embodiment, the line segment vector of the boundary line may represent the direction of the boundary line, for example, as shown in fig. 2, the vector of the boundary line E (i) may be represented as
In the present embodiment, the types of boundary lines include curved lines and straight lines.
The method for identifying the boundary line has been described above, and will not be described in detail in this embodiment.
In this embodiment, the process of determining the number of the boundary line matching the boundary line includes:
Generating an initial data node of each boundary line; the initial data node comprises: a line segment vector of a boundary line, a boundary line type, a boundary line length, a type of a boundary line adjacent to the boundary line, and a length of a boundary line adjacent to the boundary line;
Determining the subordinate relation between each boundary line and each template fragment;
determining a target template fragment corresponding to the template fragment subordinate to the target boundary line; the target boundary line is any boundary line;
searching a target data node matched with the initial data node in the target boundary line in the target template fragment;
and taking the serial number of the boundary line corresponding to the target data node as the serial number of the boundary line matched with the target boundary line.
Illustrating: and for one boundary line on the front piece, representing the boundary line as a target boundary line, wherein the template corresponding to the front piece is divided into a rear piece, searching for a target data node matched with the initial data node of the target boundary line in the initial data nodes of the boundary lines contained in the rear side, and if the target data node is searched, taking the number of the boundary line corresponding to the target data node as the number of the boundary line matched with the target boundary line.
Wherein the two initial data nodes can be matched can be understood as that the information contained in the two initial data nodes is completely consistent.
In this embodiment, the boundary lines corresponding to the two initial data nodes that are matched with each other may be understood as the boundary lines that can be sewn in the garment.
In order to facilitate searching the initial data node, an index of the initial data node is also established, index information is determined from information contained in the initial data node, and the index of the initial data node is established based on at least one index information.
After the data node of the boundary line is generated, establishing index information of the data node of the boundary line, including:
determining index information from the second attribute information; the index information is at least one piece of second attribute information;
and establishing an index for the data node based on the index information.
In addition, to more clearly show the relationships between the data nodes and the respective shards, data queues are established, each data queue including:
the template fragment belongs to the position information of the sample garment, the data nodes corresponding to the respective boundary lines on the template fragment, and the index node of each data node, for example, as shown in fig. 7.
S104: constructing a three-dimensional digital sample garment according to each marked sample plate fragment and the data node;
In this embodiment, the three-dimensional digital garment may be constructed by various methods, and is not limited in this embodiment. Preferably, the method of constructing the table model directly in three-dimensional space and the method of constructing the table model are included, and detailed implementation will be described below, which is not repeated in this embodiment.
S105: and constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats.
In this embodiment, the digital sample garment may be reconstructed by sampling the generated three-dimensional digital sample garment, the densities of the points acquired by different sampling parameters are different, and the points with different densities are re-gridded, so that the digital sample garment with different resolutions may be obtained, and the specific implementation manner will be described in detail below, which is not described in detail in this embodiment.
Wherein the sampling parameters include: sampling step size and offset.
Preferably, the gridded triangular patch angle is no more than + -65 DEG
In this embodiment, a sample fragment of a real garment is marked, and a data node containing a number of a boundary line of each boundary line, which is matched with the boundary line, is generated; and constructing three-dimensional digital sample clothes according to each marked template fragment and the data node, and constructing three-dimensional digital sample clothes with different resolutions by taking the constructed three-dimensional digital sample clothes as a reference. Therefore, the three-dimensional digital sample garment is obtained by processing the sample of the sample garment of the real garment, the real effect simulation of the sample garment is realized, and the real dressing structure of the sample garment can be reflected. In addition, by generating the three-dimensional digital sample clothes with different resolutions, different dressing effects of the sample clothes are displayed, and the requirements of large-scale events and customization on simulation are met.
Referring to fig. 3, a flow chart of a method for constructing a three-dimensional digital sample garment according to an embodiment of the present invention is shown, where the method includes:
s301: marking the positions of the sample plates on the sample clothes according to the sample plate fragments, and distributing the sample plate fragments in a three-dimensional space;
in this embodiment, the marking of the locations of the sample patches on the sample garment includes: front, back, left, right.
And distributing the sample plates at the corresponding positions in the three-dimensional space according to the front, back, left and right positions of the mark.
Illustrating: assuming that the front, back, left and right pieces of clothing are P f,Pb,Pl,Pr respectively, the clothing is transformed by a space transformation matrixThe individual templates being spatially distributed in terms of front, rear, left and right, e.g. rotational translation of front plate P f,/>
S302: determining boundary lines matched with each other according to the data nodes of the boundary lines;
in this embodiment, as can be seen from the above description, the data node of the boundary line includes the number of the boundary line matched with the data node of the boundary line, so the data node matched with the boundary line can be determined by the data node of the boundary line.
S303: and aligning the boundary lines matched with each other, and combining the aligned boundary lines in a grid manner to obtain the three-dimensional digital sample garment.
In this embodiment, the aligned boundary lines are boundary lines that can be used for stitching, and after the aligned boundary lines are grid-combined, a three-dimensional digital sample garment in three-dimensional space is obtained.
In the embodiment, the three-dimensional digital sample garment is obtained by the method, the real effect simulation of the sample garment is realized, and the obtained three-dimensional digital sample garment can reflect the real dressing structure of the garment
Referring to fig. 4, a flow chart of another method for constructing a three-dimensional digital sample garment according to an embodiment of the present invention is shown, the method includes:
s401: obtaining a three-dimensional mannequin model;
S402: and distributing each sample plate slice on the three-dimensional mannequin according to the position of the marked sample plate slice on the sample garment.
S403: determining boundary lines matched with each other according to the data nodes of the boundary lines;
S404: and aligning the boundary lines matched with each other, and combining the aligned boundary lines in a grid manner to obtain the three-dimensional digital sample garment.
In this embodiment, the dressing effect of the sample garment can be more intuitively simulated by performing three-dimensional simulation of the sample garment on the mannequin model.
Referring to fig. 5, a flow chart of a method for constructing digital jackets with different resolutions according to an embodiment of the present invention is shown, in this embodiment, the method includes:
s501: determining a plurality of groups of sampling parameters, wherein the sampling parameters comprise sampling step length and offset;
S502: sampling the three-dimensional digital sample garment according to the multiple groups of sampling parameters to obtain multiple groups of sampling point sets;
wherein, for any set of sampling parameters:
A cross section plane is adopted to vertically intersect with a preset initial position in the three-dimensional digital sample garment, so that a first cross section plane intersection line is obtained;
Sampling the first cross-section plane intersection line according to a sampling step length in the set of sampling parameters;
translating the section plane in a preset direction according to the offset in the set of sampling parameters, and obtaining a second section plane intersection line;
Sampling the intersecting line of the second section plane according to the sampling step length in the set of sampling parameters;
Repeating the steps until the section plane is vertically intersected with a preset end position in the three-dimensional digital sample garment to obtain a third section plane;
Sampling the third section plane according to the sampling step length in the set of sampling parameters;
a set of sampling points is generated that contains all the sampling points.
S503: and (5) gridding the points in each group of sampling point set to obtain three-dimensional digital sample clothes with different resolutions.
In this embodiment, each set of sampling points may obtain a digital sample garment of one resolution.
In the embodiment, the simulation of the facing effect in the large-scale event is realized by generating the three-dimensional digital sample clothes with different resolutions, and different facing effects are reflected in the customizing process.
Referring to fig. 6, the embodiment of the invention also discloses a further flow diagram of a method for simulating a sample garment, and in this embodiment, the method includes:
S601: receiving each sample plate slice of the sample garment;
S602: marking the position of the sample plate fragment on the sample garment and the first attribute information of each boundary line in each sample plate fragment;
s603: generating a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
s604: constructing a three-dimensional digital sample garment according to each marked sample plate fragment and the data node;
S605: and constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats.
S606: three-dimensional digital sample clothes with different resolutions are arranged in a distance view field.
In large-scale events, when the related personnel wear the clothing to enter the field, different effects can be displayed from far to far, and clothing with different resolutions can be distributed in the distance view field in order to simulate the effects.
For example: sequentially and respectively placing the images in a near-to-far distance view field from high resolution to low resolution, and arranging the images according to rows and columns.
In this embodiment, when arranging in different distance visual fields, can remove three-dimensional digital sample clothing, in order to ensure three-dimensional digital sample clothing's stability, can remove digital sample clothing based on following two modes:
Embodiment one:
Determining the relative position relation of each three-dimensional digital sample garment and other digital sample garments and the displacement information of each three-dimensional digital sample garment;
Determining a movement mode and a movement route;
And moving the three-dimensional digital sample clothes according to the displacement information of each three-dimensional digital sample clothes and a preset movement mode and route by taking the relative position relation of each three-dimensional digital sample clothes and other digital sample clothes as a constraint condition.
Illustrating: all three-dimensional digital sample clothes distributed in the distance view field are used as a node, each three-dimensional digital sample clothes is used as a child node, and the dislocation of each node is guaranteed not to occur by restraining the mutual position and displacement relation between each node and the child node.
Embodiment two:
Taking the mannequin model and the three-dimensional digital sample clothes arranged on the mannequin model as meta-nodes;
Forming a metanode array by all metanodes;
translating the metanode.
Illustrating: and taking the 3D human body after dressing as a meta-node. Assuming Nix as the i-th group node, the motion set m skeleton information s of Nix, and garment g, as child nodes of Nix, denoted as { nix| (mx, sx, gx, ax) }, the i-th group is set to have n meta-nodes, and group i denoted as Mi can be represented by the meta-node array:
Wherein, the translation matrix is denoted as a, and the group i translation displacement can be expressed as: m' i=AMi.
In order to more intuitively simulate the real conditions of the sample clothes in the fields of view with different distances, the generated three-dimensional digital sample clothes with different resolutions are distributed in the fields of view with different distances, so that the effect that the sample clothes are positioned at different distances is more intuitively shown.
Referring to fig. 8, a schematic structural diagram of a sample garment simulation device according to an embodiment of the present invention is shown, where in this embodiment, the device includes:
A receiving unit 801 for receiving each template fragment of a sample garment;
A marking unit 802, configured to mark, in each sample fragment, a position of the sample fragment on the sample garment and first attribute information of each boundary line;
A generation unit 803 for generating a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
A first construction unit 804, configured to construct a three-dimensional digital garment according to each marked template fragment and the data node;
and a second construction unit 805, configured to construct digital jackets with different resolutions based on the constructed three-dimensional digital jackets.
Optionally, the first attribute information of each boundary line includes:
the type of the boundary line, the position of the start point of the boundary line, the end point position, the length of the boundary line, other boundary lines adjacent to the boundary line, the number of the boundary line.
Optionally, the second attribute information of each boundary line included in the data node includes:
a line segment vector of a boundary line, a boundary line type, a boundary line length, a boundary line type adjacent to the boundary line, a length of a boundary line adjacent to the boundary line, and a number of a boundary line matching the boundary line.
Optionally, a boundary line recognition unit for
Calculating the length of the line segment of the boundary line;
calculating Euclidean distance between a starting point position and an end point position of the boundary line;
If the length of the line segment of the boundary line is greater than the Euclidean distance between the starting point position and the end point position of the boundary line, the boundary line is represented as a curve;
And if the length of the boundary line is equal to the Euclidean distance between the starting point position and the ending point position of the boundary line, the boundary line is indicated to be a straight line.
Optionally, the method further comprises: inter-plate matching unit for
Generating an initial data node of each boundary line; the initial data node comprises: a line segment vector of a boundary line, a boundary line type, a boundary line length, a type of a boundary line adjacent to the boundary line, and a length of a boundary line adjacent to the boundary line;
Determining the subordinate relation between each boundary line and each template fragment;
determining a target template fragment corresponding to the template fragment subordinate to the target boundary line; the target boundary line is any boundary line;
searching a target data node matched with the initial data node in the target boundary line in the target template fragment;
and taking the serial number of the boundary line corresponding to the target data node as the serial number of the boundary line matched with the target boundary line.
Optionally, the first building unit includes:
The first distribution subunit is used for distributing each sample plate fragment in a three-dimensional space according to the positions of the sample plate fragments on the sample clothes marked by the sample plate fragments;
a first determining subunit, configured to determine boundary lines that are matched with each other according to the data nodes of the boundary lines;
and the merging subunit is used for aligning the boundary lines which are matched with each other and carrying out grid merging on the aligned boundary lines to obtain the three-dimensional digital sample garment.
Optionally, the first distribution subunit includes:
The acquisition subunit is used for acquiring the three-dimensional mannequin model;
and the second distribution subunit is used for distributing each sample plate slice on the three-dimensional mannequin according to the position of the marked sample plate slice on the sample garment.
Optionally, the second building unit includes:
A sampling parameter determining subunit, configured to determine a plurality of groups of sampling parameters, where the sampling parameters include a sampling step size and an offset;
the sampling subunit is used for sampling the three-dimensional digital sample clothes according to the multiple groups of sampling parameters to obtain multiple groups of sampling point sets;
And the recombination subunit is used for gridding the points in each group of sampling point set to obtain three-dimensional digital sample clothes with different resolutions.
Optionally, the sampling subunit is configured to:
For any one set of sampling parameters:
A cross section plane is adopted to vertically intersect with a preset initial position in the three-dimensional digital sample garment, so that a first cross section plane intersection line is obtained;
Sampling the first cross-section plane intersection line according to a sampling step length in the set of sampling parameters;
translating the section plane in a preset direction according to the offset in the set of sampling parameters, and obtaining a second section plane intersection line;
Sampling the intersecting line of the second section plane according to the sampling step length in the set of sampling parameters;
Repeating the steps until the section plane is vertically intersected with a preset end position in the three-dimensional digital sample garment to obtain a third section plane;
Sampling the third section plane according to the sampling step length in the set of sampling parameters;
a set of sampling points is generated that contains all the sampling points.
Optionally, the method further comprises:
And the distance view field simulation unit is used for arranging the three-dimensional digital sample clothes with different resolutions in the distance view field.
Optionally, the distance field simulation unit includes:
A second determining subunit, configured to determine a relative positional relationship between each three-dimensional digital garment and other digital garments and displacement information of each three-dimensional digital garment;
A third determination subunit configured to determine a movement pattern and a movement route;
A first moving subunit, configured to move each three-dimensional digital sample garment according to the displacement information of each three-dimensional digital sample garment and a preset movement pattern and route by using the relative positional relationship between the three-dimensional digital sample garment and other digital sample garments as constraint conditions
Optionally, the distance field simulation unit includes:
the metanode determining subunit is used for taking the mannequin model and the three-dimensional digital sample garment arranged on the mannequin model as metanodes;
A node array determining subunit, configured to form a meta node array from all meta nodes;
and a second mobile subunit configured to translate the metanode.
Optionally, the method further comprises: index unit for
Determining index information from the second attribute information; the index information is at least one piece of second attribute information;
and establishing an index for the data node based on the index information.
By the device of the embodiment, the sample of the sample garment of the real garment is processed, so that the three-dimensional digital sample garment is obtained, the real effect simulation of the sample garment is realized, and the real dressing structure of the sample garment can be reflected. In addition, by generating the three-dimensional digital sample clothes with different resolutions, different dressing effects of the sample clothes are displayed, and the requirements of large-scale events and customization on simulation are met.
It should be noted that, in the present specification, each embodiment is described in a progressive manner, and each embodiment is mainly described as different from other embodiments, and identical and similar parts between the embodiments are all enough to be referred to each other.
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.

Claims (12)

1. A method of simulating a sample garment, comprising:
Receiving each sample plate slice of the sample garment;
marking the position of the sample plate fragment on the sample garment and the first attribute information of each boundary line in each sample plate fragment;
Generating a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
constructing a three-dimensional digital sample garment according to each marked sample plate fragment and the data node;
Constructing digital sample coats with different resolutions by taking the constructed three-dimensional digital sample coats as references;
wherein said constructing a three-dimensional digital hierarchy from each template fragment marked and said data nodes comprises:
Marking the positions of the sample plates on the sample clothes according to the sample plate fragments, and distributing the sample plate fragments in a three-dimensional space;
Determining boundary lines matched with each other according to the data nodes of the boundary lines;
Aligning the boundary lines matched with each other, and carrying out grid combination on the aligned boundary lines to obtain a three-dimensional digital sample garment;
wherein, according to the position of the template fragment on the sample garment marked by the template fragment, each template fragment is distributed in a three-dimensional space, and the method comprises the following steps:
Obtaining a three-dimensional mannequin model;
And distributing each sample plate slice on the three-dimensional mannequin according to the position of the marked sample plate slice on the sample garment.
2. The method of claim 1, wherein the first attribute information of each boundary line comprises:
the type of the boundary line, the position of the start point of the boundary line, the end point position, the length of the boundary line, other boundary lines adjacent to the boundary line, the number of the boundary line.
3. The method according to claim 1, wherein the second attribute information of each boundary line included in the data node includes:
a line segment vector of a boundary line, a boundary line type, a boundary line length, a boundary line type adjacent to the boundary line, a length of a boundary line adjacent to the boundary line, and a number of a boundary line matching the boundary line.
4. A method according to claim 2 or 3, characterized in that the recognition procedure of the boundary line type comprises:
Calculating the length of the line segment of the boundary line;
calculating Euclidean distance between a starting point position and an end point position of the boundary line;
If the length of the line segment of the boundary line is greater than the Euclidean distance between the starting point position and the end point position of the boundary line, the boundary line is represented as a curve;
And if the length of the boundary line is equal to the Euclidean distance between the starting point position and the ending point position of the boundary line, the boundary line is indicated to be a straight line.
5. A method according to claim 3, wherein said determining the number of boundary lines matching said boundary lines comprises:
Generating an initial data node of each boundary line; the initial data node comprises: a line segment vector of a boundary line, a boundary line type, a boundary line length, a type of a boundary line adjacent to the boundary line, and a length of a boundary line adjacent to the boundary line;
Determining the subordinate relation between each boundary line and each template fragment;
determining a target template fragment corresponding to the template fragment from which the target boundary line depends; the target boundary line is any boundary line;
searching a target data node matched with the initial data node in the target boundary line in the target template fragment;
and taking the serial number of the boundary line corresponding to the target data node as the serial number of the boundary line matched with the target boundary line.
6. The method of claim 1, wherein constructing digital jackets of different resolutions based on the constructed three-dimensional digital jackets comprises:
determining a plurality of groups of sampling parameters, wherein the sampling parameters comprise sampling step length and offset;
Sampling the three-dimensional digital sample garment according to the multiple groups of sampling parameters to obtain multiple groups of sampling point sets;
And (5) gridding the points in each group of sampling point set to obtain three-dimensional digital sample clothes with different resolutions.
7. The method of claim 6, wherein sampling the three-dimensional digital sample garment according to the plurality of sets of sampling parameters to obtain a plurality of sets of sampling points, comprising:
For any one set of sampling parameters:
A cross section plane is adopted to vertically intersect with a preset initial position in the three-dimensional digital sample garment, so that a first cross section plane intersection line is obtained;
Sampling the first cross-section plane intersection line according to a sampling step length in the set of sampling parameters;
translating the section plane in a preset direction according to the offset in the set of sampling parameters, and obtaining a second section plane intersection line;
Sampling the intersecting line of the second section plane according to the sampling step length in the set of sampling parameters;
Repeating the steps until the section plane is vertically intersected with a preset end position in the three-dimensional digital sample garment to obtain a third section plane;
Sampling the third section plane according to the sampling step length in the set of sampling parameters;
a set of sampling points is generated that contains all the sampling points.
8. The method according to claim 1 or 5, further comprising:
three-dimensional digital sample clothes with different resolutions are arranged in a distance view field.
9. The method of claim 8, wherein arranging the three-dimensional digital swatches of different resolutions in the range field of view comprises:
Determining the relative position relation of each three-dimensional digital sample garment and other digital sample garments and the displacement information of each three-dimensional digital sample garment;
Determining a movement mode and a movement route;
And moving the three-dimensional digital sample clothes according to the displacement information of each three-dimensional digital sample clothes and a preset movement mode and route by taking the relative position relation of each three-dimensional digital sample clothes and other digital sample clothes as a constraint condition.
10. The method of claim 8, wherein arranging the different resolution three-dimensional digital swatches in a range view comprises:
Taking the mannequin model and the three-dimensional digital sample clothes arranged on the mannequin model as meta-nodes;
Forming a metanode array by all metanodes;
translating the metanode.
11. The method as recited in claim 1, further comprising:
determining index information from the second attribute information; the index information is at least one piece of second attribute information;
and establishing an index for the data node based on the index information.
12. A garment-like simulation apparatus, comprising:
the receiving unit is used for receiving each sample plate slice of the sample garment;
a marking unit for marking the position of the sample piece on the sample garment and the first attribute information of each boundary line in each sample piece;
a generation unit configured to generate a data node containing second attribute information of each boundary line; the second attribute information includes at least: a number of a boundary line matching the boundary line;
The first construction unit is used for constructing a three-dimensional digital sample garment according to each marked sample plate slice and the data node;
The second construction unit is used for constructing digital sample coats with different resolutions based on the constructed three-dimensional digital sample coats;
wherein said constructing a three-dimensional digital hierarchy from each template fragment marked and said data nodes comprises:
Marking the positions of the sample plates on the sample clothes according to the sample plate fragments, and distributing the sample plate fragments in a three-dimensional space;
Determining boundary lines matched with each other according to the data nodes of the boundary lines;
Aligning the boundary lines matched with each other, and carrying out grid combination on the aligned boundary lines to obtain a three-dimensional digital sample garment;
wherein, according to the position of the template fragment on the sample garment marked by the template fragment, each template fragment is distributed in a three-dimensional space, and the method comprises the following steps:
Obtaining a three-dimensional mannequin model;
And distributing each sample plate slice on the three-dimensional mannequin according to the position of the marked sample plate slice on the sample garment.
CN202011609455.5A 2020-12-25 2020-12-30 Sample garment simulation method and device Active CN112700549B (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011563338X 2020-12-25
CN202011563338 2020-12-25

Publications (2)

Publication Number Publication Date
CN112700549A CN112700549A (en) 2021-04-23
CN112700549B true CN112700549B (en) 2024-05-03

Family

ID=75512495

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011609455.5A Active CN112700549B (en) 2020-12-25 2020-12-30 Sample garment simulation method and device

Country Status (1)

Country Link
CN (1) CN112700549B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123753A (en) * 2014-08-13 2014-10-29 中山大学 Three-dimensional virtual fitting method based on garment pictures
WO2020237759A1 (en) * 2019-05-24 2020-12-03 万维数码有限公司 System and method for effectively representing and coding image

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7426302B2 (en) * 2003-11-28 2008-09-16 John Amico System and method for digitizing a pattern
US10127717B2 (en) * 2016-02-16 2018-11-13 Ohzone, Inc. System for 3D Clothing Model Creation

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104123753A (en) * 2014-08-13 2014-10-29 中山大学 Three-dimensional virtual fitting method based on garment pictures
WO2020237759A1 (en) * 2019-05-24 2020-12-03 万维数码有限公司 System and method for effectively representing and coding image

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
适于网络试穿的快速三维服装仿真方法;刘赏;;计算机工程与应用(08);第4节,图3-图6 *

Also Published As

Publication number Publication date
CN112700549A (en) 2021-04-23

Similar Documents

Publication Publication Date Title
CN106127771B (en) Tunnel orthography system and method is obtained based on laser radar LIDAR point cloud datas
US9942535B2 (en) Method for 3D scene structure modeling and camera registration from single image
CN111243090B (en) Earthwork volume calculating method and system
Grün et al. Photogrammetric reconstruction of the great Buddha of Bamiyan, Afghanistan
CN102880741B (en) Method for generating garment body prototype model based on personalized three-dimensional virtual dress form
CN109003325A (en) A kind of method of three-dimensional reconstruction, medium, device and calculate equipment
CN103606188B (en) Geography information based on imaging point cloud acquisition method as required
KR20080069579A (en) Method and system for visualising virtual three-dimensional objects
CN101398942A (en) Three-dimensional fitting emulation system
CN108154104A (en) A kind of estimation method of human posture based on depth image super-pixel union feature
CN112712592B (en) Building three-dimensional model semantization method
CN109035401A (en) City three-dimensional scenic automatic modeling system based on inclined camera photography
CN107631700B (en) The three-dimensional vision information method that spatial digitizer is combined with total station
CN103093498A (en) Three-dimensional human face automatic standardization method
CN101286241A (en) Three-dimensional architecture rapid modelling approach based on stereopair
KR100417638B1 (en) Digital Photogrammetric Manufacturing System using General PC
CN108154531A (en) A kind of method and apparatus for calculating body-surface rauma region area
CN109035400A (en) A method of urban planning is established using oblique photograph
CN109345581A (en) Augmented reality method, apparatus and system based on more mesh cameras
CN103345774B (en) A kind of modeling method of three-dimensional multi-scale vector quantization
CN101216938B (en) An automatic positioning method of multi-sequence images
CN108010122A (en) A kind of human 3d model rebuilds the method and system with measurement
CN109655011A (en) A kind of method and system of Human Modeling dimension measurement
CN108230442A (en) A kind of shield tunnel three-dimensional emulation method
CN108711356A (en) Geography target and symbol figure method for registering in vectorial geographical PDF cartographies

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