Convex Edge of a Polyhedron

Is there any method to see if an edge (of a polyhedron) is concave or convex? I know there is a convex() method in TopoDS_Edge but it is not working correctly!

jelle's picture

its indeed a little dissapointing that the .Convex method does not work.
besides, a .Convex method on an edge tells you nothing really.

we spoke about using gaussian curvature to determine whether a face is concave / convex by its sign.
in your case gauss. curv. will be zero, so has no sign in fact.
you should than iterate through the faces and follow this algorithm:
http://www.rustycode.com/tutorials/convex.html

should be fun to implement!