binvox

package
v3.5.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Overview

Package binvox slices the model and writes binvox files.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slice

func Slice(baseFilename string, slicer Slicer) error

Slice slices an IRMF model into one or more binvox files (one per material).

Types

type Slicer

type Slicer interface {
	NumMaterials() int
	MaterialName(materialNum int) string // 1-based
	MBB() (min, max [3]float32)          // in millimeters

	PrepareRenderZ() error
	RenderZSlices(materialNum int, sp irmf.ZSliceProcessor, order irmf.Order) error
	NumXSlices() int
	NumYSlices() int
	NumZSlices() int
}

Slicer represents a slicer that writes binvox files for multiple materials (from an IRMF model).

Jump to

Keyboard shortcuts

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