U
    h                     @   sr   d dl mZ d dl mZ d dl mZ d dlZd dlmZ d dl	m
Z
 d dlmZ dddgdd	d
dddfddZdS )    )absolute_import)division)print_functionN)measure)Axes3D   ZmeshZ   ig?   Zgreyc	           
   	   C   s   t j|d |d |d dd}	|	j| dddf | dddf | dddf |||dd |	d |	j||d	 ||	_t | dS )
zF
	plot the mesh 
	Args:
		vertices: [nver, 3]
		triangles: [ntri, 3]
	r   r      Z3d)Z
projectionN)	trianglesZlwcoloralphaoff)ZelevZazim)pltsubplotZplot_trisurfZaxisZ	view_initdisttitle)
Zverticesr   r   r   elazZlwdtr   r   Zax r   P/tmp/pip-unpacked-wheel-5oclok7i/insightface/thirdparty/face3d/mesh_numpy/vis.py	plot_mesh
   s    <
r   )
__future__r   r   r   ZnumpynpZmatplotlib.pyplotZpyplotr   Zskimager   Zmpl_toolkits.mplot3dr   r   r   r   r   r   <module>   s   