public static void STLLoadOption() { // ExStart:STLLoadOption // The path to the documents directory. string MyDir = RunExamples.GetDataDir(); // Initialize an object STLLoadOptions loadSTLOpts = new STLLoadOptions(); // Flip the coordinate system. loadSTLOpts.FlipCoordinateSystem = true; // Configure the look up paths to allow importer to find external dependencies. loadSTLOpts.LookupPaths = new List<string>(new string[] { MyDir }); // ExEnd:STLLoadOption }
public static void STLLoadOption() { // ExStart:STLLoadOption // The path to the documents directory. string dataDir = RunExamples.GetDataDir(); // Initialize an object STLLoadOptions loadSTLOpts = new STLLoadOptions(); // Flip the coordinate system. loadSTLOpts.FlipCoordinateSystem = true; // Configure the look up paths to allow importer to find external dependencies. loadSTLOpts.LookupPaths = new List <string>(new string[] { dataDir }); // ExEnd:STLLoadOption }