ArcGIS Pro 3.7 API Reference Guide
ArcGIS.Core.Geometry Namespace / Multipatch Class / HasNormals Property
Example

In This Topic
    HasNormals Property (Multipatch)
    In This Topic
    Gets a value indicating if this multipatch has normals.
    Syntax
    Public ReadOnly Property HasNormals As Boolean
    public bool HasNormals {get;}
    Remarks
    The normals of a 3D object are used for lighting. They define the direction that each face will reflect light. They are usually perpendicular to the geometry but can also be defined in other directions.
    Example
    Get the normal coordinate of a multipatch
    {
      if (multipatch.HasNormals)
      {
        int patchIndex = 0;
        // If the multipatch has normals, then the number of normals is equal to the number of points.
        int numNormals = multipatch.GetPatchPointCount(patchIndex);
    
        for (int pointIndex = 0; pointIndex < numNormals; pointIndex++)
        {
          Coordinate3D normal = multipatch.GetPatchNormal(patchIndex, pointIndex);
    
          // Do something with the normal coordinate.
        }
      }
    }
    Requirements

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

    ArcGIS Pro version: 3.0 or higher.
    See Also