VTK  9.7.20261112
vtkGLTFDocumentLoader::Primitive Struct Reference

#include <vtkGLTFDocumentLoader.h>

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 215 of file vtkGLTFDocumentLoader.h.

Collaboration diagram for vtkGLTFDocumentLoader::Primitive:
[legend]

Classes

struct  Extensions

Public Attributes

std::map< std::string, int > AttributeIndices
int IndicesId
vtkSmartPointer< vtkCellArray > Indices
std::map< std::string, vtkSmartPointer< vtkDataArray > > AttributeValues
vtkSmartPointer< vtkPolyData > Geometry
std::vector< MorphTarget > Targets
int Material
int Mode
int CellSize
Primitive::Extensions ExtensionMetaData

Member Data Documentation

◆ AttributeIndices

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

Definition at line 218 of file vtkGLTFDocumentLoader.h.

◆ IndicesId

int vtkGLTFDocumentLoader::Primitive::IndicesId

Definition at line 219 of file vtkGLTFDocumentLoader.h.

◆ Indices

vtkSmartPointer<vtkCellArray> vtkGLTFDocumentLoader::Primitive::Indices

Definition at line 220 of file vtkGLTFDocumentLoader.h.

◆ AttributeValues

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

Definition at line 223 of file vtkGLTFDocumentLoader.h.

◆ Geometry

vtkSmartPointer<vtkPolyData> vtkGLTFDocumentLoader::Primitive::Geometry

Definition at line 225 of file vtkGLTFDocumentLoader.h.

◆ Targets

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

Definition at line 227 of file vtkGLTFDocumentLoader.h.

◆ Material

int vtkGLTFDocumentLoader::Primitive::Material

Definition at line 229 of file vtkGLTFDocumentLoader.h.

◆ Mode

int vtkGLTFDocumentLoader::Primitive::Mode

Definition at line 230 of file vtkGLTFDocumentLoader.h.

◆ CellSize

int vtkGLTFDocumentLoader::Primitive::CellSize

Definition at line 231 of file vtkGLTFDocumentLoader.h.

◆ ExtensionMetaData

Primitive::Extensions vtkGLTFDocumentLoader::Primitive::ExtensionMetaData

Definition at line 257 of file vtkGLTFDocumentLoader.h.


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