core

package
v0.0.0-...-ee748a0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2024 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Init

func Init(config Config) (*sql.DB, error)

Init initializes a new ODB file with the core tables

func Insert

func Insert(db *sql.DB, mesh *Mesh) error

Insert inserts a mesh into an ODB file

Types

type Config

type Config struct {
	OutputFile string
	SkipIndex  bool
}

type Mesh

type Mesh struct {
	Vertices    [][]float64
	Faces       [][]int
	VertexCount int
	FaceCount   int
}

func Open

func Open(filename string) (*Mesh, error)

It opens a mesh from an ODX file

Jump to

Keyboard shortcuts

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