Path.Area: Changed FeatureArea WorkPlane behavior

FeatureArea will return the user defined workplane if there is one, or
else it returns auto selected plane by its internal Area object
This commit is contained in:
Zheng, Lei
2017-03-09 12:15:11 +08:00
committed by wmayer
parent b8843ec8c5
commit c1ab98098e
8 changed files with 41 additions and 16 deletions

View File

@@ -146,6 +146,7 @@ Area::~Area() {
}
void Area::setPlane(const TopoDS_Shape &shape) {
clean();
if(shape.IsNull()) {
myWorkPlane.Nullify();
return;
@@ -156,7 +157,6 @@ void Area::setPlane(const TopoDS_Shape &shape) {
throw Base::ValueError("shape is not planar");
myWorkPlane = plane;
myTrsf = trsf;
clean();
}
bool Area::isCoplanar(const TopoDS_Shape &s1, const TopoDS_Shape &s2) {