Re: [Pythonocc-users] export and import formats

2010-05-27 Thread John Griessen
Bryan Bishop wrote: > On Thu, May 27, 2010 at 10:56 AM, John Griessen wrote: >> Are STEP and IGES text files? What is a good reference for them from >> the viewpoint of translating? > > You can probably write a translator, if you want, by following all of > the face

Re: [Pythonocc-users] export and import formats

2010-05-27 Thread John Griessen
Jelle Feringa wrote: >> Are there any other formats in OCC's BRepTools? > > in order of quality of data exchange: > step, iges, stl, vrml Then I will probably need to write an exporter to get benefit from both pythonOCC and SweetHome3D. There seems little crossover between 3D for animation or pr

[Pythonocc-users] export and import formats (was: API map)

2010-05-27 Thread John Griessen
Jelle Feringa wrote: >> When I get a cabinet model with slabs and slots and drill holes, >> I want to export to .OBJ format > > Better yet; STL. Surely blender supports it. > There's also a VRML export, but this format is so '90-ies. > Have a look at OCC/Utils/DataExchange/* the want for .OBJ is

Re: [Pythonocc-users] How do you use the API map at http://api.pythonocc.org/ ?

2010-05-26 Thread John Griessen
Jelle Feringa wrote: > What is it your aiming for? I'll try that line example, thanks. I'm aiming for understanding documentation I can find, and learning more OO python than the text processing scripts I have done so far, and after that, I want to model shapes with boolean intersections like th

Re: [Pythonocc-users] How do you use the API map at http://api.pythonocc.org/ ?

2010-05-26 Thread John Griessen
Bryan Bishop wrote: > On Wed, May 26, 2010 at 2:47 PM, John Griessen wrote: >> What does >> __repr__(self) >> repr(x) >> >> do? > > That's a basic python construct, it's a special method of a class that > python checks whenever it tries to

[Pythonocc-users] How do you use the API map at http://api.pythonocc.org/ ?

2010-05-26 Thread John Griessen
Package OCC :: Module Adaptor2d :: Class Adaptor2d_Line2d Class Adaptor2d_Line2d object --+ | Adaptor2d_Curve2d --+ | Adaptor2d_Line2d This seems like it will be useful as I get to understanding things. I don't understand

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-25 Thread John Griessen
Thomas Paviot wrote: > Hi John, > > This behaviour is normal: > You can disable this loop (justin comment out the lines) and run this > script from ipython. Then change the parameter Z2 and you'll see the > geometry/mesh update. Sounds like a good exercise. I'll look for that loop to change.

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-25 Thread John Griessen
John Griessen wrote: python paf_smesh.py > [...] p.Z2 and p.Y2 from 15 to 16 > R1 value: 5.4 p.Z2 and p.Y2 from 16 to 17 > > and continues looping. > > Seems broken? Is that normal? After five minutes I got a window with a cylinder boolean subtracted from a re

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-25 Thread John Griessen
Be sure to have the sympy package installed before running the > Parametric Application Framework (PAF). Yes, I have that. It was installed before the last build. ipython paf_unittest.py --> Ran 0 tests in 0.000s OK So, I tried with python2.6: python --version Python 2.6.5 Here are some te

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-24 Thread John Griessen
Denis Barbier wrote: > When running two distinct steps: >python setup.py build >sudo python setup.py install I did it this way and it compiles, but then tests don't pass for PAF. Looking at using ubuntu to get started.

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-22 Thread John Griessen
John Griessen wrote: > I decided to delete everything in the build dir and repeat with build -f. > > So now what I did is: > > from /pythonocc-read-only$ svn info > Path: . > URL: http://pythonocc.googlecode.com/svn/trunk > Repository Root: http://pythonocc.googlec

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-22 Thread John Griessen
Denis Barbier wrote: > I ran the same commands, except that this one has to be called with > sudo. Do you build pythonocc as root, or did you simply forget it? Je l'ai oublié. sudo python2.6 setup.py install est ce que je fais. > If you still have import errors, you can run strace to see where

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-22 Thread John Griessen
Denis Barbier wrote: > On 2010/5/22 John Griessen wrote: >> Any ideas what to try? > > My build also did not work. First of all, OCC/__init__.py was > missing, I did not have that in my build dirs... no build/lib.linux-i686-2.6/OCC/__init__.py I decided to delete everythin

Re: [Pythonocc-users] building svn Rev 1031 on debian

2010-05-22 Thread John Griessen
John Griessen wrote: > Now that a build with python2.6 ran to completion without errors, I have > tested some OCC > examples and I'm not able to import any OCC modules or other modules: . . . > --> 878 import wx > 879 > 880 thre

[Pythonocc-users] building svn Rev 1031 on debian

2010-05-22 Thread John Griessen
Now that a build with python2.6 ran to completion without errors, I have tested some OCC examples: j...@toolbench:/backups-650mb/pythonocc-read-only/src/examples/Level1/SMESH$ ipython -wthread volumic_mesh.py --- ImportE

[Pythonocc-users] Patches for building on debian (svn Revision: 1031)

2010-05-22 Thread John Griessen
Denis Barbier wrote: > Following commands should work on a fresh checkout, I will try to > recompile later: I got the latest, j...@toolbench:/backups-650mb/pythonocc-read-only$ svn info Path: . URL: http://pythonocc.googlecode.com/svn/trunk Repository Root: http://pythonocc.googlecode.com/svn Rep

Re: [Pythonocc-users] Patches to help building on Debian

2010-05-21 Thread John Griessen
Denis Barbier wrote: > On 2010/5/22 John Griessen wrote: >> Hello Denis, >> >> Are the patches you mentioned 5/19/2010 still recommended? > > Thomas applied them all (thanks!), you can update your svn checkout. > >> I'd like to try them with pyt

Re: [Pythonocc-users] Patches to help building on Debian

2010-05-21 Thread John Griessen
Hello Denis, Are the patches you mentioned 5/19/2010 still recommended? I'd like to try them with python2.6 (and python2.6-dev installed) also. John > Here are some patches: > - 0001-Fix-end-of-lines.patch > End-of-line is not consistent, some files have a mix of DOS and > Unix conventions

Re: [Pythonocc-users] debian compile with python2.6

2010-05-21 Thread John Griessen
Denis Barbier wrote: > I called 'python2.6 setup.py install --user' which installs modules > under $HOME/.local/lib/python2.6/, this is exactly what I want to > achieve, being able to install as a normal user. This quoted text > does not mention that, thus I tried 'sudo python2.6 setup.py install'

[Pythonocc-users] debian compile with python2.6

2010-05-20 Thread John Griessen
Denis Barbier wrote: > I have some trouble with python 2.6, it seems that extensions are not > loaded, no idea why yet. This excerpt from debian policy, http://www.debian.org/doc/packaging-manuals/python-policy/ch-python.html, seems complicated and has to do with it: "Directories with private Pyt

Re: [Pythonocc-users] PAF tutorial not going yet.

2010-05-20 Thread John Griessen
I noticed my ipython-and-leo-editor session segfaulted right away when I added /usr/lib/python2.5/site-packages/OCC to the PYTHONPATH env variable. So I just stopped using leo and made a vim file, test_paf.py, like below: - from OCC.PAF.Context import ParametricModeling

Re: [Pythonocc-users] debian compile with python2.5

2010-05-20 Thread John Griessen
Denis Barbier wrote: > On 2010/5/14 John Griessen wrote: > [...] >> build/temp.linux-i686-2.6/backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard_wrap.o >> -march=i686 >> cc1plus: warning: command line option "-Wstrict-prototypes" is vali

Re: [Pythonocc-users] PAF tutorial not going yet.

2010-05-20 Thread John Griessen
Denis Barbier wrote: > And if you create an empty file site-packages/OCC/__init__.py ? One exists already: j...@toolbench:/usr/lib/python2.5/site-packages/OCC$ cat __init__.py VERSION='0.5dev' __all__=['Standard', 'MMgt', 'Precision', 'Quantity', 'TCollection', [...] John.org/listinfo/pythono

Re: [Pythonocc-users] debian compile with python2.5

2010-05-20 Thread John Griessen
Denis Barbier wrote: > On 2010/5/14 John Griessen wrote: > [...] >> running build_ext >> building 'OCC._Standard' extension >> swigging >> /backups-650mb/pythonocc-read-only/src/wrapper/SWIG/linux_darwin/Standard.i >> to >> /backups-650

Re: [Pythonocc-users] PAF tutorial not going yet.

2010-05-20 Thread John Griessen
Thomas Paviot wrote: > 2010/5/20 John Griessen > ImportError: No module named OCC.PAF.Context > - > > That's the first line. > I must be missing something. > > John > > > Weird. Maybe something wen

Re: [Pythonocc-users] testing a pythonocc debian installation

2010-05-20 Thread John Griessen
Denis Barbier wrote: > On 2010/5/20 John Griessen wrote: >> but I have nothing at /usr/local/lib/libTKOpenGl.so. > > You can find this library into the libopencascade-visualization-dev > Debian package, in /usr/lib > I am not sure, but you may instead set > export

[Pythonocc-users] PAF tutorial not going yet.

2010-05-19 Thread John Griessen
I've executed a file from ipython and get errors immediately that suggest incomplete installation or misunderstood install, or python path problem. My script is launched from leo-ipython started with python2.6. It contains: - from OCC.PAF.Context import ParametricM

[Pythonocc-users] testing a pythonocc debian installation

2010-05-19 Thread John Griessen
A while back Thomas suggested: In order to check your installation, run src/unittest programs. When I execute python2.5 occ_unittest.py output is: Ran 11 tests in 4.730s OK - To test that the SMESH wrapper works: run the examples from src/examples/Level1/SMESH python2.5

[Pythonocc-users] running pythonocc compiled with python2.5 and ipython compiled with python2.6

2010-05-19 Thread John Griessen
Can I refer to python2.5 in my scripts and what ipython calls execute even though ipython was compiled with python2.6? I used python2.6 to satisfy the latest leo editor's python dependency. John ___ Pythonocc-users mailing list Pythonocc-users@gna.org

[Pythonocc-users] PAF tutorial dated 10 April 2010

2010-05-19 Thread John Griessen
Hi, I'm new at ipython and am a little confused at the tutorial wording: "The best way to get all the power of PAF is certainly to use the ipython console. When your PAF script is ready (let’s name it test_paf.py’), then just: ipython -wthread test_paf.py" And then the tutorial mentions step one

Re: [Pythonocc-users] debian compile with python2.6 errors, stops, runs with python2.5

2010-05-19 Thread John Griessen
Thomas Paviot wrote: > Hi John, > > I'm not sure the -classic and/or -nomodernargs can be safely used with > SWIG and python2.6. Do you want to be able to run with python2.6? I'm going to start learning pythonocc with 2.5, but wanted to use the leo editor with ipython and so get into a dependen

Re: [Pythonocc-users] debian compile with python2.6 errors, stops, runs with python2.5

2010-05-18 Thread John Griessen
John Griessen wrote: > I'm still unable to compile with python2.6, but python2.5 goes right past > this problem. Any ideas? With python2.6 doing python setup.py build -f I get this: . > . > . > running build_ext > building 'OCC._Standard' extension > swigg

Re: [Pythonocc-users] debian compile with python2.6

2010-05-18 Thread John Griessen
I'm new at cmake and cmake-gui. What should the build dir be set to for GEOM and SMESH when running cmake-gui? John ___ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users

[Pythonocc-users] debian compile with python2.6

2010-05-18 Thread John Griessen
I'm still unable to compile. This started when I changed python to 2.6. Any ideas how to get around this? Only use python2.5? John Thomas Paviot wrote: > Hi John, > > SWIG parameters are defined in the ./src/wrapper/environment.py sciprt. . . > > python set

Re: [Pythonocc-users] How to compile python-occ from svn in Ubuntu 10.04

2010-05-14 Thread John Griessen
John Griessen wrote: > apt-get build-dep libopencascade-foundation-6.3.0 > > is a good thing to try No, it's not. Needs 255MB when done and the binary packages for opencascade seemed to be working OK in compiling pythonocc for py

Re: [Pythonocc-users] How to compile python-occ from svn in Ubuntu 10.04

2010-05-14 Thread John Griessen
John Griessen wrote: > The debian packages are: > libopencascade-dev6.3.0.dfsg.1-4 > libopencascade-foundation > libopencascade-modeling-6.3.0 and libopencascade-visualization-6.3.0 libopencascade-foundation-6.3.0 libopencascade-ocaf-6.3.0 libopencascade-ocaf-lite-6.3.0 a

Re: [Pythonocc-users] How to compile python-occ from svn in Ubuntu 10.04

2010-05-14 Thread John Griessen
I've been following this build write up: http://code.google.com/p/pythonocc/wiki/InstallationLinux It starts with prerequisite opencascade by package or source build. The debian packages are: libopencascade-dev6.3.0.dfsg.1-4 libopencascade-foundation libopencascade-modeling-6 libopencasc

[Pythonocc-users] debian compile with python2.6

2010-05-14 Thread John Griessen
Thomas Paviot wrote: > Hi John, > > SWIG parameters are defined in the ./src/wrapper/environment.py sciprt. . . > > python setup.py build -f Now I get this: j...@toolbench:/backups-650mb/pythonocc-read-only/src$ python setup.py build -f Building pythonOCC-0.5dev for linux2 Checking OCC Standa

Re: [Pythonocc-users] debian compile

2010-05-14 Thread John Griessen
Thomas Paviot wrote: > 2010/5/11 John Griessen > Messages like: > building 'OCC._GEOMAlgo' extension > building 'OCC._GEOMImpl' extension > > looks like it's building all now. > > JG > > > Perfect. Well, not complet

Re: [Pythonocc-users] debian compile

2010-05-10 Thread John Griessen
Thomas Paviot wrote: > So you did not install GEOM. You should have: > libGEOM.so I ran the GEOM install.Thought I had, but mistaken. Now I have libGEOM.so > When you have built GEOM, restart the pythonOCC compilation process > (setup.py)). The GEOM library will be detected and the wrapper

Re: [Pythonocc-users] debian compile

2010-05-10 Thread John Griessen
Thomas Paviot wrote: > > So now I do install and something is off. Here's the message: > > j...@toolbench:/backups-650mb/pythonocc-read-only/src$ sudo python > setup.py install > Building pythonOCC-0.5dev for linux2 > Checking OCC Standard_Transient.hxx header ... found >

Re: [Pythonocc-users] debian compile

2010-05-10 Thread John Griessen
Denis Barbier wrote: > On 2010/5/10 Thomas Paviot wrote: >> Hard to answer this question: it depends on your machine. Maybe the >> compilation is longer on Linux than on MacOSX : it's about 1h30 on my >> MacBookPro. > [...] > > Ditto on my Linux laptop, IIRC. > I did not check how much memory is

Re: [Pythonocc-users] debian compile

2010-05-10 Thread John Griessen
Thomas Paviot wrote: > I checked that you can safely remove TKCDLFront TKCPPClient TKCPPExt > TKCPPIntExt TKCPPJini > TKCSFDBSchema TKIDLFront TKTCPPExt mscmd from this list. > > I committed changes to the svn repository. My compile is still running after making these changes to the file. is

Re: [Pythonocc-users] debian compile

2010-05-09 Thread John Griessen
John Griessen wrote: > Now I'm missing something else: > > j...@toolbench:/backups-650mb/pythonocc-read-only/src$ python setup.py build > --with-occ-include=/usr/include/opencascade > --with-occ-lib=/usr/lib > Building pythonOCC-0.5dev for linux2 > Checking OCC Sta

Re: [Pythonocc-users] debian compile

2010-05-09 Thread John Griessen
ggest another cmake setup problem, or a lack of debian OCC packages? John Griessen ___ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users

Re: [Pythonocc-users] debian compile

2010-05-09 Thread John Griessen
Thomas Paviot wrote: > 2010/5/9 John Griessen <mailto:j...@industromatic.com>> > > I can't get the first instruction done on debian unstable... > > I can't believe it's already on debian install : it's something I > committed a few day

[Pythonocc-users] debian compile

2010-05-09 Thread John Griessen
_PATH From my environment: OCC_INC=/usr/include/opencascade OCC_INCLUDE_PATH=/usr/include/opencascade contents of /usr/include/opencascade: are hundreds of files like WNT_SequenceNodeOfSequenceOfImage.hxx What next? John Griessen ___ Pythonocc-

Re: [Pythonocc-users] OpenCascade overview

2009-12-14 Thread John Griessen
contact with Jelle from pythonOCC and he is very interested in some kind of cooperation. But the problem is still the license" You both mentioned GPL. Is the version differencesd between v2 and v3 GPL the problem? John Griessen ___ Pythonocc-users mai

Re: [Pythonocc-users] OpenCascade overview

2009-12-05 Thread John Griessen
//opencascade.blogspot.com/2009/02/topology-and-geometry-in-open-cascade.html > > . Roman definitely knows OCC perfectly and is able to share his > knowledge in a very clear manner. Thanks, I'll read that. I'm new too. I'm interested in open hardware development an