On Mon, Apr 13, 2009 at 6:30 PM, ganesh thangaraj p <p_g_thanga...@yahoo.co.uk> wrote: > Dear users, > I am a student who has developed a Feature Recognition > Algorithm which needs to be validated. I intend to use python occ for this > purpose. Any example codes or guidance in the following areas is much > appreciated:
Neat, what sort of feature recognition are you looking into doing? Any particular use? > 1. determination of surface type(cylinder/sphere/plane/freeform) from IGES > file. I don't know how to do this yet, I'll admit. :-) > 2. determination of edge type(convex/concave/tangent). I think I remember seeing this as a method of TopoDS_Face surfaces, or something. Try running help(TopoDS_Face) in a python shell. > 3. producing equidistant points on an edge. > 4. to find angle between two surfaces on any point that lies on the edge. You can probably do this by importing math and retrieving the coordinates of various points. Check into the OCC.Utilities.Topology stuff. > 5. extraction of axis of a cylindrical surface. Look into the gp_Axis() classes. > 6. creation of a cylinder. You can find that in cylinder.py, an example script distributed with pythonOCC. - Bryan http://heybryan.org/ 1 512 203 0507 _______________________________________________ Pythonocc-users mailing list Pythonocc-users@gna.org https://mail.gna.org/listinfo/pythonocc-users