Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Convert 3D polyhedral object to patch faces and vertice

Subject: Convert 3D polyhedral object to patch faces and vertice

From: Liana

Date: 6 May, 2011 21:36:06

Message: 1 of 3

Hi!

How can I convert a 3D polyhedral object defined by X,Y,Z coordinates to patch faces and vertices? There is a function "poly2fv'' that does this work for a 2D case. What about 3D?

Thanks.

Subject: Convert 3D polyhedral object to patch faces and vertice

From: Matt J

Date: 7 May, 2011 06:49:04

Message: 2 of 3

"Liana" wrote in message <iq1pk6$c3p$1@newscl01ah.mathworks.com>...
> Hi!
>
> How can I convert a 3D polyhedral object defined by X,Y,Z coordinates to patch faces and vertices? There is a function "poly2fv'' that does this work for a 2D case. What about 3D?
==================

You're familiar with my vert2lcon tool already.

http://www.mathworks.com/matlabcentral/fileexchange/30892-representing-polyhedral-convex-hulls-by-vertices-or-inequalities

For each inequality that it gives you

Aeq(i,:)*x <= b(i)

just check which (X,Y,Z) triplets satisfy this with equality.

Subject: Convert 3D polyhedral object to patch faces and vertice

From: Liana

Date: 8 May, 2011 04:04:05

Message: 3 of 3

Thank you!

"Matt J" wrote in message <iq2q10$kl3$1@newscl01ah.mathworks.com>...
> "Liana" wrote in message <iq1pk6$c3p$1@newscl01ah.mathworks.com>...
> > Hi!
> >
> > How can I convert a 3D polyhedral object defined by X,Y,Z coordinates to patch faces and vertices? There is a function "poly2fv'' that does this work for a 2D case. What about 3D?
> ==================
>
> You're familiar with my vert2lcon tool already.
>
> http://www.mathworks.com/matlabcentral/fileexchange/30892-representing-polyhedral-convex-hulls-by-vertices-or-inequalities
>
> For each inequality that it gives you
>
> Aeq(i,:)*x <= b(i)
>
> just check which (X,Y,Z) triplets satisfy this with equality.

Tags for this Thread

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.

Contact us