﻿<?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=Extensions%3A2.6%2FPy%2FScripts%2FAdd_Mesh%2FData_Surface</id>
	<title>Extensions:2.6/Py/Scripts/Add Mesh/Data Surface - 版の履歴</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.blender.jp/index.php?action=history&amp;feed=atom&amp;title=Extensions%3A2.6%2FPy%2FScripts%2FAdd_Mesh%2FData_Surface"/>
	<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface&amp;action=history"/>
	<updated>2026-04-24T07:24:01Z</updated>
	<subtitle>このウィキのこのページに関する変更履歴</subtitle>
	<generator>MediaWiki 1.31.0</generator>
	<entry>
		<id>https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface&amp;diff=147869&amp;oldid=prev</id>
		<title>Yamyam: 1版 をインポートしました</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface&amp;diff=147869&amp;oldid=prev"/>
		<updated>2018-06-28T21:09:49Z</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日 (木) 21:09時点における版&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=Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface&amp;diff=147868&amp;oldid=prev</id>
		<title>2014年8月19日 (火) 10:44にwiki&gt;Niaswによる</title>
		<link rel="alternate" type="text/html" href="https://wiki.blender.jp/index.php?title=Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface&amp;diff=147868&amp;oldid=prev"/>
		<updated>2014-08-19T10:44:05Z</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;{{ScriptInfo&lt;br /&gt;
|name=Data Surface&lt;br /&gt;
|tooltip=Add a mesh from data files (usually generated by other programs)&lt;br /&gt;
|menu=Group: AddMesh&lt;br /&gt;
|usage=in 3D View: Shift-A &amp;gt; Mesh &amp;gt; Data Surface&lt;br /&gt;
|version=1.1&lt;br /&gt;
|blender=2.71 or later&lt;br /&gt;
|author=Sun Sibai, Pontiac&lt;br /&gt;
|license=GPL v2 or later&lt;br /&gt;
|distribution=Extern&lt;br /&gt;
|note=Data files contain matrices of x,y,z coordinates of vertices.&lt;br /&gt;
|exe=__init__.py &amp;amp; add_mesh_text_data_surface.py&lt;br /&gt;
|download=https://github.com/niasw/add_mesh_DataSurface/archive/master.zip&lt;br /&gt;
|bugtracker=https://github.com/niasw/add_mesh_DataSurface/issues&lt;br /&gt;
|link=https://github.com/niasw/add_mesh_DataSurface&lt;br /&gt;
|issues=&lt;br /&gt;
}}&lt;br /&gt;
&lt;br /&gt;
== Introduction ==&lt;br /&gt;
In engineering and science, numerical data sometimes are more common than analytical expressions. Analytical expressions are accurate and easy to accept, but for numerical algorithms (such as self-adapting optimizing) and real experiments (such as measurements with instruments), numerical data are more suitable and more convenient.&lt;br /&gt;
&lt;br /&gt;
If you want to transfer data from numerical algorithms or real experiments into Blender to visualize them, this addon may be your proper choice. In the example I will show below, I turned text data of x,y and z coordinates into a mesh surface.&lt;br /&gt;
&lt;br /&gt;
If you are seeking for addons for analytical expressions, please go to the addon [http://wiki.blender.org/index.php/Extensions:2.5/Py/Scripts/Add_Mesh/Add_3d_Function_Surface 3D Function Surface].&lt;br /&gt;
&lt;br /&gt;
== Installation ==&lt;br /&gt;
To install this addon, please copy all the scripts and data files to the addon path.&lt;br /&gt;
&lt;br /&gt;
* Download the source file from the [https://github.com/niasw/add_mesh_DataSurface/archive/master.zip download link] and extract to a folder &amp;lt;b&amp;gt;add_mesh_DataSurface&amp;lt;/b&amp;gt;, or use git clone [https://github.com/niasw/add_mesh_DataSurface https://github.com/niasw/add_mesh_DataSurface].&lt;br /&gt;
&lt;br /&gt;
Then copy directory &amp;lt;b&amp;gt;add_mesh_DataSurface&amp;lt;/b&amp;gt; to Blender addon path. If you don't know where is the addon path, please open your Blender, and run scripts below in the Python Console:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import addon_utils&lt;br /&gt;
print(addon_utils.paths())&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To enable this addon, please open your Blender.&lt;br /&gt;
* Click {{Shortcut|Files}} &amp;gt; {{Shortcut|User Preferences ...}} &amp;gt; {{Shortcut|Addons}} &amp;gt; {{Shortcut|Add Mesh}}.&lt;br /&gt;
&lt;br /&gt;
* Find [[File:niasw_add_mesh_DataSurface07.png‎]] and click the checkbox (right)&lt;br /&gt;
&lt;br /&gt;
== Instructions ==&lt;br /&gt;
There are two modules in this addon:&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;Text Data Surface&amp;lt;/b&amp;gt; can create all mesh surface in 3D space. But it needs 3 matrices data:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
x=x(u,v)&lt;br /&gt;
y=y(u,v)&lt;br /&gt;
z=z(u,v)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where x,y,z are coordinates in space and u,v are column and row indices.&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;b&amp;gt;Z Data Surface&amp;lt;/b&amp;gt; can create a subset mesh surface of above. It is convenient for only 1 table data needed:&lt;br /&gt;
&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
z=f(x,y)&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
where x,y data are in form of vector and z data are in form of matrix.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
To show how to use this addon, I will give examples.&lt;br /&gt;
=== example for Text Data Surface ===&lt;br /&gt;
* In the &amp;lt;b&amp;gt;3D View&amp;lt;/b&amp;gt; block, press {{Shortcut|Shift+A}} &amp;gt; {{Shortcut|Mesh}} &amp;gt; {{Shortcut|Data Surface}} &amp;gt; {{Shortcut|Text Data Surface}}.&lt;br /&gt;
Then a twisted ribbon-like mesh shows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
[[File:niasw_add_mesh_DataSurface01.png|340px|]][[File:niasw_add_mesh_DataSurface02.png‎|340px|]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: hidden;margin: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div style=&amp;quot;float: left;&amp;quot;&amp;gt;&lt;br /&gt;
The coordinates of vertices are from data files &amp;lt;b&amp;gt;Xdata.txt&amp;lt;/b&amp;gt;, &amp;lt;b&amp;gt;Ydata.txt&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;Zdata.txt&amp;lt;/b&amp;gt;. &amp;lt;br/&amp;gt;These data can be generated from Octave/Matlab script &amp;lt;b&amp;gt;example.m&amp;lt;/b&amp;gt;. &amp;lt;br/&amp;gt;To change the data files, clicking the browsing buttons (shown right).&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div style=&amp;quot;margin-top: 10px; float: right;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:niasw_add_mesh_DataSurface0A.png]]&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
As for the &amp;lt;b&amp;gt;loop&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;flip&amp;lt;/b&amp;gt; checkbox, try them to know what they represent. After clicking &amp;lt;b&amp;gt;loop&amp;lt;/b&amp;gt;, you should see the figure closed in each Z slice. Yes, the ribbon becomes a tube. After clicking &amp;lt;b&amp;gt;flip&amp;lt;/b&amp;gt;, you should see the light effect changed a little. Yes, the normal direction flipped.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin-left: 128px;margin-right: 128px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface03_1.png‎]]&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface04_1.png‎]]&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface05_1.png‎]]&lt;br /&gt;
|-&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface03_2.png‎|142px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface04_2.png‎|142px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface05_2.png‎|142px|]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
=== example for Z Data Surface ===&lt;br /&gt;
* In the &amp;lt;b&amp;gt;3D View&amp;lt;/b&amp;gt; block, press {{Shortcut|Shift+A}} &amp;gt; {{Shortcut|Mesh}} &amp;gt; {{Shortcut|Data Surface}} &amp;gt; {{Shortcut|Z(X,Y) Table Surface}}.&lt;br /&gt;
Then a floating ribbon-like mesh shows.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div&amp;gt;&lt;br /&gt;
[[File:niasw_add_mesh_DataSurface0B.png|340px|]][[File:niasw_add_mesh_DataSurface0C.png‎|340px|]]&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;div style=&amp;quot;overflow: hidden;margin: 0px;&amp;quot;&amp;gt;&lt;br /&gt;
 &amp;lt;div style=&amp;quot;float: left;&amp;quot;&amp;gt;&lt;br /&gt;
The coordinates of vertices are from table data file &amp;lt;b&amp;gt;csvdata.csv&amp;lt;/b&amp;gt;. &amp;lt;br/&amp;gt;To change the data files, clicking the browsing button (shown right).&amp;lt;br/&amp;gt;Plain text table is also OK.&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
 &amp;lt;div style=&amp;quot;margin-top: 10px; float: right;&amp;quot;&amp;gt;&lt;br /&gt;
[[File:niasw_add_mesh_DataSurface12.png]]&lt;br /&gt;
 &amp;lt;/div&amp;gt;&lt;br /&gt;
&amp;lt;/div&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
The structure of the table in .csv file is shown below:&lt;br /&gt;
&lt;br /&gt;
The .csv file can be exported from spreadsheet programs such as Excel and LibreOffice Calc.&lt;br /&gt;
[[File:niasw_add_mesh_DataSurface13.png|680px]]&lt;br /&gt;
&lt;br /&gt;
There are 3 boolean options in Z Data Surface. &amp;lt;b&amp;gt;loop&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;flip&amp;lt;/b&amp;gt; are like those in Text Data Surface.&lt;br /&gt;
&lt;br /&gt;
Here shows their effects.&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin-left: 128px;margin-right: 128px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface0D_1.png‎]]&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface0E_1.png‎]]&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface0F_1.png‎]]&lt;br /&gt;
|-&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface0D_2.png‎|140px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface0E_2.png‎|140px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface0F_2.png‎|140px|]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
The &amp;lt;b&amp;gt;tran&amp;lt;/b&amp;gt; option is to switch x axis with y axis. It is the same with transposing the whole data table. By combining &amp;lt;b&amp;gt;tran&amp;lt;/b&amp;gt; function and &amp;lt;b&amp;gt;loop&amp;lt;/b&amp;gt; function, we can close the surface mesh either in x direction or y direction, shown below:&lt;br /&gt;
&lt;br /&gt;
{| style=&amp;quot;margin-left: 198px;margin-right: 198px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface10_1.png‎]]&lt;br /&gt;
! [[File:niasw_add_mesh_DataSurface11_1.png‎]]&lt;br /&gt;
|-&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface10_2.png‎|140px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface11_2.png‎|140px|]]&lt;br /&gt;
|-&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface10_3.png‎|140px|]]&lt;br /&gt;
| [[File:niasw_add_mesh_DataSurface11_3.png‎|140px|]]&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
== Notes ==&lt;br /&gt;
If you have further requirements, you can fork the source codes and develop your own one. To know how this addon works, please go to page [http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface/Text_Data_Surface Text Data Surface] and [http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/Data_Surface/Z_Data_Surface Z Data Surface].&lt;br /&gt;
&lt;br /&gt;
== Compatibility ==&lt;br /&gt;
This addon has been tested on Ubuntu 12.04, Blender '''2.71a''', Python 3.2 (bundled), 32-bit.&lt;br /&gt;
&lt;br /&gt;
It may also work with Blender versions &amp;lt; 2.71, but not tested yet.&lt;br /&gt;
&lt;br /&gt;
== Troubleshooting ==&lt;br /&gt;
* '''Add-on does not appear on the list.'''&lt;br /&gt;
&lt;br /&gt;
Check if you have installed this addon. Make sure the &amp;quot;.py&amp;quot; files are in the addon path properly. Make sure you have enabled this addon in &amp;lt;b&amp;gt;User Preferences&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Error combining coordinate data: Traceback (most recent call last):'''&lt;br /&gt;
* ''' ... '''&lt;br /&gt;
* '''FileNotFoundError: [Errno 2] No such file or directory: '.../add_mesh_Surface/Xdata.txt' '''&lt;br /&gt;
or&lt;br /&gt;
* '''Fail to find example data files:'''&lt;br /&gt;
* '''I have searched in following paths:'''&lt;br /&gt;
* '''  .../add_mesh_DataSurface/Xdata.txt'''&lt;br /&gt;
&lt;br /&gt;
These messages mean Blender did not find the data files. When you downloaded it as a zip file, did you extract the folder as &amp;lt;b&amp;gt;add_mesh_DataSurface&amp;lt;/b&amp;gt; instead of the default 'add_mesh_DataSurface-master'? If not, please rename this folder under addon path as &amp;lt;b&amp;gt;add_mesh_DataSurface&amp;lt;/b&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* '''Browser Button fails to work ... '''&lt;br /&gt;
&lt;br /&gt;
Reset it: Delete the current object and re-add it please.&lt;br /&gt;
&lt;br /&gt;
== Support ==&lt;br /&gt;
To raise a bug report, you may issue it on [https://github.com/niasw/add_mesh_DataSurface/issues here(github-issues)], or [https://developer.blender.org/T41352 here(developer.blender.org-task)].&lt;br /&gt;
&lt;br /&gt;
To contact with me, please write an email to &amp;lt;niasw(AT)pku.edu.cn&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
== Thanks ==&lt;br /&gt;
&lt;br /&gt;
&amp;quot;makeFaces&amp;quot; method and &amp;quot;create_mesh_and_object&amp;quot; method in &amp;lt;b&amp;gt;add_mesh_text_data_surface.py&amp;lt;/b&amp;gt; and &amp;lt;b&amp;gt;add_mesh_z_data_surface.py&amp;lt;/b&amp;gt; are from Blender addon [http://wiki.blender.org/index.php/Extensions:2.6/Py/Scripts/Add_Mesh/Add_Extra add extra objects]. Thank Pontiac.&lt;br /&gt;
&lt;br /&gt;
Thank Noel Stoutenburg for suggestions about .csv files and Z Data Surface. Thank [https://github.com/squarednob @squarednob] for issue reporting and testing.&lt;br /&gt;
&lt;br /&gt;
== External links ==&lt;br /&gt;
[https://github.com/niasw/add_mesh_DataSurface https://github.com/niasw/add_mesh_DataSurface]&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
* Back to [[Extensions:2.6/Py/Scripts/Add_Mesh]]&lt;/div&gt;</summary>
		<author><name>wiki&gt;Niasw</name></author>
		
	</entry>
</feed>