Click or drag to resize

ModelPrimitive Constructor (Uri)

Initializes a model primitive with the specified uri.

Namespace:  AGI.Foundation.Graphics
Assembly:  AGI.Foundation.Graphics (in AGI.Foundation.Graphics.dll) Version: 24.3.420.0 (24.3.420.0)
Syntax
public ModelPrimitive(
	Uri uri
)

Parameters

uri
Type: SystemUri
The URI of the model file to load.
Exceptions
ExceptionCondition
FileNotFoundException Could not find or access uri.
ArgumentException Only file URIs are supported at this time. uri must start with file:///.
Remarks

After constructing the primitive, set Position, Orientation, and Scale to place, orientate, and size the model in the 3D scene.

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

The primitive's properties are initialized to the following values:

Once the primitive is constructed, it must be added to Primitives before it will be rendered.

See Also