package
module
Version:
v0.0.0-...-e8f7856
Opens a new window with list of versions in this module.
Published: Sep 22, 2022
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
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
¶
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
Triangulation is input/output mesh
String return typical string result
Source Files
¶
Click to show internal directories.
Click to hide internal directories.