surreal3

package
v0.0.0-...-278928f Latest Latest
Warning

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

Go to latest
Published: Jan 13, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Algorithm

type Algorithm struct {
	// contains filtered or unexported fields
}

Algorithm see surreal2.Algorithm

func New

func New(minAngle float64, step float64, normalEps float64, scanSurfaceCells sdf.V3i, scanSurfaceDistSq float64, numNeighbors int, surfHitEps float64, surfStepSize float64, surfMaxSteps int, randSource rand.Source) *Algorithm

New see Algorithm.

func NewDefault

func NewDefault() *Algorithm

NewDefault values may change at any time. See NewSimple.

func NewSimple

func NewSimple(minAngle, step float64, scanSurfaceCells sdf.V3i) *Algorithm

NewSimple values may change at any time. See New.

func (*Algorithm) Run

func (a *Algorithm) Run(s sdf.SDF3) []*Triangle

type Triangle

type Triangle [3]sdf.V3

func (*Triangle) Bounds

func (t *Triangle) Bounds() *rtreego.Rect

func (*Triangle) Center

func (t *Triangle) Center() sdf.V3

Center returns the center point of the 3D Triangle.

func (*Triangle) Normal

func (t *Triangle) Normal() sdf.V3

Normal returns the normal vector to the plane defined by the 3D Triangle.

Jump to

Keyboard shortcuts

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