Documentation
¶
Overview ¶
Package uv3dp is a set of tools for data exchange between UV Resin based 3D printers
Index ¶
- Constants
- func FormatterUsage()
- func RegisterFormatter(suffix string, newFormatter NewFormatter)
- func SetProgress(prog Progressor)
- func WithAllLayers(p Printable, do func(n int, layer Layer))
- func WithEachLayer(p Printable, do func(n int, layer Layer))
- type Bottom
- type BottomStyle
- type DecimatedPrintable
- type EmptyPrintable
- type Exposure
- type Format
- type Formatter
- type Layer
- type NewFormatter
- type PreviewType
- type Printable
- type Progress
- type Progressor
- type Properties
- type Reader
- type Size
- type SizeMillimeter
- type Writer
Constants ¶
View Source
const ( BottomStyleSlow = BottomStyle(iota) // Abruptly transition from slow to normal exposure BottomStyleFade // Gradually transition for slow to normal layers )
View Source
const ( PreviewTypeTiny = PreviewType(iota) PreviewTypeHuge )
Variables ¶
This section is empty.
Functions ¶
func FormatterUsage ¶ added in v0.2.0
func FormatterUsage()
func RegisterFormatter ¶ added in v0.2.0
func RegisterFormatter(suffix string, newFormatter NewFormatter)
func SetProgress ¶ added in v0.7.3
func SetProgress(prog Progressor)
func WithAllLayers ¶ added in v0.6.1
WithAllLayers executes a function in parallel over all of the layers
func WithEachLayer ¶ added in v0.7.5
WithEachLayer executes a function in over all of the layers, serially (but possibly out of order)
Types ¶
type Bottom ¶
type Bottom struct { Exposure // Exposure Count int // Number of bottom layers Style BottomStyle // Transition style }
Bottom layer exposure
type BottomStyle ¶ added in v0.2.3
type BottomStyle int
Bottom layer style
func (BottomStyle) String ¶ added in v0.2.6
func (bs BottomStyle) String() string
type DecimatedPrintable ¶
type DecimatedPrintable struct { Printable Passes int // Number of passes of decimation FirstLayer int // First layer to start decimating Layers int // Count of layers to decimate }
func NewDecimatedPrintable ¶
func NewDecimatedPrintable(printable Printable) (dp *DecimatedPrintable)
func (*DecimatedPrintable) Layer ¶
func (dec *DecimatedPrintable) Layer(index int) (layer Layer)
type EmptyPrintable ¶ added in v0.2.2
type EmptyPrintable struct {
// contains filtered or unexported fields
}
func NewEmptyPrintable ¶ added in v0.2.2
func NewEmptyPrintable(prop Properties) (empty *EmptyPrintable)
func (*EmptyPrintable) Layer ¶ added in v0.2.2
func (empty *EmptyPrintable) Layer(index int) (layer Layer)
func (*EmptyPrintable) Properties ¶ added in v0.2.2
func (empty *EmptyPrintable) Properties() (prop Properties)
type Exposure ¶
type Exposure struct { LightOnTime float32 // Exposure time LightOffTime float32 // Cool down time LightPWM uint8 // PWM from 1..255 LiftHeight float32 // mm LiftSpeed float32 // mm/min RetractHeight float32 // mm RetractSpeed float32 // mm/min }
Per-layer exposure
type Format ¶ added in v0.2.0
func (*Format) SetPrintable ¶ added in v0.2.0
Write writes a printable to the file format
type Formatter ¶ added in v0.2.0
type Formatter interface { Parse(args []string) (err error) Parsed() bool Args() (args []string) NArg() int PrintDefaults() Decode(reader Reader, size int64) (printable Printable, err error) Encode(writer Writer, printable Printable) (err error) }
Printable file format
type Layer ¶
type Layer struct { Z float32 // Z height in mm Exposure Exposure // Layer exposure settings Image *image.Gray `json:",omitempty"` // Image mask }
Everything needed to print a single layer
type NewFormatter ¶ added in v0.2.0
Printable to file format
type PreviewType ¶
type PreviewType uint
type Printable ¶
type Printable interface { Properties() (prop Properties) Layer(index int) (layer Layer) }
type Progress ¶ added in v0.7.3
type Progress struct { Progressor Completed chan struct{} Done chan struct{} }
func NewProgress ¶ added in v0.7.3
type Progressor ¶ added in v0.7.3
type Progressor interface { Show(percent float32) Stop() }
type Properties ¶
type Properties struct { Size Size Exposure Exposure Bottom Bottom Preview map[PreviewType]image.Image `json:",omitempty"` Metadata map[string](interface{}) `json:",omitempty"` }
func (*Properties) Duration ¶ added in v0.2.0
func (prop *Properties) Duration() (duration float32)
Duration returns total printing time
func (*Properties) GetMetadataUint8 ¶ added in v0.8.4
func (prop *Properties) GetMetadataUint8(attr string, defValue uint8) (value uint8)
Get metadata
func (*Properties) LayerExposure ¶ added in v0.2.3
func (prop *Properties) LayerExposure(index int) (exposure Exposure)
LayerExposure gets the default exposure by layer index
type Size ¶
type Size struct {
X, Y int // Printable size in pixels (x,y)
Millimeter SizeMillimeter // Printable size in mm
Layers int
LayerHeight float32 // Height of an individual layer
}
type SizeMillimeter ¶
type SizeMillimeter struct {
X, Y float32
}
Source Files
¶
Directories
¶
Path | Synopsis |
---|---|
Package cbddlp handle input and output of Chitubox DLP/LCD printables
|
Package cbddlp handle input and output of Chitubox DLP/LCD printables |
cmd
|
|
Package ctb handle input and output of Chitubox DLP/LCD printables
|
Package ctb handle input and output of Chitubox DLP/LCD printables |
Package cws handles input and output of NOVA32 CWS printables
|
Package cws handles input and output of NOVA32 CWS printables |
Package ctb handle input and output of Chitubox DLP/LCD printables
|
Package ctb handle input and output of Chitubox DLP/LCD printables |
Package pws handles input and output of Anycubic Photons 2.0 (.pws) printables
|
Package pws handles input and output of Anycubic Photons 2.0 (.pws) printables |
Package sl1 handles input and output of Prusa SL1 DLP/LCD printables
|
Package sl1 handles input and output of Prusa SL1 DLP/LCD printables |
Package uvj handles input and output of UV3DP 'generic' zip files (JSON slice description and images)
|
Package uvj handles input and output of UV3DP 'generic' zip files (JSON slice description and images) |
Package zcodex handles input and output of Prusa SL1 DLP/LCD printables
|
Package zcodex handles input and output of Prusa SL1 DLP/LCD printables |
Click to show internal directories.
Click to hide internal directories.