sys

package
v0.0.0-...-e65e30e Latest Latest
Warning

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

Go to latest
Published: May 10, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Initialize

func Initialize()

Parse command-line flags and initialize the logging system

func RenderMultiple

func RenderMultiple(shapes []Shape)

Render the shapes from the list in a way depending on commandline parameters

func RenderOne

func RenderOne(shape Primitive)

Render a single shape in a way depending on commandline parameters

func RenderOneWithFileName

func RenderOneWithFileName(fileName string, shape Primitive)

Render a single shape in a way depending on commandline parameters

func SetFa

func SetFa(val float64)

Minimum angle for a fragment. Ignored if number of fragments setting is non-zero.

func SetFn

func SetFn(val uint16)

Number of fragments for the full circle. If zero other fragment settings apply.

func SetFs

func SetFs(val float64)

Minimum size of a fragment. Ignored if number of fragments setting is non-zero.

func Use

func Use(file string)

Import SCAD files and fonts

Types

type Shape

type Shape struct {
	Name      string
	Primitive Primitive
	Flags     ShapeFlags
}

type ShapeFlags

type ShapeFlags uint32
const (
	// No special treatment
	None ShapeFlags = 0

	// This is the default shape. The first encountered default shape will be
	// treated as such
	Default ShapeFlags = 1 << iota

	// Skip this shape when processing the shapes in bulk (the -all option)
	SkipInBulk
)

func (ShapeFlags) String

func (i ShapeFlags) String() string

Jump to

Keyboard shortcuts

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