## StencilState class

Stencil states per face.

```csharp
public class StencilState
```

## Properties

| Name | Description |
| --- | --- |
| [Compare](../../aspose.threed.render/stencilstate/compare/) { get; set; } | Gets or sets the compare function used in stencil test |
| [DepthFailAction](../../aspose.threed.render/stencilstate/depthfailaction/) { get; set; } | Gets or sets the stencil action when stencil test pass but depth test fails. |
| [FailAction](../../aspose.threed.render/stencilstate/failaction/) { get; set; } | Gets or sets the stencil action when stencil test fails. |
| [PassAction](../../aspose.threed.render/stencilstate/passaction/) { get; set; } | Gets or sets the stencil action when both stencil test and depth test passes. |

## Methods

| Name | Description |
| --- | --- |
| override [Equals](../../aspose.threed.render/stencilstate/equals/)(object) | Returns a value indicating whether this instance is equal to a specified object. |
| override [GetHashCode](../../aspose.threed.render/stencilstate/gethashcode/)() | Returns the hash code for this instance. |

### See Also

* namespace [Aspose.ThreeD.Render](../../aspose.threed.render/)
* assembly [Aspose.3D](../../)


