photon

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

Documentation

Overview

Package photon is a SliceProcessor that writes its results to one or more ChiTuBox .cbddlp files (which are identical to AnyCubic .photon files).

This is based on: github.com/Andoryuuta/photon with the major difference that this code does not hold the full model in-memory but instead streams the images to the output file.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Slice

func Slice(baseFilename string, xRes, yRes, zRes float32, slicer Slicer) error

Slice slices an IRMF shader into one or more .cbddlp files containing many voxel slices as PNG images (one file 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
	NumZSlices() int
}

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