Rank: 369921 based on 0 downloads (last 30 days) and 0 file submitted
photo

Hoai-Nam LE

E-mail

Personal Profile:

 

Watch this Author's files

 

Comments and Ratings by Hoai-Nam LE View all
Updated File Comments Rating
13 Dec 2012 geom3d Library to handle 3D geometric primitives: create, intersect, display, and make basic computations Author: David Legland

Many thanks David!!!
Nam

08 Nov 2012 geom3d Library to handle 3D geometric primitives: create, intersect, display, and make basic computations Author: David Legland

Dear David,

Thanks for your very useful toolbox!

I've used some of your functions and I've found some things :

+ My problem :
I have a 3D point set. I create a minimum convex hull of this point set, using convhulln, so I have a list of facets of the convex hull.

I'd like to clip this convex hull by a plane. And this leads me to your function.

+ There 2 ways to do this with your toolbox :

1/ Use the function clipConvexPolyhedronHP. It works for my problem!
However if we want to have a side of convex hull (below or above to the plane) to clip, we must have a right plane input!!!

For example:
chX = convhulln(Pts); %Pts : 3D point set

% Select 3 points on the plane z=vClip
P=[0 0 vClip;
0 1 vClip;
1 0 vClip];
% Create plane z=vClip
plane=createPlane(P);

% This function createPlane gives me : plane=[0,0,0.7,0,1,0,1,0,0]
% Then the function clipConvexPolyhedronHP returns me a wrong polyhedron. So I permute the 2 direction vectors of the plane : plane=[0,0,0.7,1,0,0,0,1,0] and it returns me a polyhedron with the right side that I desire.

So do you have a tip to use the function createPlane to have a good result (so I dont have to permute the 2 direction vectors of the plane) ?

2/ Use the function polyhedronSlice. It doesn't work because it doesnt return only the intersection points of the plane and the polyhedron, but also some points that are wrong (see the image https://dl.dropbox.com/u/8702546/WEB/image_1.png).

However, if the function works, I can control the side of polyhedron that I want to clip by a simple command of Matlab!

So I feedback you this to correct the function polyhedronSlice!

I dont know if someone has already asked about these things...

Regards,
Nam

17 Sep 2012 sel_and_del Interactively select and delete points from a 2D plot with the mouse Left click selects a point and right click unselects it. Author: José-Luis

thanks for the code, have you ever think about the 3D case ?
best regards

Contact us