bool FiltersPlugin_RelativeToSolid::isSupported(GeomAPI_Shape::ShapeType theType) const
{
- return true;
+ return theType >= GeomAPI_Shape::SHELL;
}
bool FiltersPlugin_RelativeToSolid::isOk(const GeomShapePtr& theShape, const ResultPtr&,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "in"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "not_out"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "not_on"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "on"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "out"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", exclude = True, args = [model.selection("SOLID", "Extrusion_1_1"), "not_in"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): True,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "in"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "not_out"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): True,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): True,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "not_on"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): True,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "on"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): False,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "out"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): False,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): False,
model.selection("FACE", "Extrusion_1_1/From_Face"): False,
Filters = model.filters(Part_1_doc, [model.addFilter(name = "RelativeToSolid", args = [model.selection("SOLID", "Extrusion_1_1"), "not_in"])])
model.end()
-Solid1 = Extrusion_1.results()[0].resultSubShapePair()[0]
-Solid2 = Extrusion_1.results()[1].resultSubShapePair()[0]
-Solid3 = Extrusion_2.result().resultSubShapePair()[0]
-Solid4 = Extrusion_3.result().resultSubShapePair()[0]
-Solid5 = Extrusion_4.result().resultSubShapePair()[0]
-Solid6 = Translation_1.result().resultSubShapePair()[0]
-
-from GeomAPI import GeomAPI_Shape
-emptyShape = GeomAPI_Shape()
-
Reference = {
- # Solids
- model.selection(Solid1, emptyShape): False,
- model.selection(Solid2, emptyShape): True,
- model.selection(Solid3, emptyShape): True,
- model.selection(Solid4, emptyShape): False,
- model.selection(Solid5, emptyShape): False,
- model.selection(Solid6, emptyShape): False,
-
# Faces of solid 1
model.selection("FACE", "Extrusion_1_1/To_Face"): True,
model.selection("FACE", "Extrusion_1_1/From_Face"): True,
GeomAPI_Shape.WIRE : [FILTER_BELONGS_TO, FILTER_ON_PLANE, FILTER_ON_PLANE_SIDE, FILTER_RELATIVE_TO_SOLID],
GeomAPI_Shape.FACE : [FILTER_BELONGS_TO, FILTER_ON_PLANE, FILTER_ON_GEOMETRY, FILTER_ON_PLANE_SIDE, FILTER_RELATIVE_TO_SOLID, FILTER_EXTERNAL_FACES, FILTER_HORIZONTAL_FACES, FILTER_VERTICAL_FACES, FILTER_CONNECTED_FACES],
GeomAPI_Shape.SHELL : [FILTER_BELONGS_TO, FILTER_ON_PLANE, FILTER_ON_PLANE_SIDE, FILTER_RELATIVE_TO_SOLID],
- GeomAPI_Shape.SOLID : [FILTER_BELONGS_TO, FILTER_ON_PLANE_SIDE, FILTER_RELATIVE_TO_SOLID],
+ GeomAPI_Shape.SOLID : [FILTER_BELONGS_TO, FILTER_ON_PLANE_SIDE],
}
model.begin()