## How to plot a polyhedron

Hi all,

I have a cloud of points that I have obtained by computing T = A*W where W = [w1 w2 w3 w4]’, A is a 3×4 matrix and T is a 3×1 matrix. All the parameters wi can be equal to [-1 0 1]. Hence, I found all the combination of W compunting by varying each wi and finally I have obtained all the 81 points T(:,i).

My goal is to depict the polyhedron, or 3D polygon, which is described by all the external points of the cloud T(:,i). I started to use the command "fill3(x,y,z,c)" and the results is quite good, but I’m doing it "by hands" and the cloud of points is not easily to visualize and hence is too difficoult to find all the vertices to plot each face of the polyhedron. It will be good if I can plot only the external points of the cloud or if there is a matlab command which plot the external surfaces of a cloud of points. I attach the picture of the cloud of points and some parts of the polygon I already found manually. Blue, red and green lines are related to x, y and z axis I order to help the visualization.

Someone can help me?

Thank you!

Matteo

<</matlabcentral/answers/uploaded_files/104893/cloud.png>>

<</matlabcentral/answers/uploaded_files/104894/poly.png>>Hi all,

I have a cloud of points that I have obtained by computing T = A*W where W = [w1 w2 w3 w4]’, A is a 3×4 matrix and T is a 3×1 matrix. All the parameters wi can be equal to [-1 0 1]. Hence, I found all the combination of W compunting by varying each wi and finally I have obtained all the 81 points T(:,i).

My goal is to depict the polyhedron, or 3D polygon, which is described by all the external points of the cloud T(:,i). I started to use the command "fill3(x,y,z,c)" and the results is quite good, but I’m doing it "by hands" and the cloud of points is not easily to visualize and hence is too difficoult to find all the vertices to plot each face of the polyhedron. It will be good if I can plot only the external points of the cloud or if there is a matlab command which plot the external surfaces of a cloud of points. I attach the picture of the cloud of points and some parts of the polygon I already found manually. Blue, red and green lines are related to x, y and z axis I order to help the visualization.

Someone can help me?

Thank you!

Matteo

<</matlabcentral/answers/uploaded_files/104893/cloud.png>>

<</matlabcentral/answers/uploaded_files/104894/poly.png>> Hi all,

I have a cloud of points that I have obtained by computing T = A*W where W = [w1 w2 w3 w4]’, A is a 3×4 matrix and T is a 3×1 matrix. All the parameters wi can be equal to [-1 0 1]. Hence, I found all the combination of W compunting by varying each wi and finally I have obtained all the 81 points T(:,i).

My goal is to depict the polyhedron, or 3D polygon, which is described by all the external points of the cloud T(:,i). I started to use the command "fill3(x,y,z,c)" and the results is quite good, but I’m doing it "by hands" and the cloud of points is not easily to visualize and hence is too difficoult to find all the vertices to plot each face of the polyhedron. It will be good if I can plot only the external points of the cloud or if there is a matlab command which plot the external surfaces of a cloud of points. I attach the picture of the cloud of points and some parts of the polygon I already found manually. Blue, red and green lines are related to x, y and z axis I order to help the visualization.

Someone can help me?

Thank you!

Matteo

<</matlabcentral/answers/uploaded_files/104893/cloud.png>>

<</matlabcentral/answers/uploaded_files/104894/poly.png>> 3d polygon, polyhedron, 3d plots MATLAB Answers — New Questions