Re: [PD] Find distance to a line in 3d space

2013-12-25 Thread Ba Prince
Hi

  If you want to know the distance between a point and line in 3D space :

1 - you calculate the vector director (= vecteur directeur ?) u-> of the
line
2 - you select any point A from your line
3 - you calculate the vector AB->
4 - you calculate || (AB->) ^ (u->) || / || u-> || , with  || . ||
euclidian norm and ^ cross product

the distance is d =  || (AB->) ^ (u->) || / || u-> ||

Prince




2013/12/26 Max 

> Hi João,
> I patched something for you, maybe it's useful.
>
>
>
>
> http://mathsfirst.massey.ac.nz/Algebra/PythagorasTheorem/pythapp.htm
>
>
> Am 11.12.2013 um 02:30 schrieb João Pais :
>
> > Am 06.12.2013, 00:51 Uhr, schrieb Claude Heiland-Allen <
> cla...@mathr.co.uk>:
> >
> >> On 05/12/13 23:40, João Pais wrote:
> >>> Hello list,
> >>>
> >>> I had a doubt, will try to explain.
> >>>
> >>> I wanted to define a line in a 3d space through 2 points, and be able
> to
> >>> find out the distance from another point to that line. Since I'm very
> >>> bad at math, I wanted to know if anyone has done something similar, or
> >>> knows how to get to it.
> >>
> >> http://paulbourke.net/geometry/pointlineplane/
> >>
> >> first example on the page, you just need to clamp u to [0..1] if you
> >> want to make it work for a line segment instead of an infinite line.
> >
> > it looks interesting, and I also checked for more content with a similar
> title. the thing is, my math/geometry skills are too bad, and I don't
> understand where they get the formulas for the points and lines. I'll keep
> watching the links, but I might not get it in time for the purpose I was
> looking for.
> >
> > thanks anyway,
> >
> > João
> >
> > ___
> > Pd-list@iem.at mailing list
> > UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] Find distance to a line in 3d space

2013-12-25 Thread Max
Hi João,
I patched something for you, maybe it's useful.



3dspacedistance.pd
Description: Binary data


http://mathsfirst.massey.ac.nz/Algebra/PythagorasTheorem/pythapp.htm


Am 11.12.2013 um 02:30 schrieb João Pais :

> Am 06.12.2013, 00:51 Uhr, schrieb Claude Heiland-Allen :
> 
>> On 05/12/13 23:40, João Pais wrote:
>>> Hello list,
>>> 
>>> I had a doubt, will try to explain.
>>> 
>>> I wanted to define a line in a 3d space through 2 points, and be able to
>>> find out the distance from another point to that line. Since I'm very
>>> bad at math, I wanted to know if anyone has done something similar, or
>>> knows how to get to it.
>> 
>> http://paulbourke.net/geometry/pointlineplane/
>> 
>> first example on the page, you just need to clamp u to [0..1] if you
>> want to make it work for a line segment instead of an infinite line.
> 
> it looks interesting, and I also checked for more content with a similar 
> title. the thing is, my math/geometry skills are too bad, and I don't 
> understand where they get the formulas for the points and lines. I'll keep 
> watching the links, but I might not get it in time for the purpose I was 
> looking for.
> 
> thanks anyway,
> 
> João
> 
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management -> 
> http://lists.puredata.info/listinfo/pd-list



signature.asc
Description: Message signed with OpenPGP using GPGMail
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list


Re: [PD] [PD-announce] HoaLibrary for PD - High Order Ambisonics Library

2013-12-25 Thread Thomas Grill
Dear HoaLibrary developers,
the library is a great project. However, trying out the Pd version on my
OSX 10.5 machine i get errors like the following when instantiating objects:

/Users/thomas/Library/Pd/HoaLibrary-1.0/hoa.rotate~.pd_darwin:
dlopen(/Users/thomas/Library/Pd/HoaLibrary-1.0/hoa.rotate~.pd_darwin, 10):
no suitable image found.  Did find:
/Users/thomas/Library/Pd/HoaLibrary-1.0/hoa.rotate~.pd_darwin: unknown
required load command 0x8022

I am aware that this is caused by your library expecting a OS version newer
than mine. Knowing from my own externals this can fairly easily be fixed
(if there are no explicit dependencies on newer OS versions) by setting the
OS target (SDK version) to 10.5 when building the binaries.

thanks and all the best,
Thomas


2013/11/5 Pierre Guillot 

> Faust is very efficient but there are particularities. We can't have a
> dynamic ambisonic order that means for each processing we have to create as
> many externals as we want orders. There's no restriction for order with
> Hoa, so it's a first problem. On another hand, GUIs are  very important and
> we can't make them with Faust. And we don't have the whole library in
> Faust. Faust is highly optimized and multi-plateform so it's useful for
> specific uses but it's not the best choice for what we want to offer with
> this Pd version. I'm going to find a solution and someone offers his help
> on codelab PD forum so perhaps Linux version will come soon.
>
> Cheers
>
> Pierre
>
> 2013/11/5 Jaime E Oliver 
>
>> Doesn't Faust just do that for you? I thought you could simply export
>> externals from the Faust code in Linux, but I could be remembering wrong.
>>
>> best,
>>
>> J
>>
>>
>> On Nov 5, 2013, at 3:35 AM, Pierre Guillot 
>> wrote:
>>
>> Hi,
>>
>> The Linux version is scheduled but I can't say when (I need a Linux
>> machine and time to do this).  I'm not a Linux expert (really not) so If
>> you have any advices for Linux version, it will be very helpful.
>>
>> Cheers
>>
>>
>> 2013/11/4 Laurent Willkomm 
>>
>>> Am 2013-11-04 09:44, schrieb Pierre Guillot:
>>>
>>>  Hi,

 The CICM is pleased to share the first release of HoaLibrary for Pure
 Data.

 HoaLibrary is a collection of C++ classes, FAUST functions and objects
 for Pure Data, Max and VST destined to high order Ambisonics sound
 reproduction.

 HoaLibrary allows musicians and composers to synthesize, transform and
 render sound fields in a creative and artistic way. This library
 facilitates the understanding and the appropriation of key concepts of
 Ambisonics. Thanks to original graphical interfaces a lot of new signal
 processings are allowed like diffuse sound field synthesis, perspective
 distortion or spatial filtering.

 HoaLibrary is free, open-source and made available by CICM, the centre
 of research on musical composition and computer science of the Paris 8
 University.

 Objects:

>>>
>>> Hi,
>>> will there be a Linux puredata version?
>>>
>>> L. Willkomm
>>> Luxembourg
>>>
>>> ___
>>> Pd-list@iem.at mailing list
>>> UNSUBSCRIBE and account-management -> http://lists.puredata.info/
>>> listinfo/pd-list
>>>
>>
>> ___
>> Pd-list@iem.at mailing list
>> UNSUBSCRIBE and account-management ->
>> http://lists.puredata.info/listinfo/pd-list
>>
>>
>>
>
> ___
> Pd-list@iem.at mailing list
> UNSUBSCRIBE and account-management ->
> http://lists.puredata.info/listinfo/pd-list
>
>


-- 
Thomas Grill
http://g.org
___
Pd-list@iem.at mailing list
UNSUBSCRIBE and account-management -> 
http://lists.puredata.info/listinfo/pd-list