Add an Asset Information To Scene
Contents
[
Hide
]
Add an Asset Information to 3D Scene
Metadata is structured information that describes, explains, locates or makes it easier to retrieve, use or manage an information resource. Aspose.3D for .NET API allows developers to define a Metadata for the scene.
Define a Metadata for the scene
3D shows produce massive quantities of metadata and picture information. Metadata is an asset and part of the show.
- Initialize a 3D Scene using
Scene
class. - Set application/tool name.
- Set application/tool vendor name.
- Set measurement unit.
- Set measurement unit scale factor.
- Save 3D scene in the supported file format.
In this example, we assume the scene is created by a CAD tool called “Egypt” and it’s designed by “Manualdesk”:
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For complete examples and data files, please go to https://github.com/aspose-3d/Aspose.3D-for-.NET | |
// Initialize a 3D scene | |
Scene scene = new Scene(); | |
// Set application/tool name | |
scene.AssetInfo.ApplicationName = "Egypt"; | |
// Set application/tool vendor name | |
scene.AssetInfo.ApplicationVendor = "Manualdesk"; | |
// We use ancient egyption measurement unit Pole | |
scene.AssetInfo.UnitName = "pole"; | |
// One Pole equals to 60cm | |
scene.AssetInfo.UnitScaleFactor = 0.6; | |
// Save scene to 3D supported file formats | |
scene.Save("InformationToScene.fbx"); |