Hi Thomas, I'm now trying the SCons build. I had a look at the website today - Scons is pretty cool, I see why you want to use it now.
I have edited SConstruct to set OOC_LIB, OCC_INC and CONFIG_H_PATH, as I have been doing in setup.py. I see the following warning: scons: warning: Two different environments were specified for target SWIG_src_modular_linux_darwin/GProp_wrap.cc, but they appear to have the same action: $SWIG -o $TARGET ${_SWIGOUTDIR} ${_SWIGINCFLAGS} $SWIGFLAGS $SOURCES File "/home/magill/occ/pythonOCC_149/src/SConstruct", line 331, in <module> I'm not sure what this is about? It doesn't seem to stop the build though. Boy, it takes a while to build those SWIG files! All done though, no errors, everything seems to build fine. Arthur Thomas Paviot wrote: > Dear all, > > I just added a few other samples releated to 'topology building'. I use > now another way to develop samples: I base my work on the OpenCascade > MFC samples, get the C++ source code generated in a text window, > copy/paste and port it to pythonocc. Beware to the Sandor Racz's > pythonCascade samples: they were developed with an old release of OCC > (5.x), and the 6.3.0 API changed a bit since this release. > > On the screenshot below (edge.py sample), you can notice that every > shape is displayed in different colors: I added a "DisplayColoredShape" > in the OCCViewer.py module: I was fed up with the default yellow color. > Very simple to use: > display.DisplayColoredShape(your_shape, 'RED') (I built a dict with > string keys that avoid to import the Quantity module and use > Quantity_NOC_RED_NOC. > > Cheers, > > Thomas > > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users