zipper

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: 9 Imported by: 0

Documentation

Overview

Package zipper is a SliceProcessor that writes its results to one or more ZIP files. It also supports the svx voxel file format. See https://abfab3d.com/svx-format.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SVXSlice

func SVXSlice(baseFilename string, slicer Slicer) error

SVXSlice slices an IRMF shader into one or more SVX files containing many voxel slices as PNG images (one file per material).

func Slice

func Slice(baseFilename string, slicer Slicer) error

Slice slices an IRMF shader into one or more ZIP files containing many voxel slices as PNG images (one file per material).

Types

type Slicer

type Slicer interface {
	IRMF() *irmf.IRMF
	NumMaterials() int
	NumXSlices() int
	NumYSlices() int
	NumZSlices() 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
}

Slicer represents a slicer that provides slices of voxels for multiple materials (from an IRMF file).

Jump to

Keyboard shortcuts

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