ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / BasicMaterial Class / IsCullBackFace Property
Example

In This Topic
    IsCullBackFace Property
    In This Topic
    Gets or sets a value representing if back-face culling is a property of this material.
    Syntax
    Public Property IsCullBackFace As Boolean
    public bool IsCullBackFace {get; set;}
    Remarks
    Back-face culling determines whether the material is visible when projected onto the screen.
    Example
    Create BasicMaterial
    {
      // Create BasicMaterial with default values
      BasicMaterial material = new BasicMaterial();
      System.Windows.Media.Color color = material.Color;         // color = Colors.Black
      System.Windows.Media.Color edgeColor = material.EdgeColor; // edgeColor = Colors.Black
      int edgeWidth = material.EdgeWidth;                        // edgeWidth = 0
      int transparency = material.TransparencyPercent;           // transparency = 0
      int shininess = material.Shininess;                        // shininess = 0
      bool cullBackFace = material.IsCullBackFace;               // cullBackFace = false
    
      // Modify the properties
      material.Color = System.Windows.Media.Colors.Red;
      material.EdgeColor = System.Windows.Media.Colors.Blue;
      material.EdgeWidth = 10;
      material.TransparencyPercent = 50;
      material.Shininess = 25;
      material.IsCullBackFace = true;
    }
    Requirements

    Target Platforms: Windows 11 Home, Pro, Enterprise (64 bit)

    ArcGIS Pro version: 3.0 or higher.
    See Also