mc

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

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

Go to latest
Published: May 16, 2020 License: MIT Imports: 1 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MarchingCubesMulti

func MarchingCubesMulti(e Evaluator, x0, y0, z0, x1, y1, z1, dx, dy, dz float64) map[float64][]Triangle

Types

type Evaluator

type Evaluator interface {
	Evaluate(x, y, z float64) float64
}

type Triangle

type Triangle struct {
	V1, V2, V3 Vector
}

func MarchingCubes

func MarchingCubes(e Evaluator, x0, y0, z0, x1, y1, z1, dx, dy, dz, value float64) []Triangle

func MarchingCubesGrid

func MarchingCubesGrid(w, h, d int, data []float64, value float64) []Triangle

type Vector

type Vector struct {
	X, Y, Z float64
}

Jump to

Keyboard shortcuts

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