BOXES3D Description of functions operating on 3D boxes. A box defined by its coordinate extents: BOX = [XMIN XMAX YMIN YMAX ZMIN ZMAX]. Example % Draw a polyhedron together with its bounding box [n e f]= createIcosahedron; drawPolyhedron(n, f); hold on; drawBox3d(point3dBounds(n)) See also boundingBox3d, box3dVolume, drawBox3d intersectBoxes3d, mergeBoxes3d, randomPointInBox3d ------ Author: David Legland e-mail: david.legland@grignon.inra.fr Created: 2010-07-26, using Matlab 7.9.0.529 (R2009b) Copyright 2010 INRA - Cepia Software Platform.
0001 function boxes3d(varargin) 0002 %BOXES3D Description of functions operating on 3D boxes. 0003 % 0004 % A box defined by its coordinate extents: 0005 % BOX = [XMIN XMAX YMIN YMAX ZMIN ZMAX]. 0006 % 0007 % Example 0008 % % Draw a polyhedron together with its bounding box 0009 % [n e f]= createIcosahedron; 0010 % drawPolyhedron(n, f); 0011 % hold on; 0012 % drawBox3d(point3dBounds(n)) 0013 % 0014 % 0015 % See also 0016 % boundingBox3d, box3dVolume, drawBox3d 0017 % intersectBoxes3d, mergeBoxes3d, randomPointInBox3d 0018 % 0019 % 0020 % ------ 0021 % Author: David Legland 0022 % e-mail: david.legland@grignon.inra.fr 0023 % Created: 2010-07-26, using Matlab 7.9.0.529 (R2009b) 0024 % Copyright 2010 INRA - Cepia Software Platform.