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