IFields Fields
This feature is used to define the number, type, and magnitude of the field points to be used for tracing rays. Vignetting factors can also be set.
IFields TheFields = TheSystemData.Fields; int nF = TheFields.NumberOfFields; IField Field_2 = TheFields.GetField(position: 2); IField NewField = TheFields.AddField(x:1.2, y:3.4, weight:1.0); bool wasSuccessful = TheFields.RemoveField(position: 1); TheFields.SetVignetting(); TheFields.ClearVignetting(); FieldType fT = TheFields.GetFieldType(); TheFields.SetFieldType(type: FieldType.ObjectHeight); wasSuccessful = TheFields.MakeEqualAreaFields(numberOfFields: 10, maximumField: 0.55 ); // // To visit every field in the system // for(int idx = 1; idx <= TheFields.NumberOfFields; idx++) { IField Field_n = TheFields.GetField(position: idx); // // Code to use 'Field_n'... // }
Next: