MCPcopy Create free account

hub / github.com/deadsy/sdfx / functions

Functions1,484 in github.com/deadsy/sdfx

MethodEvaluate
Evaluate returns the minimum distance to a 2d line.
sdf/sdf2.go:126
MethodEvaluate
Evaluate returns the minimum distance to an offset SDF2.
sdf/sdf2.go:160
MethodEvaluate
Evaluate returns the minimum distance to the SDF2 intersection.
sdf/sdf2.go:194
MethodEvaluate
Evaluate returns the minimum distance to cut SDF2.
sdf/sdf2.go:233
MethodEvaluate
Evaluate returns the minimum distance to a transformed SDF2. Distance is *not* preserved with scaling.
sdf/sdf2.go:264
MethodEvaluate
Evaluate returns the minimum distance to an SDF2 with uniform scaling.
sdf/sdf2.go:297
MethodEvaluate
Evaluate returns the minimum distance to a grid array of SDF2s.
sdf/sdf2.go:359
MethodEvaluate
Evaluate returns the minimum distance to a union of rotated SDF2s.
sdf/sdf2.go:411
MethodEvaluate
Evaluate returns the minimum distance to a rotate/copy SDF2.
sdf/sdf2.go:465
MethodEvaluate
Evaluate returns the minimum distance to the sliced SDF2.
sdf/sdf2.go:528
MethodEvaluate
Evaluate returns the minimum distance to the SDF2 union.
sdf/sdf2.go:578
MethodEvaluate
Evaluate returns the minimum distance to the difference of two SDF2s.
sdf/sdf2.go:662
MethodEvaluate
Evaluate returns the minimum distance to an elongated SDF2.
sdf/sdf2.go:702
MethodEvaluate
Evaluate returns the minimum distance to a cached 2d sdf.
sdf/cache2.go:47
MethodEvaluate
Evaluate returns the minimum distance for a 2d mesh.
sdf/mesh2.go:299
MethodEvaluate
Evaluate returns the minimum distance for a 2d mesh.
sdf/mesh2.go:386
MethodEvaluate
Evaluate returns the minimum distance to the gear rack.
sdf/rack.go:96
MethodEvaluate
(p v3.Vec)
obj/stl.go:36
MethodEvaluateSlow
EvaluateSlow returns the minimum distance to the SDF2 union.
sdf/sdf2.go:612
FunctionExpMin
ExpMin returns a minimum function with exponential smoothing (k = 32).
sdf/utils.go:144
MethodExtend
Extend returns a box enclosing two 2d boxes.
sdf/box2.go:34
FunctionFloatDecode
----------------------------------------------------------------------------- FloatDecode returns a string that decodes the float64 bitfields.
sdf/utils.go:306
FunctionFloatEncode
FloatEncode encodes a float64 from sign, fraction and exponent values.
sdf/utils.go:315
FunctionGenerateMesh2D
----------------------------------------------------------------------------- GenerateMesh2D generates a set of internal mesh points for an SDF2.
sdf/sdf2.go:715
MethodGet
----------------------------------------------------------------------------- Get the n-th component of the vector.
vec/v3/v3.go:175
MethodImage
Image returns the rendered image instead of writing it to a file
render/png.go:139
MethodInclude
Include enlarges a 2d box to include a point.
sdf/box2.go:39
MethodInfo
Info returns a string describing the rendered volume.
render/march3.go:278
MethodInfo
Info returns a string describing the rendered area.
render/march2.go:141
MethodInfo
Info returns a string describing the rendered area.
render/dc2.go:208
MethodInfo
Info returns a string describing the rendered area.
render/march2x.go:161
MethodInfo
(s sdf.SDF2)
render/render.go:29
MethodInfo
Info returns a string describing the rendered volume.
render/march3x.go:173
MethodInfo
Info returns a string describing the rendered volume.
render/march3p.go:368
MethodInfo
Info returns a string describing the rendered volume.
render/dc/dc3v1.go:50
MethodInfo
Info returns a string describing the rendered volume.
render/dc/dc3v2.go:74
MethodIntersect
Intersect returns the t parameters for the intersection between lines l and lx
sdf/line.go:220
FunctionIsWatertight
IsWatertight returns true if the rendered mesh has no boundary edges.
render/mesh.go:95
FunctionIsocelesTrapezoid2D
----------------------------------------------------------------------------- IsocelesTrapezoid2D
obj/shape.go:19
MethodLTEZero
LTEZero returns true if any vector components are <= 0.
vec/v3/v3.go:48
MethodLTZero
LTZero returns true if any vector components are < 0.
vec/v3/v3.go:43
MethodLen
()
vec/v2/v2.go:186
MethodLen
()
vec/v2/v2.go:195
MethodLen
()
render/delaunay.go:38
MethodLess
(i, j int)
vec/v2/v2.go:188
MethodLess
(i, j int)
vec/v2/v2.go:197
MethodLess
(i, j int)
render/delaunay.go:44
MethodLine
Line adds a line to a png object.
render/png.go:94
MethodMesh2D
Mesh2D returns the Mesh2D for the polygon.
sdf/poly.go:346
FunctionMesh3D
Mesh3D returns an SDF3 made from a set of triangles.
sdf/mesh3.go:147
FunctionMesh3DSlow
Mesh3DSlow returns an SDF3 made from a set of triangles.
sdf/mesh3.go:186
MethodMinMaxDist2
----------------------------------------------------------------------------- Minimum/Maximum distances from a point to a box MinMaxDist2 returns the
sdf/box2.go:207
FunctionMirrorX
MirrorX returns a 3x3 matrix with mirroring across the X axis.
sdf/matrix.go:200
MethodMul
Mul multiplies 2x2 matrices.
sdf/matrix.go:388
MethodMulBox
MulBox rotates/translates a 2d bounding box and resizes for axis-alignment.
sdf/matrix.go:450
MethodMulPosition
MulPosition multiplies a v2.Vec position with a rotate/translate matrix.
sdf/matrix.go:323
MethodMulPosition
MulPosition multiplies a v2.Vec position with a rotate matrix.
sdf/matrix.go:328
FunctionNewDualContouringDefault
NewDualContouringDefault uses somewhat safe defaults that sacrifice performance, you may reduce max steps and fix other parameters if facing errors
render/dc/dc3v2.go:56
FunctionNewDualContouringV1
NewDualContouringV1 see DualContouringV1
render/dc/dc3v1.go:45
FunctionNewM22
----------------------------------------------------------------------------- NewM22 returns a new matrix. Input is in row-major order.
sdf/matrix.go:592
FunctionNewM33
----------------------------------------------------------------------------- NewM33 returns a new matrix. Input is in row-major order.
sdf/matrix.go:572
FunctionNewM44
----------------------------------------------------------------------------- NewM44 returns a new matrix. Input is in row-major order.
sdf/matrix.go:550
FunctionNewMarchingCubesOctreeSingle
NewMarchingCubesOctreeSingle returns a Render3 object.
render/march3x.go:166
FunctionNewMarchingSquaresUniform
NewMarchingSquaresUniform returns a Render2 object.
render/march2.go:134
FunctionNormalExtrude
NormalExtrude returns an extrusion function.
sdf/utils.go:190
MethodPolySpline2D
PolySpline2D returns a polygon SDF2 approximating a cubic spline SDF2.
sdf/spline.go:361
FunctionPowMin
PowMin returns a minimum function (k = 8). TODO - weird results, is this correct?
sdf/utils.go:152
MethodRender
Render produces a 3d triangle mesh over the bounding volume of an sdf3.
render/march3.go:289
MethodRender
Render produces a 2d line mesh over the bounding area of an sdf2.
render/march2.go:149
MethodRender
Render produces a 2d line mesh over the bounding area of an sdf2.
render/dc2.go:216
MethodRender
Render produces a 2d line mesh over the bounding area of an sdf2.
render/march2x.go:169
MethodRender
(s sdf.SDF2, output sdf.Line2Writer)
render/render.go:28
MethodRender
Render produces a 3d triangle mesh over the bounding volume of an sdf3.
render/march3x.go:181
MethodRender
Render produces a 3d triangle mesh over the bounding volume of an sdf3.
render/march3p.go:376
MethodRender
Render produces a 3d triangle mesh over the bounding volume of an sdf3.
render/dc/dc3v1.go:58
MethodRender
Render produces a 3d triangle mesh over the bounding volume of an sdf3.
render/dc/dc3v2.go:80
MethodReverse
Reverse reverses the order the vertices are returned.
sdf/poly.go:290
FunctionRoundMin
RoundMin returns a minimum function that uses a quarter-circle to join the two objects smoothly.
sdf/utils.go:128
FunctionRtoD
RtoD converts radians to degrees
sdf/utils.go:62
FunctionSaveDXF
----------------------------------------------------------------------------- SaveDXF writes line segments to a DXF file.
render/dxf.go:93
FunctionSaveSVG
----------------------------------------------------------------------------- SaveSVG writes line segments to an SVG file.
render/svg.go:76
MethodScaleAboutCenter
ScaleAboutCenter returns a new 2d box scaled about the center of a box.
sdf/box2.go:59
MethodSetExtrude
SetExtrude sets the extrusion control function.
sdf/sdf3.go:217
MethodSetMax
SetMax sets the maximum function to control blending.
sdf/sdf3.go:814
MethodSetMax
SetMax sets the maximum function to control blending.
sdf/sdf2.go:199
MethodSetMax
SetMax sets the maximum function to control blending.
sdf/sdf2.go:667
MethodSetMin
SetMin sets the minimum function to control blending.
sdf/sdf3.go:885
MethodSetMin
SetMin sets the minimum function to control blending.
sdf/sdf3.go:956
MethodSetMin
SetMin sets the minimum function to control blending.
sdf/sdf2.go:354
MethodSetMin
SetMin sets the minimum function to control blending.
sdf/sdf2.go:423
MethodSetMin
SetMin sets the minimum function to control SDF2 blending.
sdf/sdf2.go:626
MethodSnap
Snap a point to the box edges
sdf/box3.go:97
MethodString
()
sdf/cache2.go:41
MethodSubScalar
SubScalar subtracts a scalar from each component of the vector.
vec/v3i/v3i.go:26
MethodSubScalar
SubScalar subtracts a scalar from each component of the vector.
vec/v2i/v2i.go:26
MethodSwap
(i, j int)
vec/v2/v2.go:187
MethodSwap
(i, j int)
vec/v2/v2.go:196
MethodSwap
(i, j int)
render/delaunay.go:41
FunctionTOKEN
(r)
tools/ply/lex.py:1089
FunctionTestAbs
-----------------------------------------------------------------------------
vec/v2/v2_test.go:147
← previousnext →1,101–1,200 of 1,484, ranked by callers