Difference between revisions of "Sig WindE/Getting Processing Terrain Data"

From OpenFOAMWiki
(Started building a page describing tools for generating STL files from point clouds or digital elevation maps.)
 
(Added a Matlab tool for generating the STL)
Line 16: Line 16:
 
stlwrite('landscape.stl',x,y,z,'mode','ascii');
 
stlwrite('landscape.stl',x,y,z,'mode','ascii');
  
The tool is here:  [[File:]]
+
The tool is here:  [[File:stlwrite.zip]]. An example STL file, generated using this tool with the set of data
 +
described in [[]], can be found here: [[File:]].

Revision as of 09:42, 9 August 2012

The aim of this page is to describe instructions and tools on how to generate terrain data for use with OF, in particular to model ABL flows.


(0) Matlab tool for processing a cloud of points.

This is a nice Matlab tool to generate an STL file from a cloud of points. Typical usage is as simple as: data=load('data.xyz');

x=data(:,1);

y=data(:,2);

z=data(:,3);

stlwrite('landscape.stl',x,y,z,'mode','ascii');

The tool is here: File:Stlwrite.zip. An example STL file, generated using this tool with the set of data described in [[]], can be found here: [[File:]].