BrepFaceList
ReferencesProvides access to all the Faces in a Brep object.
Properties
True if one or more faces on the active level have per face color overrides.
Remarks: Per face colors are a mutable property on BrepFace and are set with BrepFace.PerFaceColor.
Indexers
this[]
#Gets the BrepFace at the given index. The index must be valid or an IndexOutOfRangeException will be thrown.
Parameters:
| index (int) | Index of BrepFace to access. |
Returns: The BrepFace at [index].
Exceptions:
| IndexOutOfRangeException | Thrown when the index is invalid. |
Methods
Create and add a new face to this list. An incomplete face is added. The caller must create and fill in the loops used by the face.
Parameters:
| surfaceIndex (int) | index of surface in brep's Surfaces list |
Add a new face to a brep. This creates a complete face with new vertices at the surface corners, new edges along the surface boundary, etc. The loop of the returned face has four trims that correspond to the south, east, north, and west side of the surface in that order. If you use this version of Add to add an exiting brep, then you are responsible for using a tool like JoinEdges() to hook the new face to its neighbors.
Parameters:
| surface (Surface) | surface is copied |
Add a new face to the brep whose surface geometry is a ruled cone with the edge as the base and the vertex as the apex point.
Parameters:
| vertex (BrepVertex) | The apex of the cone will be at this vertex. The north side of the surface's parameter space will be a singular point at the vertex. |
| edge (BrepEdge) | The south side of the face's surface will run along this edge. |
| revEdge (bool) | true if the new face's outer boundary orientation along the edge is opposite the orientation of edge. |
Add a new face to the brep whose surface geometry is a ruled surface between two edges.
Parameters:
| edgeA (BrepEdge) | The south side of the face's surface will run along edgeA. |
| revEdgeA (bool) | true if the new face's outer boundary orientation along edgeA is opposite the orientation of edgeA. |
| edgeB (BrepEdge) | The north side of the face's surface will run along edgeA |
| revEdgeB (bool) | true if the new face's outer boundary orientation along edgeB is opposite the orientation of edgeB |
Removes all per face color overrides on the active level.
Remarks: Per face colors are a mutable property on BrepFace and are set with BrepFace.PerFaceColor.
Returns: Number of changed faces.
Extracts a face from a Brep.
Parameters:
| faceIndex (int) | A face index |
Returns: A brep. This can be null.
Flips the orientation of faces.
Parameters:
| onlyReversedFaces (bool) | If true, clears all BrepFace.OrientationIsReversed flags by calling BrepFace.Transpose() on each face with a true OrientationIsReversed setting. If false, all of the faces are flipped regardless of their orientation. |
Gets an enumerators that yields BrepFace objects.
Returns: The enumerator.
Deletes a face at a specified index.
Parameters:
| faceIndex (int) | The index of the mesh face. |
Remove slit trims and slit boundaries from each face.
Returns: true if any slits were removed
Shrinks all the underlying surfaces in this Brep. Sometimes the surfaces extend far beyond the trimming boundaries of the Brep Face. This function will remove those portions of the surfaces that are not used.
Returns: true on success, false on failure.
Splits surfaces with two singularities, like spheres, so the results have at most one singularity.
Returns: true if successful.
Splits closed surfaces so they are not closed.
Parameters:
| minimumDegree (int) | If the degree of the surface < min_degree, the surface is not split. In some cases, minimumDegree = 2 is useful to preserve piecewise linear surfaces. |
Returns: true if successful.
Splits the face of a Brep at tangent locations. The face surface will be split at locations of curvature discontinuities with constant tangents.
Parameters:
| faceIndex (int) | The index of the face to split. |
| aggressiveMode (bool) | If aggressive mode is true, the face surface will be split at locations of curvature discontinuities with constant tangents. If aggressive mode is false, only split when the curvature change is from no curvature to some curvature or when the curvature vector directions are opposite. |
Returns: True if successful, false otherwise.
Splits the face of a Brep at tangent locations. The face surface will be split at locations of curvature discontinuities with constant tangents.
Parameters:
| faceIndex (int) | The index of the face to split. |
Returns: True if successful, false otherwise.
Splits all of the faces of a Brep at tangent locations. The face surfaces will be split at locations of curvature discontinuities with constant tangents.
Returns: True if successful, false otherwise.
Splits all of the faces of a Brep at tangent locations.
Parameters:
| aggressiveMode (bool) | If aggressive mode is true, the face surfaces will be split at locations of curvature discontinuities with constant tangents. If aggressive mode is false, only split when the curvature change is from no curvature to some curvature or when the curvature vector directions are opposite. |
Returns: True if successful, false otherwise.
Splits a single face into G1 pieces.
Splits any faces with creases into G1 pieces.
Remarks: If you need to detect whether splitting occurred, compare the before and after values of Faces.Count
Returns: true on success, false on failure.
Splits any faces with creases into G1 pieces.
Splits any faces with creases into G1 pieces.
Remarks: If you need to detect whether splitting occurred, compare the before and after values of Faces.Count
Parameters:
| kinkTolerance (double) | Tolerance (in radians) to use for crease detection. |
Returns: true on success, false on failure.
Standardizes the relationship between a BrepFace and the 3d surface it uses. When done, the face will be the only face that references its 3d surface, and the orientations of the face and 3d surface will be the same.
Parameters:
| faceIndex (int) | The index of the face. |
Returns: true if successful.
public void StandardizeFaceSurfaces()
Standardize all faces in the brep.
Gets the same enumerator as GetEnumerator().
Returns: The enumerator.