A
ModelFormat
implementation
for:
Open
Asset
Import
Library
v3
/
v4
(http://assimp.sourceforge.net)
sealed class
|
AssimpModelFormat
|
extends
|
ModelFormat
|
The
AssimpModelFormat
is
available
if
any
of
the
following
native
libraries
are
present
in
the
search
path
of
the
process:
'assimp4.x32'
:
32-bit
dynamic
link
library,
major
version
4'assimp4.x64'
:
64-bit
dynamic
link
library,
major
version
4'assimp4'
:
dynamic
link
library,
major
version
4'assimp3.x32'
:
32-bit
dynamic
link
library,
major
version
3'assimp3.x64'
:
64-bit
dynamic
link
library,
major
version
3'assimp3'
:
dynamic
link
library,
major
version
3'assimp.x32'
:
32-bit
dynamic
link
library,
any
supported
version'assimp.x64'
:
64-bit
dynamic
link
library,
any
supported
version'assimp'
:
dynamic
link
library,
any
supported
versionSingleton instance of AssimpModelFormat (any supported version).
public
static
readonly
field
|
Instance
|
||
type
|
ModelFormat
|
Singleton instance of AssimpModelFormat (major version 3).
public
static
readonly
field
|
Instance3
|
||
type
|
ModelFormat
|
Singleton instance of AssimpModelFormat (major version 4).
public
static
readonly
field
|
Instance4
|
||
type
|
ModelFormat
|
Long description of this file format.
public
override
property
|
Description
{
get
}
|
||
type
|
string
|
||
value
|
|
The description string. | |
overrides
|
FileFormat.Description
|
The file format name.
public
property
|
Name
{
get
}
|
||
type
|
string
|
||
value
|
|
The file format name. | |
inherited
|
FileFormat.Name
|
Returns the next file format.
[ThreadSafe]
|
||||
public
property
|
Next
{
get
}
|
|||
type
|
IFileFormat
|
|||
value
|
The
next
file
format
or
null . |
|||
inherited
|
FileFormat.Next
|
Remarks:
The first file format can be obtained from implementing classes. This property can be used to cycle all available file formats of the same type.
The type of this file format (e.g. images, shapes, 3D models).
public
property
|
Type
{
get
}
|
||
type
|
string
|
||
value
|
|
The human-readable type name. | |
inherited
|
FileFormat.Type
|
Can this file format object be used to read the given path?
public
override
method
|
CanRead
(string suffix,
bool directory = false)
|
||
type
|
bool
|
||
params
|
suffix
|
[not-null]
|
The
lower-case
pathname
suffix
(without
'.' ).
Will
be
empty
if
the
path
does
not
have
a
pathname
suffix.
|
directory
|
Does
the
path
refer
to
a
directory
(true )
or
to
a
file
(false )?
Defaults
to
false .
|
||
returns
|
true
if
this
file
format
can
be
used,
false
if
not. |
||
overrides
|
FileFormat.CanRead
|
Returns the first file format in the chain (see IFileFormat) that can read the given path.
public
method
|
CanReadFind
(string suffix,
bool directory = false)
|
||
type
|
IFileFormat
|
||
params
|
suffix
|
[not-null]
|
The
lower-case
pathname
suffix
(without
'.' ).
Will
be
empty
if
the
path
does
not
have
a
pathname
suffix.
|
directory
|
Does
the
path
refer
to
a
directory
(true )
or
to
a
file
(false )?
Defaults
to
false .
|
||
returns
|
The
found
file
format
or
null . |
||
inherited
|
FileFormat.CanReadFind
|
Can this file format object be used to write the given path?
public
virtual
method
|
CanWrite
(string suffix)
|
||
type
|
bool
|
||
params
|
suffix
|
[not-null]
|
The
lower-case
pathname
suffix
(without
'.' ).
Will
be
empty
if
the
path
does
not
have
a
pathname
suffix.
|
returns
|
true
if
this
file
format
can
be
used,
false
if
not. |
||
inherited
|
FileFormat.CanWrite
|
This is a no-op method that forces the compiler / linker to include this type in the resulting binary.
public
override
method
|
PleaseIncludeInBinaryThanks
()
|
||
overrides
|
FileFormat.PleaseIncludeInBinaryThanks
|
Remarks:
Calling this stub method makes sure that all lazy constructor calls have been made.
To initialize everything, an application needs to call this method on its root module(s) (see TinmanModule), followed by a call to PleaseIncludeInBinaryThanksAll.
Reads the given 3D model.
[OwnerReturn]
|
||||
public
override
method
|
ReadModel
(IFileData data)
|
|||
type
|
IModelReader
|
|||
params
|
data
|
[not-null]
|
The model data provider. | |
returns
|
|
The 3D model object reader. | ||
implements
|
ModelFormat.ReadModel
|
[Pure]
|
||||
public
override
method
|
ToString
()
|
|||
type
|
string
|
|||
inherited
|
ModelFormat.ToString
|