Skip to main content

Post-processing tools 2023 R2

ANSYS::Nexus::GLTFWriter::Mesh Class Reference

Last update: 17.04.2023

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

#include <GLTFWriter.h>

Inheritance diagram for ANSYS::Nexus::GLTFWriter::Mesh:

Public Member Functions

virtual MeshMirror ()=0
 
virtual bool AppendPrimitive (Primitive *primitive)=0
 
virtual unsigned int NumPrimitives () const =0
 

Static Public Member Functions

static MeshCreate (GLTF *gltf)
 

Detailed Description

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

Meshes are required for all renderable objects.

Definition at line 103 of file GLTFMesh.h.

Member Function Documentation

◆ AppendPrimitive()

virtual bool ANSYS::Nexus::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
Test011.cpp.

◆ Create()

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

Creates a mesh object.

Returns
Mesh object. Do not delete this pointer.
Parameters
[in]gltfGLTF 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.

◆ Mirror()

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

Creates a mirrored Mesh.

Returns
Mesh object. Do not delete this pointer.

◆ NumPrimitives()

virtual unsigned int ANSYS::Nexus::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/NoBackup/branches/EnSight-Second-Coming/webgl_viewer/gltfwriterlib/include/GLTFMesh.h