<?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: modeling of 3d object inside the medium, to analyse the reflected wane from it</title>
		<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it</link>
		<description>Support for the k-Wave MATLAB toolbox</description>
		<language>en-US</language>
		<pubDate>Tue, 12 May 2026 23:30:33 +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/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it" rel="self" type="application/rss+xml" />

		<item>
			<title>Anthony on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4633</link>
			<pubDate>Thu, 10 Jul 2014 16:34:56 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">4633@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear bashjokh,&#60;/p&#62;
&#60;p&#62;Another (faster) way to do it for a 1D line, would be to compute the distance between the center of each voxel to the line (using the analytical formula based on dot product). If it is smaller than dx*sqrt(3)/2 (the half diagonal of the voxel, assuming it is a cube), then the point belongs to the line.&#60;/p&#62;
&#60;p&#62;For a cylinder, just replace 'smaller than dx*sqrt(3)/2' by 'smaller than the radius of the cylinder' :-)&#60;/p&#62;
&#60;p&#62;Regards,&#60;br /&#62;
Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bashjokh on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4628</link>
			<pubDate>Tue, 08 Jul 2014 15:17:43 +0000</pubDate>
			<dc:creator>bashjokh</dc:creator>
			<guid isPermaLink="false">4628@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Dear Anthony,&#60;/p&#62;
&#60;p&#62;thanks for your answer, that's exactly what I want to do. But the bones of the skeleton should be represented not as 1D line connecting the joints but possibly as cylinders.&#60;br /&#62;
I'll will try to implement what did you say.&#60;/p&#62;
&#60;p&#62;Many thanks,&#60;br /&#62;
bashjokh
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anthony on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4623</link>
			<pubDate>Tue, 08 Jul 2014 13:54:38 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">4623@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi bashjokh,&#60;/p&#62;
&#60;p&#62;I am not sure to understand what you mean:&#60;br /&#62;
--&#38;gt; you have the coordinates of the joints of your skeleton and want to set the material properties along 1D lines that represent the &#34;bones&#34; of your skeleton?&#60;/p&#62;
&#60;p&#62;If I understand well, your problem is therefore to define the binary mask, (for a given voxel : 1 if a line crosses the voxel, else 0). &#60;/p&#62;
&#60;p&#62;If yes, you could for example:&#60;br /&#62;
- store the coordinates of the 8 corners of each voxels&#60;br /&#62;
- vectorize this type of algorithm (to make it efficient with matlab)&#60;br /&#62;
&#60;a href=&#34;http://www.3dkingdoms.com/weekly/weekly.php?a=3&#34;&#62;here&#60;/a&#62;&#60;/p&#62;
&#60;p&#62;Another solution would be to adapt the function makeLine (coming with kwave) in 3D (I didn't check how it works but it should be doable).&#60;/p&#62;
&#60;p&#62;Hope it helps and sorry if I didn't get your problem...&#60;br /&#62;
Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bashjokh on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4619</link>
			<pubDate>Mon, 07 Jul 2014 15:23:27 +0000</pubDate>
			<dc:creator>bashjokh</dc:creator>
			<guid isPermaLink="false">4619@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hello Hyperomi,&#60;/p&#62;
&#60;p&#62;thanks for your reply, first my model is represented only as 3d cartesian coordinates without any faces or normals. How can I assign different medium properties(sound speed and density) for this points or for the lines jointing this coordinates? &#60;/p&#62;
&#60;p&#62;I have already started as following : &#60;/p&#62;
&#60;p&#62;% define the position of the object&#60;br /&#62;
object_y_pos = Ny/2 - 10 ;&#60;br /&#62;
object_x_pos = Nx/4;&#60;br /&#62;
object_z_pos = Nz/2;&#60;br /&#62;
object = zeros(Nx, Ny, Nz);&#60;br /&#62;
object(object_x_pos : end - end/4, object_y_pos : object_y_pos  + thickness,object_z_pos: object_z_pos + thickness) = 1;&#60;br /&#62;
% assign the medium properties&#60;br /&#62;
medium.sound_speed = c_air*ones(Nx, Ny, Nz);&#60;br /&#62;
medium.sound_speed(object == 1) = c_object;&#60;br /&#62;
medium.density = rho_air*ones(Nx, Ny, Nz);&#60;br /&#62;
medium.density(object == 1) = rho_object;&#60;/p&#62;
&#60;p&#62;However this is for the coordinates inside the medium which I already know. But now how can I set the same properties for my skeleton which is represented with 3d lines connecting the joints.&#60;/p&#62;
&#60;p&#62;Thanks in advance
&#60;/p&#62;</description>
		</item>
		<item>
			<title>Anthony on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4617</link>
			<pubDate>Mon, 07 Jul 2014 10:28:27 +0000</pubDate>
			<dc:creator>Anthony</dc:creator>
			<guid isPermaLink="false">4617@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi bashjokh,&#60;/p&#62;
&#60;p&#62;As k-wave works on a cartesian grid, I would advise you to voxelize your mesh. This script does the job: &#60;a href=&#34;http://www.mathworks.com/matlabcentral/fileexchange/27390-mesh-voxelisation&#34;&#62;Matlab voxelisation script&#60;/a&#62; &#60;/p&#62;
&#60;p&#62;Then, you can define a binary mask and consider the points as mass source or velocity source (depending on the boundary conditions you want to put on your skeleton). I would also set the optional argument source.p_mode or source.u_mode to 'dirichlet' (see p34 or the user manual).&#60;/p&#62;
&#60;p&#62;Hope it helps,&#60;br /&#62;
Anthony
&#60;/p&#62;</description>
		</item>
		<item>
			<title>bashjokh on "modeling of 3d object inside the medium, to analyse the reflected wane from it"</title>
			<link>http://www.k-wave.org/forum/topic/modeling-of-3d-object-inside-the-medium-to-analyse-the-reflected-wane-from-it#post-4614</link>
			<pubDate>Fri, 04 Jul 2014 15:47:37 +0000</pubDate>
			<dc:creator>bashjokh</dc:creator>
			<guid isPermaLink="false">4614@http://www.k-wave.org/forum/</guid>
			<description>&#60;p&#62;Hi,&#60;/p&#62;
&#60;p&#62;I want to analyse the sound wave reflected from a moving skeleton inside a room.&#60;br /&#62;
First, how can I model the skeleton in the medium if I have the 3d joint coordinates of the skeleton for each frame. Or how can I improt 3d object inside the medium.&#60;br /&#62;
I want to analyse the reflected signal for every frame seperately.&#60;/p&#62;
&#60;p&#62;Best regards,&#60;br /&#62;
bashjokh
&#60;/p&#62;</description>
		</item>

	</channel>
</rss>
