Gets the normal coordinate for the specified patch (part) at the point index.
Parameters
- patchIndex
- The index of the patch. Must be greater than or equal to zero and less than PartCount.
- pointIndex
- The index of the point relative to the patch. Must be greater than or equal to zero and less than the value returned from GetPatchPointCount.
Return Value
The coordinate representing the normal.
Get the normal coordinate of a multipatch
// <summary>
// This method gets the normal coordinate of a multipatch and does something with it.
// </summary>
// <param name="multipatch">The input multipatch.</param>
// <param name="patchIndex">The index of the patch (part) for which to get the normal.</param>
public void DoSomethingWithNormalCoordinate(Multipatch multipatch, int patchIndex)
{
if (multipatch.HasNormals)
{
// 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.
}
}
}
Target Platforms: Windows 11, Windows 10
ArcGIS Pro version: 3 or higher.