MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi
Learn moreOpportunities for recent engineering grads.
Apply TodayMATLAB Central > MATLAB Newsreader > Binary Line Through 3D Matrix 

Hello all, 
Subject: Binary Line Through 3D Matrix From: ImageAnalyst Date: 3 Dec, 2010 22:42:01 Message: 2 of 10 
I don't think it's possible in general. Look at the Bresenham line 
Subject: Binary Line Through 3D Matrix From: Bruno Luong Date: 3 Dec, 2010 23:22:05 Message: 3 of 10 
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <f878444678084c069a40d2153564f833@h17g2000pre.googlegroups.com>... 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <idbu2t$15b$1@fred.mathworks.com>... 
Subject: Binary Line Through 3D Matrix From: ImageAnalyst Date: 4 Dec, 2010 00:48:35 Message: 5 of 10 
The Bresenham line is actually more of a path than a line. I still 
Subject: Binary Line Through 3D Matrix From: Bruno Luong Date: 4 Dec, 2010 09:34:04 Message: 6 of 10 

Subject: Binary Line Through 3D Matrix From: Bruno Luong Date: 4 Dec, 2010 09:48:04 Message: 7 of 10 
Sorry I change the algorithm to take into account the second constraint: slide can be only used once. This constraint is satisfied by forcing the recursion to go only forward in depth. 
Subject: Binary Line Through 3D Matrix From: ImageAnalyst Date: 4 Dec, 2010 14:46:44 Message: 8 of 10 
Bruno: 
Subject: Binary Line Through 3D Matrix From: Bruno Luong Date: 5 Dec, 2010 09:42:05 Message: 9 of 10 
ImageAnalyst <imageanalyst@mailinator.com> wrote in message <223ecbc8b05a4c8cb96cd05198b9f62e@q18g2000vbm.googlegroups.com>... 
"Bruno Luong" <b.luong@fogale.findmycountry> wrote in message <idfmpd$29s$1@fred.mathworks.com>... 
A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.
Anyone can tag a thread. Tags are public and visible to everyone.