Thread Subject: Triangluar facets on 3D geometry

Subject: Triangluar facets on 3D geometry

From: Travis

Date: 9 Nov, 2007 16:40:27

Message: 1 of 1

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

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread

Contact us at files@mathworks.com