KR101944932B1 - Graphic processing apparatus and method for improving mesh quality - Google Patents

Graphic processing apparatus and method for improving mesh quality Download PDF

Info

Publication number
KR101944932B1
KR101944932B1 KR1020170098400A KR20170098400A KR101944932B1 KR 101944932 B1 KR101944932 B1 KR 101944932B1 KR 1020170098400 A KR1020170098400 A KR 1020170098400A KR 20170098400 A KR20170098400 A KR 20170098400A KR 101944932 B1 KR101944932 B1 KR 101944932B1
Authority
KR
South Korea
Prior art keywords
vertex
moving
similarity
polygon
polygon element
Prior art date
Application number
KR1020170098400A
Other languages
Korean (ko)
Inventor
김지범
Original Assignee
인천대학교 산학협력단
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 인천대학교 산학협력단 filed Critical 인천대학교 산학협력단
Priority to KR1020170098400A priority Critical patent/KR101944932B1/en
Application granted granted Critical
Publication of KR101944932B1 publication Critical patent/KR101944932B1/en

Links

Images

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
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T1/00General purpose image data processing
    • G06T1/20Processor architectures; Processor configuration, e.g. pipelining

Abstract

Disclosed are a graphic processing apparatus and a graphic processing method for improving the mesh quality. By providing the graphic processing apparatus and the graphic processing method for correcting a mesh structure to change polygonal elements configuring a graphic model to a shape close to a shape of an ideal polygonal element through coordinate adjustment on a plurality of vertices configuring the mesh structural graphic model, the mesh quality of the graphic model can be improved.

Description

메쉬 품질 향상을 위한 그래픽 처리 장치 및 방법{GRAPHIC PROCESSING APPARATUS AND METHOD FOR IMPROVING MESH QUALITY}TECHNICAL FIELD [0001] The present invention relates to a graphic processing apparatus and method for enhancing mesh quality,

본 발명은 컴퓨터 그래픽스에서 메쉬(mesh) 구조의 품질을 향상시키기 위한 기술과 관련된다.The present invention relates to techniques for improving the quality of a mesh structure in computer graphics.

컴퓨터 그래픽스에서 3차원 모델과 같은 그래픽 모델을 구성하는 방법으로 메쉬(mesh) 구조가 주로 사용되고 있다.A mesh structure is mainly used as a method of constructing a graphic model such as a three-dimensional model in computer graphics.

메쉬 구조는 복수의 다각형 엘리먼트(element)들과 정점(vertex)들을 이용하여 그래픽 모델을 표현하는 방식으로 특정 사물을 그래픽 모델로 구성해서 해당 사물에 대한 물리적 특성을 살펴보는데 많이 사용되고 있다. 예컨대, 비행기를 메쉬 구조를 이용하여 3차원 모델로 구성한 후 비행기에서의 대기의 흐름을 미리 시뮬레이션하는데 사용될 수 있다.The mesh structure is used to display a graphic model using a plurality of polygon elements and vertices, and to construct a graphic model of a specific object to examine the physical characteristics of the object. For example, the airplane can be configured as a three-dimensional model using a mesh structure and then used to simulate the atmospheric flow in an airplane in advance.

이러한 메쉬 구조와 관련해서, 최근에는 메쉬 품질의 최적화와 관련된 중요성이 증대되고 있다.With respect to such a mesh structure, in recent years, importance related to mesh quality optimization has been increasing.

보통, 특정 사물을 메쉬 구조를 통해 그래픽 모델로 구성하였을 때, 복수의 다각형 엘리먼트들의 형태가 이상적인 형상의 다각형 엘리먼트로 구성되어야 해당 그래픽 모델에 대해 물리적 특성을 시뮬레이션할 때, 정확한 결과 값을 획득할 수 있다.In general, when a specific object is composed of a graphic model through a mesh structure, the shape of the plurality of polygon elements must be composed of polygon elements having an ideal shape so that accurate results can be obtained when the physical characteristics are simulated for the graphic model have.

예컨대, 도 2에 도시된 도면과 같이, 삼각형 엘리먼트들로 구성된 그래픽 모델이 존재하는 경우, 각 삼각형 엘리먼트들의 형상이 각각 상이하게 존재하는 것보다 각 삼각형 엘리먼트들이 모두 도면부호 230에 도시된 바와 같은 정삼각형의 형상을 갖도록 모델링이 수행된다면, 이상적인 메쉬 구조를 갖게 됨에 따라, 해당 그래픽 모델을 이용하여 유체의 흐름이나 다양한 물리적 특성을 시뮬레이션하게 되면, 비교적 정확한 결과 값을 획득할 수 있게 된다.For example, if a graphical model of triangle elements is present, as shown in FIG. 2, each triangle element may have a shape of an equilateral triangle It is possible to acquire a relatively accurate result value by simulating the fluid flow or various physical characteristics using the graphic model by having an ideal mesh structure.

하지만, 기존의 메쉬 구조 기반의 모델링 기법들에서는 다각형 엘리먼트들의 형상을 고려하지 않고, 모델링을 지원하는 경우가 많다는 점에서 다양한 형상의 다각형 엘리먼트들이 포함되도록 모델링된 그래픽 모델에서 각 다각형 엘리먼트들의 형상을 이상적인 형상으로 보정함으로써, 메쉬 품질을 향상시킬 수 있도록 지원할 수 있는 기술의 연구가 필요하다.However, since the conventional mesh structure-based modeling techniques support modeling without considering the shape of the polygon elements, the shape of each polygon element in the graphic model modeled to include the polygon elements of various shapes is ideal We need to study the technology that can improve the quality of mesh by correcting it to shape.

Todd Munson, "Mesh Shape-Quality Optimization Using the Inverse Mean-Ratio Metric", Argonne National Laboratory(2004.04.20.)Todd Munson, "Mesh Shape-Quality Optimization Using the Inverse Mean-Ratio Metric ", Argonne National Laboratory (Apr. 20, 2004).

본 발명은 메쉬(mesh) 구조 기반의 그래픽 모델을 구성하는 복수의 정점(vertex)들에 대한 좌표의 조정을 통해 상기 그래픽 모델을 구성하는 다각형 엘리먼트(element)들이 이상적인 다각형 엘리먼트의 형상에 가깝게 변경되도록 메쉬 구조를 보정함으로써, 상기 그래픽 모델의 메쉬 품질이 향상될 수 있도록 지원하는 그래픽 처리 장치 및 방법을 제공하고자 한다.The present invention relates to an apparatus and method for adjusting a coordinate of a plurality of vertices constituting a graphic model based on a mesh structure so that polygon elements constituting the graphic model are changed close to the shape of an ideal polygon element And to provide a graphic processing apparatus and method that can improve mesh quality of the graphic model by correcting the mesh structure.

본 발명의 일실시예에 따른 메쉬(mesh) 품질 향상을 위한 그래픽 처리 장치는 메쉬 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트(element)들의 꼭짓점에 해당되는 복수의 정점(vertex)들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택하는 엘리먼트 선택부, 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 그래픽 모델에 적용될 최적의 형태로 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정하는 유사도 측정부, 상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택하는 최소 유사도 선택부 및 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정하는 구조 보정부를 포함한다.A graphics processing apparatus for improving mesh quality according to an embodiment of the present invention includes a plurality of vertices corresponding to vertexes of a plurality of polygon elements constituting a graphic model having a mesh structure, An element selector for selecting at least one polygon element having a first vertex as a vertex with respect to one vertex as a vertex, and for each of the at least one polygon element, a reference polygon element predefined in an optimal form to be applied to the graphic model, A minimum likelihood selector for selecting a first polygon element having a minimum similarity among the at least one polygon elements based on the similarity measured for each of the at least one polygon elements, In the region where one polygonal element is present, The coordinates of the first vertex at which the degree of similarity between the first polygon element and the reference polygon element can be measured as the shape of the first polygon element changes when the first polygon element moves, And a structure correcting unit for correcting the mesh structure of the graphic model by moving the first vertex to a coordinate of a moving point of the selected first vertex.

또한, 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법은 메쉬 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트들의 꼭짓점에 해당되는 복수의 정점들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택하는 엘리먼트 선택 단계, 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 그래픽 모델에 적용될 최적의 형태로 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정하는 유사도 측정 단계, 상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택하는 최소 유사도 선택 단계 및 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정하는 구조 보정 단계를 포함한다.According to another aspect of the present invention, there is provided a graphic processing method for enhancing a mesh quality, the method comprising: a first step of, based on a first vertex among a plurality of vertices corresponding to a vertex of a plurality of polygon elements constituting a graphic model having a mesh structure, An element selecting step of selecting at least one polygon element having a first vertex as a vertex, a similarity degree calculating step of calculating, for each of the at least one polygon element, a degree of similarity with a reference polygon element previously designated in an optimal form to be applied to the graphic model Selecting a first polygon element having a minimum similarity among the at least one polygon element based on measured similarities for each of the at least one polygon elements; Wherein the first vertex The coordinates of the first vertex at which the degree of similarity between the first polygon element and the reference polygon element can be measured as the shape of the first polygon element is shifted when moving, And a structure correcting step of correcting the mesh structure of the graphic model by moving the first vertex to a coordinate of a moving point of the first vertex.

본 발명은 메쉬(mesh) 구조 기반의 그래픽 모델을 구성하는 복수의 정점(vertex)들에 대한 좌표의 조정을 통해 상기 그래픽 모델을 구성하는 다각형 엘리먼트(element)들이 이상적인 다각형 엘리먼트의 형상에 가깝게 변경되도록 메쉬 구조를 보정하는 그래픽 처리 장치 및 방법을 제공함으로써, 상기 그래픽 모델의 메쉬 품질의 향상을 도모할 수 있다.The present invention relates to an apparatus and method for adjusting a coordinate of a plurality of vertices constituting a graphic model based on a mesh structure so that polygon elements constituting the graphic model are changed close to the shape of an ideal polygon element By providing a graphic processing apparatus and method for correcting the mesh structure, it is possible to improve the mesh quality of the graphic model.

도 1은 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치의 구조를 도시한 도면이다.
도 2와 도 3은 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치의 동작을 설명하기 위한 도면이다.
도 4는 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법을 도시한 순서도이다.
1 is a diagram illustrating a structure of a graphics processing apparatus for improving mesh quality according to an exemplary embodiment of the present invention.
FIG. 2 and FIG. 3 are views for explaining the operation of the graphic processing apparatus for improving mesh quality according to an embodiment of the present invention.
4 is a flowchart illustrating a graphic processing method for improving mesh quality according to an exemplary embodiment of the present invention.

이하에서는 본 발명에 따른 실시예들을 첨부된 도면을 참조하여 상세하게 설명하기로 한다. 이러한 설명은 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였으며, 다르게 정의되지 않는 한, 기술적이거나 과학적인 용어를 포함해서 본 명세서 상에서 사용되는 모든 용어들은 본 발명이 속하는 기술분야에서 통상의 지식을 가진 사람에 의해 일반적으로 이해되는 것과 동일한 의미를 가지고 있다.Hereinafter, embodiments according to the present invention will be described in detail with reference to the accompanying drawings. It is to be understood that the description is not intended to limit the invention to the specific embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. Like reference numerals in the drawings are used for similar elements and, unless otherwise defined, all terms used in the specification, including technical and scientific terms, are to be construed in a manner that is familiar to those skilled in the art. It has the same meaning as commonly understood by those who have it.

도 1은 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치의 구조를 도시한 도면이다.1 is a diagram illustrating a structure of a graphics processing apparatus for improving mesh quality according to an exemplary embodiment of the present invention.

도 1을 참조하면, 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치(110)는 엘리먼트 선택부(111), 유사도 측정부(112), 최소 유사도 선택부(113) 및 구조 보정부(114)를 포함한다.Referring to FIG. 1, a graphics processing apparatus 110 for improving mesh quality according to an embodiment of the present invention includes an element selecting unit 111, a similarity measuring unit 112, a minimum similarity selecting unit 113, (114).

엘리먼트 선택부(111)는 메쉬(mesh) 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트(element)들의 꼭짓점에 해당되는 복수의 정점(vertex)들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택한다.The element selecting unit 111 selects the first vertex among the plurality of vertices corresponding to the vertexes of the plurality of polygon elements constituting the graphic model having the mesh structure, At least one polygon element having a vertex as a vertex is selected.

유사도 측정부(112)는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 그래픽 모델에 적용될 최적의 형태로 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정한다.For each of the at least one polygon element, the similarity measurement unit 112 measures a degree of similarity with a reference polygon element that is previously designated in an optimal form to be applied to the graphic model.

이때, 본 발명의 일실시예에 따르면, 유사도 측정부(112)는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 참조 다각형 엘리먼트와의 역 평균 비율(Inverse Mean Ratio: IMR)(IMR이 낮을수록 유사도가 높음을 의미함)을 연산하여 상기 적어도 하나의 다각형 엘리먼트 각각에 대해 연산된 IMR을 기초로 상기 적어도 하나의 다각형 엘리먼트 각각과 상기 참조 다각형 엘리먼트 간의 유사도를 측정할 수 있다.According to an embodiment of the present invention, the similarity degree measurement unit 112 may calculate an inverse mean ratio (IMR) of the at least one polygon element with respect to the reference polygon element Is high) to measure the degree of similarity between each of the at least one polygon element and the reference polygon element based on the calculated IMR for each of the at least one polygon element.

이때, 상기 IMR은 하기의 수학식 1에 기초하여 연산될 수 있다.At this time, the IMR can be calculated based on Equation (1) below.

Figure 112017074966723-pat00001
Figure 112017074966723-pat00001

여기서, "A"는 적어도 하나의 다각형 엘리먼트 각각을 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 적어도 하나의 다각형 엘리먼트들 각각을 표현한 근접 행렬(incidence matrix), "W"는 상기 참조 다각형 엘리먼트를 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 참조 다각형 엘리먼트를 표현한 근접 행렬, "

Figure 112017074966723-pat00002
"는 프로베니우스 놈(Frobenius norm), "
Figure 112017074966723-pat00003
"는 행렬식(determinant)을 의미한다.Here, "A" is an incidence matrix representing the respective at least one polygon element using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting each of the at least one polygon element, "W Quot; is an approximate matrix representing the reference polygon element by using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting the reference polygon element, "
Figure 112017074966723-pat00002
Quot; Frobenius norm ","
Figure 112017074966723-pat00003
"Means a determinant.

최소 유사도 선택부(113)는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택한다.The minimum similarity selection unit 113 selects a first polygon element having a minimum similarity among the at least one polygon elements based on the measured similarity for each of the at least one polygon elements.

구조 보정부(114)는 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정한다.The structure correcting unit 114 may further include a first polygon element that can be measured as the shape of the first polygon element is deformed when the first vertex moves within an area where the at least one polygon element exists, Coordinates of the moving point of the first vertex at which the degree of similarity between the polygon elements is the largest is selected and the mesh structure of the graphic model is corrected by moving the first vertex to the coordinates of the moving point of the selected first vertex .

이때, 본 발명의 일실시예에 따르면, 구조 보정부(114)는 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)를 포함할 수 있다.According to an embodiment of the present invention, the structure correction unit 114 includes a circular area setting unit 115, a candidate vertex selection unit 116, a movement similarity measurement unit 117, a moving candidate vertex coordinate selection unit 118 And a vertex shifting unit 119. [0034]

원형 영역 설정부(115)는 상기 제1 정점의 현재 좌표를 중심으로 선정된(predetermined) 길이의 반경을 갖는 가상의 원형 영역을 설정한다.The circular area setting unit 115 sets a virtual circular area having a predetermined length radius around the current coordinates of the first vertex.

후보 정점 선택부(116)는 상기 가상의 원형 영역 상에서 선정된 간격으로 상기 가상의 원형 영역 상에 위치하는 적어도 하나의 이동 후보 정점을 선택한다.The candidate vertex selection unit 116 selects at least one motion candidate vertex located on the virtual circular area at a predetermined interval on the virtual circular area.

이동 유사도 측정부(117)는 상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 측정한다.The moving similarity measuring unit 117 measures the degree of similarity between the first polygon element and the reference polygon element whose shape is deformed by moving the first vertex one by one at coordinates of the at least one moving candidate vertex.

이동 후보 정점 좌표 선택부(118)는 상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도 측정 결과를 기초로 상기 적어도 하나의 이동 후보 정점의 좌표 중 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대로 측정된 제1 이동 후보 정점의 좌표를 선택한다.The moving candidate vertex coordinate selecting unit 118 selects a moving polygon element based on the result of measuring the degree of similarity between the first polygon element and the reference polygon element whose shape is deformed by moving the first vertex one by one as the coordinates of the at least one moving candidate vertex The coordinates of the first moving candidate vertex in which the degree of similarity between the first polygon element and the reference polygon element is the largest among the coordinates of the at least one moving candidate vertex is selected.

정점 이동부(119)는 상기 제1 이동 후보 정점의 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조에 대한 보정을 수행한다.The vertex moving unit 119 moves the first vertex to the coordinates of the first moving candidate vertex and performs correction on the mesh structure of the graphic model.

이때, 본 발명의 일실시예에 따르면, 구조 보정부(114)는 반복 수행 제어부(120)를 더 포함할 수 있다.In this case, according to an embodiment of the present invention, the structure modification unit 114 may further include an iteration control unit 120.

반복 수행 제어부(120)는 상기 제1 이동 후보 정점의 좌표로 상기 제1 정점이 이동되면, 상기 이동된 제1 정점을 기초로 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작을 반복수행함으로써, 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 최종 좌표를 선택하여 상기 선택된 제1 정점의 이동 지점에 대한 최종 좌표로 상기 제1 정점이 이동되도록 제어한다.When the first vertex is moved to the coordinates of the first moving candidate vertex, the iterative execution control unit 120 controls the circular area setting unit 115, the candidate vertex selecting unit 116, By repeating the operations of the similarity measuring unit 117, the moving candidate vertex coordinate selecting unit 118 and the vertex shifting unit 119, the shape of the first polygon element in the region where the at least one polygon element exists is The final coordinates of the first vertex at which the degree of similarity between the first polygonal element and the reference polygon element can be measured as the deformation becomes maximum can be selected as the final coordinates of the moving point of the selected first vertex So that the first vertex is moved.

이때, 본 발명의 일실시예에 따르면, 반복 수행 제어부(120)는 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작을 반복수행하는 도중, 이동 유사도 측정부(117)를 통해 측정되는 각 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시켰을 때의 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 현재 위치의 상기 제1 정점의 좌표를 기준으로 측정되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 모두 초과하지 않게 되면, 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작에 대한 반복수행을 중단하고, 현재 위치의 상기 제1 정점의 좌표를 상기 최종 좌표로 결정할 수 있다.According to an embodiment of the present invention, the iterative execution control unit 120 includes a circular region setting unit 115, a candidate vertex selecting unit 116, a movement similarity measuring unit 117, a moving candidate vertex coordinate selecting unit 118 ) And the vertex moving unit 119 are repeated, the first polygonal element and the second polygon element when the first vertex is shifted by one coordinate point of each moving candidate vertex measured through the moving similarity measurement unit 117 If the degree of similarity between the reference polygon elements does not exceed the degree of similarity between the first polygon element and the reference polygon element measured based on the coordinates of the first vertex at the current position, the circular area setting unit 115, It is possible to stop the iterative execution of the operations of the selection unit 116, the movement similarity measurement unit 117, the movement candidate vertex coordinate selection unit 118 and the vertex movement unit 119, remind It may decide to coordinate kind.

또한, 본 발명의 일실시예에 따르면, 메쉬 품질 향상을 위한 그래픽 처리 장치(110)는 반복 처리 제어부(121)를 더 포함할 수 있다.In addition, according to an embodiment of the present invention, the graphics processing apparatus 110 for improving mesh quality may further include an iterative processing control unit 121. [

반복 처리 제어부(121)는 상기 제1 정점의 이동을 통해 상기 그래픽 모델의 메쉬 구조에 대한 보정이 완료되면, 상기 복수의 정점들 중 상기 제1 정점을 제외한 나머지 정점들 각각에 대해서도 엘리먼트 선택부(111), 유사도 측정부(112), 최소 유사도 선택부(113) 및 구조 보정부(114)에 따른 동작의 반복수행을 제어함으로써, 상기 복수의 정점들 각각의 이동을 통한 상기 그래픽 모델의 메쉬 구조에 대한 보정을 제어할 수 있다.When the correction of the mesh structure of the graphic model is completed through the movement of the first vertex, the iterative processing control unit 121 performs an element selection operation for each of the vertices except for the first vertex among the plurality of vertices, The mesh structure of the graphic model through movement of each of the plurality of vertices is controlled by controlling repetition of operations according to the similarity degree measurement unit 112, the minimum similarity degree selection unit 113, and the structure correction unit 114, Can be controlled.

이하에서는 도 2와 도 3을 참조하여 본 발명에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치(110)의 동작을 예를 들어 상세히 설명하기로 한다.Hereinafter, the operation of the graphic processing apparatus 110 for improving mesh quality according to the present invention will be described in detail with reference to FIG. 2 and FIG. 3, for example.

도 2와 도 3은 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 장치(110)의 동작을 설명하기 위한 도면이다.FIG. 2 and FIG. 3 are views for explaining the operation of the graphic processing apparatus 110 for improving mesh quality according to an embodiment of the present invention.

우선, 도 2에 도시된 도면과 같이 복수의 삼각형 엘리먼트들과 복수의 정점들로 구성된 메쉬 구조를 갖는 그래픽 모델이 존재하는 것으로 가정하기로 한다.First, it is assumed that there is a graphic model having a mesh structure composed of a plurality of triangle elements and a plurality of vertices as shown in FIG.

엘리먼트 선택부(111)는 그래픽 모델을 구성하는 복수의 삼각형 엘리먼트들의 꼭짓점에 해당되는 복수의 정점들 중 제1 정점(210)을 기준으로, 제1 정점(210)을 꼭짓점으로 갖는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들을 선택할 수 있다.The element selecting unit 111 selects seven triangular elements having a first vertex 210 as a vertex based on the first vertex 210 among a plurality of vertices corresponding to the vertices of the plurality of triangular elements constituting the graphic model, (221, 222, 223, 224, 225, 226, 227).

유사도 측정부(112)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각에 대해, 상기 그래픽 모델에 적용될 최적의 형태로 미리 지정된 참조 삼각형 엘리먼트와의 유사도를 측정할 수 있다.The similarity measuring unit 112 measures the degree of similarity of the seven triangular elements 221, 222, 223, 224, 225, 226, and 227 with respect to the reference triangular element that is preliminarily specified in an optimal form to be applied to the graphic model can do.

관련해서, 상기 참조 삼각형 엘리먼트가 도면부호 230에 도시된 바와 같은 정삼각형이라고 한다면, 유사도 측정부(112)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각에 대해, 참조 삼각형 엘리먼트(230)와의 유사도를 측정할 수 있다.In relation to this, if the reference triangle element is an equilateral triangle as shown at reference numeral 230, the similarity measuring unit 112 calculates the degree of similarity for each of the seven triangle elements 221, 222, 223, 224, 225, 226, And the reference triangle element 230 can be measured.

이때, 본 발명의 일실시예에 따르면, 유사도 측정부(112)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각에 대해, 참조 삼각형 엘리먼트(230)와의 역 평균 비율(Inverse Mean Ratio: IMR)을 연산하여 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각에 대해 연산된 IMR을 기초로 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각과 참조 삼각형 엘리먼트(230) 간의 유사도를 측정할 수 있다.According to an embodiment of the present invention, the degree-of-similarity measuring unit 112 may calculate the degree of similarity to the reference triangle element 230 for each of the seven triangle elements 221, 222, 223, 224, 225, 226, 222, 223, 224, 225, 226, and 227 based on the calculated IMR for each of the seven triangular elements 221, 222, 223, 223, 224, 225, 226, and 227 and the reference triangle element 230 can be measured.

관련해서, IMR은 상기 수학식 1에 따라 연산될 수 있다. IMR이란 제1 다각형 엘리먼트와 제2 다각형 엘리먼트 간의 형태 유사도를 판별하기 위한 수식으로, 상기 수학식 1에서 "A"는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각을 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각을 표현한 근접 행렬을 의미하고, "W"는 참조 삼각형 엘리먼트(230)를 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 참조 삼각형 엘리먼트를 표현한 근접 행렬을 의미한다.In this regard, the IMR can be calculated according to Equation (1) above. IMR is an expression for discriminating the degree of similarity between the first polygonal element and the second polygonal element. In the expression (1), "A" represents seven triangular elements 221, 222, 223, 224, 225, 226 and 227 222, 223, 224, 225, 226, 227 using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting each of the triangles, Quot; W "means an approximate matrix representing a reference triangle element by using the distance between the remaining vertexes with reference to the coordinates of a specific reference vertex constituting the reference triangle element 230.

예컨대, 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 중 삼각형 엘리먼트 1(221)과 참조 삼각형 엘리먼트(230) 간의 IMR을 연산하는 과정을 설명하면 다음과 같다.For example, a process of calculating the IMR between the triangular element 221 and the reference triangular element 230 among the seven triangular elements 221, 222, 223, 224, 225, 226, and 227 will be described.

우선, 삼각형 엘리먼트 1(221)의 꼭짓점들의 좌표를 좌측 하단의 꼭짓점을 시작으로 하여 반시계 방향으로 "a, b, c"라고 하고, 특정 기준 꼭짓점의 좌표를 "a"라고 한다면, 삼각형 엘리먼트 1(221)에 대한 근접 행렬 "A"는 하기의 수학식 2와 같이 표현할 수 있다.First, when the coordinates of the vertices of the triangle element 1 221 are referred to as "a, b, c" in the counterclockwise direction starting from the vertex at the lower left corner and the coordinate of the specific reference vertex is defined as "a" Quot; A "for the matrix 221 can be expressed as: " (2) "

Figure 112017074966723-pat00004
Figure 112017074966723-pat00004

그리고, 참조 삼각형 엘리먼트(230)의 한 모서리의 길이를 1이라고 하고, 참조 삼각형 엘리먼트(230)에서 삼각형 엘리먼트 1(221)의 기준 꼭짓점과 동일한 지점의 꼭짓점을 기준 꼭짓점으로 해서 참조 삼각형 엘리먼트(230)에 대한 근접 행렬 "W"를 표현하면, 하기의 수학식 3과 같이 표현될 수 있다.The length of one corner of the reference triangle element 230 is denoted by 1 and the length of the reference triangle element 230 is denoted by reference triangle element 230 with the vertex at the same point as the reference vertex of triangle element 1 221 as a reference vertex, Quot; W "with respect to the matrix W can be expressed by the following equation (3).

Figure 112017074966723-pat00005
Figure 112017074966723-pat00005

이렇게, "A"와 "W"가 구성되면, 삼각형 엘리먼트 1(221)의 참조 삼각형 엘리먼트(230)에 대한 IMR인 qIMR은 상기 수학식 1과 같은 연산을 통해서 계산될 수 있다.Thus, when "A" and "W" are constructed, the IMR, q IMR , for the reference triangle element 230 of the triangle element 1 221 can be calculated through the same operation as in Equation (1).

이때, 상기 수학식 1에서 "

Figure 112017074966723-pat00006
"는 프로베니우스 놈, "
Figure 112017074966723-pat00007
"는 행렬식을 의미한다.In this case, in Equation (1)
Figure 112017074966723-pat00006
"The Provenius,"
Figure 112017074966723-pat00007
"Means the determinant.

이러한 IMR은 그 값이 낮을수록 두 다각형 간의 유사도가 높음을 의미하는 수치이며, 만약, 삼각형 엘리먼트 1(221)과 참조 삼각형 엘리먼트(230)가 완전히 동일한 삼각형이라면, "A"와 "W"가 서로 동일해지기 때문에 IMR이 1이 될 수 있다.If the triangle element 1 221 and the reference triangle element 230 are exactly the same triangle, then "A" and "W" are the same value, So that the IMR can be equal to one.

이러한 IMR에 대한 연산 방법은 선행기술문헌인 "Todd Munson, "Mesh Shape-Quality Optimization Using the Inverse Mean-Ratio Metric", Argonne National Laboratory(2004.04.20.)"에 자세히 언급되어 있다.The calculation method for this IMR is described in detail in the prior art document "Todd Munson," Mesh Shape-Quality Optimization Using the Inverse Mean-Ratio Metric, "Argonne National Laboratory (2004.04.20.).

이러한 방식으로, 유사도 측정부(112)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각과 참조 삼각형 엘리먼트(230) 간의 유사도를 측정할 수 있다.In this way, the similarity measurement unit 112 can measure the degree of similarity between each of the seven triangular elements 221, 222, 223, 224, 225, 226, and 227 and the reference triangular element 230.

이렇게, 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각과 참조 삼각형 엘리먼트(230) 간의 유사도 측정이 완료되면, 최소 유사도 선택부(113)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 각각에 대해서 측정된 유사도를 기초로 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들 중 유사도가 최소인 제1 삼각형 엘리먼트를 선택할 수 있다.When the similarity measurement between each of the seven triangular elements 221, 222, 223, 224, 225, 226 and 227 and the reference triangular element 230 is completed, the minimum similarity selection unit 113 selects seven triangular elements 222, 223, 224, 225, 226, 227 based on the similarity measured for each of the three triangular elements 221, 222, 223, 224, 225, 226, 1 You can select a triangle element.

본 실시예에서는 상기 제1 삼각형 엘리먼트를 도면부호 225에 표시한 삼각형 엘리먼트인 것으로 가정하기로 한다.In the present embodiment, it is assumed that the first triangular element is a triangular element denoted by reference numeral 225.

제1 삼각형 엘리먼트(225)의 선택이 완료되면, 구조 보정부(114)는 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들이 존재하는 영역 내에서 제1 정점(210)이 이동하는 경우 제1 삼각형 엘리먼트(225)의 형태가 변형됨에 따라 측정될 수 있는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대가 되는 제1 정점(210)의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점(210)의 이동 지점에 대한 좌표로 제1 정점(210)을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정할 수 있다.When the selection of the first triangular element 225 is completed, the structural correction unit 114 determines that the first vertex 210 (in the region where the seven triangular elements 221, 222, 223, 224, 225, 226, The movement of the first vertex 210 at which the degree of similarity between the first triangular element 225 and the reference triangular element 230 is maximized, which can be measured as the shape of the first triangular element 225 is changed, The mesh structure of the graphic model can be corrected by selecting the coordinates for the point and moving the first vertex 210 to the coordinates of the moving point of the selected first vertex 210. [

즉, 구조 보정부(114)는 제1 정점(210)을 이동시킨다고 하였을 때, 제1 삼각형 엘리먼트(225)의 형태가 변형되게 되는데, 이렇게 형태 변형에 따라 연산되는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대가 되는(IMR이 최소가 되는) 지점을 찾아낸 후 해당 지점으로 제1 정점(210)을 이동시킴으로써, 참조 삼각형 엘리먼트(230)와 가장 유사하지 않은 제1 삼각형 엘리먼트(225)를 참조 삼각형 엘리먼트(230)와 비슷하게 만드는 과정을 통해 상기 그래픽 모델의 메쉬 구조의 품질에 대한 향상을 도모할 수 있다.That is, when the structural corrector 114 moves the first vertex 210, the shape of the first triangular element 225 is deformed. The first triangular element 225 and the second triangular element 225, The first triangle element 230 is found to have a maximum similarity degree (IMR is minimum), and then the first vertex 210 is moved to the corresponding point so that the first triangle element 230, which is not closest to the reference triangle element 230, The quality of the mesh structure of the graphic model can be improved through a process of making the element 225 similar to the reference triangle element 230.

관련해서, 구조 보정부(114)는 제1 정점(210)의 이동 지점을 찾기 위한 동작을 수행하기 위해서 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118), 정점 이동부(119) 및 반복 수행 제어부(120)를 포함할 수 있다.The structure correcting unit 114 includes a circular area setting unit 115, a candidate vertex selecting unit 116, a moving similarity measuring unit 117, A moving candidate vertex coordinate selection unit 118, a vertex moving unit 119, and an iterative execution control unit 120.

먼저, 원형 영역 설정부(115)는 도 3에 도시된 바와 같이, 제1 정점(210)의 현재 좌표를 중심으로 선정된 길이의 반경을 갖는 가상의 원형 영역(310)을 설정할 수 있다.3, the circular area setting unit 115 may set a virtual circular area 310 having a predetermined radius around the current coordinates of the first vertex 210. [

그리고, 후보 정점 선택부(116)는 가상의 원형 영역(310) 상에서 선정된 간격으로 가상의 원형 영역(310) 상에 위치하는 적어도 하나의 이동 후보 정점(321, 322, 323, 324, 325, 326, 327, 328)을 선택할 수 있다.The candidate vertex selection unit 116 selects at least one motion candidate vertex 321, 322, 323, 324, 325, and 326 located on the virtual circular area 310 at a predetermined interval on the virtual circular area 310, 326, 327, 328).

이때, 이동 유사도 측정부(117)는 적어도 하나의 이동 후보 정점(321, 322, 323, 324, 325, 326, 327, 328)의 좌표로 제1 정점(210)을 하나씩 이동시킴에 따라 형태가 변형되는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도를 측정할 수 있다.At this time, the moving similarity measuring unit 117 moves the first vertices 210 one by one to the coordinates of at least one moving candidate vertex 321, 322, 323, 324, 325, 326, 327, The degree of similarity between the deformed first triangular element 225 and the reference triangular element 230 can be measured.

그리고, 이동 후보 정점 좌표 선택부(118)는 적어도 하나의 이동 후보 정점(321, 322, 323, 324, 325, 326, 327, 328)의 좌표로 제1 정점(210)을 하나씩 이동시킴에 따라 형태가 변형되는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도 측정 결과를 기초로 적어도 하나의 이동 후보 정점(321, 322, 323, 324, 325, 326, 327, 328)의 좌표 중 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대로 측정된 제1 이동 후보 정점의 좌표를 선택할 수 있다.The moving candidate vertex coordinate selector 118 moves the first vertices 210 one by one to the coordinates of at least one moving candidate vertex 321, 322, 323, 324, 325, 326, 327, 322, 323, 324, 325, 326, 327, 328 on the basis of the result of the similarity measurement between the first triangular element 225 and the reference triangular element 230, The coordinates of the first movement candidate vertex at which the degree of similarity between the first triangle element 225 and the reference triangle element 230 is the maximum can be selected.

관련해서, 적어도 하나의 이동 후보 정점(321, 322, 323, 324, 325, 326, 327, 328) 중 도면후보 328로 표시한 이동 후보 정점으로 제1 정점(210)을 이동시켰을 때, 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대로 측정되었다면, 이동 후보 정점 좌표 선택부(118)는 도면부호 328로 표시한 이동 후보 정점의 좌표를 제1 이동 후보 정점(328)의 좌표로 선택할 수 있다.In this regard, when the first vertex 210 is moved to the moving candidate vertex indicated by the drawing candidate 328 among the at least one moving vertex 321, 322, 323, 324, 325, 326, 327, If the similarity degree between the triangular element 225 and the reference triangular element 230 is measured at the maximum, the moving candidate vertex coordinate selector 118 sets the coordinates of the moving candidate vertex denoted by reference numeral 328 as the first moving candidate vertex 328, As shown in FIG.

이렇게, 제1 이동 후보 정점(328)의 좌표가 선택되면, 정점 이동부(119)는 제1 이동 후보 정점(328)의 좌표로 제1 정점(210)을 이동시켜 상기 그래픽 모델의 메쉬 구조에 대한 보정을 수행할 수 있다.When the coordinate of the first moving candidate vertex 328 is selected, the vertex moving unit 119 moves the first vertex 210 to the coordinates of the first moving candidate vertex 328, Correction can be performed.

이렇게, 제1 이동 후보 정점(328)의 좌표로 제1 정점(210)이 이동되면, 반복 수행 제어부(120)는 상기 이동된 제1 정점(210)을 기초로 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작의 반복 수행을 제어함으로써, 제1 정점(210)을 또 다른 지점으로 이동시킬 수 있고, 이러한 반복을 통해 7개의 삼각형 엘리먼트(221, 222, 223, 224, 225, 226, 227)들이 존재하는 영역 내에서 제1 삼각형 엘리먼트(225)의 형태가 변형됨에 따라 측정될 수 있는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대가 되는 제1 정점(210)의 이동 지점에 대한 최종 좌표를 선택하여 상기 선택된 제1 정점(210)의 이동 지점에 대한 최종 좌표로 제1 정점(210)이 이동되도록 제어할 수 있다.When the first vertex 210 moves to the coordinates of the first moving candidate vertex 328, the iterative execution control unit 120 controls the circular area setting unit 115, It is possible to control the repetition of the operations of the candidate vertex selecting unit 116, the moving similarity measuring unit 117, the moving candidate vertex coordinate selecting unit 118 and the vertex moving unit 119 so that the first vertex 210 And as the shape of the first triangular element 225 is deformed in the region where the seven triangular elements 221, 222, 223, 224, 225, 226, 227 are present through this repetition, The final coordinates of the first vertex 210 at which the degree of similarity between the first triangle element 225 and the reference triangle element 230 can be maximized is selected to determine the final coordinates of the moving point of the selected first vertex 210 So that the first vertex 210 is moved to the final coordinates.

이와 관련하여, 반복 수행 제어부(120)는 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작을 반복수행함으로써, 제1 정점(210)의 이동 좌표를 찾아내는 도중, 특정 반복 수행 단계에서 이동 유사도 측정부(117)를 통해 측정되는 각 이동 후보 정점의 좌표로 제1 정점(210)을 하나씩 이동시켰을 때의 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 현재 위치의 제1 정점(210)의 좌표를 기준으로 측정되는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도를 모두 초과하지 않게 되면, 원형 영역 설정부(115), 후보 정점 선택부(116), 이동 유사도 측정부(117), 이동 후보 정점 좌표 선택부(118) 및 정점 이동부(119)의 동작에 대한 반복수행을 중단하고, 현재 위치의 제1 정점(210)의 좌표를 상기 최종 좌표로 결정할 수 있다.In this regard, the iterative execution control unit 120 includes a circular area setting unit 115, a candidate vertex selection unit 116, a movement similarity measurement unit 117, a movement candidate vertex coordinate selection unit 118, and a vertex movement unit 119 The coordinates of the first vertex 210 are determined as the coordinates of the vertices of the moving candidate measured through the movement similarity measurement unit 117 in the specific iteration step, The degree of similarity between the first triangle element 225 and the reference triangle element 230 when the first triangle element 225 and the reference triangle element 225 are shifted one by one is measured based on the coordinates of the first vertex 210 of the current position, The candidate vertex selector 116, the moving similarity measuring unit 117, the moving candidate vertex coordinate selector 118, and the vertex shifter (not shown) 119) is stopped, and the current The coordinates of the first vertex 210 of the position may be determined as the final coordinates.

즉, 반복 수행 제어부(120)는 제1 정점(210)의 이동을 위해서 도 3에 도시된 실시예와 같은 동작을 반복 수행하다가 제1 정점(210)을 이동 후보 정점의 좌표로 이동시키더라도 더 이상 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 증가하지 않는 한계 지점에 다다르게 되면, 더 이상 도 3에 도시된 실시예와 같은 동작을 수행하지 않고, 현재 위치의 제1 정점(210)의 좌표, 즉, 상기 도 3의 실시예의 동작에 따라서 제1 정점(210)이 이동한 마지막 위치의 좌표를 상기 그래픽 모델의 메쉬 구조에 대한 보정을 위한 최종 이동 좌표로 결정할 수 있다.That is, the iterative execution control unit 120 repeatedly performs the same operation as the embodiment shown in FIG. 3 for the movement of the first vertex 210 and moves the first vertex 210 to the coordinates of the vertex of the moving vertex 210 When the degree of similarity between the first triangle element 225 and the reference triangle element 230 is not increased, the same operation as in the embodiment shown in FIG. 3 is not performed, The coordinates of the last position where the first vertex 210 moved in accordance with the coordinates of the mesh 210, that is, the operation of the embodiment of FIG. 3, may be determined as the final movement coordinates for correction for the mesh structure of the graphic model.

이러한 방식으로, 구조 보정부(119)는 제1 삼각형 엘리먼트(225)와 참조 삼각형 엘리먼트(230) 간의 유사도가 최대가 되는(IMR이 최소가 되는) 지점을 찾아낸 후 해당 지점으로 제1 정점(210)을 이동시킴으로써, 참조 삼각형 엘리먼트(230)와 가장 유사하지 않은 제1 삼각형 엘리먼트(225)를 참조 삼각형 엘리먼트(230)와 비슷하게 만드는 과정을 통해 상기 그래픽 모델의 메쉬 구조의 품질에 대한 향상을 도모할 수 있다.In this way, the structural correction unit 119 finds a point at which the degree of similarity between the first triangular element 225 and the reference triangular element 230 is maximized (IMR becomes minimum), and then the first vertex 210 The quality of the mesh structure of the graphic model is improved by moving the first triangle element 225 that is not the most similar to the reference triangle element 230 to the reference triangle element 230 .

이렇게, 제1 정점(210)의 이동을 통해 상기 그래픽 모델의 메쉬 구조에 대한 보정이 완료되면, 반복 처리 제어부(121)는 상기 복수의 정점들 중 제1 정점(210)을 제외한 나머지 정점들 각각에 대해서도 엘리먼트 선택부(111), 유사도 측정부(112), 최소 유사도 선택부(113) 및 구조 보정부(114)에 따른 동작의 반복수행을 제어함으로써, 상기 복수의 정점들 각각의 이동을 통한 상기 그래픽 모델의 메쉬 구조에 대한 보정을 제어하여 최종적으로 상기 그래픽 모델의 메쉬 구조가 최적화될 수 있도록 지원할 수 있다.When the correction of the mesh structure of the graphic model is completed through the movement of the first vertex 210, the iterative processing controller 121 determines the vertexes of the vertexes except for the first vertex 210, The similarity degree measuring unit 112, the minimum similarity degree selecting unit 113 and the structure correcting unit 114 are controlled to perform the operations of the element selecting unit 111, the similarity measuring unit 112, the minimum similarity selecting unit 113, It is possible to control the correction of the mesh structure of the graphic model to finally optimize the mesh structure of the graphic model.

도 4는 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법을 도시한 순서도이다.4 is a flowchart illustrating a graphic processing method for improving mesh quality according to an exemplary embodiment of the present invention.

단계(S410)에서는 메쉬 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트들의 꼭짓점에 해당되는 복수의 정점들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택한다.In step S410, at least one polygon element having the first vertex as a vertex is selected based on the first vertex among the plurality of vertices corresponding to the vertices of the plurality of polygon elements constituting the graphic model having the mesh structure do.

단계(S420)에서는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 그래픽 모델에 적용될 최적의 형태로 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정한다.In step S420, for each of the at least one polygon element, a degree of similarity with a reference polygon element previously designated in an optimal form to be applied to the graphic model is measured.

단계(S430)에서는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택한다.In step S430, the first polygon element having the smallest similarity among the at least one polygon elements is selected based on the similarity measured for each of the at least one polygon elements.

단계(S440)에서는 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정한다.In operation S440, when the first vertex moves in the region where the at least one polygon element exists, the first polygon element and the reference polygon element, which can be measured as the shape of the first polygon element is deformed, And the mesh structure of the graphic model is corrected by moving the first vertex to the coordinates of the moving point of the selected first vertex to select the coordinates of the moving point of the first vertex.

이때, 본 발명의 일실시예에 따르면, 단계(S420)에서는 상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 참조 다각형 엘리먼트와의 역 평균 비율(Inverse Mean Ratio: IMR)(IMR이 낮을수록 유사도가 높음을 의미함)을 연산하여 상기 적어도 하나의 다각형 엘리먼트 각각에 대해 연산된 IMR을 기초로 상기 적어도 하나의 다각형 엘리먼트 각각과 상기 참조 다각형 엘리먼트 간의 유사도를 측정할 수 있다.According to an embodiment of the present invention, in step S420, for each of the at least one polygon element, an inverse mean ratio (IMR) with respect to the reference polygon element To determine the degree of similarity between each of the at least one polygon element and the reference polygon element based on the calculated IMR for each of the at least one polygon element.

이때, 상기 IMR은 상기 수학식 1에 기초하여 연산될 수 있다.At this time, the IMR may be calculated based on Equation (1).

또한, 본 발명의 일실시예에 따르면, 단계(S440)에서는 상기 제1 정점의 현재 좌표를 중심으로 선정된 길이의 반경을 갖는 가상의 원형 영역을 설정하는 원형 영역 설정 단계, 상기 가상의 원형 영역 상에서 선정된 간격으로 상기 가상의 원형 영역 상에 위치하는 적어도 하나의 이동 후보 정점을 선택하는 후보 정점 선택 단계, 상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 측정하는 이동 유사도 측정 단계, 상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도 측정 결과를 기초로 상기 적어도 하나의 이동 후보 정점의 좌표 중 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대로 측정된 제1 이동 후보 정점의 좌표를 선택하는 이동 후보 정점 좌표 선택 단계 및 상기 제1 이동 후보 정점의 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조에 대한 보정을 수행하는 정점 이동 단계를 포함할 수 있다.According to an embodiment of the present invention, in step S440, a circular area setting step of setting a virtual circular area having a radius of a predetermined length centered on the current coordinate of the first vertex, Selecting at least one moving candidate vertex located on the virtual circular area at a predetermined interval on the basis of the first vertex of the moving candidate vertex, Measuring a degree of similarity between the first polygonal element and the reference polygonal element to be deformed, measuring a degree of similarity between the first polygonal element and the reference polygonal element, and calculating a degree of similarity between the first polygonal element and the reference polygonal element, Based on the result of the similarity measurement between the element and the reference polygon element, A moving candidate vertex coordinate selecting step of selecting a coordinate of a first moving candidate vertex in which the degree of similarity between the first polygon element and the reference polygon element is maximally measured among coordinates of a candidate vertex, And a vertex moving step of moving one vertex to perform correction of the mesh structure of the graphic model.

이때, 본 발명의 일실시예에 따르면, 단계(S440)에서는 상기 제1 이동 후보 정점의 좌표로 상기 제1 정점이 이동되면, 상기 이동된 제1 정점을 기초로 상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계를 반복수행함으로써, 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 최종 좌표를 선택하여 상기 선택된 제1 정점의 이동 지점에 대한 최종 좌표로 상기 제1 정점이 이동되도록 제어하는 반복 수행 제어 단계를 더 포함할 수 있다.According to an embodiment of the present invention, in step S440, when the first vertex is moved to the coordinates of the first moving candidate vertex, the circular area setting step, the candidate By repeating the vertex selection step, the moving similarity measurement step, the moving candidate vertex coordinate selection step and the vertex moving step, the shape of the first polygon element is deformed in the region where the at least one polygon element exists, Selecting a final coordinate of a moving point of the first vertex at which the degree of similarity between the first polygonal element and the reference polygonal element that can be measured is maximized, And an iteration control step of controlling the vertex to be moved.

이때, 본 발명의 일실시예에 따르면, 상기 반복 수행 제어 단계는 상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계를 반복수행하는 도중, 상기 이동 유사도 측정 단계를 통해 측정되는 각 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시켰을 때의 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 현재 위치의 상기 제1 정점의 좌표를 기준으로 측정되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 모두 초과하지 않게 되면, 상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계에 대한 반복수행을 중단하고, 현재 위치의 상기 제1 정점의 좌표를 상기 최종 좌표로 결정할 수 있다.In this case, according to an embodiment of the present invention, the iterative execution control step repeats the circular region setting step, the candidate vertex selecting step, the moving similarity measuring step, the moving candidate vertex coordinate selecting step, and the vertex moving step The degree of similarity between the first polygonal element and the reference polygon element when the first vertex is moved by one coordinate point of each moving candidate vertex measured through the moving similarity measurement step is smaller than the degree of similarity between the first vertex of the current position If the degree of similarity between the first polygon element and the reference polygon element measured based on the coordinates is not exceeded, the circular region setting step, the candidate vertex selecting step, the moving similarity measuring step, the moving candidate vertex coordinate selecting step And stopping the iterative execution of the vertex moving step, It is possible to determine the coordinates of the first vertex of the position to the final coordinates.

또한, 본 발명의 일실시예에 따르면, 상기 메쉬 품질 향상을 위한 그래픽 처리 방법은 상기 제1 정점의 이동을 통해 상기 그래픽 모델의 메쉬 구조에 대한 보정이 완료되면, 상기 복수의 정점들 중 상기 제1 정점을 제외한 나머지 정점들 각각에 대해서도 상기 엘리먼트 선택 단계, 상기 유사도 측정 단계, 상기 최소 유사도 선택 단계 및 상기 구조 보정 단계의 반복수행을 제어함으로써, 상기 복수의 정점들 각각의 이동을 통한 상기 그래픽 모델의 메쉬 구조에 대한 보정을 제어하는 반복 처리 제어 단계를 더 포함할 수 있다.According to another embodiment of the present invention, there is provided a graphic processing method for enhancing the quality of a mesh, comprising: when the correction of the mesh structure of the graphic model is completed through movement of the first vertex, By controlling the repetition of the element selecting step, the similarity measuring step, the minimum similarity selecting step, and the structure correcting step for each of the vertices except for one vertex, And an iterative process control step of controlling the correction for the mesh structure of the mesh structure.

이상, 도 4를 참조하여 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법에 대해 설명하였다. 여기서, 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법은 도 1 내지 도 3을 이용하여 설명한 메쉬 품질 향상을 위한 그래픽 처리 장치(110)의 동작에 대한 구성과 대응될 수 있으므로, 이에 대한 보다 상세한 설명은 생략하기로 한다.The graphical processing method for enhancing the mesh quality according to one embodiment of the present invention has been described above with reference to FIG. Here, the graphic processing method for enhancing the mesh quality according to an embodiment of the present invention may correspond to the configuration of the operation of the graphic processing apparatus 110 for enhancing the mesh quality described with reference to FIGS. 1 to 3, A detailed description thereof will be omitted.

본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법은 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램으로 구현될 수 있다.The graphic processing method for improving mesh quality according to an exemplary embodiment of the present invention may be implemented as a computer program stored in a storage medium for execution through a combination with a computer.

또한, 본 발명의 일실시예에 따른 메쉬 품질 향상을 위한 그래픽 처리 방법은 다양한 컴퓨터 수단을 통하여 수행될 수 있는 프로그램 명령 형태로 구현되어 컴퓨터 판독 가능 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능 매체는 프로그램 명령, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 상기 매체에 기록되는 프로그램 명령은 본 발명을 위하여 특별히 설계되고 구성된 것들이거나 컴퓨터 소프트웨어 당업자에게 공지되어 사용 가능한 것일 수도 있다. 컴퓨터 판독 가능 기록 매체의 예에는 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체(magnetic media), CD-ROM, DVD와 같은 광기록 매체(optical media), 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 롬(ROM), 램(RAM), 플래시 메모리 등과 같은 프로그램 명령을 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 프로그램 명령의 예에는 컴파일러에 의해 만들어지는 것과 같은 기계어 코드뿐만 아니라 인터프리터 등을 사용해서 컴퓨터에 의해서 실행될 수 있는 고급 언어 코드를 포함한다. In addition, the graphic processing method for improving mesh quality according to an exemplary embodiment of the present invention may be implemented in the form of a program command that can be executed through various computer means, and may be recorded in a computer readable medium. The computer-readable medium may include program instructions, data files, data structures, and the like, alone or in combination. The program instructions recorded on the medium may be those specially designed and constructed for the present invention or may be available to those skilled in the art of computer software. Examples of computer-readable media include magnetic media such as hard disks, floppy disks and magnetic tape; optical media such as CD-ROMs and DVDs; magnetic media such as floppy disks; Magneto-optical media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. Examples of program instructions include machine language code such as those produced by a compiler, as well as high-level language code that can be executed by a computer using an interpreter or the like.

이상과 같이 본 발명에서는 구체적인 구성 요소 등과 같은 특정 사항들과 한정된 실시예 및 도면에 의해 설명되었으나 이는 본 발명의 보다 전반적인 이해를 돕기 위해서 제공된 것일 뿐, 본 발명은 상기의 실시예에 한정되는 것은 아니며, 본 발명이 속하는 분야에서 통상적인 지식을 가진 자라면 이러한 기재로부터 다양한 수정 및 변형이 가능하다. As described above, the present invention has been described with reference to particular embodiments, such as specific elements, and specific embodiments and drawings. However, it should be understood that the present invention is not limited to the above- And various modifications and changes may be made thereto by those skilled in the art to which the present invention pertains.

따라서, 본 발명의 사상은 설명된 실시예에 국한되어 정해져서는 아니되며, 후술하는 특허청구범위뿐 아니라 이 특허청구범위와 균등하거나 등가적 변형이 있는 모든 것들은 본 발명 사상의 범주에 속한다고 할 것이다.Accordingly, the spirit of the present invention should not be construed as being limited to the embodiments described, and all of the equivalents or equivalents of the claims, as well as the following claims, belong to the scope of the present invention .

110: 메쉬 품질 향상을 위한 그래픽 처리 장치
111: 엘리먼트 선택부 112: 유사도 측정부
113: 최소 유사도 선택부 114: 구조 보정부
115: 원형 영역 설정부 116: 후보 정점 선택부
117: 이동 유사도 측정부 118: 이동 후보 정점 좌표 선택부
119: 정점 이동부 120: 반복 수행 제어부
121: 반복 처리 제어부
110: Graphic processing device for improving mesh quality
111: Element selection unit 112:
113: minimum likelihood selector 114:
115: circular area setting unit 116: candidate vertex selection unit
117: moving similarity measuring unit 118: moving candidate vertex coordinate selecting unit
119: Vertex moving unit 120: Repeated execution control unit
121:

Claims (14)

메쉬(mesh) 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트(element)들의 꼭짓점에 해당되는 복수의 정점(vertex)들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택하는 엘리먼트 선택부;
상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정하는 유사도 측정부;
상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택하는 최소 유사도 선택부; 및
상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정하는 구조 보정부
를 포함하고,
상기 구조 보정부는
상기 제1 정점의 현재 좌표를 중심으로 선정된(predetermined) 길이의 반경을 갖는 가상의 원형 영역을 설정하는 원형 영역 설정부;
상기 가상의 원형 영역 상에서 선정된 간격으로 상기 가상의 원형 영역 상에 위치하는 적어도 하나의 이동 후보 정점을 선택하는 후보 정점 선택부;
상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 측정하는 이동 유사도 측정부;
상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도 측정 결과를 기초로 상기 적어도 하나의 이동 후보 정점의 좌표 중 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대로 측정된 제1 이동 후보 정점의 좌표를 선택하는 이동 후보 정점 좌표 선택부; 및
상기 제1 이동 후보 정점의 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조에 대한 보정을 수행하는 정점 이동부
를 포함하는 메쉬 품질 향상을 위한 그래픽 처리 장치.
A plurality of polygon elements constituting a graphic model having a mesh structure and having at least one vertex as a vertex with respect to a first vertex among a plurality of vertices corresponding to vertexes of the plurality of polygon elements, An element selector for selecting a polygon element;
A similarity measuring unit for measuring a similarity of the at least one polygon element to a predetermined reference polygon element;
A minimum similarity degree selection unit for selecting a first polygon element having a minimum similarity among the at least one polygon elements based on the similarity measured for each of the at least one polygon elements; And
Wherein a degree of similarity between the first polygonal element and the reference polygonal element that can be measured as the shape of the first polygonal element is deformed when the first vertex moves within an area in which the at least one polygonal element exists is at a maximum And a structure corrector for correcting the mesh structure of the graphic model by moving the first vertex to a coordinate of a moving point of the selected first vertex to select a coordinate for the moving point of the first vertex,
Lt; / RTI >
The structure correcting unit
A circular area setting unit for setting a virtual circular area having a predetermined length radius around a current coordinate of the first vertex;
A candidate vertex selector for selecting at least one motion candidate vertex located on the virtual circular area at a predetermined interval on the virtual circular area;
A moving similarity measuring unit for measuring a degree of similarity between the first polygon element and the reference polygon element, the shape of which is deformed by moving the first vertex one by one at coordinates of the at least one moving candidate vertex;
The coordinates of the at least one movement candidate vertex, and the coordinates of the at least one movement candidate vertex based on the result of measuring the degree of similarity between the first polygon element and the reference polygon element whose shape is deformed by moving the first vertex one by one, A moving candidate vertex coordinate selector for selecting a coordinate of a first moving candidate vertex having a maximum degree of similarity between the first polygon element and the reference polygon element; And
And a vertex moving unit for moving the first vertex to coordinates of the first moving candidate vertex and performing correction on the mesh structure of the graphic model,
Wherein the mesh quality is improved.
제1항에 있어서,
상기 유사도 측정부는
상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 참조 다각형 엘리먼트와의 역 평균 비율(Inverse Mean Ratio: IMR) - IMR이 낮을수록 유사도가 높음을 의미함 - 을 연산하여 상기 적어도 하나의 다각형 엘리먼트 각각에 대해 연산된 IMR을 기초로 상기 적어도 하나의 다각형 엘리먼트 각각과 상기 참조 다각형 엘리먼트 간의 유사도를 측정하며,
상기 IMR은 하기의 수학식 1에 기초하여 연산되는 메쉬 품질 향상을 위한 그래픽 처리 장치.
[수학식 1]
Figure 112017074966723-pat00008

여기서, "A"는 적어도 하나의 다각형 엘리먼트 각각을 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 적어도 하나의 다각형 엘리먼트들 각각을 표현한 근접 행렬(incidence matrix), "W"는 상기 참조 다각형 엘리먼트를 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 참조 다각형 엘리먼트를 표현한 근접 행렬, "
Figure 112017074966723-pat00009
"는 프로베니우스 놈(Frobenius norm), "
Figure 112017074966723-pat00010
"는 행렬식(determinant)을 의미함.
The method according to claim 1,
The similarity-
For each of the at least one polygon element, an inverse mean ratio (IMR) with respect to the reference polygon element - a higher degree of similarity as the IMR is lower, to calculate for each of the at least one polygon element Measure the similarity between each of the at least one polygon element and the reference polygon element based on the computed IMR,
The IMR is computed based on Equation (1) below.
[Equation 1]
Figure 112017074966723-pat00008

Here, "A" is an incidence matrix representing the respective at least one polygon element using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting each of the at least one polygon element, "W Quot; is an approximate matrix representing the reference polygon element by using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting the reference polygon element, "
Figure 112017074966723-pat00009
Quot; Frobenius norm ","
Figure 112017074966723-pat00010
"Means determinant.
삭제delete 제1항에 있어서,
상기 구조 보정부는
상기 제1 이동 후보 정점의 좌표로 상기 제1 정점이 이동되면, 상기 이동된 제1 정점을 기초로 상기 원형 영역 설정부, 상기 후보 정점 선택부, 상기 이동 유사도 측정부, 상기 이동 후보 정점 좌표 선택부 및 상기 정점 이동부의 동작을 반복수행함으로써, 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 최종 좌표를 선택하여 상기 선택된 제1 정점의 이동 지점에 대한 최종 좌표로 상기 제1 정점이 이동되도록 제어하는 반복 수행 제어부
를 더 포함하는 메쉬 품질 향상을 위한 그래픽 처리 장치.
The method according to claim 1,
The structure correcting unit
When the first vertex is moved to the coordinates of the first moving candidate vertex, the circular area setting unit, the candidate vertex selecting unit, the moving similarity measuring unit, the moving candidate vertex coordinate selecting Wherein the first polygon element and the second polygon element can be measured as the shape of the first polygon element is deformed in the region where the at least one polygon element exists, Selecting a final coordinate of the moving point of the first vertex at which the degree of similarity becomes maximum and controlling the moving of the first vertex to the final coordinates of the moving point of the selected first vertex,
Wherein the mesh processing unit further includes:
제4항에 있어서,
상기 반복 수행 제어부는
상기 원형 영역 설정부, 상기 후보 정점 선택부, 상기 이동 유사도 측정부, 상기 이동 후보 정점 좌표 선택부 및 상기 정점 이동부의 동작을 반복수행하는 도중, 상기 이동 유사도 측정부를 통해 측정되는 각 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시켰을 때의 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 현재 위치의 상기 제1 정점의 좌표를 기준으로 측정되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 모두 초과하지 않게 되면, 상기 원형 영역 설정부, 상기 후보 정점 선택부, 상기 이동 유사도 측정부, 상기 이동 후보 정점 좌표 선택부 및 상기 정점 이동부의 동작에 대한 반복수행을 중단하고, 현재 위치의 상기 제1 정점의 좌표를 상기 최종 좌표로 결정하는 메쉬 품질 향상을 위한 그래픽 처리 장치.
5. The method of claim 4,
The repetition control unit
Wherein the movement candidate vertex coordinates measured by the motion similarity measuring unit are measured while the operations of the circular area setting unit, the candidate vertex selecting unit, the moving similarity measuring unit, the moving candidate vertex coordinate selecting unit and the vertex moving unit are repeatedly performed. Wherein the degree of similarity between the first polygonal element and the reference polygon element when the first vertex is moved by one coordinate is measured between the first polygon element and the reference polygon element measured based on the coordinates of the first vertex at the current position, When the degree of similarity is not exceeded, the iterative execution of the operations of the circular area setting unit, the candidate vertex selecting unit, the moving similarity measuring unit, the moving candidate vertex coordinate selecting unit and the vertex moving unit is stopped, For determining the coordinates of the first vertex as the final coordinate, Graphics processing device.
제1항에 있어서,
상기 제1 정점의 이동을 통해 상기 그래픽 모델의 메쉬 구조에 대한 보정이 완료되면, 상기 복수의 정점들 중 상기 제1 정점을 제외한 나머지 정점들 각각에 대해서도 상기 엘리먼트 선택부, 상기 유사도 측정부, 상기 최소 유사도 선택부 및 상기 구조 보정부에 따른 동작의 반복수행을 제어함으로써, 상기 복수의 정점들 각각의 이동을 통한 상기 그래픽 모델의 메쉬 구조에 대한 보정을 제어하는 반복 처리 제어부
를 더 포함하는 메쉬 품질 향상을 위한 그래픽 처리 장치.
The method according to claim 1,
Wherein when the correction of the mesh structure of the graphic model is completed through the movement of the first vertex, for each of the vertices except for the first vertex among the plurality of vertices, the element selecting unit, the similarity measuring unit, And a repetitive processing control unit for controlling correction of the mesh structure of the graphic model through movement of each of the plurality of vertices by controlling repetition of operations according to the minimum similarity degree selection unit and the structure correcting unit,
Wherein the mesh processing unit further includes:
메쉬(mesh) 구조를 갖는 그래픽 모델을 구성하는 복수의 다각형 엘리먼트(element)들의 꼭짓점에 해당되는 복수의 정점(vertex)들 중 제1 정점을 기준으로, 상기 제1 정점을 꼭짓점으로 갖는 적어도 하나의 다각형 엘리먼트를 선택하는 엘리먼트 선택 단계;
상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 미리 지정된 참조 다각형 엘리먼트와의 유사도를 측정하는 유사도 측정 단계;
상기 적어도 하나의 다각형 엘리먼트 각각에 대해서 측정된 유사도를 기초로 상기 적어도 하나의 다각형 엘리먼트 중 유사도가 최소인 제1 다각형 엘리먼트를 선택하는 최소 유사도 선택 단계; 및
상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 정점이 이동하는 경우 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 좌표를 선택하고, 상기 선택된 제1 정점의 이동 지점에 대한 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조를 보정하는 구조 보정 단계
를 포함하고,
상기 구조 보정 단계는
상기 제1 정점의 현재 좌표를 중심으로 선정된(predetermined) 길이의 반경을 갖는 가상의 원형 영역을 설정하는 원형 영역 설정 단계;
상기 가상의 원형 영역 상에서 선정된 간격으로 상기 가상의 원형 영역 상에 위치하는 적어도 하나의 이동 후보 정점을 선택하는 후보 정점 선택 단계;
상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 측정하는 이동 유사도 측정 단계;
상기 적어도 하나의 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시킴에 따라 형태가 변형되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도 측정 결과를 기초로 상기 적어도 하나의 이동 후보 정점의 좌표 중 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대로 측정된 제1 이동 후보 정점의 좌표를 선택하는 이동 후보 정점 좌표 선택 단계; 및
상기 제1 이동 후보 정점의 좌표로 상기 제1 정점을 이동시켜 상기 그래픽 모델의 메쉬 구조에 대한 보정을 수행하는 정점 이동 단계
를 포함하는 메쉬 품질 향상을 위한 그래픽 처리 방법.
A plurality of polygon elements constituting a graphic model having a mesh structure and having at least one vertex as a vertex with respect to a first vertex among a plurality of vertices corresponding to vertexes of the plurality of polygon elements, An element selecting step of selecting a polygon element;
A similarity measuring step of measuring, for each of the at least one polygon element, a degree of similarity to a predetermined reference polygon element;
Selecting a first polygon element having a minimum similarity among the at least one polygon elements based on the similarity measured for each of the at least one polygon element; And
Wherein a degree of similarity between the first polygonal element and the reference polygonal element, which can be measured as the shape of the first polygonal element is deformed when the first vertex moves within the region in which the at least one polygonal element exists, And a structure correction step of correcting the mesh structure of the graphic model by moving the first vertex to a coordinate of a moving point of the selected first vertex to select a coordinate for the moving point of the first vertex,
Lt; / RTI >
The structure correcting step
A circular area setting step of setting a virtual circular area having a predetermined length radius around the current coordinates of the first vertex;
A candidate vertex selection step of selecting at least one motion candidate vertex located on the virtual circular area at a predetermined interval on the virtual circular area;
Measuring a degree of similarity between the first polygonal element and the reference polygonal element, the shape of which is deformed by moving the first vertex one by one at coordinates of the at least one moving candidate vertex;
The coordinates of the at least one movement candidate vertex, and the coordinates of the at least one movement candidate vertex based on the result of measuring the degree of similarity between the first polygon element and the reference polygon element, the shape of which is deformed by moving the first vertex one by one, A moving candidate vertex coordinate selecting step of selecting a coordinate of a first moving candidate vertex in which the degree of similarity between the first polygon element and the reference polygon element is measured to the maximum; And
A vertex moving step of moving the first vertex to a coordinate of the first moving candidate vertex to perform correction on the mesh structure of the graphic model;
And a graphical processing method for improving mesh quality.
제7항에 있어서,
상기 유사도 측정 단계는
상기 적어도 하나의 다각형 엘리먼트 각각에 대해, 상기 참조 다각형 엘리먼트와의 역 평균 비율(Inverse Mean Ratio: IMR) - IMR이 낮을수록 유사도가 높음을 의미함 - 을 연산하여 상기 적어도 하나의 다각형 엘리먼트 각각에 대해 연산된 IMR을 기초로 상기 적어도 하나의 다각형 엘리먼트 각각과 상기 참조 다각형 엘리먼트 간의 유사도를 측정하며,
상기 IMR은 하기의 수학식 2에 기초하여 연산되는 메쉬 품질 향상을 위한 그래픽 처리 방법.
[수학식 2]
Figure 112017074966723-pat00011

여기서, "A"는 적어도 하나의 다각형 엘리먼트 각각을 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 적어도 하나의 다각형 엘리먼트들 각각을 표현한 근접 행렬(incidence matrix), "W"는 상기 참조 다각형 엘리먼트를 구성하는 특정 기준 꼭짓점의 좌표를 기준으로 나머지 꼭짓점들 간의 거리를 이용하여 상기 참조 다각형 엘리먼트를 표현한 근접 행렬, "
Figure 112017074966723-pat00012
"는 프로베니우스 놈(Frobenius norm), "
Figure 112017074966723-pat00013
"는 행렬식(determinant)을 의미함.
8. The method of claim 7,
The similarity measure step
For each of the at least one polygon element, an inverse mean ratio (IMR) with respect to the reference polygon element - a higher degree of similarity as the IMR is lower, to calculate for each of the at least one polygon element Measure the similarity between each of the at least one polygon element and the reference polygon element based on the computed IMR,
Wherein the IMR is computed based on Equation (2) below.
&Quot; (2) "
Figure 112017074966723-pat00011

Here, "A" is an incidence matrix representing the respective at least one polygon element using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting each of the at least one polygon element, "W Quot; is an approximate matrix representing the reference polygon element by using the distance between the remaining vertexes based on the coordinates of the specific reference vertex constituting the reference polygon element, "
Figure 112017074966723-pat00012
Quot; Frobenius norm ","
Figure 112017074966723-pat00013
"Means determinant.
삭제delete 제7항에 있어서,
상기 구조 보정 단계는
상기 제1 이동 후보 정점의 좌표로 상기 제1 정점이 이동되면, 상기 이동된 제1 정점을 기초로 상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계를 반복수행함으로써, 상기 적어도 하나의 다각형 엘리먼트가 존재하는 영역 내에서 상기 제1 다각형 엘리먼트의 형태가 변형됨에 따라 측정될 수 있는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 최대가 되는 상기 제1 정점의 이동 지점에 대한 최종 좌표를 선택하여 상기 선택된 제1 정점의 이동 지점에 대한 최종 좌표로 상기 제1 정점이 이동되도록 제어하는 반복 수행 제어 단계
를 더 포함하는 메쉬 품질 향상을 위한 그래픽 처리 방법.
8. The method of claim 7,
The structure correcting step
The method of claim 1, wherein when the first vertex is moved to the coordinates of the vertex of the first moving candidate, the circular area setting step, the candidate vertex selecting step, the moving similarity measuring step, Wherein the first polygon element and the second polygon element can be measured as the shape of the first polygon element is deformed in the region where the at least one polygon element exists, Selecting a final coordinate of a moving point of the first vertex at which the first vertex is maximized and controlling the moving of the first vertex to final coordinates of the moving point of the selected first vertex
And a graphical processing method for enhancing mesh quality.
제10항에 있어서,
상기 반복 수행 제어 단계는
상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계를 반복수행하는 도중, 상기 이동 유사도 측정 단계를 통해 측정되는 각 이동 후보 정점의 좌표로 상기 제1 정점을 하나씩 이동시켰을 때의 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도가 현재 위치의 상기 제1 정점의 좌표를 기준으로 측정되는 상기 제1 다각형 엘리먼트와 상기 참조 다각형 엘리먼트 간의 유사도를 모두 초과하지 않게 되면, 상기 원형 영역 설정 단계, 상기 후보 정점 선택 단계, 상기 이동 유사도 측정 단계, 상기 이동 후보 정점 좌표 선택 단계 및 상기 정점 이동 단계에 대한 반복수행을 중단하고, 현재 위치의 상기 제1 정점의 좌표를 상기 최종 좌표로 결정하는 메쉬 품질 향상을 위한 그래픽 처리 방법.
11. The method of claim 10,
The repetitive execution control step
The method of claim 1, wherein, during the repetition of the circular region setting step, the candidate vertex selecting step, the moving similarity measuring step, the moving candidate vertex coordinate selecting step, and the vertex moving step, Wherein the degree of similarity between the first polygonal element and the reference polygon element when the first vertex is moved by one coordinate is measured between the first polygon element and the reference polygon element measured based on the coordinates of the first vertex at the current position, Stopping the iterative execution of the circular area setting step, the candidate vertex selecting step, the moving similarity measuring step, the moving candidate vertex coordinate selecting step, and the vertex moving step when the degree of similarity does not exceed all, A mesh for determining the coordinates of the first vertex as the final coordinate Graphics processing method for quality improvement.
제7항에 있어서,
상기 제1 정점의 이동을 통해 상기 그래픽 모델의 메쉬 구조에 대한 보정이 완료되면, 상기 복수의 정점들 중 상기 제1 정점을 제외한 나머지 정점들 각각에 대해서도 상기 엘리먼트 선택 단계, 상기 유사도 측정 단계, 상기 최소 유사도 선택 단계 및 상기 구조 보정 단계의 반복수행을 제어함으로써, 상기 복수의 정점들 각각의 이동을 통한 상기 그래픽 모델의 메쉬 구조에 대한 보정을 제어하는 반복 처리 제어 단계
를 더 포함하는 메쉬 품질 향상을 위한 그래픽 처리 방법.
8. The method of claim 7,
The method of claim 1, wherein, when the correction of the mesh structure of the graphic model is completed through the movement of the first vertex, the element selecting step, the similarity measuring step, An iterative processing control step of controlling correction of the mesh structure of the graphic model through movement of each of the plurality of vertices by controlling repetition of the minimum similarity selection step and the structure correction step
And a graphical processing method for enhancing mesh quality.
제7항, 제8항, 제10항, 제11항 또는 제12항 중 어느 한 항의 방법을 컴퓨터로 하여금 수행하도록 하는 프로그램을 기록한 컴퓨터 판독 가능 기록 매체.A computer-readable recording medium recording a program that causes a computer to perform the method of any one of claims 7, 8, 10, 11, 제7항, 제8항, 제10항, 제11항 또는 제12항 중 어느 한 항의 방법을 컴퓨터와의 결합을 통해 실행시키기 위한 저장매체에 저장된 컴퓨터 프로그램.A computer program stored in a storage medium for executing the method of any one of claims 7, 8, 10, 11, or 12 through a combination with a computer.
KR1020170098400A 2017-08-03 2017-08-03 Graphic processing apparatus and method for improving mesh quality KR101944932B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020170098400A KR101944932B1 (en) 2017-08-03 2017-08-03 Graphic processing apparatus and method for improving mesh quality

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020170098400A KR101944932B1 (en) 2017-08-03 2017-08-03 Graphic processing apparatus and method for improving mesh quality

Publications (1)

Publication Number Publication Date
KR101944932B1 true KR101944932B1 (en) 2019-02-01

Family

ID=65368024

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020170098400A KR101944932B1 (en) 2017-08-03 2017-08-03 Graphic processing apparatus and method for improving mesh quality

Country Status (1)

Country Link
KR (1) KR101944932B1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102056810B1 (en) 2019-03-20 2019-12-17 인천대학교 산학협력단 Graphic processing apparatus and method for improving mesh quality of a graphic model having a high order mesh structure

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980071435A (en) * 1997-02-19 1998-10-26 야마자키 요시오 Method and apparatus for graphical surface model mapping
KR20030016477A (en) * 2001-08-20 2003-03-03 엘지전자 주식회사 Remeshing optimizing method and apparatus for polyhedral surface
JP3515689B2 (en) * 1998-05-22 2004-04-05 富士通株式会社 3D polygon display device using hierarchical polygon data
KR20090080421A (en) * 2008-01-21 2009-07-24 삼성전자주식회사 Method and system for compressing and decoding mesh data of 3-dimensional mesh model
KR20110123950A (en) * 2010-05-10 2011-11-16 삼성전자주식회사 Method and apparatus for processing image

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19980071435A (en) * 1997-02-19 1998-10-26 야마자키 요시오 Method and apparatus for graphical surface model mapping
JP3515689B2 (en) * 1998-05-22 2004-04-05 富士通株式会社 3D polygon display device using hierarchical polygon data
KR20030016477A (en) * 2001-08-20 2003-03-03 엘지전자 주식회사 Remeshing optimizing method and apparatus for polyhedral surface
KR20090080421A (en) * 2008-01-21 2009-07-24 삼성전자주식회사 Method and system for compressing and decoding mesh data of 3-dimensional mesh model
KR20110123950A (en) * 2010-05-10 2011-11-16 삼성전자주식회사 Method and apparatus for processing image

Non-Patent Citations (4)

* Cited by examiner, † Cited by third party
Title
Munson, Todd. "Mesh shape-quality optimization using the inverse mean-ratio metric." Mathematical Programming vol. 110.3 (2007)* *
Todd Munson, "Mesh Shape-Quality Optimization Using the Inverse Mean-Ratio Metric", Argonne National Laboratory(2004.04.20.)
김지범, 조현정, and 김하림. "The effect of mesh partitioning on parallel mesh optimization." 한국 CDE 학회 학술발표회 논문집 (2015) *
신명규, and 김지범. "그래프 컬러링과 OpenMP 를 이용한 병렬 메쉬 스무딩 알고리즘의 성능 분석." 전자공학회논문지 53.6 (2016) *

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102056810B1 (en) 2019-03-20 2019-12-17 인천대학교 산학협력단 Graphic processing apparatus and method for improving mesh quality of a graphic model having a high order mesh structure

Similar Documents

Publication Publication Date Title
US9789651B2 (en) Method for structure preserving topology optimization of lattice structures for additive manufacturing
US8514224B2 (en) Three-dimensional modeling apparatus and method using grid structure
US10255381B2 (en) 3D modeled object defined by a grid of control points
KR100914218B1 (en) System and method for calculating loft surfaces using ?d scan data
US8970628B1 (en) Graphical user interface for performing deformations
US20070229544A1 (en) Nurbs surface deformation apparatus and the method using 3d target curve
JP5785533B2 (en) Brain current calculation method, calculation device, and computer program
JP5197640B2 (en) Machining simulation apparatus and numerical control apparatus
US20140198103A1 (en) Method for polygon reduction
JPWO2007086193A1 (en) Structure analysis method and program by finite element method
JP2010009341A (en) Device and method for classifying/displaying design shape having similar property and different shape, and program
US20200005537A1 (en) Real-time collision deformation
US11922577B2 (en) Method and apparatus for online fitting
KR102300473B1 (en) Adaptive Slicing Method by Merging Vertical Layer Polylines for Reducing 3D Printing Time
US20180046738A1 (en) System, method and readable recording medium of controlling virtual model
KR101944932B1 (en) Graphic processing apparatus and method for improving mesh quality
KR101942370B1 (en) Graphic processing apparatus and method for supporting enhancement of mesh quality based on movement order assignment of free vertices
JP4469284B2 (en) Extraction method of 3D data set that can be modified by user
US8279239B1 (en) Graphical user interface for performing deformations
CN115861547B (en) Model surface spline generating method based on projection
US9639992B2 (en) Methods and systems for multilevel editing of subdivided polygonal data
JP4914004B2 (en) Computerized method, software program and system for modeling mechanisms associated with deformed material
KR102056810B1 (en) Graphic processing apparatus and method for improving mesh quality of a graphic model having a high order mesh structure
KR102058093B1 (en) Graphics processing apparatus and method for improving mesh quality of a graphic model having a high-order mesh structure including overlapping elements
JP4403277B2 (en) Free-form deformation system using barycentric coordinates for convex polyhedron

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right
GRNT Written decision to grant