How to plot 3d patch with Faces and vertices
    57 visualizaciones (últimos 30 días)
  
       Mostrar comentarios más antiguos
    
    Maximilian Krahn
 el 15 de Jul. de 2021
  
    
    
    
    
    Respondida: Joerg Wensch
 el 1 de Jul. de 2022
            I found the patch function, which allows me to plot patches given faces and vertices. As I am working with 3d data, my faces data is a 10670x3 matrix and the vertices are a 6136 x 3 matrix. When I try to display them with 
patch('Faces', faces, 'Vertices', vertices)
It just plots the data projected to a 2d plane. How can I plot them in 3d?
0 comentarios
Respuesta aceptada
  KSSV
      
      
 el 15 de Jul. de 2021
        Try this:
patch('faces',faces,'vertices',vertices(:,1:2),'facevertexcdata',vertices(:,3),'facecolor','interp','edgecolor','none') ; 
colorbar
2 comentarios
  KSSV
      
      
 el 15 de Jul. de 2021
				There is edgecolor option....you change it to black or someother color. HAve a look on triplot, trimesh. 
Más respuestas (2)
Ver también
Categorías
				Más información sobre Polygons en Help Center y File Exchange.
			
	Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!


