﻿<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ja">
	<id>https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AApinzonf%2Fdesign</id>
	<title>利用者:Apinzonf/design - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=%E5%88%A9%E7%94%A8%E8%80%85%3AApinzonf%2Fdesign"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Apinzonf/design&amp;action=history"/>
	<updated>2026-06-13T15:04:59Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Apinzonf/design&amp;diff=136585&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Apinzonf/design&amp;diff=136585&amp;oldid=prev"/>
		<updated>2018-06-28T20:49:22Z</updated>

		<summary type="html">&lt;p&gt;1版 をインポートしました&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ja&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;← 古い版&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #222; text-align: center;&quot;&gt;2018年6月28日 (木) 20:49時点における版&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ja&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(相違点なし)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Yamyam</name></author>
		
	</entry>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Apinzonf/design&amp;diff=136584&amp;oldid=prev</id>
		<title>2012年5月28日 (月) 15:48にwiki&gt;Apinzonfによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=%E5%88%A9%E7%94%A8%E8%80%85:Apinzonf/design&amp;diff=136584&amp;oldid=prev"/>
		<updated>2012-05-28T15:48:21Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新規ページ&lt;/b&gt;&lt;/p&gt;&lt;div&gt;= Design =&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Project:&amp;lt;/b&amp;gt; Mesh smoothing based on curvature flow operator in a diffusion equation.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;b&amp;gt;Language:&amp;lt;/b&amp;gt; C, C++.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Introduction == &lt;br /&gt;
&lt;br /&gt;
This document describe the methodology to achieve integration the mesh smoothing tool new in Blender.&lt;br /&gt;
&lt;br /&gt;
This new tool go into the specials menu, because the tool do not working in real time.&lt;br /&gt;
&lt;br /&gt;
{{RefBox&lt;br /&gt;
|mode=Edit Mode (Mesh)&lt;br /&gt;
|hotkey={{shortcut|W}}&lt;br /&gt;
|menu=Specials → Laplacian Smooth&lt;br /&gt;
|lang=en&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Methodology ==&lt;br /&gt;
&lt;br /&gt;
The project would divide into following parts:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Understanding the Blender source code ===&lt;br /&gt;
&lt;br /&gt;
To Identify the key points for the project with base on Blender documentation, and other related documents.&lt;br /&gt;
&lt;br /&gt;
* Operators [[Dev:2.5/Source/Architecture/Operators]]&lt;br /&gt;
* Laplacian implementation &amp;lt;tt&amp;gt;source/blender/editors/armature/meshlaplacian.c&amp;lt;/tt&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Initialize data and necessary structures ===&lt;br /&gt;
&lt;br /&gt;
The structures and functions necessary to implement this new tool, modified as follows the source code of my branch.&lt;br /&gt;
&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/editors/mesh/mesh_intern.h&amp;lt;/tt&amp;gt; &amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void MESH_OT_vertices_smooth_laplacian(struct wmOperatorType *ot);&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/bmesh/intern/bmesh_operators_private.h&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void bmo_vertexsmoothlaplacian_exec(BMesh *bm, BMOperator *op);&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/editors/mesh/mesh_ops.c&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;WM_operatortype_append(MESH_OT_vertices_smooth_laplacian);&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/bmesh/intern/bmesh_opdefines.c&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;static BMOpDefine bmo_vertexsmoothlaplacian_def = { ...&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;b&amp;gt;New file&amp;lt;/b&amp;gt;&amp;lt;br&amp;gt;&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/bmesh/operators/bmo_smooth_laplacian.c&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void bmo_vertexsmoothlaplacian_exec(BMesh *bm, BMOperator *op){...&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/editors/mesh/editmesh_tools.c&amp;lt;/tt&amp;gt;&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void MESH_OT_vertices_smooth_laplacian(wmOperatorType *ot){...&amp;lt;/source&amp;gt;&lt;br /&gt;
*&amp;lt;tt&amp;gt;soc-2012-sushi/source/blender/editors/mesh/editmesh_tools.c&amp;lt;/tt&amp;gt; &amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;static int edbm_do_smooth_laplacian_vertex_exec(bContext *C, wmOperator *op)...&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Implement methods for the initial configuration ===&lt;br /&gt;
&lt;br /&gt;
To achieve this goal it is necessary to implement the following methods in &amp;lt;tt&amp;gt;bmo_smooth_laplacian.c&amp;lt;/tt&amp;gt; file.&lt;br /&gt;
&lt;br /&gt;
* To initialize vertex index, parameters, and calculate initial ring area for each vertex.&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void init_index();&amp;lt;/source&amp;gt;&lt;br /&gt;
* To compute rings in structure for get neighbors to each vertex.&amp;lt;br&amp;gt;&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;void compute_rings();&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Compute the Laplacian Matrix ===&lt;br /&gt;
&lt;br /&gt;
To achieve this goal i must create a method to calculate the Laplacian of a vertex based on the technique proposed in the article by [http://multires.caltech.edu/pubs/ImplicitFairing.pdf Desbrun, et al].&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;&lt;br /&gt;
L_{ij}=\left\{ &lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
w_{ij}=\cot \alpha _{ij}+\cot \beta _{ij} \\ &lt;br /&gt;
\sum_{(i,j)\in E}^{k}-w_{ij} \\ &lt;br /&gt;
0&lt;br /&gt;
\end{array}&lt;br /&gt;
\begin{array}{c}&lt;br /&gt;
if~(i,j)\in E \\ &lt;br /&gt;
if~i=j \\ &lt;br /&gt;
otherwise&lt;br /&gt;
\end{array}&lt;br /&gt;
\right\}&lt;br /&gt;
&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;b&amp;gt;L&amp;lt;/b&amp;gt; is the laplacian matrix, &amp;lt;b&amp;gt;w&amp;lt;/b&amp;gt; is the weigth between the vertex &amp;lt;b&amp;gt;i&amp;lt;/b&amp;gt; and vertex &amp;lt;b&amp;gt;j&amp;lt;/b&amp;gt;, and &amp;lt;b&amp;gt;α&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;β&amp;lt;/b&amp;gt; are the opposite angles to edge between vertex &amp;lt;b&amp;gt;i&amp;lt;/b&amp;gt;, and vertex &amp;lt;b&amp;gt;j&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;c&amp;quot;&amp;gt;float compute_weight(int vertex_i_id, int * neighbors_to_i);&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Integrate or use numerical library ===&lt;br /&gt;
&lt;br /&gt;
Within the libraries present in Blender, I found that I can work with OpenNL, to solve the system of equations, besides that I have &amp;lt;tt&amp;gt;meshlaplacian.c&amp;lt;/tt&amp;gt; guide document in which they solve a system similar to that I have.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Define the sparse linear system ===&lt;br /&gt;
&lt;br /&gt;
I need to solve the following system of equations.&lt;br /&gt;
&lt;br /&gt;
Difusion equation for mesh smoothing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\frac{\partial V}{\partial t}=\lambda L\left( V\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Integrating the diffusion equation with a explicit Euler scheme:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;\left( I+\lambda dtL\right) V^{t+1}=V^{t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where &amp;lt;math&amp;gt;V^{t}&amp;lt;/math&amp;gt; is the actual position of vertex, and &amp;lt;math&amp;gt;V^{t+1}&amp;lt;/math&amp;gt; is the vertex&lt;br /&gt;
after smoothing.&lt;br /&gt;
&lt;br /&gt;
Solving the sparse linear system&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;Ax=b&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Where:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;A=\left( I+\lambda dtL\right) &amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;x=V^{t+1}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;math&amp;gt;b=V^{t}&amp;lt;/math&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Define and implement graphical user integration ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Testing the tool ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Generation of the documentation and tutorials ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Appendix ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== How would look the mesh smoothing tool in Blender ===&lt;br /&gt;
&lt;br /&gt;
[[Image:Apinzonf_GSOC_2012_Diagram1.png|thumb|630px|Mesh Smoothng: a) Original Mesh. b) Smooth with Blender c) New mesh smooth method]]&lt;br /&gt;
&lt;br /&gt;
In the figure above, you can see the problem applying smoothing with blender (Figure b), it shows how you lose detail at the edge on the eyelid of the eye. Figure c smoothing was performed with the method proposed and the detail was not lost on the eyelid.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Description of my development computer ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;OS:&amp;lt;/b&amp;gt; Windows 7&lt;br /&gt;
* &amp;lt;b&amp;gt;Builder System&amp;lt;/b&amp;gt; CMake 2.8.8, MS VS2010&lt;br /&gt;
* &amp;lt;b&amp;gt;SVN tools:&amp;lt;/b&amp;gt; TortoiseSVN 1.7&lt;/div&gt;</summary>
		<author><name>wiki&gt;Apinzonf</name></author>
		
	</entry>
</feed>