
    ]j                         d dl mZ ddlmZmZmZ g dZd Z	 	 	 ddZ	 	 	 dd	Z	eD ]<Z
e
ej        k    r ee	e
           e            e
j                                        <   =d
S )    )partial   )PathPathOpop)
differenceintersectionreverse_differenceunionxorc                 ~    t                      }|                                }| D ]}|                    |           |S )N)r   getPendraw)contourspathpencontours       M/home/agentuser/manim-venv/lib/python3.11/site-packages/pathops/operations.py_drawr      sA    66D
++--C  SK    TFc                     | sd S t          |           }|                    |||           |                    |           d S N)fix_windingkeep_starting_points	clockwise)r   simplifyr   )r   outpenr   r   r   r   s         r   r   r      sZ      ??DMM1    
 	IIfr   c                     t          |          }t          |          }t          ||| |||          }	|	                    |           d S r   )r   r   r   )
operatorsubject_contoursclip_contoursr   r   r   r   onetworesults
             r   _dor%   (   s_      
!
!C


C1  F KKr   N)TTF)	functoolsr    r   r   r   __all__r   r   r%   	operationUNIONglobalsnamelower r   r   <module>r/      s                           .    .  @ @IFL  (/Y(?(?GGIIin""$$%%@ @r   