Description
IAgVOModelFile Interface. Used to specify the model's file.
Public Properties
Filename | Path and filename of the model file. |
FilePath | Absolute path and filename of the model file. |
Interfaces
CoClasses that Implement IAgVOModelFile
Example
Configure 3D model file
[C#] |
---|
// Set new ModelFile.Filename
model.ModelType = AgEModelType.eModelFile;
IAgVOModelFile modelFile = model.ModelData as IAgVOModelFile;
modelFile.Filename = @"\STKData\VO\Models\Space\alexis.glb";
// Configure basic settings
model.Visible = true;
model.ScaleValue = 4.800;
|
|
Configure 3D model level of detail
[C#] |
---|
// Configure level of details
IAgVODetailThreshold detail = model.DetailThreshold;
detail.EnableDetailThreshold = true;
// (assuming unit preferences set to km)
detail.All = 2.51189;
detail.ModelLabel = 158489;
detail.MarkerLabel = 2.51189e+006;
detail.Marker = 2.511e+007;
detail.Point = 1e+012;
|
|
Configure 3D model file
[Visual Basic .NET] |
---|
' Set new ModelFile.Filename
model.ModelType = AgEModelType.eModelFile
Dim modelFile As IAgVOModelFile = TryCast(model.ModelData, IAgVOModelFile)
modelFile.Filename = "\STKData\VO\Models\Space\alexis.glb"
' Configure basic settings
model.Visible = True
model.ScaleValue = 4.8
|
|
Configure 3D model level of detail
[Visual Basic .NET] |
---|
' Configure level of details
Dim detail As IAgVODetailThreshold = model.DetailThreshold
detail.EnableDetailThreshold = True
' (assuming unit preferences set to km)
detail.All = 2.51189
detail.ModelLabel = 158489
detail.MarkerLabel = 2511890
detail.Marker = 25110000
detail.Point = 1000000000000
|
|