public ESD_Bounding_Box(STFReader stf) { stf.MustMatch("("); string item = stf.ReadString(); if (item == ")") return; // quietly return on ESD_Bounding_Box() stf.StepBackOneItem(); float X = stf.ReadFloat(STFReader.UNITS.None, null); float Y = stf.ReadFloat(STFReader.UNITS.None, null); float Z = stf.ReadFloat(STFReader.UNITS.None, null); Min = new TWorldPosition(X, Y, Z); X = stf.ReadFloat(STFReader.UNITS.None, null); Y = stf.ReadFloat(STFReader.UNITS.None, null); Z = stf.ReadFloat(STFReader.UNITS.None, null); Max = new TWorldPosition(X, Y, Z); // JP2indirt.sd has extra parameters stf.SkipRestOfBlock(); }
public ESD_Bounding_Box() // default used for files with no SD file { Min = new TWorldPosition(0, 0, 0); Max = new TWorldPosition(0, 0, 0); }