Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

Method for processing obj file on the basis of vtk (Visualization Toolkit)

A file and texture coordinate technology, applied in image data processing, 3D modeling, instruments, etc., can solve problems such as insufficient vertices and insufficient smoothness of 3D models, and achieve the effect of ensuring continuity

Active Publication Date: 2017-06-13
NANJING UNIV
View PDF4 Cites 2 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] For objects with smooth expressions, the more polygons are needed, if the number is insufficient, the 3D model constructed and processed will not be smooth enough. At this time, it is necessary to apply the surface subdivision algorithm to automatically increase the number of polygons to make the model smooth. However, the input surface required by the surface subdivision algorithm is continuous, and the direct application of the subdivision algorithm to the surface constructed by discrete patches will produce many holes.
For polygonal vertices, there may be multiple texture coordinates, but in vtk (visualization tool library, Visualization Toolkit), a vertex id (identity card, identification) can only correspond to one texture coordinate id, which makes One vertex is not enough, you need to add a new position

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • Method for processing obj file on the basis of vtk (Visualization Toolkit)
  • Method for processing obj file on the basis of vtk (Visualization Toolkit)
  • Method for processing obj file on the basis of vtk (Visualization Toolkit)

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0071] The present invention adopts the above scheme, and realizes reproducing the human face derived from faceGen in vtk.

[0072] The specific implementation is as follows: Loop subdivision is a triangular mesh subdivision rule, which divides according to 1-4 triangles, calculates and generates a new vertex for each edge, and updates the position of each original vertex.

[0073] Step 1: Create an inverted index table, the data structure used is a dictionary ; when a patch is read, add the patch to the edge of the patch as the key value collection. Finally return this inverted index list.

[0074] Step 2: In the process of adding facets to the model, the formed face is composed of many multi-facets, in order to maintain the manifold structure of the face. Vertices inside the patch cannot be used for sharing. Therefore, the shared vertex we are looking for should be on the edge of the face. Whether a vertex is on the edge of the face is equivalent to whether the 360 ​​degr...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

PUM

No PUM Login to View More

Abstract

The invention discloses a method for processing an obj file on the basis of a vtk (Visualization Toolkit). The method comprises the following steps that: S1: reading a surface patch in an obj file, and constructing a reverse index table; S2: searching a shared vertex; S3: generating a new vertex, updating and constructing surface patch id (Identification) if the shared vertex is found, if no shared vertexes are found, generating a new vertex which has the same position, and jumping to S4; S4: increasing the surface patch, generating the new vertex, adding the surface patch for connecting the new vertex with the old vertex for continuity between the new vertex and the old vertex, and adding the new vertex into a vertex set; S5: subsequent vertexes and subsequent surface patches: if the subsequent vertex of the surface patch is not processed, jumping to S2, and if the subsequent surface patch of the model is not processed, jumping to S1; S6: triangular surface patch processing: splitting all surface patches into triangular surface patches; and S7: hook face smoothness: applying a loop hook surface subdivision algorithm to smoothen the model.

Description

technical field [0001] The invention belongs to the field of computer graphics, in particular to a method for processing obj files based on vtk. Background technique [0002] A 3D model is a polygonal representation of an object, usually displayed on a computer or other video device. Objects shown may be real-world entities or fictional objects. Anything that exists in physical nature can be represented by a three-dimensional model. [0003] For objects with smooth expressions, the more polygons are needed, if the number is insufficient, the 3D model constructed and processed will not be smooth enough. At this time, it is necessary to apply the surface subdivision algorithm to automatically increase the number of polygons to make the model smooth. However, the input surface required by the surface subdivision algorithm is continuous, and the direct application of the subdivision algorithm to the surface constructed by discrete patches will produce many holes. For polygona...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to View More

Application Information

Patent Timeline
no application Login to View More
Patent Type & Authority Applications(China)
IPC IPC(8): G06T17/30G06T19/00
CPCG06T17/30G06T19/00
Inventor 杨育彬刘路飞
Owner NANJING UNIV
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products