Class GlbData
Contents
[
Hide
]GlbData class
The root object for a glTF asset.
public class GlbData : ExtraProperties
Properties
Name | Description |
---|---|
Asset { get; } | |
DefaultScene { get; set; } | |
Extensions { get; } | Gets a collection of JsonSerializable instances. |
ExtensionsRequired { get; } | |
ExtensionsUsed { get; } | |
Extras { get; set; } | Gets or sets the extras content of this instance. |
IncompatibleExtensions { get; } | |
LogicalAccessors { get; } | |
LogicalAnimations { get; } | |
LogicalBuffers { get; } | |
LogicalBufferViews { get; } | |
LogicalCameras { get; } | |
LogicalImages { get; } | |
LogicalMaterials { get; } | |
LogicalMeshes { get; } | |
LogicalNodes { get; } | |
LogicalPunctualLights { get; } | Gets A collection of PunctualLight instances. |
LogicalScenes { get; } | |
LogicalSkins { get; } | |
LogicalTextures { get; } | |
LogicalTextureSamplers { get; } | |
MeshQuantizationAllowed { get; } |
Methods
Name | Description |
---|---|
static CreateModel() | Creates a new GlbData instance. |
static Load(Stream, ReadSettings) | |
static LoadGlbImage(string, ReadSettings) | Reads a GlbData instance from a path pointing to a GLB or a GLTF file |
static ParseGLB(ArraySegment<byte>, ReadSettings) | Parses a GlbData instance from a Byte array representing a GLB file |
static ReadGLB(Stream, ReadSettings) | Reads a GlbData instance from a Stream representing a GLB file |
ApplyBasisTransform(Matrix4x4, string) | Applies a world transform to all the scenes of the model. |
CreateAccessor(string) | Creates a new Accessor instance and adds it to !:GLTF.Schema2.ModelRoot.LogicalAccessors. |
CreateAnimation(string) | Creates a new Animation instance and adds it to LogicalAnimations . |
CreateBuffer(int) | Creates a new Buffer instance and adds it to LogicalBuffers . |
CreateBufferView(int, int, BufferMode?) | |
CreateCamera(string) | Creates a new Camera instance. and appends it to LogicalCameras . |
CreateImage(string) | Creates a new Image instance. and appends it to LogicalImages . |
CreateLogicalNode() | |
CreateMaterial(string) | Creates a new Material instance and appends it to LogicalMaterials . |
CreateMesh(string) | Creates a new Mesh instance and appends it to LogicalMeshes . |
CreatePunctualLight(PunctualLightType) | Creates a new PunctualLight instance and adds it to LogicalPunctualLights . |
CreatePunctualLight(string, PunctualLightType) | Creates a new PunctualLight instance. and adds it to LogicalPunctualLights . |
CreateSkin(string) | Creates a new Skin instance and adds it to LogicalSkins . |
DeepClone() | Creates a complete clone of this GlbData instance. |
GetExtension<T>() | |
GetJSON(bool) | |
GetJsonPreview() | Gets the JSON document of this GlbData . |
IsolateMemory() | Refreshes all internal memory buffers. |
MergeBuffers() | Merges all the LogicalBuffers instances into a single big one. |
MergeBuffers(int) | Merges all the LogicalBuffers instances into buffers of maxSize size. |
MergeImages() | Transfers all the LogicalImages content into BufferView instances |
RemoveExtensions<T>() | |
RemoveExtensions<T>(T) | |
Save(string, WriteSettings) | Writes this GlbData to a file in GLTF or GLB based on the extension of filePath. |
SaveGLB(string, WriteSettings) | Writes this GlbData to a file in GLB format. |
SaveGlbImage(Stream, WriteSettings) | |
SaveGLTF(string, WriteSettings) | Writes this GlbData to a file in GLTF format. |
SaveGLTF(Stream, Stream, Stream, string, WriteSettings) | |
SaveGltfImage(Stream, WriteSettings) | |
SetExtension<T>(T) | |
UseBuffer(byte[]) | Creates or reuses a Buffer instance at LogicalBuffers . |
UseBufferView(ArraySegment<byte>, int, BufferMode?) | Creates or reuses a BufferView instance at LogicalBufferViews . |
UseBufferView(Buffer, int, int?, int, BufferMode?) | Creates or reuses a BufferView instance at LogicalBufferViews . |
UseBufferView(byte[], int, int?, int, BufferMode?) | Creates or reuses a BufferView instance at LogicalBufferViews . |
UseExtension<T>() | |
UseImage(MemoryImage) | Creates or reuses a Image instance. |
UseScene(int) | Creates or reuses a Scene instance at LogicalScenes . |
UseScene(string) | Creates or reuses a Scene instance that has the same name at LogicalScenes . |
UseTexture(ImageGlb, TextureSampler) | Creates or reuses a Texture instance at LogicalTextures . |
UseTexture(ImageGlb, ImageGlb, TextureSampler) | Creates or reuses a Texture instance at LogicalTextures . |
UseTextureSampler(TextureWrapMode, TextureWrapMode, TextureMipMapFilter, TextureInterpolationFilter) | Creates or reuses a TextureSampler instance at LogicalTextureSamplers . |
WriteGLB(WriteSettings) | Writes this GlbData to a Byte array in GLB format. |
WriteGLB(Stream, WriteSettings) | Writes this GlbData to a Stream in GLB format. |
static GetSatellitePaths(string) | Gets the list of satellite / dependency files for a given glTF file. This includes binary blobs and texture images. |
static Validate(string) |
See Also
- class ExtraProperties
- namespace Aspose.CAD.FileFormats.GLB
- assembly Aspose.CAD