Path.Area: various fixes for Path.Area python object

This commit is contained in:
Zheng, Lei
2017-01-21 18:21:46 +08:00
parent 61ccb19526
commit 0c545c1975
5 changed files with 23 additions and 12 deletions

View File

@@ -121,7 +121,7 @@ void Area::setPlane(const TopoDS_Shape &shape) {
}
BRepLib_FindSurface planeFinder(shape,-1,Standard_True);
if (!planeFinder.Found())
throw Base::ValueError("shape is not coplanar");
throw Base::ValueError("shape is not planar");
myWorkPlane = shape;
myTrsf.SetTransformation(GeomAdaptor_Surface(
planeFinder.Surface()).Plane().Position());