Code covered by the BSD License  

Highlights from
Move a 3D object with mouse in a traditional 4-view window

Be the first to rate this file! 14 Downloads (last 30 days) File Size: 81.51 KB File ID: #29140
image thumbnail

Move a 3D object with mouse in a traditional 4-view window

by Gang Wang

 

27 Oct 2010 (Updated 12 Nov 2010)

Interactively move a 3D object anywhere in the 3D space with a mouse.

Editor's Notes:

This file was selected as MATLAB Central Pick of the Week

| Watch this File

File Information
Description

TDFig is an interactive matlab GUI. It displays a 3D objects in the traditional 4-view window (top, front, right and camera).
It also allows users to grasp these objects and move them anywhere in the 3D space.

Just run:
 
TDFig

and it will generate 4 spheres for demo.

Grasp and move the spheres in orthogonal windows (top, front, side windows) to see the effects. Any object being moved outside the window screen will be deleted.

I use spherical surf objects for demo. Actually, you also can generate 'slice' and 'patch' objects with primitive or irregular shape,and load them into TDFig.

Some buttons with special displaying options are on the right.

You can do any modifications on my code. Please remember to email to me when you find bugs or add on some interesting features.

Author: Wang Gang, dnrwg@nus.edu.sg

Acknowledgements

The author wishes to acknowledge the following in the creation of this submission:
3D CT/MRI images interactive sliding viewer, Moveit2 - Move a graphical object with the mouse.

MATLAB release MATLAB 7.8 (R2009a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
12 Nov 2010

add 23304 in acknowledgement list

Tag Activity for this File
Tag Applied By Date/Time
interactive gui Gang Wang 27 Oct 2010 11:10:27
moving 3d objects Gang Wang 27 Oct 2010 11:10:27
graphics Gang Wang 27 Oct 2010 11:10:27
mouse control Gang Wang 27 Oct 2010 11:10:27
3d space Gang Wang 27 Oct 2010 11:10:27
surf Gang Wang 27 Oct 2010 11:10:27
slice Gang Wang 27 Oct 2010 11:10:27
patch Gang Wang 27 Oct 2010 11:10:27
potw Shari Freedman 12 Nov 2010 09:26:40
pick of the week Jiro Doke 11 Feb 2011 20:01:45
pick of the week sebastien 15 May 2012 13:29:47

Contact us at files@mathworks.com