dxfutil

package
v0.0.0-...-ed33f09 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2015 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EPSILON float64 = 0.0001

Functions

func GenGcode

func GenGcode(e []Ent, fileout string)

func GetLayers

func GetLayers(e []Ent)

func GetLines

func GetLines(f string) []string

func PathExists

func PathExists(path string) bool

func Readini

func Readini(m map[string]string, path string)

func Round

func Round(f float64) float64

func RoundPlus

func RoundPlus(f float64, places int) float64

Types

type ByIndex

type ByIndex []Ent

func (ByIndex) Len

func (a ByIndex) Len() int

func (ByIndex) Less

func (a ByIndex) Less(i, j int) bool

func (ByIndex) Swap

func (a ByIndex) Swap(i, j int)

type Ent

type Ent struct {
	Test, Index                                            int
	G0, G, G8, G10, G11, G20, G21, G30, G31, G40, G50, G51 string
	Xs, Xe, Ys, Ye, Zs, Ze                                 float64
}

func GetEndPoints

func GetEndPoints(e []Ent) []Ent

func GetEntities

func GetEntities(list []string) []Ent

func GetOrder

func GetOrder(e []Ent) []Ent

Jump to

Keyboard shortcuts

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