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
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
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
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
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
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
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.
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
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
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.
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
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
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
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
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
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
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
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
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'
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
>
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
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
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
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
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
_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-
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
//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
49 matches
Mail list logo