IModelReader
Description
- Derived from
- Extended by
-
ModelReaderBase abstract
Base interface for classes that read 3D models.
Public / Methods
ReadModel
Reads the 3D model using the current options.
When the ReadModel method is called multiple times, the same IModel object will be returned, unless the model reader options have been modified.
After calling ReadModel, the IValidatable.Validate method may be called in order to receive additional errors and warnings that might have occurred while reading the model data.
- IOException
-
If an I/O error has occurred.
- ValidatingException
-
If the model reader has reported a critical error, for example an unsupported file format feature.
ReadModelDebug
Runs diagnostics on this model reader, in order to analyse and fix problems.
This method will generated diagnostic files in the given directory in, which will be named according to fileName in and a file suffix that is defined by the implementation. Each implementation must output the following standard files:
-
$(fileName).txt
The ModelInfo dump of the IModel that has been returned by ReadModel. -
$(fileName).err
The string representation of the ValidateResult object that has been obtained from IValidatable.ValidateInfo, after the ReadModel method has been called. If there are no errors and warnings, the file will be deleted, if it exists. -
$(fileName).$(geometry).err
If IModelGeometry.ReadIndices and/or IModelGeometry.ReadVertices have thrown an exception, this file will contain the exception dump. If no exceptions were thrown, the file will be deleted. The$(geometry)
token refers to the name of the IModelGeometry in the model info dump file, for example:Geometry_123
.
- IOException
-
If an I/O error has occurred.
- See also