Rank: 3508 based on 38 downloads (last 30 days) and 1 file submitted
photo

Gwendolyn Fischer

E-mail

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Gwendolyn
Updated   File Tags Downloads
(last 30 days)
Comments Rating
14 Oct 2010 Screenshot Distance between a point and a triangle in 3D pointTriangleDistance calculates the distance between a point and a triangle in 3D. Author: Gwendolyn Fischer computational geometr..., graphics, geometry, triangle, intersection allan, 3d residue error 38 3
  • 5.0
5.0 | 3 ratings
Comments and Ratings by Gwendolyn
Updated File Comments Rating
22 Jul 2009 Variable Precision Integer Arithmetic Arithmetic with integers of fully arbitrary size. Arrays and vectors of vpi numbers are supported. Author: John D'Errico

Hi John,
I like your submission, and it works fine for my puposes even in R14. Using your old factor routines, as the new factor command uses a mat file (_primeslist_), which the old matlab version can not read. Is it possible to provide a compatible mat file for MATLAB R14?

Thanks

Comments and Ratings on Gwendolyn's Files View all
Updated File Comment by Comments Rating
12 Oct 2010 Distance between a point and a triangle in 3D pointTriangleDistance calculates the distance between a point and a triangle in 3D. Author: Gwendolyn Fischer Gordon

Very nice, and faster than my implementation. However, there's an error somewhere in there. Try plugging the following triangle and point in:

tri=[-0.351987256452018,-2.20321765626083,2.02537449847930;-1.63376366769586,1.51438594345573,0.862041724660671;-0.688413485634898,-1.58953522933881,-1.14541245917166];
p=[1.38048000996529,3.61393939643154,3.46074586955261];

[tridist,tripoint]=pointTriangleDistance(tri,p);
tridist
norm(p-tripoint)

output:
tridist =
6.1630
ans =
4.4997

But tridist should be the same as the norm from the initial point to the closest point (output from the function as PP0). Plotting it, it looks like PP0 is getting to the right spot, so there must be an issue with that particular path through the code. Notice that if you truncate the values I gave above, the correct answer is reached (i.e. if you only use 4 places past the decimal).

Using R2010a

31 Oct 2009 Distance between a point and a triangle in 3D pointTriangleDistance calculates the distance between a point and a triangle in 3D. Author: Gwendolyn Fischer jixian

good job,thank you, i learn a lot.

27 Oct 2009 Distance between a point and a triangle in 3D pointTriangleDistance calculates the distance between a point and a triangle in 3D. Author: Gwendolyn Fischer O'Shea, Thomas

13 Aug 2009 Distance between a point and a triangle in 3D pointTriangleDistance calculates the distance between a point and a triangle in 3D. Author: Gwendolyn Fischer creek

Good work.

Contact us