Documentation ¶
Overview ¶
Package pws handles input and output of Anycubic Photons 2.0 (.pws) printables
Index ¶
Constants ¶
View Source
const ( SliceFormatPWS = SliceFormat(iota) SliceFormatPW0 )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Format ¶
type Format struct { *pflag.FlagSet AntiAlias int // AntiAlias level, one of [1,2,4,8] // contains filtered or unexported fields }
func NewFormatter ¶
type Header ¶
type Header struct { PixelSize float32 LayerHeight float32 LightOnTime float32 LightOffTime float32 BottomLightOnTime float32 BottomLayers float32 LiftHeight float32 LiftSpeed float32 // In mm/second RetractSpeed float32 // In mm/second Volume float32 AntiAlias uint32 ResolutionX uint32 ResolutionY uint32 Weight float32 Price float32 ResinType uint32 // 0x24 ? PerLayerOverride uint32 // bool // contains filtered or unexported fields }
type LayerDef ¶
type LayerDef struct { Layers uint32 `struct:"sizeof=Layer"` Layer []Layer `struct:"sizefrom=Layers"` }
type Preview ¶
type Preview struct { Width uint32 // Image width Resolution uint32 Height uint32 // Image height // contains filtered or unexported fields }
type Slice ¶
type Slice struct { AntiAlias int Format SliceFormat Bounds image.Rectangle Data []byte }
type SliceFormat ¶
type SliceFormat int
Click to show internal directories.
Click to hide internal directories.