VTK  9.3.20240419
Classes | Public Attributes | List of all members
vtkGLTFDocumentLoader::Primitive Struct Reference

This struct describes a glTF primitive object. More...

#include <vtkGLTFDocumentLoader.h>

Collaboration diagram for vtkGLTFDocumentLoader::Primitive:
[legend]

Classes

struct  Extensions
 

Public Attributes

std::map< std::string, int > AttributeIndices
 
int IndicesId
 
vtkSmartPointer< vtkCellArrayIndices
 
std::map< std::string, vtkSmartPointer< vtkDataArray > > AttributeValues
 
vtkSmartPointer< vtkPolyDataGeometry
 
std::vector< MorphTargetTargets
 
int Material
 
int Mode
 
int CellSize
 
Primitive::Extensions ExtensionMetaData
 

Detailed Description

This struct describes a glTF primitive object.

primitives specify vertex attributes, as well as connectivity information for a draw call. A primitive also specifies a material and GPU primitive type (e.g: triangle set) Data is first stored as integer indices, pointing to different accessors, then extracted into vtk data structures and finally used to build a vtkPolyData object.

Definition at line 178 of file vtkGLTFDocumentLoader.h.

Member Data Documentation

◆ AttributeIndices

std::map<std::string, int> vtkGLTFDocumentLoader::Primitive::AttributeIndices

Definition at line 181 of file vtkGLTFDocumentLoader.h.

◆ IndicesId

int vtkGLTFDocumentLoader::Primitive::IndicesId

Definition at line 182 of file vtkGLTFDocumentLoader.h.

◆ Indices

vtkSmartPointer<vtkCellArray> vtkGLTFDocumentLoader::Primitive::Indices

Definition at line 183 of file vtkGLTFDocumentLoader.h.

◆ AttributeValues

std::map<std::string, vtkSmartPointer<vtkDataArray> > vtkGLTFDocumentLoader::Primitive::AttributeValues

Definition at line 186 of file vtkGLTFDocumentLoader.h.

◆ Geometry

vtkSmartPointer<vtkPolyData> vtkGLTFDocumentLoader::Primitive::Geometry

Definition at line 188 of file vtkGLTFDocumentLoader.h.

◆ Targets

std::vector<MorphTarget> vtkGLTFDocumentLoader::Primitive::Targets

Definition at line 190 of file vtkGLTFDocumentLoader.h.

◆ Material

int vtkGLTFDocumentLoader::Primitive::Material

Definition at line 192 of file vtkGLTFDocumentLoader.h.

◆ Mode

int vtkGLTFDocumentLoader::Primitive::Mode

Definition at line 193 of file vtkGLTFDocumentLoader.h.

◆ CellSize

int vtkGLTFDocumentLoader::Primitive::CellSize

Definition at line 194 of file vtkGLTFDocumentLoader.h.

◆ ExtensionMetaData

Primitive::Extensions vtkGLTFDocumentLoader::Primitive::ExtensionMetaData

Definition at line 208 of file vtkGLTFDocumentLoader.h.


The documentation for this struct was generated from the following file: