<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="bbPress/1.0.2" -->
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<title>k-Wave User Forum &#187; Topic: how to generate a circle in 3D Space</title>
		<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Wed, 13 May 2026 00:25:21 +0000</pubDate>
		<generator>http://bbpress.org/?v=1.0.2</generator>
		<textInput>
			<title><![CDATA[Search]]></title>
			<description><![CDATA[Search all topics from these forums.]]></description>
			<name>q</name>
			<link>http://www.k-wave.org/forum/search.php</link>
		</textInput>
		<atom:link href="http://www.k-wave.org/forum/rss/topic/how-to-generate-a-circle-in-3d-space" rel="self" type="application/rss+xml" />

		<item>
			<title>Alexll7 on "how to generate a circle in 3D Space"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space#post-6611</link>
			<pubDate>Mon, 29 Oct 2018 08:50:18 +0000</pubDate>
			<dc:creator>Alexll7</dc:creator>
			<guid isPermaLink="false">6611@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Yes, it was just because you didn't initialize your cylinder as my_cylinder = zeros(Nx,Ny,Nz). No problem,&#60;br /&#62;
Best regards,&#60;/p&#62;
&#60;p&#62;Alex
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhangguangjie on "how to generate a circle in 3D Space"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space#post-6609</link>
			<pubDate>Sat, 27 Oct 2018 13:38:35 +0000</pubDate>
			<dc:creator>zhangguangjie</dc:creator>
			<guid isPermaLink="false">6609@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello Alexandre&#60;br /&#62;
   I have solved the problem.&#60;br /&#62;
   thanks very much!
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhangguangjie on "how to generate a circle in 3D Space"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space#post-6608</link>
			<pubDate>Sat, 27 Oct 2018 10:27:48 +0000</pubDate>
			<dc:creator>zhangguangjie</dc:creator>
			<guid isPermaLink="false">6608@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;hello Alexandre,&#60;br /&#62;
 Thank you very much. by your help,I can get a cylinder source model. Now i meet a new problem.&#60;br /&#62;
 The code are as follows:&#60;br /&#62;
 Nx = 256;&#60;br /&#62;
 Ny = 256;&#60;br /&#62;
 Nz = 256;&#60;br /&#62;
 dx = 20e-6;&#60;br /&#62;
 dy = 20e-6;&#60;br /&#62;
 dz = 20e-6;&#60;br /&#62;
 kgrid = kWaveGrid(Nx, dx, Ny, dy, Nz, dz);&#60;br /&#62;
 medium.sound_speed = 1500;&#60;br /&#62;
 input_args = {'DataCast', 'single'};&#60;br /&#62;
 magnitude=20;&#60;br /&#62;
 for i=(127:130)&#60;br /&#62;
 my_cylinder(:,:,i) =magnitude* makeDisc(Nx, Ny, Nx/2, Ny/2, 20);&#60;br /&#62;
 end&#60;br /&#62;
 voxelPlot(my_cylinder)&#60;br /&#62;
 p0=my_cylinder;&#60;br /&#62;
 source.p0 = p0;&#60;br /&#62;
 sensor.mask = zeros(Nx, Ny, Nz);&#60;br /&#62;
 sensor.mask( Nx/2, Ny/2, 200) = 1;&#60;br /&#62;
 sensor_data_3D= kspaceFirstOrder3D(kgrid, medium, source, sensor,input_args{:});&#60;br /&#62;
 when I run the code,&#60;br /&#62;
 erroe use kspaceFirstOrder_inputChecking (line 749)&#60;br /&#62;
 source.p0 must be the same size as the computational grid.&#60;/p&#62;
&#60;p&#62; I can not find the reason for it.&#60;br /&#62;
 Thanks in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Alexll7 on "how to generate a circle in 3D Space"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space#post-6607</link>
			<pubDate>Fri, 26 Oct 2018 10:11:16 +0000</pubDate>
			<dc:creator>Alexll7</dc:creator>
			<guid isPermaLink="false">6607@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello zhangguangjie,&#60;/p&#62;
&#60;p&#62;For the cylinder, you can, for instance, just iterate makeCircle with a loop.&#60;br /&#62;
I mean :&#60;br /&#62;
for i=(1:Nz)&#60;br /&#62;
     my_cylinder(:,:,i) = makeCircle(..........);&#60;br /&#62;
end&#60;br /&#62;
(if the cylinder axis is one of the 3 main axis and, if it's not the case, you can just rotate the result after)&#60;br /&#62;
For more complex structures, I'm sure that you can find a toolbox doing that. Did you search such a thing in the AddonExplorer? &#60;/p&#62;
&#60;p&#62;Best regards,&#60;/p&#62;
&#60;p&#62;Alexandre
&#60;/p&#62;</description>
		</item>
		<item>
			<title>zhangguangjie on "how to generate a circle in 3D Space"</title>
			<link>http://www.k-wave.org/forum/topic/how-to-generate-a-circle-in-3d-space#post-6606</link>
			<pubDate>Thu, 25 Oct 2018 12:51:18 +0000</pubDate>
			<dc:creator>zhangguangjie</dc:creator>
			<guid isPermaLink="false">6606@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello everyone&#60;br /&#62;
  how to generate a circle source in 3D Kgrid? i only see makeCircle(Nx, Ny, cx, cy, radius).what's more, how to generate more three source,such as cylinder?&#60;br /&#62;
  Thanks in advance!
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
