Submit
Path:
~
/
/
proc
/
thread-self
/
root
/
opt
/
alt
/
python35
/
lib64
/
python3.5
/
site-packages
/
scipy
/
spatial
/
__pycache__
/
File Content:
_spherical_voronoi.cpython-35.pyc
DB�W�0 � @ s� d Z d d l Z d d l Z d d l Z d d l Z d d l m Z e e j � d k Z d g Z d d � Z d d � Z Gd d � d � Z d S)z3 Spherical Voronoi Code .. versionadded:: 0.18.0 � N)�NumpyVersionz1.8.0�SphericalVoronoic C s� | j d } t j | t j | d d f � f d d �} t j | d d d �} t j | d d � d d � t j f | f d d �} t j | d d d �} t j | d d d �} t j | d d d �} t r$t j j | � } t j j | � } t j j | � } t j j | � } nq t j d d � | D� � } t j d d � | D� � } t j d d � | D� � } t j d d � | D� � } t j | | | f � } d | } | | j S) a� Calculates the cirumcenters of the circumspheres of tetrahedrons. An implementation based on http://mathworld.wolfram.com/Circumsphere.html Parameters ---------- tetrahedrons : an array of shape (N, 4, 3) consisting of N tetrahedrons defined by 4 points in 3D Returns ---------- circumcenters : an array of shape (N, 3) consisting of the N circumcenters of the tetrahedrons in 3D r � � �axis� N� c S s"