Skip to main content

Post-processing tools 2023 R2

ANSYS::Nexus::GLTFWriter::Material Class Reference

Last update: 16.07.2025

Materials describe how primitives are rendered. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Material:

Public Member Functions

virtual Material * Mirror ()=0
 
virtual bool AppendValue (Value *value)=0
 

Static Public Member Functions

static Material * Create (GLTF *gltf, Technique *technique)
 

Detailed Description

Materials describe how primitives are rendered.

An important part of materials is the values that override a corresponding value in the technique. This allows for techniques to be reused.

Definition at line 29 of file GLTFMaterial.h.

Member Function Documentation

◆ AppendValue()

virtual bool ANSYS::Nexus::GLTFWriter::Material::AppendValue ( Value *  value)
pure virtual

Adds a value to a material. Multiple values can be appended to a material. Values are generally Optional, and are used to override default values of techniques parameters. Value with name "texture0" is reserved for color of scalar that is used in probing.

Returns
Status of AppendValue.
Parameters
[in]valueValue object.

◆ Create()

static Material* ANSYS::Nexus::GLTFWriter::Material::Create ( GLTF *  gltf,
Technique *  technique 
)
static

Creates a material.

Returns
Material object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.
[in]techniqueTechnique object describing how to render primitive.
Examples
Test002.cpp, Test005.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test013.cpp, and Test014.cpp.

◆ Mirror()

virtual Material* ANSYS::Nexus::GLTFWriter::Material::Mirror ( )
pure virtual

Creates a mirrored Material.

Returns
Material object. Do not delete this pointer.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFMaterial.h

Connect with Ansys