identify faces of a 3D geometry
I have two 3D geometries composed of nodes and faces.
file_im = importdata("f_mm.mat");
nodes_e = file_im.nodes_e;
faces_e = file_im.faces_e;
g_P_sez = file_im.g_P_sez;
figure
trimesh(faces_e(:,:),nodes_e(:,1),nodes_e(:,2),nodes_e(:,3),’EdgeColor’,’k’,’Linewidth’,0.1,’Facecolor’,[255 0 0]/255,’FaceAlpha’,1)
hold on
plot3(g_P_sez(:,1),g_P_sez(:,2),g_P_sez(:,3),’k.’,’Markersize’,15)
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
I want to locate the faces of this geometry (yellow box) that are contained in ‘faces_e’.
Of help I have the node ‘g_P_sez’. So could select the faces at a distance X from that node.
There would be the nearestFace function but it is not suitable for my case. Are there alternatives?I have two 3D geometries composed of nodes and faces.
file_im = importdata("f_mm.mat");
nodes_e = file_im.nodes_e;
faces_e = file_im.faces_e;
g_P_sez = file_im.g_P_sez;
figure
trimesh(faces_e(:,:),nodes_e(:,1),nodes_e(:,2),nodes_e(:,3),’EdgeColor’,’k’,’Linewidth’,0.1,’Facecolor’,[255 0 0]/255,’FaceAlpha’,1)
hold on
plot3(g_P_sez(:,1),g_P_sez(:,2),g_P_sez(:,3),’k.’,’Markersize’,15)
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
I want to locate the faces of this geometry (yellow box) that are contained in ‘faces_e’.
Of help I have the node ‘g_P_sez’. So could select the faces at a distance X from that node.
There would be the nearestFace function but it is not suitable for my case. Are there alternatives? I have two 3D geometries composed of nodes and faces.
file_im = importdata("f_mm.mat");
nodes_e = file_im.nodes_e;
faces_e = file_im.faces_e;
g_P_sez = file_im.g_P_sez;
figure
trimesh(faces_e(:,:),nodes_e(:,1),nodes_e(:,2),nodes_e(:,3),’EdgeColor’,’k’,’Linewidth’,0.1,’Facecolor’,[255 0 0]/255,’FaceAlpha’,1)
hold on
plot3(g_P_sez(:,1),g_P_sez(:,2),g_P_sez(:,3),’k.’,’Markersize’,15)
hold off
axis equal
xlabel(‘x’)
ylabel(‘y’)
zlabel(‘z’)
I want to locate the faces of this geometry (yellow box) that are contained in ‘faces_e’.
Of help I have the node ‘g_P_sez’. So could select the faces at a distance X from that node.
There would be the nearestFace function but it is not suitable for my case. Are there alternatives? faces, geometry, 3d, 3d plots, select MATLAB Answers — New Questions