Chooses the faces that lie on one kind of surface, such as the planar faces of a part or the cylindrical walls of its holes.
The shape, the surface type and the faces to choose among
The indexes of the chosen faces
Chooses the faces whose normal, read at the middle of each face, points within angle
degrees of direction: an angle of 0 finds the faces looking straight that way.
The shape, the direction, the angle in degrees and the faces to choose among
The indexes of the chosen faces
Chooses the faces whose area lies between min and max, both included.
The shape, the range of areas and the faces to choose among
The indexes of the chosen faces
Chooses the faces on cylinders and spheres whose radius lies between min and max, and the
faces on tori whose tube radius does, the rounds a fillet makes along a curved edge.
The shape, the range of radii and the faces to choose among
The indexes of the chosen faces
Chooses the faces whose centres lie furthest along direction, with any others within
tolerance of them: the top faces along z, the lowest along minus z.
The shape, the direction, the tolerance and the faces to choose among
The indexes of the chosen faces
Chooses the faces whose centres lie inside a box lined up with the axes, given by two opposite corners in either order.
The shape, the two corners and the faces to choose among
The indexes of the chosen faces
Chooses the faces whose centres lie within radius of center.
The shape, the center, the radius and the faces to choose among
The indexes of the chosen faces
Chooses the count faces whose centres lie nearest point, nearest first; faces as near as
each other keep their order.
The shape, the point, how many and the faces to choose among
The indexes of the chosen faces, nearest first
Chooses the planar faces that lie in a plane, given by a point on it and its normal; a face
counts from either side, within tolerance.
The shape, the plane, the tolerance and the faces to choose among
The indexes of the chosen faces
Chooses the faces that share an edge with any of the given faces, leaving out the given faces themselves.
The shape and the faces to start from
The indexes of the neighbouring faces, in order
Chooses the faces bounded by any of the given edges, counted as shapes.edge.getEdges counts
them: the two faces that meet along each.
The shape and the edges to start from
The indexes of the faces, in order
Orders faces by how far along direction their centres lie, from the lowest to the highest;
faces level with each other keep their order.
The shape, the direction and the faces to sort
The indexes of the faces, sorted
Sorts faces along direction and groups them by level: a group ends where the next centre lies
more than tolerance beyond the group's first.
The shape, the direction, the tolerance and the faces to group
One list of face indexes per level, from the lowest
Choosing the faces of an OpenCascade shape by what they are and where they lie, so that "the top face" still names the right face after a parameter changes. Every method returns face indexes as
shapes.face.getFacescounts them, from 0, which the getters and the other selectors take as they are.indexeslimits a filter to faces chosen before, keeping their order; left out, every face is a candidate, and an empty list chooses nothing. Positions are read at each face's centre of mass.