2D to 3D extrusion
7 Ansichten (letzte 30 Tage)
Ältere Kommentare anzeigen
Mohamed Alhajeri
am 7 Mär. 2021
Kommentiert: darova
am 9 Mär. 2021
After creating a polyshape from a set of input vertices (x,y) using the polyshape function, I need to extrude and plot the shape (with z value) such that it becomes 3D. Is there any available functions to do that? if not please help me in developing the next lines of code to do so.
The following is the simple way in which I wrote the starting lines of code upto creating a 2D polygon.
clc; clear;
[x y] = ginput(5);
plot(x,y,'r*');
hold on
p1 = polyshape(x,y)
plot(p1)
0 Kommentare
Akzeptierte Antwort
darova
am 8 Mär. 2021
Here is an example (not tested)
clc; clear;
[x y] = ginput(5);
z0 = 5;
patch(x,y,'r') % face wall
patch(x,y,x*0+z0,'r') % back wall
surface([x(:) x(:)],[y(:) y(:)],[x(:)*0 x(:)*0+z0],'facecolor','r')
2 Kommentare
darova
am 9 Mär. 2021
No, we can't there are no built-it function for this. BUt you can search at fileexchange
Weitere Antworten (0)
Siehe auch
Kategorien
Mehr zu Spline Postprocessing 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!