Documentation ¶
Index ¶
- Constants
- func FieldIntersection(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
- func LookupOrAdd(data *workingData, vert vector3.Float64) int
- type Axis
- type Field
- func Box(pos vector3.Float64, size vector3.Float64, strength float64) Field
- func CombineFields(fields ...Field) Field
- func Line(start, end vector3.Float64, radius, strength float64) Field
- func Mesh(mesh modeling.Mesh, radius, strength float64) Field
- func MirrorAxis(field Field, axisToMirror Axis) Field
- func MultiSegmentLine(linePoints []vector3.Float64, radius, strength float64) Field
- func Sphere(pos vector3.Float64, radius, strength float64) Field
- func Subtract(base, subtraction Field) Field
- func VarryingThicknessLine(linePoints []sdf.LinePoint, strength float64) Field
- func (f Field) Combine(otherFields ...Field) Field
- func (f Field) March(atr string, cubesPerUnit, cutoff float64) modeling.Mesh
- func (f Field) Modify(attribute string, other Field, ...) Field
- func (f Field) SetFloat3Attribute(atr string, f3tf3 sample.Vec3ToVec3) Field
- func (f Field) Translate(translation vector3.Float64) Field
- func (f Field) Voxelize(atr string, cubesPerUnit, cutoff float64) []vector3.Float64
- func (f Field) WithColor(c color.RGBA) Field
- type MarchingCanvas
- func (d *MarchingCanvas) AddField(field Field)
- func (d *MarchingCanvas) AddFieldParallel(field Field)
- func (d *MarchingCanvas) AddFieldParallel2(field Field)
- func (d MarchingCanvas) March(cutoff float64) modeling.Mesh
- func (d MarchingCanvas) MarchOnAttribute(attribute string, cutoff float64) modeling.Mesh
- func (d MarchingCanvas) MarchOnAttributeParallel(attribute string, cutoff float64) modeling.Mesh
- func (d MarchingCanvas) MarchParallel(cutoff float64) modeling.Mesh
- type MarchingDataType
Constants ¶
View Source
const BLEND_SIZE = 0.05
Variables ¶
This section is empty.
Functions ¶
func FieldIntersection ¶
func FieldIntersection(fields ...sample.Vec3ToFloat) sample.Vec3ToFloat
func LookupOrAdd ¶
Types ¶
type Field ¶
type Field struct { Domain geometry.AABB Float1Functions map[string]sample.Vec3ToFloat Float2Functions map[string]sample.Vec3ToVec2 Float3Functions map[string]sample.Vec3ToVec3 }
func CombineFields ¶
func MirrorAxis ¶
func MultiSegmentLine ¶
func VarryingThicknessLine ¶ added in v0.9.0
func (Field) Modify ¶
func (f Field) Modify(attribute string, other Field, modifier func(a, b sample.Vec3ToFloat) sample.Vec3ToFloat) Field
func (Field) SetFloat3Attribute ¶
func (f Field) SetFloat3Attribute(atr string, f3tf3 sample.Vec3ToVec3) Field
type MarchingCanvas ¶
type MarchingCanvas struct {
// contains filtered or unexported fields
}
func NewMarchingCanvas ¶
func NewMarchingCanvas(cubesPerUnit float64) *MarchingCanvas
func (*MarchingCanvas) AddField ¶
func (d *MarchingCanvas) AddField(field Field)
func (*MarchingCanvas) AddFieldParallel ¶
func (d *MarchingCanvas) AddFieldParallel(field Field)
func (*MarchingCanvas) AddFieldParallel2 ¶ added in v0.10.0
func (d *MarchingCanvas) AddFieldParallel2(field Field)
func (MarchingCanvas) March ¶
func (d MarchingCanvas) March(cutoff float64) modeling.Mesh
March is shorthand for MarchOnAttribute(modeling.PositionAttribute, cutoff)
func (MarchingCanvas) MarchOnAttribute ¶
func (d MarchingCanvas) MarchOnAttribute(attribute string, cutoff float64) modeling.Mesh
func (MarchingCanvas) MarchOnAttributeParallel ¶
func (d MarchingCanvas) MarchOnAttributeParallel(attribute string, cutoff float64) modeling.Mesh
func (MarchingCanvas) MarchParallel ¶
func (d MarchingCanvas) MarchParallel(cutoff float64) modeling.Mesh
type MarchingDataType ¶
type MarchingDataType int64
const ( Float1 MarchingDataType = iota Float2 Float3 )
Click to show internal directories.
Click to hide internal directories.