<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.uqm.stack.nl/index.php?action=history&amp;feed=atom&amp;title=User%3AZeracles%2FBackground%2FCode%2FStructures</id>
	<title>User:Zeracles/Background/Code/Structures - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.uqm.stack.nl/index.php?action=history&amp;feed=atom&amp;title=User%3AZeracles%2FBackground%2FCode%2FStructures"/>
	<link rel="alternate" type="text/html" href="https://wiki.uqm.stack.nl/index.php?title=User:Zeracles/Background/Code/Structures&amp;action=history"/>
	<updated>2026-09-14T03:17:00Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://wiki.uqm.stack.nl/index.php?title=User:Zeracles/Background/Code/Structures&amp;diff=23488&amp;oldid=prev</id>
		<title>Zeracles: clarification</title>
		<link rel="alternate" type="text/html" href="https://wiki.uqm.stack.nl/index.php?title=User:Zeracles/Background/Code/Structures&amp;diff=23488&amp;oldid=prev"/>
		<updated>2009-09-17T06:46:58Z</updated>

		<summary type="html">&lt;p&gt;clarification&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;en&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Revision as of 06:46, 17 September 2009&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l16&quot;&gt;Line 16:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 16:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;   &lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %	format of input file by column is:	type, x, y, z, scale, density, outerradius (types 1,2,3)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %	format of input file by column is:	type, x, y, z, scale, density, outerradius (types 1,2,3)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;−&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %						type, x, y, z, thickness, density, radius, azimuth, elevation (type 4)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot; data-marker=&quot;+&quot;&gt;&lt;/td&gt;&lt;td style=&quot;color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %						type, x, y, z, &lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;(half-) &lt;/ins&gt;thickness, density, radius, azimuth, elevation (type 4)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %							azimuth relative to positive x-axis, elevation relative to negative z-axis, in radians&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %							azimuth relative to positive x-axis, elevation relative to negative z-axis, in radians&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %						type, x1, y1, z1, x2, y2, z2, number of points (type 5)&lt;/div&gt;&lt;/td&gt;&lt;td class=&quot;diff-marker&quot;&gt;&lt;/td&gt;&lt;td style=&quot;background-color: #f8f9fa; color: #202122; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #eaecf0; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;  %						type, x1, y1, z1, x2, y2, z2, number of points (type 5)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Zeracles</name></author>
	</entry>
	<entry>
		<id>https://wiki.uqm.stack.nl/index.php?title=User:Zeracles/Background/Code/Structures&amp;diff=23483&amp;oldid=prev</id>
		<title>Zeracles: structure generation in matlab</title>
		<link rel="alternate" type="text/html" href="https://wiki.uqm.stack.nl/index.php?title=User:Zeracles/Background/Code/Structures&amp;diff=23483&amp;oldid=prev"/>
		<updated>2009-09-17T03:48:40Z</updated>

		<summary type="html">&lt;p&gt;structure generation in matlab&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;See also [http://www.physics.usyd.edu.au/~asmith/files/structures.m this quick download]&lt;br /&gt;
 %	structures.m&lt;br /&gt;
 %	by Anthony Smith (Zeracles); astroant@hotmail.com, asmith@physics.usyd.edu.au, http://www.physics.usyd.edu.au/~asmith/, http://wiki.uqm.stack.nl/User:Zeracles&lt;br /&gt;
 %	see http://starcontrol.classicgaming.gamespy.com/forum/index.php?topic=1660.0&lt;br /&gt;
 &lt;br /&gt;
 plotpoints=1;&lt;br /&gt;
 savepoints=1;&lt;br /&gt;
 volumetype=1; % 1 for a cube, 2 for a sphere, 3 for a cylinder&lt;br /&gt;
 &lt;br /&gt;
 %	type&lt;br /&gt;
 %	1	single point&lt;br /&gt;
 %	2	gaussian&lt;br /&gt;
 %	3	hard-edged sphere&lt;br /&gt;
 %	4	sheet / disc&lt;br /&gt;
 %	5	filament&lt;br /&gt;
 &lt;br /&gt;
 %	format of input file by column is:	type, x, y, z, scale, density, outerradius (types 1,2,3)&lt;br /&gt;
 %						type, x, y, z, thickness, density, radius, azimuth, elevation (type 4)&lt;br /&gt;
 %							azimuth relative to positive x-axis, elevation relative to negative z-axis, in radians&lt;br /&gt;
 %						type, x1, y1, z1, x2, y2, z2, number of points (type 5)&lt;br /&gt;
 &lt;br /&gt;
 load(&amp;#039;structureproperties&amp;#039;)&lt;br /&gt;
 &lt;br /&gt;
 sizestructureproperties=size(structureproperties);&lt;br /&gt;
 numberofstructures=sizestructureproperties(1);&lt;br /&gt;
 &lt;br /&gt;
 if volumetype==1&lt;br /&gt;
 	xmin=0;&lt;br /&gt;
 	xmax=1;&lt;br /&gt;
 	ymin=0;&lt;br /&gt;
 	ymax=1;&lt;br /&gt;
 	zmin=0;&lt;br /&gt;
 	zmax=1;&lt;br /&gt;
 	&lt;br /&gt;
 	xextent=xmax-xmin;&lt;br /&gt;
 	yextent=ymax-ymin;&lt;br /&gt;
 	zextent=zmax-zmin;&lt;br /&gt;
 	&lt;br /&gt;
 	volume=xextent*yextent*zextent;&lt;br /&gt;
 end&lt;br /&gt;
 if volumetype==2&lt;br /&gt;
 	centrex=0.5;&lt;br /&gt;
 	centrey=0.5;&lt;br /&gt;
 	centrez=0.5;&lt;br /&gt;
 	&lt;br /&gt;
 	radius=0.5;&lt;br /&gt;
 &lt;br /&gt;
 	volume=(4/3)*pi*radius^3;&lt;br /&gt;
 end&lt;br /&gt;
 if volumetype==3&lt;br /&gt;
 	centrex=0.5;&lt;br /&gt;
 	centrey=0.5;&lt;br /&gt;
 	&lt;br /&gt;
 	radius=0.5;&lt;br /&gt;
 	&lt;br /&gt;
 	zmin=0;&lt;br /&gt;
 	zmax=1;&lt;br /&gt;
 	&lt;br /&gt;
 	zextent=zmax-zmin;&lt;br /&gt;
 	&lt;br /&gt;
 	volume=pi*radius^2*zextent;&lt;br /&gt;
 end&lt;br /&gt;
 &lt;br /&gt;
 mapx=[];&lt;br /&gt;
 mapy=[];&lt;br /&gt;
 mapz=[];&lt;br /&gt;
 &lt;br /&gt;
 for i=linspace(1,numberofstructures,numberofstructures)&lt;br /&gt;
 	structureinfo=structureproperties(i,:);&lt;br /&gt;
 	&lt;br /&gt;
 	structuretype=structureinfo(1);&lt;br /&gt;
 	structurex=structureinfo(2);&lt;br /&gt;
 	structurey=structureinfo(3);&lt;br /&gt;
 	structurez=structureinfo(4);&lt;br /&gt;
 	structurescale=structureinfo(5);&lt;br /&gt;
 	structuredensity=structureinfo(6);&lt;br /&gt;
 	structureouterradius=structureinfo(7);&lt;br /&gt;
 	if structuretype==1&lt;br /&gt;
 		structurexs=structurex;&lt;br /&gt;
 		structureys=structurey;&lt;br /&gt;
 		structurezs=structurez;&lt;br /&gt;
 	end&lt;br /&gt;
 	if structuretype==2&lt;br /&gt;
 		initialrandomx=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomy=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomz=rand(structuredensity,1);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxxmin=structurex-structureouterradius;&lt;br /&gt;
 		clusterboxxmax=structurex+structureouterradius;&lt;br /&gt;
 		clusterboxymin=structurey-structureouterradius;&lt;br /&gt;
 		clusterboxymax=structurey+structureouterradius;&lt;br /&gt;
 		clusterboxzmin=structurez-structureouterradius;&lt;br /&gt;
 		clusterboxzmax=structurez+structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxmask=(clusterboxxmin&amp;lt;=initialrandomx).*(initialrandomx&amp;lt;=clusterboxxmax).*(clusterboxymin&amp;lt;=initialrandomy).*(initialrandomy&amp;lt;=clusterboxymax).*(clusterboxzmin&amp;lt;=initialrandomz).*(initialrandomz&amp;lt;=clusterboxzmax);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxrandomx=initialrandomx(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomy=initialrandomy(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomz=initialrandomz(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		&lt;br /&gt;
 		distance=((clusterboxrandomx-structurex).^2+(clusterboxrandomy-structurey).^2+(clusterboxrandomz-structurez).^2).^(1/2);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterspheremask=distance&amp;lt;=structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		clustersphererandomx=clusterboxrandomx(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		clustersphererandomy=clusterboxrandomy(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		clustersphererandomz=clusterboxrandomz(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		&lt;br /&gt;
 		distance=nonzeros(clusterspheremask.*distance);&lt;br /&gt;
 		&lt;br /&gt;
 		admissionprobability=rand(sum(clusterspheremask),1);&lt;br /&gt;
 		probabilitythreshold=1-exp(-(distance.^2)./(2*structurescale^2));&lt;br /&gt;
 		admissionmask=admissionprobability&amp;gt;probabilitythreshold;&lt;br /&gt;
 		&lt;br /&gt;
 		structurexs=clustersphererandomx(find(admissionmask&amp;gt;0));&lt;br /&gt;
 		structureys=clustersphererandomy(find(admissionmask&amp;gt;0));&lt;br /&gt;
 		structurezs=clustersphererandomz(find(admissionmask&amp;gt;0));&lt;br /&gt;
 	end&lt;br /&gt;
 	if structuretype==3&lt;br /&gt;
 		initialrandomx=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomy=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomz=rand(structuredensity,1);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxxmin=clusterx-structureouterradius;&lt;br /&gt;
 		clusterboxxmax=clusterx+structureouterradius;&lt;br /&gt;
 		clusterboxymin=clustery-structureouterradius;&lt;br /&gt;
 		clusterboxymax=clustery+structureouterradius;&lt;br /&gt;
 		clusterboxzmin=clusterz-structureouterradius;&lt;br /&gt;
 		clusterboxzmax=clusterz+structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxmask=(clusterboxxmin&amp;lt;=initialrandomx).*(initialrandomx&amp;lt;=clusterboxxmax).*(clusterboxymin&amp;lt;=initialrandomy).*(initialrandomy&amp;lt;=clusterboxymax).*(clusterboxzmin&amp;lt;=initialrandomz).*(initialrandomz&amp;lt;=clusterboxzmax);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxrandomx=initialrandomx(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomy=initialrandomy(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomz=initialrandomz(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		&lt;br /&gt;
 		distance=((clusterboxrandomx-structurex).^2+(clusterboxrandomy-structurey).^2+(clusterboxrandomz-structurez).^2).^(1/2);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterspheremask=distance&amp;lt;=structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		structurexs=clusterboxrandomx(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		structureys=clusterboxrandomy(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		structurezs=clusterboxrandomz(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 	end&lt;br /&gt;
 	if structuretype==4&lt;br /&gt;
 		initialrandomx=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomy=rand(structuredensity,1);&lt;br /&gt;
 		initialrandomz=rand(structuredensity,1);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxxmin=structurex-structureouterradius;&lt;br /&gt;
 		clusterboxxmax=structurex+structureouterradius;&lt;br /&gt;
 		clusterboxymin=structurey-structureouterradius;&lt;br /&gt;
 		clusterboxymax=structurey+structureouterradius;&lt;br /&gt;
 		clusterboxzmin=structurez-structureouterradius;&lt;br /&gt;
 		clusterboxzmax=structurez+structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxmask=(clusterboxxmin&amp;lt;=initialrandomx).*(initialrandomx&amp;lt;=clusterboxxmax).*(clusterboxymin&amp;lt;=initialrandomy).*(initialrandomy&amp;lt;=clusterboxymax).*(clusterboxzmin&amp;lt;=initialrandomz).*(initialrandomz&amp;lt;=clusterboxzmax);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterboxrandomx=initialrandomx(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomy=initialrandomy(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		clusterboxrandomz=initialrandomz(find(clusterboxmask&amp;gt;0));&lt;br /&gt;
 		&lt;br /&gt;
 		distance=((clusterboxrandomx-structurex).^2+(clusterboxrandomy-structurey).^2+(clusterboxrandomz-structurez).^2).^(1/2);&lt;br /&gt;
 		&lt;br /&gt;
 		clusterspheremask=distance&amp;lt;=structureouterradius;&lt;br /&gt;
 		&lt;br /&gt;
 		spherexs=clusterboxrandomx(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		sphereys=clusterboxrandomy(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		spherezs=clusterboxrandomz(find(clusterspheremask&amp;gt;0));&lt;br /&gt;
 		&lt;br /&gt;
 		azimuth=structureinfo(8)+pi;&lt;br /&gt;
 		elevation=structureinfo(9);&lt;br /&gt;
 		&lt;br /&gt;
 		planevector=[cos(azimuth)*sin(elevation);sin(azimuth)*sin(elevation);cos(elevation)];&lt;br /&gt;
 		&lt;br /&gt;
 		a=planevector(1);&lt;br /&gt;
 		b=planevector(2);&lt;br /&gt;
 		c=planevector(3);&lt;br /&gt;
 		&lt;br /&gt;
 		d=-dot(planevector,[structurex;structurey;structurez]);&lt;br /&gt;
 		&lt;br /&gt;
 		perpendicularplanedistance=(abs(a*spherexs+b*sphereys+c*spherezs+d))./(a^2+b^2+c^2);&lt;br /&gt;
 		planemask=perpendicularplanedistance&amp;lt;=structurescale;&lt;br /&gt;
 		&lt;br /&gt;
 		structurexs=spherexs(find(planemask&amp;gt;0.5));&lt;br /&gt;
 		structureys=sphereys(find(planemask&amp;gt;0.5));&lt;br /&gt;
 		structurezs=spherezs(find(planemask&amp;gt;0.5));&lt;br /&gt;
 	end&lt;br /&gt;
 	if structuretype==5&lt;br /&gt;
 		numberofpoints=structureinfo(8);&lt;br /&gt;
 		&lt;br /&gt;
 		structurexs=transpose(linspace(structurex,structureinfo(5),numberofpoints));&lt;br /&gt;
 		structureys=transpose(linspace(structurey,structureinfo(6),numberofpoints));&lt;br /&gt;
 		structurezs=transpose(linspace(structurez,structureinfo(7),numberofpoints));&lt;br /&gt;
 	end&lt;br /&gt;
 	mapx=[mapx;structurexs];&lt;br /&gt;
 	mapy=[mapy;structureys];&lt;br /&gt;
 	mapz=[mapz;structurezs];&lt;br /&gt;
 end&lt;br /&gt;
 if volumetype==1&lt;br /&gt;
 	contained=(xmin&amp;lt;=mapx).*(mapx&amp;lt;=xmax).*(ymin&amp;lt;=mapy).*(mapy&amp;lt;=ymax).*(zmin&amp;lt;=mapz).*(mapz&amp;lt;=zmax);&lt;br /&gt;
 	&lt;br /&gt;
 	mapx=mapx(find(contained&amp;gt;0));&lt;br /&gt;
 	mapy=mapy(find(contained&amp;gt;0));&lt;br /&gt;
 	mapz=mapz(find(contained&amp;gt;0));&lt;br /&gt;
 end&lt;br /&gt;
 if volumetype==2&lt;br /&gt;
 	contained=(((mapx-centrex).^2+(mapy-centrey).^2+(mapz-centrez).^2).^(1/2))&amp;lt;=radius;&lt;br /&gt;
 	&lt;br /&gt;
 	mapx=mapx(find(contained&amp;gt;0));&lt;br /&gt;
 	mapy=mapy(find(contained&amp;gt;0));&lt;br /&gt;
 	mapz=mapz(find(contained&amp;gt;0));&lt;br /&gt;
 end&lt;br /&gt;
 if volumetype==3&lt;br /&gt;
 	contained=((((mapx-centrex).^2+(mapy-centrey).^2).^(1/2))&amp;lt;=radius)+((zmin&amp;lt;=mapz).*(mapz&amp;lt;=zmax));&lt;br /&gt;
 	&lt;br /&gt;
 	mapx=mapx(find(contained&amp;gt;0));&lt;br /&gt;
 	mapy=mapy(find(contained&amp;gt;0));&lt;br /&gt;
 	mapz=mapz(find(contained&amp;gt;0));&lt;br /&gt;
 end&lt;br /&gt;
 if plotpoints==1&lt;br /&gt;
 	figure&lt;br /&gt;
 	hold on&lt;br /&gt;
 	box on&lt;br /&gt;
 	plot3(mapx,mapy,mapz,&amp;#039;k.&amp;#039;)&lt;br /&gt;
 end&lt;br /&gt;
 if savepoints==1&lt;br /&gt;
 	structuredpoints=[mapx,mapy,mapz];&lt;br /&gt;
 	save(&amp;#039;structuredpoints&amp;#039;,&amp;#039;structuredpoints&amp;#039;,&amp;#039;-ascii&amp;#039;)&lt;br /&gt;
 end&lt;/div&gt;</summary>
		<author><name>Zeracles</name></author>
	</entry>
</feed>