MCPcopy Create free account

hub / github.com/deadsy/sdfx / functions

Functions1,484 in github.com/deadsy/sdfx

↓ 2 callersMethodDeterminant
Determinant returns the determinant of a 2x2 matrix.
sdf/matrix.go:491
↓ 2 callersFunctionDisplay
(k *DisplayParms, negative bool)
obj/display.go:48
↓ 2 callersMethodDiv
Div divides two vectors by component.
vec/v3/v3.go:128
↓ 2 callersMethodEquals
Equals test the equality of 2d boxes.
sdf/box2.go:103
↓ 2 callersFunctionEuroRackPanel3D
EuroRackPanel3D returns a 3d eurorack synthesizer module panel (in mm).
obj/panel.go:192
↓ 2 callersFunctionGeneva2D
Geneva2D makes 2d profiles for the driver/driven wheels of a geneva drive.
obj/geneva.go:33
↓ 2 callersFunctionGfBody
GfBody returns a gridfinity body.
obj/gridfinity.go:201
↓ 2 callersFunctionGyroid3D
Gyroid3D returns a 3d gyroid.
sdf/gyroid.go:23
↓ 2 callersMethodHexHeight
HexHeight returns the hex head height (empirical).
sdf/screw.go:233
↓ 2 callersFunctionImportSTL
----------------------------------------------------------------------------- ImportSTL converts an STL model into a SDF3 surface. See ImportTriMesh.
obj/stl.go:169
↓ 2 callersMethodInverse
Inverse returns the inverse of a 3x3 matrix.
sdf/matrix.go:521
↓ 2 callersMethodLTZero
LTZero returns true if any vector components are < 0.
vec/v2/v2.go:42
↓ 2 callersMethodLength2
Length2 returns the vector length * length.
vec/v3/v3.go:143
↓ 2 callersFunctionLoadFont
LoadFont loads a truetype (*.ttf) font file.
sdf/text.go:167
↓ 2 callersFunctionLoadSTL
LoadSTL loads an STL file (ascii or binary) and returns the triangle mesh.
render/stl.go:98
↓ 2 callersMethodMassPoint
()
render/dc/dc3v1.go:572
↓ 2 callersFunctionMaxZ
----------------------------------------------------------------------------- MaxZ returns the maximum Z coordinate across all triangle vertices.
render/mesh.go:102
↓ 2 callersMethodMinMaxDist2
----------------------------------------------------------------------------- Minimum/Maximum distances from a point to a box MinMaxDist2 returns the
sdf/box3.go:168
↓ 2 callersFunctionMirrorYZ
MirrorYZ returns a 4x4 matrix with mirroring across the YZ plane.
sdf/matrix.go:182
↓ 2 callersFunctionMix
Mix does a linear interpolation from x to y, a = [0,1]
sdf/utils.go:96
↓ 2 callersMethodMul
Mul multiplies two vectors by component.
vec/v3/v3.go:123
↓ 2 callersMethodNeg
Neg negates a vector.
vec/v3/v3.go:133
↓ 2 callersFunctionNewFlange1
NewFlange1 returns a flange shape made from a center circle with two side circles.
sdf/flange.go:31
↓ 2 callersFunctionNewLine2Buffer
NewLine2Buffer returns a Line2Buffer.
sdf/line.go:152
↓ 2 callersFunctionNewMap2
NewMap2 returns a 2d region to grid coordinates map.
sdf/box2.go:159
↓ 2 callersFunctionNewSVG
NewSVG returns an SVG renderer.
render/svg.go:32
↓ 2 callersFunctionNewText
----------------------------------------------------------------------------- public api NewText returns a text object (text and alignment).
sdf/text.go:159
↓ 2 callersMethodNormalize
Normalize scales a vector to unit length.
vec/v3/v3.go:148
↓ 2 callersMethodOverlap
Overlap returns true if two intervals overlap.
sdf/line.go:38
↓ 2 callersFunctionPipe3D
----------------------------------------------------------------------------- Pipe3D returns a length of pipe.
obj/pipe.go:111
↓ 2 callersFunctionPolyMax
PolyMax returns a maximum function (Try k = 0.1, a bigger k gives a bigger fillet).
sdf/utils.go:178
↓ 2 callersMethodRandomSet
RandomSet returns a set of random points from within a 2d box.
sdf/box2.go:346
↓ 2 callersMethodRandomTriangle
RandomTriangle returns a random triangle that lies within the box
sdf/box3.go:224
↓ 2 callersFunctionRaycast3
Raycast3 collides a ray (with an origin point from and a direction dir) with an SDF3. sigmoid is useful for fixing bad distance functions (those that
sdf/utils.go:244
↓ 2 callersMethodReverse
Reverse the direction of a line segment.
sdf/line.go:61
↓ 2 callersMethodSave
Save closes the SVG file.
render/svg.go:55
↓ 2 callersFunctionSaveSTL
----------------------------------------------------------------------------- SaveSTL writes a triangle mesh to an STL file.
render/stl.go:136
↓ 2 callersFunctionServo2D
----------------------------------------------------------------------------- Servo2D returns a 2D cutout model for servo mounting.
obj/servo.go:214
↓ 2 callersFunctionServoLookup
ServoLookup returns the parameters for a named servo.
obj/servo.go:158
↓ 2 callersMethodSet
Set the n-th component of the vector.
vec/v3/v3.go:188
↓ 2 callersMethodSet
Set cubic polynomial coefficient values.
sdf/spline.go:86
↓ 2 callersMethodSet
Set calculates bezier polynomial coefficients given the end/control points.
sdf/bezier.go:121
↓ 2 callersMethodSetMax
SetMax sets the maximum function to control blending.
sdf/sdf3.go:739
↓ 2 callersFunctionSign
----------------------------------------------------------------------------- Sign returns the sign of x
sdf/utils.go:103
↓ 2 callersFunctionSlice2D
Slice2D returns an SDF2 created from a planar slice through an SDF3.
sdf/sdf2.go:488
↓ 2 callersMethodSolve
(rCond float64)
render/dc/dc3v1.go:576
↓ 2 callersMethodSpringLength
springLength returns the total spring length.
obj/spring.go:31
↓ 2 callersMethodSub
Sub subtracts two vectors. Returns a - b.
vec/v3/v3.go:118
↓ 2 callersFunctionText2D
Text2D returns a sized SDF2 for a text object.
sdf/text.go:177
↓ 2 callersMethodToTriangle2
ToTriangle2 given vertex indices and the vertex array, return the triangle with real vertices.
render/delaunay.go:31
↓ 2 callersFunctionTwistExtrude3D
TwistExtrude3D extrudes an SDF2 while rotating by twist radians over the height of the extrusion.
sdf/sdf3.go:167
↓ 2 callersFunctionWasher2D
----------------------------------------------------------------------------- Washer2D returns a 2d washer.
obj/washer.go:31
↓ 2 callersMethod_first
(self, beta)
tools/ply/yacc.py:1801
↓ 2 callersFunctionalignmentHoles
----------------------------------------------------------------------------- alignmentHoles returns an SDF3 for the alignment holes between the flask
examples/flask/main.go:58
↓ 2 callersFunctionarmHeight
armHeight returns the height of the arm.
obj/drone.go:44
↓ 2 callersFunctionbasePattern
-----------------------------------------------------------------------------
examples/midget/crankcase.go:106
↓ 2 callersMethodbind_callables
(self, pdict)
tools/ply/yacc.py:2026
↓ 2 callersMethodbottomLeft
----------------------------------------------------------------------------- bottomLeft returns the bottom-left corner of a 2d bounding box.
sdf/box2.go:141
↓ 2 callersFunctionbox0
-----------------------------------------------------------------------------
examples/tabbox/main.go:105
↓ 2 callersFunctionbox1
-----------------------------------------------------------------------------
examples/tabbox/main.go:35
↓ 2 callersFunctionclamp
----------------------------------------------------------------------------- clamp x between a and b, assume a <= b
vec/v2/v2.go:16
↓ 2 callersMethodcollect_args
(self,tokenlist)
tools/ply/cpp.py:342
↓ 2 callersMethodcomputeCornersInside
(s *dcSdf, cellStart v3.Vec, cellSize v3.Vec)
render/dc/dc3v2.go:277
↓ 2 callersFunctioncomputeMetrics
(tris []tri)
tools/stldiff/main.go:102
↓ 2 callersMethodcompute_first
(self)
tools/ply/yacc.py:1836
↓ 2 callersFunctionconvertLines
(lSet []*Line2)
sdf/mesh2.go:36
↓ 2 callersFunctioncross
cross returns the union of s and a copy rotated 90 degrees about the z axis.
examples/birdhouse/main.go:88
↓ 2 callersFunctioncylinder_head
(d float64, mode string)
examples/cylinder_head/main.go:204
↓ 2 callersFunctioncylinder_heads
(mode string)
examples/cylinder_head/main.go:222
↓ 2 callersFunctiondcApproximateZeroCrossingPosition
-----------------------------------------------------------------------------
render/dc/dc3v1.go:628
↓ 2 callersFunctiondcBoundVertexPosition
dcBoundVertexPosition binds the given vertex to their right voxel by using the mass point if out of bounds. NOTE: The next code avoids small triangles
render/dc/dc3v1.go:288
↓ 2 callersFunctiondcContourEdgeProc
(node [4]*dcOctree, dir int, indexBuffer *[]int)
render/dc/dc3v1.go:448
↓ 2 callersFunctiondcFlip
----------------------------------------------------------------------------- UTILITIES/MISC ---------------------------------------------------------
render/dc/utils.go:9
↓ 2 callersFunctiondeltaBase
()
examples/delta/main.go:197
↓ 2 callersFunctiondigraph
(X, R, FP)
tools/ply/yacc.py:2055
↓ 2 callersFunctiondisplay0
----------------------------------------------------------------------------- display0 : 320x240 TJCTM24028-SPI
examples/picorx/main.go:66
↓ 2 callersFunctiondisplay1
----------------------------------------------------------------------------- display1 : GME12864-11 (128x64 SSD1306)
examples/picorx/main.go:86
↓ 2 callersFunctiondisplayPositions
(k *DisplayParms, zOfs float64)
obj/display.go:35
↓ 2 callersFunctiondroneArm
(k *DroneArmParms, inner bool)
obj/drone.go:48
↓ 2 callersFunctionerHPSize
(hp float64)
obj/panel.go:146
↓ 2 callersFunctionerUSize
(u float64)
obj/panel.go:142
↓ 2 callersMethodevalexpr
(self,tokens)
tools/ply/cpp.py:554
↓ 2 callersMethodevaluate
evaluate the SDF2 over a given x line.
render/march2.go:40
↓ 2 callersFunctionexhaust_boss
(mode string, x_ofs float64)
examples/cylinder_head/main.go:56
↓ 2 callersFunctionexhaust_bosses
(mode string)
examples/cylinder_head/main.go:76
↓ 2 callersMethodf1
f1 returns the first derivative for a given t value.
sdf/spline.go:194
↓ 2 callersMethodf1Zeroes
Return the t values for f1 == 0 (local minima/maxima)
sdf/spline.go:100
↓ 2 callersFunctionfilter_section
(lines, tag)
tools/ply/ygen.py:28
↓ 2 callersFunctionfmtEPS
----------------------------------------------------------------------------- fmtEPS returns a string with a formatted evaluations per second.
sdf/benchmark.go:23
↓ 2 callersMethodgetCells
(s sdf.SDF3)
render/dc/dc3v2.go:89
↓ 2 callersFunctiongetLines
()
examples/mesh_test/main.go:63
↓ 2 callersFunctiongfGrid
(x, y int, zOfs float64)
obj/gridfinity.go:62
↓ 2 callersFunctionhalfBreadBoardStandoffs
halfBreadBoardStandoffs returns the standoffs for an adafruit 1/2 breadboard.
examples/eurorack/main.go:45
↓ 2 callersFunctionhead_wall_inner_2d
()
examples/cylinder_head/main.go:278
↓ 2 callersFunctionhex
-----------------------------------------------------------------------------
examples/extrusion/main.go:22
↓ 2 callersFunctionhexRadius
press fit on nut -----------------------------------------------------------------------------
examples/nutcover/main.go:32
↓ 2 callersFunctionhole_top
(length, xofs, zofs float64)
examples/phone/main.go:93
↓ 2 callersFunctioninvoluteXY
----------------------------------------------------------------------------- return the involute coordinate for a given angle
obj/gear.go:21
↓ 2 callersMethodisEmpty
isEmpty tests whether a cube can possibly contain any part of the surface. It evaluates the SDF at the cube center: if the absolute distance exceeds t
render/march3p.go:153
↓ 2 callersMethodlineIntersect
lineIntersect returns a line/box intersection.
sdf/box2.go:264
← previousnext →301–400 of 1,484, ranked by callers