CN116932796A - Method and system for light-weight processing of three-dimensional digital clothing model - Google Patents

Method and system for light-weight processing of three-dimensional digital clothing model Download PDF

Info

Publication number
CN116932796A
CN116932796A CN202310989904.0A CN202310989904A CN116932796A CN 116932796 A CN116932796 A CN 116932796A CN 202310989904 A CN202310989904 A CN 202310989904A CN 116932796 A CN116932796 A CN 116932796A
Authority
CN
China
Prior art keywords
vertex
index
dimensional
dimensional coordinate
clothing
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202310989904.0A
Other languages
Chinese (zh)
Inventor
苏明华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Yushen Beijing Technology Co ltd
Original Assignee
Yushen Beijing Technology Co ltd
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 Yushen Beijing Technology Co ltd filed Critical Yushen Beijing Technology Co ltd
Priority to CN202310989904.0A priority Critical patent/CN116932796A/en
Publication of CN116932796A publication Critical patent/CN116932796A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/51Indexing; Data structures therefor; Storage structures
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/58Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually
    • G06F16/5866Retrieval characterised by using metadata, e.g. metadata not derived from the content or metadata generated manually using information manually generated, e.g. tags, keywords, comments, manually generated location and time information
    • 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
    • G06T17/205Re-meshing
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02PCLIMATE CHANGE MITIGATION TECHNOLOGIES IN THE PRODUCTION OR PROCESSING OF GOODS
    • Y02P90/00Enabling technologies with a potential contribution to greenhouse gas [GHG] emissions mitigation
    • Y02P90/30Computing systems specially adapted for manufacturing

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • General Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Library & Information Science (AREA)
  • Computer Graphics (AREA)
  • Geometry (AREA)
  • Image Generation (AREA)

Abstract

The application discloses a method for light-weight treatment of a three-dimensional digital clothing model, which comprises the following steps: acquiring a clothing model OBJ file, wherein the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface; and simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the three-dimensional coordinate index of the vertex and/or the two-dimensional coordinate index of the texture and/or the normal vector index. According to the application, under the condition that the three-dimensional digital model of the clothing has the same inter-particle distance, the size of an OBJ file of the clothing model is greatly reduced, the data transmission time and loading time of the clothing model are greatly shortened, the storage, transmission and calculation cost is greatly reduced on the premise that the visual fidelity of the clothing model is maintained and the existing VR engine, related technical system and standard are conveniently utilized, the subsequent calculation force requirement is exponentially reduced, and the use experience of a user is improved.

Description

Method and system for light-weight processing of three-dimensional digital clothing model
Technical Field
The application relates to the technical field of digital clothing. More particularly, the application relates to a method and system for lightweight processing of three-dimensional digitized garment models.
Background
The three-dimensional digital clothing refers to a clothing virtual model obtained by performing three-dimensional simulation on real clothing by using digital means such as computer technology and the like. The three-dimensional digital clothing does not need actual production, and a user can see the final finished product modeling effect of the clothing through the clothing virtual model, so that the production and manufacturing cost and time are saved, the user consumption experience is improved, and meanwhile, the method is the basis for manufacturing the clothing MBD (Model Based Definition). In view of the great market value of this technology, more and more clothing enterprises are involved in the development and use of this technology.
The existing three-dimensional design software of the clothing has PADSystem, CDI-U4Ia, 3DMax, maya, CLO 3D, style3D, VStitcher, optitex and the like, and the software has powerful clothing modeling and displaying functions. The data format obtained after the three-dimensional digital clothing model is designed by three-dimensional design software is generally in a used OBJ format, the data capacity of the existing clothing OBJ format is large, the simple T-shirt model capable of achieving a smoother display effect has more than ten MB, and the data capacity is multiplied along with the increase of the complexity of the clothing model, so that great difficulty is brought to the data storage, data transmission, loading, subsequent calculation and visualization of the three-dimensional digital clothing model.
Disclosure of Invention
It is an object of the present application to solve at least the above problems and to provide at least the advantages to be described later.
To achieve these objects and other advantages and in accordance with the purpose of the application, there is provided a method of lightweight processing of a three-dimensional digitized garment model, comprising:
acquiring a clothing model OBJ file, wherein the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, and the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, wherein the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are the same;
and simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the three-dimensional coordinate index of the vertex and/or the two-dimensional coordinate index of the texture and/or the normal vector index.
Preferably, the method further comprises:
and (3) keeping the precision of the vertex three-dimensional coordinate data, the texture two-dimensional coordinate data and the normal vector coordinate data in the clothing model OBJ file to one or two or three or four positions after the decimal point.
Preferably, the texture two-dimensional coordinate data of the object file of the garment model is obtained according to a method for digital two-dimensional subdivision of the garment cut piece, wherein an edge triangular subdivision point takes an intersection point of a two-dimensional graph edge contour line of the garment cut piece and a grid line, and the precision of the coordinate data of the edge triangular subdivision point is reserved to one or two or three or four positions after the decimal point.
The application also provides a system for light-weight processing of the three-dimensional digital clothing model, which comprises:
the device comprises a file acquisition module, a processing module and a processing module, wherein the file acquisition module is used for acquiring a clothing model OBJ file, the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, and the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are all the same;
the light weight module is used for simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the vertex three-dimensional coordinate index and/or texture two-dimensional coordinate index and/or normal vector index of the vertex.
The present application also provides an electronic device including: the system comprises at least one processor and a memory in communication with the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the method of lightweight processing of the three-dimensional digitized garment model described above.
The application also provides a storage medium, on which a computer program is stored, which when being executed by a processor, realizes the method for the light-weight processing of the three-dimensional digital clothing model.
The application at least comprises the following beneficial effects: according to the application, the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index contained in the face coordinates in the original clothing model OBJ file are simplified into the vertex indexes, so that the size of the clothing model OBJ file is greatly reduced under the condition that the particle spacing of the clothing three-dimensional digital model is the same, the data transmission time and the loading time of the clothing model are greatly shortened, the storage, transmission and calculation cost is greatly reduced on the premise that the visual fidelity of the clothing model is maintained and the existing VR engine and related technical system and standard are conveniently utilized, the subsequent calculation force requirement is exponentially reduced, and the use experience of a user is improved. In addition, along with continuous advancement of digitization and individuation in the clothing industry, data storage and transmission quantity are exponentially increased, and the method for processing the clothing model OBJ file reduces mass data storage, transmission and calculation cost.
Additional advantages, objects, and features of the application will be set forth in part in the description which follows and in part will become apparent to those having ordinary skill in the art upon examination of the following or may be learned from practice of the application.
Drawings
FIG. 1 is a flow chart of a method for lightweight processing of a three-dimensional digitized garment model according to an embodiment;
FIG. 2 is a three-dimensional schematic diagram of a T-shirt three-dimensional digitized garment model according to an embodiment of the application;
FIG. 3 is a three-dimensional schematic view of a T-shirt three-dimensional digitized garment model according to an embodiment of the application;
FIG. 4 is a schematic diagram of the data capacity of a three-dimensional digitized garment model of a T-shirt according to an example;
fig. 5 is a schematic structural diagram of a system for lightweight processing of a three-dimensional digitized garment model according to an embodiment.
Detailed Description
The present application is described in further detail below with reference to the drawings to enable those skilled in the art to practice the application by referring to the description.
It should be noted that the experimental methods described in the following embodiments, unless otherwise specified, are all conventional methods, and the reagents and materials, unless otherwise specified, are all commercially available; in the description of the present application, the terms "transverse", "longitudinal", "upper", "lower", "front", "rear", "left", "right", "vertical", "horizontal", "top", "bottom", "inner", "outer", etc. indicate orientations or positional relationships based on the orientations or positional relationships shown in the drawings, are merely for convenience in describing the present application and simplifying the description, and do not indicate or imply that the devices or elements referred to must have a specific orientation, be configured and operated in a specific orientation, and thus are not to be construed as limiting the present application.
In order to facilitate understanding of the present application, an OBJ file will be explained below.
The OBJ file is a standard 3D model file format developed by Alias/Wavefront company for a set of workstation-based 3D modeling and animation software "Advanced Visualizer", and is well suited for use in the mutual conductance between 3D software models, and almost all well-known 3D software supports the reading and writing of OBJ files.
The OBJ File does not need any kind of File Header (File Header), although a comment of several lines of File information is often used as the beginning of the File. An OBJ file is made up of a line of text, with the annotation line beginning with the symbol "#", and spaces and blank lines can be added to the file at will to increase the readability of the file. The rows with words are all started by a two-letter label, i.e. a Keyword (Keyword), which can describe what the data is for this row. Multiple rows may be logically connected together to represent a row by adding a connector (\) last to each row. Note that a space or Tab cannot appear after the connector (\) otherwise the file will be corrupted.
The following keywords may be used in OBJ files.
Vertex data (Vertex data):
v geometric vertex (Geometric vertices)
vt Texture coordinate points (Texture plastics)
vn Vertex normal vector (Vertex normal)
vp parameter space vertex (Parameter space vertices)
Free-form curve/surface properties (surface attributes): deg Degree (Degree)
bmat base matrix (basic matrix)
Step size (Step size)
cstype curve or surface type (Curve or surface type)
Element (Elements):
point (Point)
l Line (Line)
f surface (Face)
Curv Curve (Curve)
Curv2 2D curve (2D Curve)
Surface (Surface)
Free-form curve/surface subject statement (surface body statements): parm Parameter value (parameters values)
trim external trimming cycle (Outer trimming loop)
hole internal trimming cycle (Inner trimming loop)
Special curve of scrv (Special cure)
sp Special point (Special point)
End statement (End state)
Connection between freeform surfaces (Connectivity between free-form surfaces):
con connection (Connect)
Grouping (Grouping):
group g name (Group name)
s smooth group (smoothening group)
mg merger group (merger group)
o Object name (Object name)
Display/render attribute (render attributes):
bevel lead angle interpolation (Bevel interpolation)
c_interpolation color interpolation (Color interpolation)
d_interp dissolution interpolation (Dissolve interpolation)
Level of detail (Level of detail)
usemll Material name (Material name)
mtllib library (Material library)
shadow_obj casts Shadow (Shadow casting)
trace_obj Ray tracing (Ray tracing)
ctech curve approximation technique (Curve approximation technique)
stech surface approximation technique (Surface approximation technique)
The index inside the OBJ may be positive or negative, and the positive index refers to the absolute index of the vertex, and the negative index (e.g., f-a-b-c) indicates the a, b, c-th vertex from the position of the surface, and the same is true for the indexes vn and vt.
The OBJ file does not contain color definition information of the face, but may refer to a texture library, and the texture library information is stored in an independent file with the suffix ". Mtl". The keyword "mtllib" means a library of materials.
The texture library includes the definition of RGB (red, green, blue) of the texture, ambient (ambient), gloss (feature), and other features such as reflectance (refraction), transparency (transparency).
After "usemtl" designates a material, the latter is used until the next "usemtl" is encountered to designate a new material.
The following describes a method for light-weight processing of a three-dimensional digital clothing model according to an embodiment of the present application, as shown in fig. 1, the method includes:
s1, acquiring a clothing model OBJ file, wherein the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, and the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, wherein the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are the same;
as can be seen from the foregoing description of the OBJ format file, the OBJ format file includes v vertex three-dimensional coordinates, vt texture two-dimensional coordinates, vn normal vector coordinates, and f plane coordinates, and the plane coordinates f are indexed by vertex three-dimensional coordinates including vertices on the plane, texture two-dimensional coordinates, and normal vector coordinates. In the clothing field, because the two-dimensional characteristics of the clothing component members cause that the adjacent sides of the adjacent surfaces in the clothing three-dimensional model can only be infinitely close to each other but not coincide with each other, the situation that the adjacent surfaces share the vertexes does not exist, and then the number of vertexes of each surface in the three-dimensional situation is the same as that of the vertexes of each surface in the two-dimensional situation, so that the three-dimensional coordinate index of the vertexes, the two-dimensional coordinate index of the textures and the coordinate index of the normal vector on each vertex in the surface coordinates can be represented by the same index value.
Such as: an OBJ format file of a three-dimensional digital garment model of a T-shirt:
#OBJ Exporter v1.2 by Jaden Seungwoo Oh at CLO Virtual Fashion Inc.
mtllib t_shirt_obj_5.mtl
v 72.266159 1582.645752 -58.099304
v 71.399223 1580.163208 -53.739433
v 70.532295 1577.680542 -49.379562
v 69.665359 1575.197998 -45.019691
v 68.581902 1572.542358 -40.809998
v 67.137581 1569.598633 -36.850655
v 65.693260 1566.655029 -32.891315
v 64.248940 1563.711182 -28.931971
……
vt-93.149109 8.000000
vt-98.133636 8.000000
vt-103.118164 8.000000
vt-108.102692 8.000000
vt-113.087234 8.000000
vt-118.071762 8.000000
vt-123.056290 8.000000
vt-128.040817 8.000000
vt-133.025345 8.000000
vt-138.009888 8.000000
vt-142.994415 8.000000
vt-147.978943 8.000000
……
vn 0.583144 0.770260 0.258153vn 0.545398 0.677265 0.493814vn 0.544334 0.677832 0.494210vn 0.531935 0.672318 0.514815vn 0.481093 0.658783 0.578406vn 0.410610 0.658694 0.630493vn 0.395691 0.662013 0.636528vn 0.382974 0.674236 0.631456vn 0.304325 0.722729 0.620524
……
s 1
usemtl Default_Fabric_FRONT_14690f 33/33/33 34/34/34 35/35/35f 125/125/125 108/108/108 86/86/86f 37/37/37 93/93/93 36/36/36f 37/37/37 94/94/94 93/93/93f 92/92/92 112/112/112 91/91/91f 35/35/35 36/36/36 80/80/80
f 38/38/38 39/39/39 95/95/95
f 40/40/40 131/131/131 39/39/39
f 40/40/40 41/41/41 96/96/96
f 129/129/129 128/128/128 96/96/96
f 151/151/151 26/26/26 27/27/27
……
in the OBJ format file described above: the specific numerical value of the v suffix represents the three-dimensional coordinate of the vertex under the three-dimensional condition, the coordinate values are separated by a space, and the number of rows where v is positioned in all v data is the three-dimensional coordinate index of the vertex; the specific numerical value of the vt suffix represents the texture two-dimensional coordinate of the vertex under the two-dimensional condition, the coordinate values are separated by a space, and the number of lines where the vt is positioned in all vt is the texture two-dimensional coordinate index; the specific numerical value of the vn suffix represents the normal vector coordinate of the vertex under the three-dimensional condition, the coordinate values are separated by a space, and the number of lines where vn is positioned in all vn data is the normal vector coordinate index; the specific numerical value a/a/a b/b/b c/c of the suffix f represents vertex information of three vertexes of the triangular unit surface, the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector coordinate index of the first vertex are all a, the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector coordinate index of the second vertex are all b, and the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector coordinate index of the third vertex are all c.
The visual modeling of the T-shirt after the three-dimensional digital clothing model is loaded is shown in figure 2.
S2, simplifying information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into an index of each vertex, wherein the index of each vertex is a vertex three-dimensional coordinate index and/or a texture two-dimensional coordinate index and/or a normal vector index of the vertex.
As can be seen from step S1, because of the specificity of the clothing industry, in the OBJ file of the three-dimensional digitized clothing model, the three-dimensional coordinate index of the vertex, the two-dimensional coordinate index of the texture, and the coordinate index of the normal vector on each vertex in the face coordinates are all represented by the same index value, so the three-dimensional coordinate index of the vertex, the two-dimensional coordinate index of the texture, and the coordinate index of the normal vector can be represented by completely using the indices of the vertex, as the above-mentioned face coordinate f can be represented as:
f 33 34 35
f 125 108 86
f 37 93 36
f 37 94 93
f 92 112 91
f 35 36 80
f 38 39 95
f 40 131 39
f 40 41 96
f 129 128 96
f 151 26 27
……
according to the embodiment, the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index contained in the face coordinates in the original clothing model OBJ file are simplified to be vertex indexes, the size of the clothing model OBJ file is greatly reduced under the condition that the particle spacing of the clothing three-dimensional digital model is the same, the data transmission time and the loading time of the clothing model are greatly shortened, the storage, transmission and calculation cost is greatly reduced on the premise that the visual fidelity of the clothing model is maintained and the existing VR engine, related technical system and standard are conveniently utilized, the subsequent calculation force requirement is exponentially reduced, and the use experience of a user is improved.
In another embodiment, the method further comprises:
and (3) keeping the precision of the vertex three-dimensional coordinate data, the texture two-dimensional coordinate data and the normal vector coordinate data in the clothing model OBJ file to one or two or three or four positions after the decimal point.
In the existing garment model OBJ file, the precision of vertex three-dimensional coordinate data, texture two-dimensional coordinate data and normal vector coordinate data is high, so that the data capacity is large, but at the user angle, the user does not need to observe such fine model nodes, and the user is more conscious of the overall modeling of the garment, so that the model precision can be properly reduced completely. The data capacity is reduced while preserving user visual fidelity.
For example, in the OBJ format file of the three-dimensional digitized garment model of the T-shirt in the above embodiment, the precision of the three-dimensional coordinate data of the vertex, the two-dimensional coordinate data of the texture and the normal vector coordinate data is reduced from six bits after the original decimal point to one bit after the decimal point (of course, two bits, three bits or four bits after the decimal point can be reserved under the requirement of higher precision), and a rounding processing mode is adopted. Specifically, the code can be used for automatic processing, and the specific numerical value of the v suffix represents the three-dimensional coordinates of the vertex under the three-dimensional condition, and the coordinate values are separated by spaces, so that v data in the OBJ file can be traversed, and rounding processing for reserving corresponding digits is performed on each coordinate value according to the requirement. The same processing is also adopted for vt data and vn data.
The treatment is as follows:
v 72.3 1582.6 -58.1v 71.4 1580.2 -53.7v 70.5 1577.7 -49.4v 69.7 1575.2 -45.0v 68.6 1572.5 -40.8v 67.1 1569.6 -36.9v 65.7 1566.7 -32.9v 64.2 1563.7 -28.9……
……
vt-93.1 8.0vt-98.1 8.0vt-103.1 8.0vt-108.1 8.0vt-113.1 8.0vt-118.1 8.0vt-123.1 8.0vt-128.0 8.0vt-133.0 8.0vt-138.0 8.0vt-143.0 8.0vt-148.0 8.0
……
vn 0.6 0.8 0.3vn 0.5 0.7 0.5vn 0.5 0.7 0.5vn 0.5 0.7 0.5vn 0.5 0.7 0.6
vn 0.4 0.7 0.6
vn 0.4 0.7 0.6
vn 0.4 0.7 0.6
vn 0.3 0.7 0.6
……
the visual modeling of the T-shirt after the three-dimensional digital clothing model is loaded is shown in figure 3.
As can be readily seen from fig. 2-4, the visual appearance of the three-dimensional digitized garment model is substantially unchanged, while the data capacity is reduced from the original 10.9M to 5.36M.
In another embodiment, the texture two-dimensional coordinate data of the OBJ file of the garment model is obtained according to a method of digitized two-dimensional subdivision of a garment cut, wherein an edge triangle subdivision point takes the intersection point of the two-dimensional graph edge contour line of the garment cut and a grid line, and the precision of the coordinate data of the edge triangle subdivision point is reserved to one or two or three or four after a decimal point.
Since the texture two-dimensional coordinates of the garment model OBJ file are actually two-dimensional coordinates of vertices on the three-dimensional molding surface after two-dimensional expansion. The clothing manufacturing process is to manufacture clothing cut pieces firstly and stitch the clothing into an integral clothing, so that the clothing cut pieces can be digitalized firstly and then subjected to two-dimensional subdivision.
Specifically, a method for digitally dividing a garment cut into two dimensions is described in the patent application No. 202211286979.4 of the present prior application.
The prior patent adopts the following strategies about the selection of the triangular edge splitting points:
the edge triangulation points include, of course, edge triangulation points and estimated edge triangulation points:
firstly taking the triangular dividing points of the edge: taking grid nodes overlapped with the edge scattered points as the triangular dividing points of the edge;
then taking the estimated edge triangular splitting point: and if at least one grid node of the single grid is on the cut piece and four grid nodes are not on the cut piece at the same time, finding out the average position points of all edge scattered points in the grid, and taking one grid node with the minimum distance from the average position points as an estimated edge triangular splitting point.
However, for the estimated edge triangle split point, the mesh node is selected in view of the efficiency of the split calculation. However, when the garment modeling simulation of some special fabrics is performed, high-precision cut piece edge data is required, so that grid nodes are not selected any more, but real intersection points of two-dimensional graph edge contour lines of the garment cut pieces and grid lines are selected, and the precision of coordinate data of an edge triangular splitting point can be reserved to one, two, three or four after a decimal point in view of data capacity.
Based on the same inventive concept, the application also provides a system for the light-weight treatment of the three-dimensional digital clothing model, wherein the system for the light-weight treatment of the three-dimensional digital clothing model can be a personal computer, a server or other systems for realizing the method for the light-weight treatment of the three-dimensional digital clothing model.
Referring to fig. 5, an embodiment of the present application further provides a system for lightweight processing of a three-dimensional digitized garment model, including:
the device comprises a file acquisition module, a processing module and a processing module, wherein the file acquisition module is used for acquiring a clothing model OBJ file, the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, and the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are all the same;
the light weight module is used for simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the vertex three-dimensional coordinate index and/or texture two-dimensional coordinate index and/or normal vector index of the vertex.
All relevant contents of each step related to the foregoing embodiment of the method for lightweight processing a three-dimensional digital clothing model may be cited to the functional description of the functional module corresponding to the system for lightweight processing a three-dimensional digital clothing model in the embodiment of the present application, which is not described herein.
The division of the modules in the embodiments of the present application is schematically only one logic function division, and there may be another division manner in actual implementation, and in addition, each functional module in each embodiment of the present application may be integrated in one processor, or may exist separately and physically, or two or more modules may be integrated in one module. The integrated modules may be implemented in hardware or in software functional modules.
In the system embodiment of the present application, the connection relationship between the modules represents that there is a communication connection between them, and may be specifically implemented as one or more communication buses or signal lines.
The present application also provides an electronic apparatus, comprising: the system comprises at least one processor and a memory in communication with the at least one processor, wherein the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to cause the at least one processor to perform the method of lightweight processing of the three-dimensional digitized garment model described above. The electronic device may be any terminal device including a mobile phone, a notebook computer, a desktop computer, a tablet computer, a PDA (Personal Digital Assistant ), a POS (Point of sales), a car-mounted computer, and the like.
The application also provides a storage medium, on which a computer program is stored, which when being executed by a processor, realizes the method for the light-weight processing of the three-dimensional digital clothing model.
From the above description of the embodiments, it will be apparent to those skilled in the art that the present application may be implemented by means of software plus necessary general purpose hardware, or of course by means of special purpose hardware including application specific integrated circuits, special purpose CPUs, special purpose memories, special purpose components, etc. Generally, functions performed by computer programs can be easily implemented by corresponding hardware, and specific hardware structures for implementing the same functions can be varied, such as analog circuits, digital circuits, or dedicated circuits. However, a software program implementation is a preferred embodiment for many more of the cases of the present application. Based on such understanding, the technical solution of the present application may be embodied essentially or in a part contributing to the prior art in the form of a software product stored in a readable storage medium, such as a floppy disk, a U-disk, a removable hard disk, a Read-Only Memory (ROM), a random-access Memory (RAM, random Access Memory), a magnetic disk or an optical disk of a computer, etc., including several instructions for causing a computer device (which may be a personal computer, a server, a network device, etc.) to execute the method according to the embodiments of the present application.
Although embodiments of the present application have been disclosed above, it is not limited to the details and embodiments shown and described, it is well suited to various fields of use for which the application would be readily apparent to those skilled in the art, and accordingly, the application is not limited to the specific details and illustrations shown and described herein, without departing from the general concepts defined in the claims and their equivalents.

Claims (6)

1. A method for lightweight processing of a three-dimensional digitized garment model, comprising:
acquiring a clothing model OBJ file, wherein the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, and the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, wherein the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are the same;
and simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the three-dimensional coordinate index of the vertex and/or the two-dimensional coordinate index of the texture and/or the normal vector index.
2. The method for lightweight processing of a three-dimensional digitized garment model of claim 1, further comprising:
and (3) keeping the precision of the vertex three-dimensional coordinate data, the texture two-dimensional coordinate data and the normal vector coordinate data in the clothing model OBJ file to one or two or three or four positions after the decimal point.
3. The method for lightweight processing of a three-dimensional digitized clothing model according to claim 1, wherein the texture two-dimensional coordinate data of the clothing model OBJ file is obtained according to a method for digitized two-dimensional subdivision of clothing pieces, wherein an edge triangle subdivision point takes an intersection point of a two-dimensional graph edge contour line of the clothing piece and a grid line, and the precision of the coordinate data of the edge triangle subdivision point is reserved to one, two, three or four decimal places.
4. A system for lightweight processing of a three-dimensional digitized garment model, comprising:
the device comprises a file acquisition module, a processing module and a processing module, wherein the file acquisition module is used for acquiring a clothing model OBJ file, the surface coordinates of the clothing model OBJ file comprise information of each vertex on the surface, the information of each vertex on the surface at least comprises a vertex three-dimensional coordinate index, a texture two-dimensional coordinate index and a normal vector index of the vertex, and the vertex three-dimensional coordinate index, the texture two-dimensional coordinate index and the normal vector index of the vertex are all the same;
the light weight module is used for simplifying the information of each vertex on the surface in the surface coordinates of the clothing model OBJ file into the index of each vertex, wherein the index of each vertex is the vertex three-dimensional coordinate index and/or texture two-dimensional coordinate index and/or normal vector index of the vertex.
5. An electronic device, comprising: at least one processor, and a memory communicatively coupled to the at least one processor, wherein the memory stores instructions executable by the at least one processor to cause the at least one processor to perform the method of any of claims 1-3.
6. A storage medium having stored thereon a computer program, which when executed by a processor, implements the method of any of claims 1-3.
CN202310989904.0A 2023-08-08 2023-08-08 Method and system for light-weight processing of three-dimensional digital clothing model Pending CN116932796A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202310989904.0A CN116932796A (en) 2023-08-08 2023-08-08 Method and system for light-weight processing of three-dimensional digital clothing model

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202310989904.0A CN116932796A (en) 2023-08-08 2023-08-08 Method and system for light-weight processing of three-dimensional digital clothing model

Publications (1)

Publication Number Publication Date
CN116932796A true CN116932796A (en) 2023-10-24

Family

ID=88392400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202310989904.0A Pending CN116932796A (en) 2023-08-08 2023-08-08 Method and system for light-weight processing of three-dimensional digital clothing model

Country Status (1)

Country Link
CN (1) CN116932796A (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714577A (en) * 2014-01-23 2014-04-09 焦点科技股份有限公司 Three-dimensional model simplification method suitable for model with textures
CN109145366A (en) * 2018-07-10 2019-01-04 湖北工业大学 Building Information Model lightweight method for visualizing based on Web3D
CN110415345A (en) * 2019-07-01 2019-11-05 南京泛在地理信息产业研究院有限公司 Realize that ESRI TIN model conversion is the method and system of OBJ threedimensional model
CN111275814A (en) * 2020-01-21 2020-06-12 山东浪潮通软信息科技有限公司 WEBGL application-oriented three-dimensional model lightweight method
CN113470172A (en) * 2021-07-22 2021-10-01 浪潮软件科技有限公司 Method for converting 3DTiles through OBJ three-dimensional model
CN114519762A (en) * 2020-11-20 2022-05-20 Oppo广东移动通信有限公司 Model normal processing method and device, storage medium and electronic equipment
CN115601466A (en) * 2022-10-20 2023-01-13 钰深(北京)科技有限公司(Cn) Garment cutting piece digital two-dimensional subdivision method, electronic equipment and storage medium

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103714577A (en) * 2014-01-23 2014-04-09 焦点科技股份有限公司 Three-dimensional model simplification method suitable for model with textures
CN109145366A (en) * 2018-07-10 2019-01-04 湖北工业大学 Building Information Model lightweight method for visualizing based on Web3D
CN110415345A (en) * 2019-07-01 2019-11-05 南京泛在地理信息产业研究院有限公司 Realize that ESRI TIN model conversion is the method and system of OBJ threedimensional model
CN111275814A (en) * 2020-01-21 2020-06-12 山东浪潮通软信息科技有限公司 WEBGL application-oriented three-dimensional model lightweight method
CN114519762A (en) * 2020-11-20 2022-05-20 Oppo广东移动通信有限公司 Model normal processing method and device, storage medium and electronic equipment
CN113470172A (en) * 2021-07-22 2021-10-01 浪潮软件科技有限公司 Method for converting 3DTiles through OBJ three-dimensional model
CN115601466A (en) * 2022-10-20 2023-01-13 钰深(北京)科技有限公司(Cn) Garment cutting piece digital two-dimensional subdivision method, electronic equipment and storage medium

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
胡焕叶: "面向Web的CAD模型跨平台显示浏览系统研究", 中国优秀硕士学位论文全文数据库 信息科技辑, no. 2017, pages 18 - 33 *

Similar Documents

Publication Publication Date Title
JP7049807B2 (en) Database query based on parametric view functions
US9030475B2 (en) Method of computer-aided design of a modeled object having several faces
JP7343963B2 (en) Dataset for learning functions that take images as input
US20110065506A1 (en) Mega-mesh sculpting for environments
CN111243094B (en) Three-dimensional model accurate voxelization method based on lighting method
JP2002288687A (en) Device and method for calculating feature amount
KR20030073424A (en) A rendering system, rendering method, and recording medium therefor
KR20160082477A (en) Selection of a viewpoint of a set of objects
CN109819226A (en) Method, projection device and the computer readable storage medium projected on convex body
Field The legacy of automatic mesh generation from solid modeling
CN109509259B (en) Medical image three-dimensional reconstruction isosurface grid extraction method
CN111967066B (en) Modeling method for three-dimensional microscopic structure of polymorphic particle reinforced composite material
CN107330209B (en) Modeling wall intelligent template implementation method based on parametric design
CN116932796A (en) Method and system for light-weight processing of three-dimensional digital clothing model
CN116861023A (en) Method and system for determining same geometric objects in three-dimensional space
JP2003330976A (en) Inside/outside determining method of boundary data and its program
CN114590366B (en) Virtual visualization system for finite element analysis result of ship structure
CA2357940A1 (en) Apparatus, system, and method for simplifying annotations of a geometric surface
CN112711783B (en) Jewelry design method and system based on three-dimensional software and illusion engine
CN112560126A (en) Data processing method, system and storage medium for 3D printing
Inui et al. Fast computation of accessibility cones for assisting 3+ 2 axis milling
Durix et al. Towards skeleton based reconstruction: From projective skeletonization to canal surface estimation
Vieira et al. Surface extraction from point-sampled data through region growing
JP3162391B2 (en) Related entity system for computer aided shape design of directed objects
CN110489846B (en) Method and device for identifying basic body of model component

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