triangle

package module
v0.0.0-...-e8f7856 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2022 License: MIT Imports: 10 Imported by: 0

README

triangle

Go interface of triangulation C Triangle


package triangle // import "github.com/Konstantin8105/triangle"


VARIABLES

var Debug = false

TYPES

type Node struct {
	X, Y   float64
	Marker int
}
    Node is 2D coordinate {X,Y}

type Segment struct {
	NodeIndexes [2]int
	Marker      int
}
    Segment is line between 2 points

type Triangle struct {
	NodeIndexes [3]int
	Marker      int
}
    Triangle is triangle between 3 points

type Triangulation struct {
	Nodes     []Node
	Segments  []Segment
	Holes     []Node
	Triangles []Triangle
	Regions   []Node
}
    Triangulation is input/output mesh

func (tr *Triangulation) Run(flag string) error

func (t Triangulation) String() string
    String return typical string result

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Debug = false

Functions

This section is empty.

Types

type Node

type Node struct {
	X, Y   float64
	Marker int
}

Node is 2D coordinate {X,Y}

type Segment

type Segment struct {
	NodeIndexes [2]int
	Marker      int
}

Segment is line between 2 points

type Triangle

type Triangle struct {
	NodeIndexes [3]int
	Marker      int
}

Triangle is triangle between 3 points

type Triangulation

type Triangulation struct {
	Nodes     []Node
	Segments  []Segment
	Holes     []Node
	Triangles []Triangle
	Regions   []Node
}

Triangulation is input/output mesh

func (*Triangulation) Run

func (tr *Triangulation) Run(flag string) error

func (Triangulation) String

func (t Triangulation) String() string

String return typical string result

Jump to

Keyboard shortcuts

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