Hello Dave, hello all,

 

(1)   In the 'old' build system, there were one pyd file for each set of 
classes TopAb, TopExp, Geom etc. The whole project was structured in a better 
way than now: all in only 2 files: OCC.py and _OCC.pyd (for Windows).As a 
consequence you just hve to do "from OCC import *" in order to have access to 
classes.

 

(3b) TopAbs_Shape enum in the name of the enum. It's a 'category' of available 
options. In the SWIG file, it is defined as:

 

enum TopAbs_ShapeEnum {

      TopAbs_COMPOUND,

      TopAbs_COMPSOLID,

      TopAbs_SOLID,

      TopAbs_SHELL,

      TopAbs_FACE,

      TopAbs_WIRE,

      TopAbs_EDGE,

      TopAbs_VERTEX,

      TopAbs_SHAPE,

      };

So when the parameter TopAbs_ShapeEnum appears in a function prototype, you can 
use any of the 9 items of the category. I agree with you: it's not clear at all!

 

(2)   Installation of  release 0.97 will replace the old one.

 

Regards,

 

Thomas Paviot

________________________________

De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Cowdens
Envoyé : lundi 6 octobre 2008 19:23
À : minerva-pythonocc@gna.org
Objet : Re: [Minerva-pythonocc] pythonOCC 0.96 and STEP import bug

 

Hi, Thomas/All:

 

I have downloaded and installed pyocc v 0.96.  My observations:

 

(1) The documentation is much much better, and most of the structure is much 
better organized. IE, it is better to do STEP_Control_Reader() vs 
STEP_Control.STEP_Control_Reader()!  Kudos, Thomas, to you on the new layout 
and new documentation!

 

(2) The constructor bug I had with TopExp_Explorer seems to be fixed.

 

(3) There are a couple of libraries/objects Im using that appear missing in the 
new distribution:

     (3a) -- BRepBnd seems to be gone-- it used to be there?

     (3b) -- TopExp_Explorere references TopAbs_ShapeEnum, but this enumeration 
does not exist.  To test that TopExp_Explorer works, I foundt the values via 
the constants from OCC, and it worked perfectly. In previous version, you could 
do TopAbs_FACE.  

 

(4) Just a note to those who might upgrade, running the installer for version 
0.96 will _not_ automatically remove the older version-- you need to remove the 
old version from lib/site-packages manually... Evidenty the older version will 
take precedence by default.

 

Thomas, thanks for your work, and let me know if I can help out!

 

________________________________

From: Paviot Thomas [mailto:[EMAIL PROTECTED] 
Sent: Monday, October 06, 2008 10:51 AM
To: minerva-pythonocc@gna.org
Cc: Dave Cowden
Subject: pythonOCC 0.96 and STEP import bug

Hello,

 

Dave Cowden submitted in a previous post a bug in step file import. Latest 
release of pythonOCC fixes this bug.

 

Here are the results obtained from the import of a 44.4Mb step file (an 
aircraft) by using the script "STEP_import.py" available on pythonocc home page:

 

G:\>python STEP_import.py

      ...    Step File Reading : Test.STEP

      ...    STEP File   Read    ...

Elapsed time:  0 Hour(s) 0 Minute(s) 6.393 Second(s)

CPU user   time: 1.73438 seconds

CPU kernel time: 0.09375 seconds

      ... Step File loaded  ...

Elapsed time:  0 Hour(s) 0 Minute(s) 7.484 Second(s)

CPU user   time: 2.78125 seconds

CPU kernel time: 0.125 seconds

   1160988 records (entities,sub-lists,scopes), 3755635 parameters

 

      ... Parameters prepared ... Elapsed time:  0 Hour(s) 0 Minute(s) 8.778 Sec

ond(s)

CPU user   time: 4.03125 seconds

CPU kernel time: 0.140625 seconds

      ...   Objets analysed  ...

Elapsed time:  0 Hour(s) 0 Minute(s) 10.743 Second(s)

CPU user   time: 5.89063 seconds

CPU kernel time: 0.25 seconds

  STEP Loading done : 820898 Entities

1  Items Loaded.

<OCC.TopoDS_Shape; proxy of <Swig Object of type 'TopoDS_Shape *' at 0x27a52b20>

 >

27894 faces.

 

Regards,

 

Thomas Paviot

PLM/Digital Factory

Supméca/LISMMA

Paris, France

+33(0)1.49.45.29.38

 

_______________________________________________
Minerva-pythonocc mailing list
Minerva-pythonocc@gna.org
https://mail.gna.org/listinfo/minerva-pythonocc

Reply via email to