Description
The available articulations.
Syntax
[Visual Basic .NET] |
Public Function GetAvailableArticulations( _
ByVal LOD As Integer _
) As System.Array
|
[C#] |
public System.Array GetAvailableArticulations(
int LOD
);
|
[Managed C++] |
public: System::Array GetAvailableArticulations(
int LOD
);
|
[Java] |
public Object[] getAvailableArticulations(
int LOD
);
|
[Unmanaged C++] |
public: HRESULT GetAvailableArticulations(
long LOD,
SAFEARRAY ** Array
);
|
Parameters
Example
List all 3D model
articulations
[C#] |
Copy Code
|
IAgVOModelArtic modelArticulation = model.Articulation;
for (int lod = 0; lod < modelArticulation.LODCount; lod++)
{
Array articulations = modelArticulation.GetAvailableArticulations(lod);
for (int articulation = 0; articulation < articulations.Length; articulation++)
{
String articulationString = articulations.GetValue(articulation) as String;
IAgVOModelTransCollection transformations = modelArticulation.GetAvailableTransformations(lod, articulationString);
foreach (IAgVOModelTrans trans in transformations)
{
Console.WriteLine("Name: {0}, Current {1}, Max {2}, Min {3}", trans.Name, trans.Value, trans.Max, trans.Min);
}
}
}
|
|
List all 3D model
articulations
[Visual Basic .NET] |
Copy Code
|
Dim modelArticulation As IAgVOModelArtic = model.Articulation
Dim lod As Integer = 0
While lod <
modelArticulation.LODCount
Dim
articulations As Array =
modelArticulation.GetAvailableArticulations(lod)
Dim
articulation As Integer = 0
While
articulation < articulations.Length
Dim articulationString As [String] =
TryCast(articulations.GetValue(articulation), [String])
Dim transformations As IAgVOModelTransCollection =
modelArticulation.GetAvailableTransformations(lod,
articulationString)
For Each trans
As IAgVOModelTrans In transformations
Console.WriteLine("Name:
{0}, Current {1}, Max {2}, Min {3}", trans.Name,
trans.Value, trans.Max, trans.Min)
Next
System.Math.Max(System.Threading.Interlocked.Increment(articulation),articulation
- 1)
End
While
System.Math.Max(System.Threading.Interlocked.Increment(lod),lod
- 1)
End While
|
|
See Also