GDTFParser

package module
v0.2.2 Latest Latest
Warning

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

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

README

GDTF-Parser

This Go module allows reading and parsing the content of a .gdtf file.

[!NOTE] This module is a WIP, if you find an error or a feature is missing, feel to contribute or open an issue

Known Limitations:

  • missing Default Values
  • special Cases like SubPhysicalUnits might not be handled correctly as no reference was available (feel free to open an issue with sample data)

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseGDTFByFile

func ParseGDTFByFile(file io.Reader, readMeshes bool, readThumbnail bool) (*Types.GDTF, error)

Parse a GDTF file

Args:

- file: GDTF File as io.Reader

- readMeshes: wether to read model meshes (true) or leave nil (false)

- readThumbnail: wether to read model thumbnail (true) or leave nil (false)

func ParseGDTFByFilename

func ParseGDTFByFilename(filename string, readMeshes bool, readThumbnail bool) (*Types.GDTF, error)

Parse a GDTF file

Args:

- filename: path to GDTF File (can be relative or absolute)

- readMeshes: wether to read model meshes (true) or leave nil (false)

- readThumbnail: wether to read model thumbnail (true) or leave nil (false)

func ParseGDTFZipReader

func ParseGDTFZipReader(zipfile *zip.Reader, readMeshes bool, readThumbnail bool) (*Types.GDTF, error)

Parse a GDTF file

Args:

- zipfile: GDTF File as zip.Reader

- readMeshes: wether to read model meshes (true) or leave nil (false)

- readThumbnail: wether to read model thumbnail (true) or leave nil (false)

Types

This section is empty.

Directories

Path Synopsis
stl
internal
pkg

Jump to

Keyboard shortcuts

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