Code covered by the BSD License  

Download apps, toolboxes, and other File Exchange content using Add-On Explorer in MATLAB.

» Watch video

Highlights from

4.3 | 3 ratings Rate this file 2 Downloads (last 30 days) File Size: 2.09 KB File ID: #7191 Version: 1.0
image thumbnail



Yuri K (view profile)


18 Mar 2005 (Updated )

Selects points on 3D plot using rbbox.

| Watch this File

File Information

RBB3SELECT(X,Y,Z) returns logical array of points selected by rubberband box on 3D plot. Example script to outline the selected points is provided.

MATLAB release MATLAB 7.0.1 (R14SP1)
Tags for This File   Please login to tag files.
Please login to add a comment or rating.
Comments and Ratings (5)
06 Apr 2007 Yuri Kotliarov

Here is another longtimeago comment I found in my mailbox. Sorry I was not able to test it. But it may be useful for someone.


I was using your file RBB3SELECT to get coordinates of nodes from a 3D mesh. I previouly used SELECT3D (available in the FEX) but it can only return one data at time.

Your code works well except when it is used with CAMERA (cameratoolbar).

So, reading SELECT3D (from TMW), I found three non-documented properties of axes : x_RenderTransform, x_RenderOffset, x_RenderScale

I just change the line 34 from RBB3SELECT :
with this :

And it seems to solve the problem.
The test file RBB3TEST is still working even if you use the cameratoolbar.

I don't tested this modification more.
But it seems to enhance your contribution.

What do you think ?

Comment only
06 Apr 2007 Yuri Kotliarov

Sorry for not addressing problems for this submission for a long time. I found if you have axes with prospective mode turned on, the function returns wrong points some time.
So, I have 3 choices:
1) Check prospective mode and issue a warning
2) Force axes to prospective mode off just before selection
3) Somehow calculate projection even if prospective mode on. Currently I have no idea how to do it.
Any comments?

Comment only
09 Nov 2006 Ian D'Agostino

A great little utility. I also had problems getting the correct points. However, I was able to overcome this by always setting the axes to be uniform (n x n x n).
eg/ axis([-50 50 -50 50 -50 50 1 3]), where 1 and 3 are colour scaling.

09 Nov 2005 Pontus Lindbom

It is good but when I am using vectors describing a point cloud the wrong points are chosen for some projections. Looks like incorrect projection or something.

14 Oct 2005 Zoltan Sarosi

Very good! I was looking for it! Thank you!

Contact us