Part: fix TopoShape.isInside() for faces

This commit is contained in:
wmayer
2022-07-22 15:32:30 +02:00
parent cc8b407b6f
commit cdaff7f550

View File

@@ -2184,7 +2184,8 @@ PyObject* TopoShapePy::isInside(PyObject *args)
gp_Pnt vertex = gp_Pnt(pnt.x,pnt.y,pnt.z);
if (shape.ShapeType() == TopAbs_VERTEX ||
shape.ShapeType() == TopAbs_EDGE ||
shape.ShapeType() == TopAbs_WIRE) {
shape.ShapeType() == TopAbs_WIRE ||
shape.ShapeType() == TopAbs_FACE) {
BRepBuilderAPI_MakeVertex mkVertex(vertex);
BRepExtrema_DistShapeShape extss;