ObjImage.Depth

ObjImage.Depth property

Gets the depth of the image. Calculated as the difference between maximum and minimum values of the Z coordinate amongst all vertices. Minimal allowed depth is 0.

public override int Depth { get; }

Property Value

The depth of the image.

Examples

Prints the depth of the OBJ drawing.

using (ObjImage objImage = (ObjImage)Image.Load(fileName))
{
    System.Console.WriteLine("The depth of the image is {0}", objImage.Depth);
}

See Also