ObjImage.ObjRoot

ObjImage.ObjRoot property

Gets or sets root information about the drawing. ObjRoot contains data about vertices, materials, and shapes. Could be useful for the exposing information about faces.

public ObjRoot ObjRoot { get; set; }

Examples

Prints the overall quantity of vertices in the OBJ drawing.

using (ObjImage objImage = (ObjImage)Image.Load(fileName))
{
    ObjRoot rootInformation = objImage.ObjRoot;
    System.Console.WriteLine("The drawing has {0} vertices", rootInformation.Vertices.Count);
}

See Also