Click or drag to resize

AssimpContext Class

Represents an Assimp Import/Export context that load or save models using the unmanaged library. Additionally, conversion functionality is offered to bypass loading model data into managed memory.
Inheritance Hierarchy
SystemObject
  Internal.AssimpAssimpContext

Namespace: Internal.Assimp
Assembly: NeoAxis.Core (in NeoAxis.Core.dll) Version: 2026.2.1.0 (2026.2.1.0)
Syntax
C#
public sealed class AssimpContext : IDisposable

The AssimpContext type exposes the following members.

Constructors
 NameDescription
Public methodAssimpContext Constructs a new instance of the AssimpContext class.
Top
Properties
 NameDescription
Public propertyIsDisposed Gets if the context has been disposed.
Public propertyPropertyConfigurations Gets the property configurations set to this context. This is only used during import.
Public propertyScale Gets or sets the uniform scale for the model. This is multiplied with the existing root node's transform. This is only used during import.
Public propertyUsingCustomIOSystem Gets whether this context is using a user-defined IO system for file handling.
Public propertyXAxisRotation Gets or sets the model's rotation about the X-Axis, in degrees. This is multiplied with the existing root node's transform. This is only used during import.
Public propertyYAxisRotation Gets or sets the model's rotation abut the Y-Axis, in degrees. This is multiplied with the existing root node's transform. This is only used during import.
Public propertyZAxisRotation Gets or sets the model's rotation about the Z-Axis, in degrees. This is multiplied with the existing root node's transform. This is only used during import.
Top
Methods
 NameDescription
Public methodContainsConfig Checks if the context has a config set by the specified name.
Public methodConvertFromFileToBlob(String, String) Converts the model contained in the file to the specified format and save it to a data blob.
Public methodConvertFromFileToBlob(String, String, PostProcessSteps) Converts the model contained in the file to the specified format and save it to a data blob.
Public methodConvertFromFileToBlob(String, PostProcessSteps, String, PostProcessSteps) Converts the model contained in the file to the specified format and save it to a data blob.
Public methodConvertFromFileToFile(String, String, String) Converts the model contained in the file to the specified format and save it to a file.
Public methodConvertFromFileToFile(String, String, String, PostProcessSteps) Converts the model contained in the file to the specified format and save it to a file.
Public methodConvertFromFileToFile(String, PostProcessSteps, String, String, PostProcessSteps) Converts the model contained in the file to the specified format and save it to a file.
Public methodConvertFromStreamToBlob(Stream, String, String) Converts the model contained in the stream to the specified format and save it to a data blob. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToBlob" family of functions.
Public methodConvertFromStreamToBlob(Stream, String, String, PostProcessSteps) Converts the model contained in the stream to the specified format and save it to a data blob. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToBlob" family of functions.
Public methodConvertFromStreamToBlob(Stream, String, PostProcessSteps, String, PostProcessSteps) Converts the model contained in the stream to the specified format and save it to a data blob. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToBlob" family of functions.
Public methodConvertFromStreamToFile(Stream, String, String, String) Converts the model contained in the stream to the specified format and save it to a file. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToFile" family of functions.
Public methodConvertFromStreamToFile(Stream, String, String, String, PostProcessSteps) Converts the model contained in the stream to the specified format and save it to a file. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToFile" family of functions.
Public methodConvertFromStreamToFile(Stream, String, PostProcessSteps, String, String, PostProcessSteps) Converts the model contained in the stream to the specified format and save it to a file. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ConvertFromFileToFile" family of functions.
Public methodDispose Disposes of resources held by the context. These include IO systems still attached.
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Public methodExportFile(Scene, String, String) Exports a scene to the specified format and writes it to a file.
Public methodExportFile(Scene, String, String, PostProcessSteps) Exports a scene to the specified format and writes it to a file.
Public methodExportToBlob(Scene, String) Exports a scene to the specified format and writes it to a data blob.
Public methodExportToBlob(Scene, String, PostProcessSteps) Exports a scene to the specified format and writes it to a data blob.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetImporterDescriptionFor Gets an importer description for the specified file extension. If no importers support it, null is returned. Multiple importers may support the file extension, they are called in the order that they were registered.
Public methodGetImporterDescriptions Gets descriptions for each importer that assimp has registered.
Public methodGetSupportedExportFormats Gets the model formats that are supported for export by Assimp.
Public methodGetSupportedImportFormats Gets the model formats that are supported for import by Assimp.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Public methodImportFile(String) Imports a model from the specified file without running any post-process steps. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory used by Assimp.
Public methodImportFile(String, PostProcessSteps) Imports a model from the specified file. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory used by Assimp.
Public methodImportFileFromStream(Stream, String) Imports a model from the stream without running any post-process steps. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory used by Assimp. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ImportFile" family of functions.
Public methodImportFileFromStream(Stream, PostProcessSteps, String) Imports a model from the stream. The importer sets configurations and loads the model into managed memory, releasing the unmanaged memory used by Assimp. It is up to the caller to dispose of the stream. If the format is distributed across multiple files/streams, set a custom IOSystem and use the "ImportFile" family of functions.
Public methodIsExportFormatSupported Checks if the format extension (e.g. ".dae" or ".obj") is supported for export.
Public methodIsImportFormatSupported Checks if the format extension (e.g. ".dae" or ".obj") is supported for import.
Public methodRemoveConfig Removes a set configuration property by name.
Public methodRemoveConfigs Removes all configuration properties from the context.
Public methodRemoveIOSystem Removes the currently set custom file system implementation from the importer.
Public methodSetConfig Sets a configuration property to the context. This is only used during import.
Public methodSetIOSystem Sets a custom file system implementation that is used by this importer. If it is null, then the default assimp file system is used instead.
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Extension Methods
 NameDescription
Public Extension MethodMethodInvoke Calls the object method by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGet Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertyGetT Gets the value of the object property by name.
(Defined by ObjectEx)
Public Extension MethodPropertySet Sets the value of the object property by name.
(Defined by ObjectEx)
Top
See Also