getting inside points of cuboid
2 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
yogesh jain
am 11 Dez. 2015
Kommentiert: yogesh jain
am 18 Feb. 2016
Hello all , I have all information about a cuboid (vertices,faces,L,B and H also) , how can I get all inside points of the cuboid ? Thanks in advance .
0 Kommentare
Akzeptierte Antwort
Walter Roberson
am 14 Dez. 2015
xvec = 0 : B;
yvec = 0 : L;
zvec = 0 : H;
[X, Y, Z] = ndgrid(xvec, yvec, zvec);
is_in_cuboid = true(size(X));
Xc = X(is_in_cuboid);
Yc = Y(is_in_cuboid);
Zc = Z(is_in_cuboid);
pointsize = 20;
scatter3(Xc, Yc, Zc, pointsize, 'filled')
Weitere Antworten (1)
Siehe auch
Kategorien
Mehr zu Geometry and Mesh finden Sie in Help Center und File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!