File: //usr/share/inkscape/extensions/dxf_outlines.pyc
�
��Yc @ s d Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z d d l Z y d d l Td d l m
Z
Wn1 e j � e j e
d � � e j j � n Xd � Z d � Z d � Z d e j f d
� � YZ e d k re � Z e j � n d S( sD
Copyright (C) 2005,2007,2008 Aaron Spike, aaron@ekips.org
Copyright (C) 2008,2010 Alvin Penner, penner@vaxxine.com
This file output script for Inkscape creates a AutoCAD R14 DXF file.
The spec can be found here: http://www.autodesk.com/techpubs/autocad/acadr14/dxf/index.htm.
File history:
- template dxf_outlines.dxf added Feb 2008 by Alvin Penner
- ROBO-Master output option added Aug 2008
- ROBO-Master multispline output added Sept 2008
- LWPOLYLINE output modification added Dec 2008
- toggle between LINE/LWPOLYLINE added Jan 2010
- support for transform elements added July 2010
- support for layers added July 2010
- support for rectangle added Dec 2010
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 2 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
i����N( t *( t solves� Failed to import the numpy or numpy.linalg modules. These modules are required by this extension. Please install them and try again.c C s9 | \ } } | \ } } t j | | d | | d � S( Ni ( t matht sqrt( t .0t .1t x1t y1t x2t y2( ( s. /usr/share/inkscape/extensions/dxf_outlines.pyt
pointdistance4 s c C sl d | d | d | d d | d | | d | d d | | d | d | | d | d | S( Ni i i i ( ( t ut cspt col( ( s. /usr/share/inkscape/extensions/dxf_outlines.pyt get_fit7 s c C s| | | d k rh | | | | d | | | | d | | d | | d | | d | | d S| | d k r| | | | d | | d | | | | d | | d | | d | | | | | | d | | d | | d | | d | | d S| | k rt| | d | | | | d | | | | d | | d | | d | | d Sd Sd S( Ni i i ( ( R t it j( ( s. /usr/share/inkscape/extensions/dxf_outlines.pyt
get_matrix: s X�Xt MyEffectc B s} e Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z d � Z
d � Z d
� Z d � Z
d � Z RS(
c C s� t j j | � | j j d d d d d d d d d t �| j j d
d d d d d d d d t �| j j d
d d d d d d d d �| j j d d d d d d d d d �| j j d d d d d d d �| j j d d d d d d d �| j j d d d d d d d d d �| j j d d d d d d d �g | _ d | _ d g | _ d | _
g | _ d d g g d | _ t
d g t � | _ d d g g | _ d S(! Ns -Rs --ROBOt actiont storet typet stringt destt ROBOt defaults -Ps --POLYt POLYs --unitst unitss 72./96s
--encodingt char_encodet latin_1s --tabt tabs --inputhelpt inputhelps --layer_optiont layer_optiont alls --layer_namet
layer_namei� t 0g i i ( t inkext Effectt __init__t OptionParsert
add_optiont Falset Truet dxft handlet layerst layert
layernamest csp_oldt arrayt floatt dt poly( t self( ( s. /usr/share/inkscape/extensions/dxf_outlines.pyR&