MCPcopy Create free account

hub / github.com/deadsy/sdfx / functions

Functions1,484 in github.com/deadsy/sdfx

↓ 359 callersFunctionTransform3D
Transform3D applies a transformation matrix to an SDF3.
sdf/sdf3.go:592
↓ 339 callersMethodAdd
Add an x,y vertex to a polygon.
sdf/poly.go:316
↓ 301 callersFunctionTranslate3d
Translate3d returns a 4x4 translation matrix.
sdf/matrix.go:100
↓ 249 callersMethodAdd
Add an x,y vertex to a polygon.
sdf/bezier.go:392
↓ 225 callersFunctionDtoR
----------------------------------------------------------------------------- DtoR converts degrees to radians
sdf/utils.go:57
↓ 191 callersFunctionToSTL
----------------------------------------------------------------------------- ToSTL renders an SDF3 to an STL file.
render/render.go:56
↓ 188 callersFunctionNewMarchingCubesOctree
NewMarchingCubesOctree returns a Render3 object.
render/march3p.go:361
↓ 183 callersFunctionUnion3D
Union3D returns the union of multiple SDF3 objects.
sdf/sdf3.go:655
↓ 147 callersMethodMid
Mid marks the vertex as a mid-curve control point.
sdf/bezier.go:397
↓ 135 callersFunctionErrMsg
----------------------------------------------------------------------------- ErrMsg returns an error with a message function name and line number.
sdf/utils.go:378
↓ 125 callersMethodAbs
Abs takes the absolute value of each vector component.
vec/v2/v2.go:84
↓ 121 callersFunctionExtrude3D
Extrude3D does a linear extrude on an SDF3.
sdf/sdf3.go:155
↓ 108 callersMethodSub
Sub subtracts two vectors. Returns a - b.
vec/v2/v2.go:114
↓ 102 callersFunctionCylinder3D
Cylinder3D return an SDF3 for a cylinder (rounded edges with round > 0).
sdf/sdf3.go:461
↓ 98 callersFunctionDifference3D
Difference3D returns the difference of two SDF3s, s0 - s1.
sdf/sdf3.go:718
↓ 90 callersMethodRel
----------------------------------------------------------------------------- Operations on Polygon Vertices Rel positions the polygon vertex relative
sdf/poly.go:51
↓ 89 callersMethodAdd
(p, n v3.Vec)
render/dc/dc3v1.go:539
↓ 86 callersMethodSmooth
Smooth marks the polygon vertex for smoothing.
sdf/poly.go:63
↓ 86 callersFunctionTransform2D
Transform2D applies a transformation matrix to an SDF2. Distance is *not* preserved with scaling.
sdf/sdf2.go:254
↓ 80 callersMethodEvaluate
(p v3.Vec)
sdf/sdf3.go:26
↓ 78 callersMethodBoundingBox
()
sdf/sdf3.go:27
↓ 76 callersFunctionBox2D
Box2D returns a 2d box.
sdf/sdf2.go:87
↓ 76 callersMethodMul
Mul multiplies two vectors by component.
vec/v2/v2.go:119
↓ 76 callersFunctionPolygon2D
Polygon2D returns a Mesh2D built with polygon vertices.
sdf/mesh2.go:343
↓ 75 callersFunctionTranslate2d
Translate2d returns a 3x3 translation matrix.
sdf/matrix.go:109
↓ 66 callersMethodAdd
----------------------------------------------------------------------------- Add two 3x3 matrices.
sdf/matrix.go:400
↓ 58 callersMethodMulScalar
----------------------------------------------------------------------------- MulScalar multiplies each 3x3 matrix component by a scalar.
sdf/matrix.go:417
↓ 56 callersFunctionScaleUniform3D
ScaleUniform3D uniformly scales an SDF3 on all axes.
sdf/sdf3.go:623
↓ 55 callersMethodwrite
write to the cache
render/dc2.go:82
↓ 52 callersMethodMin
Min return a vector with the minimum components of two vectors.
vec/v2/v2.go:99
↓ 49 callersFunctionNewPolygon
NewPolygon returns an empty polygon.
sdf/poly.go:295
↓ 48 callersFunctionBox3D
Box3D return an SDF3 for a 3d box (rounded corners with round > 0).
sdf/sdf3.go:393
↓ 48 callersFunctionCircle2D
Circle2D returns the SDF2 for a 2d circle.
sdf/sdf2.go:55
↓ 48 callersMethodMax
Max return a vector with the maximum components of two vectors.
vec/v2/v2.go:104
↓ 48 callersMethodVertices
Vertices returns the vertices of the polygon.
sdf/poly.go:326
↓ 48 callersMethodget
get a value from a line cache.
render/march2.go:68
↓ 47 callersFunctionCut3D
Cut3D cuts an SDF3 along a plane passing through a with normal n. The SDF3 on the same side as the normal remains.
sdf/sdf3.go:835
↓ 47 callersMethodMulScalar
MulScalar multiplies each vector component by a scalar.
vec/v2/v2.go:74
↓ 45 callersMethodDot
----------------------------------------------------------------------------- Dot returns the dot product of a and b.
vec/v2/v2.go:54
↓ 44 callersMethodLength
Length returns the vector length.
vec/v2/v2.go:134
↓ 42 callersMethodISOAdd
ISOAdd adds an ISO Thread Standard to the thread database.
sdf/screw.go:84
↓ 42 callersFunctionPolyMin
PolyMin returns a minimum function (Try k = 0.1, a bigger k gives a bigger fillet).
sdf/utils.go:166
↓ 42 callersMethodSetMin
SetMin sets the minimum function to control blending.
sdf/sdf3.go:698
↓ 42 callersMethodSize
Size returns the size of a 3d box.
sdf/box3.go:46
↓ 41 callersMethodNormalize
Normalize scales a vector to unit length.
vec/v2/v2.go:144
↓ 38 callersFunctionDifference2D
Difference2D returns the difference of two SDF2 objects, s0 - s1.
sdf/sdf2.go:646
↓ 38 callersMethodEquals
Equals test the equality of 3d boxes.
sdf/box3.go:108
↓ 38 callersFunctionMulti3D
----------------------------------------------------------------------------- Multi3D creates a union of an SDF3 at translated positions.
sdf/sdf3.go:1144
↓ 37 callersFunctionRotateX
RotateX returns a 4x4 matrix with rotation about the X axis.
sdf/matrix.go:149
↓ 35 callersFunctionUnion2D
Union2D returns the union of multiple SDF2 objects.
sdf/sdf2.go:548
↓ 34 callersFunctionRotateY
RotateY returns a 4x4 matrix with rotation about the Y axis.
sdf/matrix.go:154
↓ 34 callersFunctionRotateZ
RotateZ returns a 4x4 matrix with rotation about the Z axis.
sdf/matrix.go:159
↓ 34 callersFunctionrandomRange
randomRange returns a random float64 [a,b)
sdf/utils.go:50
↓ 33 callersMethodwarning
(self, msg, *args, **kwargs)
tools/ply/yacc.py:118
↓ 31 callersMethodMulPosition
----------------------------------------------------------------------------- MulPosition multiplies a v3.Vec position with a rotate/translate matrix.
sdf/matrix.go:316
↓ 30 callersMethoderror
(self, msg, *args, **kwargs)
tools/ply/lex.py:85
↓ 28 callersMethodAdd
Add adds two vectors. Returns a + b.
vec/v2/v2.go:109
↓ 28 callersMethodCos
Cos takes the cosine of each vector component.
vec/v3/v3.go:168
↓ 28 callersMethodMaxComponent
MaxComponent returns the maximum component of the vector.
vec/v2/v2.go:154
↓ 28 callersMethodUTSAdd
UTSAdd adds a Unified Thread Standard to the thread database.
sdf/screw.go:65
↓ 27 callersMethodCross
Cross returns the cross product of a and b.
vec/v2/v2.go:59
↓ 26 callersFunctionRevolve3D
Revolve3D returns an SDF3 for a solid of revolution.
sdf/sdf3.go:117
↓ 23 callersMethodSch40Add
(name string, outer, inner float64)
obj/pipe.go:34
↓ 22 callersMethoderror
(self, msg, *args, **kwargs)
tools/ply/yacc.py:121
↓ 19 callersMethodAdd
(name string, k *ServoParms)
obj/servo.go:43
↓ 19 callersFunctionPanel2D
Panel2D returns a 2d panel with holes on the edges.
obj/panel.go:46
↓ 19 callersFunctionStandoff3D
Standoff3D returns a single board standoff.
obj/standoff.go:80
↓ 18 callersMethodBoundingBox
()
sdf/sdf2.go:26
↓ 18 callersMethodDivScalar
DivScalar divides each vector component by a scalar.
vec/v2/v2.go:79
↓ 18 callersMethodNeg
Neg negates a vector.
vec/v2/v2.go:129
↓ 18 callersFunctionTruncRectPyramid3D
TruncRectPyramid3D returns a truncated rectangular pyramid with rounded edges.
obj/trp.go:35
↓ 17 callersMethodAddScalar
AddScalar adds a scalar to each vector component.
vec/v2/v2.go:64
↓ 17 callersMethodMul
----------------------------------------------------------------------------- Mul multiplies 4x4 matrices.
sdf/matrix.go:351
↓ 17 callersFunctionScrew3D
Screw3D returns a screw SDF3. The thread SDF2 represents the 2D thread profile, which is helically swept to form the screw. Screw3D's evaluation maps
sdf/screw.go:430
↓ 17 callersMethodSin
Sin takes the sine of each vector component.
vec/v3/v3.go:163
↓ 16 callersMethodClose
Close the bezier curve.
sdf/bezier.go:378
↓ 16 callersMethodEvaluate
(p v2.Vec)
sdf/sdf2.go:25
↓ 16 callersFunctionNewBezier
----------------------------------------------------------------------------- Public API for Bezier Curves. NewBezier returns an empty bezier curve.
sdf/bezier.go:373
↓ 15 callersMethodLength2
Length2 returns the vector length * length.
vec/v2/v2.go:139
↓ 15 callersFunctionRevolveTheta3D
RevolveTheta3D returns an SDF3 for a solid of revolution.
sdf/sdf3.go:77
↓ 15 callersFunctionRotate2d
Rotate2d returns an orthographic 3x3 rotation matrix (right hand rule).
sdf/matrix.go:216
↓ 15 callersMethodSubScalar
SubScalar subtracts a scalar from each vector component.
vec/v2/v2.go:69
↓ 14 callersMethodClose
()
sdf/line.go:137
↓ 14 callersFunctionISOThread
ISOThread returns the 2d profile for an ISO/UTS thread. https://en.wikipedia.org/wiki/ISO_metric_screw_thread https://en.wikipedia.org/wiki/Unified_Th
sdf/screw.go:268
↓ 14 callersFunctionLineOf3D
----------------------------------------------------------------------------- LineOf3D returns a union of 3D objects positioned along a line from p0 t
sdf/sdf3.go:1126
↓ 14 callersFunctionRotate3d
Rotate3d returns an orthographic 4x4 rotation matrix (right hand rule).
sdf/matrix.go:136
↓ 14 callersFunctionV3iToV3
----------------------------------------------------------------------------- V3i to X V3iToV3 converts a 3D integer vector to a float vector.
vec/conv/conv.go:33
↓ 14 callersFunctioncolinearSlow
----------------------------------------------------------------------------- colinearSlow return true if 3 points are colinear (slow test).
sdf/bezier.go:25
↓ 13 callersMethodExtend
Extend returns a box enclosing two 3d boxes.
sdf/box3.go:31
↓ 13 callersFunctionLine2D
Line2D returns a line from (-l/2,0) to (l/2,0).
sdf/sdf2.go:117
↓ 13 callersFunctioncolinearFast
colinearFast return true if 3 points are colinear (fast test).
sdf/bezier.go:33
↓ 12 callersMethodAddV2
AddV2 adds a V2 vertex to a polygon.
sdf/bezier.go:383
↓ 12 callersMethodDiv
Div divides two vectors by component.
vec/v2/v2.go:124
↓ 12 callersMethodMesh2D
Mesh2D returns the Mesh2D for the bezier curve.
sdf/bezier.go:493
↓ 12 callersMethodMulBox
----------------------------------------------------------------------------- Transform bounding boxes - keep them axis aligned http://dev.theomader.c
sdf/matrix.go:430
↓ 12 callersMethodNPTAdd
NPTAdd adds an National Pipe Thread to the thread database.
sdf/screw.go:103
↓ 12 callersMethodPolar
Polar treats the polygon vertex values as polar coordinates (r, theta).
sdf/poly.go:57
↓ 12 callersMethodWrite
(in []*Line2)
sdf/line.go:136
↓ 11 callersMethodCeil
Ceil takes the ceiling value of each vector component.
vec/v2/v2.go:89
↓ 11 callersFunctionCut2D
Cut2D cuts the SDF2 along a line from a in direction v. The SDF2 to the right of the line remains.
sdf/sdf2.go:221
next →1–100 of 1,484, ranked by callers