cbddlp

package
v1.2.13 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2022 License: MIT Imports: 11 Imported by: 0

Documentation

Overview

Package cbddlp handle input and output of Chitubox DLP/LCD printables

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Formatter

type Formatter struct {
	*pflag.FlagSet

	Version   int // Version of file to use, one of [1,2]
	AntiAlias int // AntiAlias level, one of [1,2,4,8]
}

func NewFormatter

func NewFormatter(suffix string) (cf *Formatter)

func (*Formatter) Decode

func (cf *Formatter) Decode(file uv3dp.Reader, filesize int64) (printable uv3dp.Printable, err error)

func (*Formatter) Encode

func (cf *Formatter) Encode(writer uv3dp.Writer, p uv3dp.Printable) (err error)

Save a uv3dp.Printable in CBD DLP format

type Print

type Print struct {
	uv3dp.Print
	// contains filtered or unexported fields
}

func (*Print) LayerExposure

func (cbd *Print) LayerExposure(index int) (exposure uv3dp.Exposure)

func (*Print) LayerImage

func (cbd *Print) LayerImage(index int) (layerImage *image.Gray)

func (*Print) LayerZ

func (cbd *Print) LayerZ(index int) (z float32)

Layer gets a layer - we decode from the RLE on-the fly

Jump to

Keyboard shortcuts

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