# Sandbox.PolygonMesh.ClipFacesByPlaneAndCap

```csharp
void ClipFacesByPlaneAndCap(IReadOnlyList<FaceHandle> faces, Plane planeInMeshSpace, bool removeFacesBehindPlane, bool attemptToCap, List<HalfEdgeHandle> outNewEdges = null, List<FaceHandle> outCapFaces = null)
```

### Parameters

- `faces` (`IReadOnlyList<FaceHandle>`)
- `planeInMeshSpace` (`Plane`)
- `removeFacesBehindPlane` (`bool`)
- `attemptToCap` (`bool`)
- `outNewEdges` (`List<HalfEdgeHandle>`), default `null`
- `outCapFaces` (`List<FaceHandle>`), default `null`

Declared in [Sandbox.PolygonMesh](/api/Sandbox.PolygonMesh).
Assembly: `Sandbox.Engine`.
