STK Graphics PrimitivesSend comments on this topic.
LoadWithStringUri Method (IAgStkGraphicsModelPrimitive)
See Also
Uri
The path to the model file.
Windows





Windows & Linux

Description

For convenience. Loads a COLLADA (DAE) or AGI MDL (MDL) model using a file path.

Syntax

[Visual Basic .NET]
Public Sub LoadWithStringUri( _
    ByVal Uri As String _
)
[C#]
public void LoadWithStringUri(
    string Uri
);
[Managed C++]
public: void LoadWithStringUri(
    String __gc ^ Uri
);
[Unmanaged C++]
public: HRESULT LoadWithStringUri(
    BSTR Uri
);
[Java]
public void loadWithStringUri(
    String Uri
);
[Python - STK API ]
def LoadWithStringUri(self, Uri:str) -> None:

Parameters

Uri
The path to the model file.

Remarks

If the model includes articulations, they can be accessed using Articulations.

If the model's Automatically Compute Bounding Sphere property is true, Bounding Sphere is set to fit around the model. Otherwise, it is the caller's responsibility to update the model's Bounding Sphere to a sphere that encompasses the model.

Loading a new model does not change the model's Position, Orientation, or Scale.

See Also

© 2024 Analytical Graphics, Inc. All Rights Reserved.