Skip to main content
Ansys specifc extensions to the glTF specification.

Extensions

Note: This component is a work in progress and this documentation is incomplete/preliminary. The GLTFWriter Library is a C++ library that is capable of writing geometry scenes in glTF format. The core glTF specification, while complete, does not meet all of the needs of Ansys applications. There are a collection of formal extensions to the specification that this library (and other aspects of the Ansys glTF ecosystem) use to place more specific information into the files.

GLTFWriter API Interface

These extensions have been designed to be specified using the ANSYS::AVZ::GLTFWriter::Value interface. Adding a line width specification to a ANSYS::AVZ::GLTFWriter::Mesh object is done like this:

Extensions

The following extensions are supported:

Examples

Examples of what is embedded in the glTF JSON block:
  • ANSYS_linewidth:
  • ANSYS_material_name:
  • ANSYS_material_details:
The ANSYS_material_details is specifically the text of a JSON object description. The object keys are the material type. In the example, the material is in “ensight” format and is of the class “Metal” and subclass “Gold”. It is legal for multiple specifications to be included. For example, both “ensight/Metal/Gold” and “MDL/omniverse/green glass” may both be included in the same JSON object.
  • ANSYS_scene_timevalue:
Users of the GLTFWriter API need only set the “ANSYS_*” named Value object on the appropriate target object type listed in the table to generate the extension blocks.