Rank: 1065 based on 109 downloads (last 30 days) and 3 files submitted
photo

Vipin Vijayan

E-mail
Company/University
University of Notre Dame

Personal Profile:
Professional Interests:

 

Watch this Author's files

 

Files Posted by Vipin View all
Updated   File Tags Downloads
(last 30 days)
Comments Rating
07 Jul 2014 Fast SVD and PCA Fast truncated SVD and PCA rectangular matrices Author: Vipin Vijayan singular value decomp..., svd, principal component a..., pca, sparse, truncated svd 21 0
19 Jun 2014 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan triangular mesh, ray casting, collision detection, deformable mesh 31 13
  • 5.0
5.0 | 4 ratings
19 Apr 2013 Direct LDA and PCA+LDA Implementation of LDA, Direct LDA and PCA+LDA. See description for details. Author: Vipin Vijayan linear discriminant a..., lda, fischers linear discr..., principal component a..., pca, machine learning 57 1
  • 1.0
1.0 | 1 rating
Comments and Ratings by Vipin View all
Updated File Comments Rating
08 Oct 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan

Yeah, sorry about the confusion with norm(to-from). You're right, normc should be used for the input.

29 May 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan

I don't have an Matlab win64 install now. I tried it on win 32, os x 64, and linux 64. Maybe you can tell me what the error looks like and I will see what I can do.

13 May 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan

The compiled file is not in your path or you didn't compile it.

09 May 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan

Made a mistake in the previous comment. Calculation of Q should actually be like the following example.

f = [1 2 3]'; v = [-1 0 0.1 ; 1 1 0.1 ; 1 -1 0.1]';
t = opcodemesh(v,f);
from = [0.17 0.17 0.5]';
to = [0.17 0.17 -1]';
[hit,d,trix,bary] = t.intersect(from,(to-from)./norm(to-from));
B = bary(:,hit); T = trix(hit);
Q = repmat(1-B(2,:)-B(1,:),3,1).*v(:,f(1,T)) + repmat(B(1,:),3,1).*v(:,f(2,T)) + repmat(B(2,:),3,1).*v(:,f(3,T));

09 May 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan

You had to normalize the direction (to - from) and I had gotten the calculation for the points Q wrong. I will upload a version eventually so you don't have to normalize the direction. Btw, here is an example that works:

f = [1 2 3]'; v = [-1 0 0.1 ; 1 1 0.1 ; 1 -1 0.1]';
t = opcodemesh(v,f);
from = [0 0 0.5]';
to = [0 0 -1]';
[hit,d,trix,bary] = t.intersect(from,(to-from)./norm(to-from));
B = bary(:,hit); T = trix(hit);
Q = repmat(B(1,:),3,1).*v(:,f(3,T)) + repmat(B(2,:),3,1).*v(:,f(2,T)) + repmat(1-B(2,:)-B(1,:),3,1).*v(:,f(1,T));

Comments and Ratings on Vipin's Files View all
Updated File Comment by Comments Rating
14 Feb 2014 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan Eric

Great submission. Very useful.

Thank you Germano Gomes for mex64 advice.

26 Jan 2014 Direct LDA and PCA+LDA Implementation of LDA, Direct LDA and PCA+LDA. See description for details. Author: Vipin Vijayan Gyver

06 Nov 2013 Direct LDA and PCA+LDA Implementation of LDA, Direct LDA and PCA+LDA. See description for details. Author: Vipin Vijayan saxena, hidangmayum

thnk u

08 Oct 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan Vijayan, Vipin

Yeah, sorry about the confusion with norm(to-from). You're right, normc should be used for the input.

04 Oct 2013 Ray casting for deformable triangular 3D meshes Ray casting or collision detection for deformable triangular 3D meshes. Author: Vipin Vijayan Gomes, Germano

Note(ray casting): the correct value of 'd' is obtained by normalizing each column of the (to-from) 3xN matrix. I use Matlab normc for this:

[hit,d,trix,bary] = t.intersect(from,normc(to-from));

do not use:

[hit,d,trix,bary] = t.intersect(from,(to-from)./norm(to-from));

if you have more than one vector/ray

Contact us