ganesh thangaraj p a écrit : > Dear Thomas, > Thank you for taking time to reply. I did not > know where to start, but now i shall adhere to your 11 point program. > It will be good if you could elaborate on > "Small hint: compile your own pythonOCC with the '-with-docs' > flag." >
Hi Ganesh, The '-with_doc' flags adds python docstrings to each class/method of the wrapper. This docstring can be accessed with the .__doc__ property or the help() function. It's very efficient since you do not have to look for documentation in the doxygen-based OCC documentation. I do not release pythonOCC with OCC docstrings version: as it contains documentation extracted from OpenCascade header files, the resulting code may break the OpenCascade license and should not be compliant with the pyhonOCC license (GPLv3). As a consequence, you have to build your own 'with_docs' pythonOCC, that is: python setup.py build -cmsvc -generate_swig -with_docs (if you're under Windows with MSVC compiler). Best Regards, Thomas > > thank you. > > warm regards, > ganesh > --- On *Fri, 17/4/09, Thomas Paviot /<thomas.pav...@free.fr>/* wrote: > > > From: Thomas Paviot <thomas.pav...@free.fr> > Subject: Re: [Pythonocc-users] suggestions for tutorials to python OCC > To: "ganesh thangaraj p" <p_g_thanga...@yahoo.co.uk> > Cc: "python" <pythonocc-users@gna.org> > Date: Friday, 17 April, 2009, 10:37 AM > > ganesh thangaraj p a écrit : > > dear users, > > as some of you know,iam developing a feature > recognition system and i am new to the concept of both PythonOCC > and OCC. Therefore it will be helpful if someone could suggest > some tutorials to pythonOCC. I am basically a mechanical engineer > and although i am good with logic , my programming skills are a > bit dull, so please keep that in mind while making suggestions.. > Thanking you. > > > > regards, > > > > ganesh > > > > > > > Hi ganesh, > > First of all, you have to remind the following things: > - OpenCascade is a 'CAD library', developed and maintained by the > OpenCascade dev team > - pythonOCC is a python binding to this huge library. > > These 2 projects are clearly independant. You then have to be > familiar with both Python development and OpenCascade is you want > to implement your feature recognition algorithm. > > I would suggest beginners the following '11 points program': > > 1. download and install OpenCascade, > 2. download and install pythonOCC, > 3. check the samples that come with pythonOCC (they are, in my > opinion, much better than the MFC Samples included in the > OpenCascade 6.3..0 distribution), > 4. modify/extend these samples, > 5. ask questions to this list (pythonocc-users ml), > 6. after a few days, you'll become familiar enough with pythonOCC > to dig into the OpenCascade documentation (whether its is html, > pdf, chm etc.), > 7. try to develop your own script from scratch, > 8. read the OpenCascade material, > 9. improve your script, > 10. ask questions to this list and to the OpenCascade users forum > (as well as this list), > 11. share your knowledge on this list or the pythonOCC wiki, > 12. go back to step 8. > > Important URLs: > OpenCascade forum URL: http://www.opencascade.org/org/forum/ > Roman Lygin's blog (very usefull) URL: > http://opencascade.blogspot.com/ > > Small hint: compile your own pythonOCC with the '-with-docs' flag. > > Best Regards, > > Thomas > > _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users