GeomPlate_BuildAveragePlane returns really unexpected results [ see attach. ]
I construct the class from a wire, and fill in its vertices and expect and averaged plane that is a fair fit through the vertices.
However, I get something far from what I would expect... looks like a bug to me...
Different settings for tolerance, Poption, Noption lead to very similar results.
=== CODE ===
verts = map(vertex2pnt, [i for i in Topo(_wire).vertices()])
array = TColgp_HArray1OfPnt(1, len(verts)+1)
for n,i in enumerate(verts):
from OCC.GeomPlate import GeomPlate_BuildAveragePlane
gbap = GeomPlate_BuildAveragePlane(array.GetHandle(), array.Length(), 1,1,1)
pl = gbap.Plane().GetObject()
print 'FAILED TO COMPUTE PLANE'