GDTFMeshReader

package module
v1.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 2, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

README

Mesh Reader

This Go Module is a helper for reading GDTF Model meshes.

It also contains special primitive models from the MVR/GDTF Spec.

Parsing of 3DS files is heavily inspired by fauxgl. This includes some helper funcs for math operations.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetModel

func GetModel(conf ModelReaderConf, desiredSize *MeshTypes.Vector) (*MeshTypes.Mesh, error)

Get Model by mesh file or PrimitiveType.

Note: requires LoadPrimitives() to be run beforehand if you want to get a primitive

func LoadPrimitives added in v0.3.0

func LoadPrimitives() error

Load Primitive Models

Types

type ModelReaderConf

type ModelReaderConf struct {
	File          io.Reader
	Filename      *string
	PrimitiveType string
}

Directories

Path Synopsis
pkg

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL