Skip to main content

EnSight 2025 R2

ANSYS::AVZ::GLTFWriter::Mesh Class Reference

Last update: 16.07.2025

Meshes define the renderable objects that can be added to a node. More...

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::AVZ::GLTFWriter::Mesh:
ANSYS::AVZ::GLTFWriter::Object

Public Member Functions

virtual Mesh * Mirror ()=0
 
virtual bool AppendPrimitive (Primitive *primitive)=0
 
virtual unsigned int NumPrimitives () const =0
 
virtual bool AppendValue (Value *value)=0
 
- Public Member Functions inherited from ANSYS::AVZ::GLTFWriter::Object
virtual void SetName (const char *name)=0
 
virtual const char * GetName () const =0
 
virtual const char * GetID () const =0
 

Static Public Member Functions

static Mesh * Create (GLTF *gltf)
 

Detailed Description

Meshes define the renderable objects that can be added to a node.

Meshes are required for all renderable objects.

Examples
Test001.cpp, Test002.cpp, Test003.cpp, Test004.cpp, Test005.cpp, Test006.cpp, Test007.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test011.cpp, Test012.cpp, Test013.cpp, and Test014.cpp.

Definition at line 104 of file GLTFMesh.h.

Constructor & Destructor Documentation

◆ ~Mesh()

virtual ANSYS::AVZ::GLTFWriter::Mesh::~Mesh ( )
inlineprotectedvirtual

Definition at line 107 of file GLTFMesh.h.

Member Function Documentation

◆ AppendPrimitive()

virtual bool ANSYS::AVZ::GLTFWriter::Mesh::AppendPrimitive ( Primitive * primitive)
pure virtual

Appends a primitive object to a mesh. Primitives contain the renderable data of the mesh.

Parameters
[in]primitivePrimitive object.
Examples
Test001.cpp, Test002.cpp, Test003.cpp, Test004.cpp, Test005.cpp, Test006.cpp, Test007.cpp, Test008.cpp, Test009.cpp, Test010.cpp, Test011.cpp, Test012.cpp, Test013.cpp, and Test014.cpp.

◆ AppendValue()

virtual bool ANSYS::AVZ::GLTFWriter::Mesh::AppendValue ( Value * value)
pure virtual

Adds a value to a material. Multiple values can be appended to a scene. Values are generally Optional, and are used to override default values of techniques parameters.

Returns
Status of AppendValue.
Parameters
[in]valueValue object.
Examples
Test010.cpp.

◆ Create()

static Mesh * ANSYS::AVZ::GLTFWriter::Mesh::Create ( GLTF * gltf)
static

Creates a mesh object.

Returns
Mesh object. Do not delete this pointer.
Parameters
[in]gltfGLTF object.

◆ Mirror()

virtual Mesh * ANSYS::AVZ::GLTFWriter::Mesh::Mirror ( )
pure virtual

Creates a mirrored Mesh.

Returns
Mesh object. Do not delete this pointer.

◆ NumPrimitives()

virtual unsigned int ANSYS::AVZ::GLTFWriter::Mesh::NumPrimitives ( ) const
pure virtual

Returns number of primitives in mesh.

Returns
Number of primitives.

The documentation for this class was generated from the following file:
  • D:/ANSYSDev/Product-src/webgl_viewer/gltfwriterlib/include/GLTFMesh.h

Connect with Ansys