How to plot a 3D bounding box (with specific size) around a 3D point?
Show older comments
How can I plot a specific size 3D bounding box (cube) around a 3D point? For example, the coordinate of the point is (10,5,10) and I need to draw a 3D bounding box size 20 (20x20x20) around the point such that the point is in the center (inside) of the 3D box.
Accepted Answer
More Answers (2)
KSSV
on 26 May 2016
1 vote
You can make use of the following function: http://in.mathworks.com/matlabcentral/fileexchange/15161-plotcube
4 Comments
KSSV
on 26 May 2016
The function needs edges and origin of the cube as inputs. You can calculate these inputs accordingly to your point.
changcheng qiu
on 17 Oct 2018
I also want to know? Can you solve it?
haris shakeel
on 28 Apr 2018
0 votes
how can i get four coordinates pixels values of box through matlab
Categories
Find more on Line Plots in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!