I use the pyqt library http://www.riverbankcomputing.co.uk/software/pyqt/introI
have my object structure to store and manage the entity.I provided this simple
interface so you can easily test if you will find it useful or not. Just
download the PythonCAD from git on branch R38 you can follow the wiki page for
instruction:http://pythoncad.sourceforge.net/dokuwiki/doku.php?id=download and
the pyqt library of courseand type the following code : from pythoncad_qt
import *from sympy import *w,app=getPythonCAD()p=Point(10,
10)w.plotFromSympy([p]) For now I support only circle point segment ellipse if
you will find it of any interest I can develop all sympy entity as
well Regards,Matteo
From: [email protected]
To: [email protected]
Cc:
Date: Wed, 8 Sep 2010 09:56:00 -0700
Subject: Re: [sympy] PythonCAD sympy integration
> 2010/9/8 Aaron S. Meurer :> >> On Sep 8, 2010, at 3:32 AM,
> [email protected] wrote:> >>> >> Hi all,> >> I'm working on a
> project named PythonCAD, that is a 2d cad program written> >> in python using
> the pyqt interface> >> I use geometry module from sympy to compute the
> operation between entity..> >> such intersection ...unit mesure ..> >> I have
> in my entity class structure some method that can easily convert> >> sympy
> geometrical object to PythonCAD object and vice versa.> >> With a minimum
> effort I can provide an easy way to plot the sympy> >> geometrical entity
> into PythonCAD drawing area using a command line input> >> text.> >>> >> I
> think that visualize in real time geometrical object will help the user to>
> >> understand the geometrical problems.> >>> >> Let me know this feature can
> be of any help for sympy project> >> > This sounds like it could be an
> interesting idea. Right now, there is no> > way to plot geometry objects,
> unless I am mistaken.> > What is your opinion, Ondrej?> > Yes, we should have
> the plotting capability in sympy. At least for> matplotlib. What plotting
> library are you using?> > Maybe there is some way to abstract the plotting,
> so that some things> can be in sympy.> > > Ondrej> > -- > You received this
> message because you are subscribed to the Google Groups "sympy" group.> To
> post to this group, send email to [email protected].> To unsubscribe
> from this group, send email to [email protected].> For more
> options, visit this group at http://groups.google.com/group/sympy?hl=en.>
--
You received this message because you are subscribed to the Google Groups
"sympy" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/sympy?hl=en.