|
Hi all,
A few days ago I posted about creating triangular facets on
a cylinder and that is now taken care of.
Now on to a new problem: I am trying to make a 3D surface of
different geometry, a simple example of such would be a
trapezoid.
My approach was to define some coordinates in 2D and give it
some thickness. If I can create the surface plot, I imagine
I can use surf2patch to create the triangular facets I need.
For example:
x = [0.0 0.1 0.2 0.1 0.0 0.0]';
z = [0.0 0.0 0.0 0.5 0.5 0.0]';
y = [0.0 0.0 0.0 0.0 0.0 0.0]';
plot3(x,y,z,'o-')
Any ideas on how I could extrude that, say with a thickness
of 0.005, and create a 3D surface plot (which can hopefully
be converted into a patch with triangular facets).
Thanks!
--Travis
|