Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deadsy/sdfx
/ functions
Functions
1,484 in github.com/deadsy/sdfx
⨍
Functions
1,484
◇
Types & classes
211
↓ 359 callers
Function
Transform3D
Transform3D applies a transformation matrix to an SDF3.
sdf/sdf3.go:592
↓ 339 callers
Method
Add
Add an x,y vertex to a polygon.
sdf/poly.go:316
↓ 301 callers
Function
Translate3d
Translate3d returns a 4x4 translation matrix.
sdf/matrix.go:100
↓ 249 callers
Method
Add
Add an x,y vertex to a polygon.
sdf/bezier.go:392
↓ 225 callers
Function
DtoR
----------------------------------------------------------------------------- DtoR converts degrees to radians
sdf/utils.go:57
↓ 191 callers
Function
ToSTL
----------------------------------------------------------------------------- ToSTL renders an SDF3 to an STL file.
render/render.go:56
↓ 188 callers
Function
NewMarchingCubesOctree
NewMarchingCubesOctree returns a Render3 object.
render/march3p.go:361
↓ 183 callers
Function
Union3D
Union3D returns the union of multiple SDF3 objects.
sdf/sdf3.go:655
↓ 147 callers
Method
Mid
Mid marks the vertex as a mid-curve control point.
sdf/bezier.go:397
↓ 135 callers
Function
ErrMsg
----------------------------------------------------------------------------- ErrMsg returns an error with a message function name and line number.
sdf/utils.go:378
↓ 125 callers
Method
Abs
Abs takes the absolute value of each vector component.
vec/v2/v2.go:84
↓ 121 callers
Function
Extrude3D
Extrude3D does a linear extrude on an SDF3.
sdf/sdf3.go:155
↓ 108 callers
Method
Sub
Sub subtracts two vectors. Returns a - b.
vec/v2/v2.go:114
↓ 102 callers
Function
Cylinder3D
Cylinder3D return an SDF3 for a cylinder (rounded edges with round > 0).
sdf/sdf3.go:461
↓ 98 callers
Function
Difference3D
Difference3D returns the difference of two SDF3s, s0 - s1.
sdf/sdf3.go:718
↓ 90 callers
Method
Rel
----------------------------------------------------------------------------- Operations on Polygon Vertices Rel positions the polygon vertex relative
sdf/poly.go:51
↓ 89 callers
Method
Add
(p, n v3.Vec)
render/dc/dc3v1.go:539
↓ 86 callers
Method
Smooth
Smooth marks the polygon vertex for smoothing.
sdf/poly.go:63
↓ 86 callers
Function
Transform2D
Transform2D applies a transformation matrix to an SDF2. Distance is *not* preserved with scaling.
sdf/sdf2.go:254
↓ 80 callers
Method
Evaluate
(p v3.Vec)
sdf/sdf3.go:26
↓ 78 callers
Method
BoundingBox
()
sdf/sdf3.go:27
↓ 76 callers
Function
Box2D
Box2D returns a 2d box.
sdf/sdf2.go:87
↓ 76 callers
Method
Mul
Mul multiplies two vectors by component.
vec/v2/v2.go:119
↓ 76 callers
Function
Polygon2D
Polygon2D returns a Mesh2D built with polygon vertices.
sdf/mesh2.go:343
↓ 75 callers
Function
Translate2d
Translate2d returns a 3x3 translation matrix.
sdf/matrix.go:109
↓ 66 callers
Method
Add
----------------------------------------------------------------------------- Add two 3x3 matrices.
sdf/matrix.go:400
↓ 58 callers
Method
MulScalar
----------------------------------------------------------------------------- MulScalar multiplies each 3x3 matrix component by a scalar.
sdf/matrix.go:417
↓ 56 callers
Function
ScaleUniform3D
ScaleUniform3D uniformly scales an SDF3 on all axes.
sdf/sdf3.go:623
↓ 55 callers
Method
write
write to the cache
render/dc2.go:82
↓ 52 callers
Method
Min
Min return a vector with the minimum components of two vectors.
vec/v2/v2.go:99
↓ 49 callers
Function
NewPolygon
NewPolygon returns an empty polygon.
sdf/poly.go:295
↓ 48 callers
Function
Box3D
Box3D return an SDF3 for a 3d box (rounded corners with round > 0).
sdf/sdf3.go:393
↓ 48 callers
Function
Circle2D
Circle2D returns the SDF2 for a 2d circle.
sdf/sdf2.go:55
↓ 48 callers
Method
Max
Max return a vector with the maximum components of two vectors.
vec/v2/v2.go:104
↓ 48 callers
Method
Vertices
Vertices returns the vertices of the polygon.
sdf/poly.go:326
↓ 48 callers
Method
get
get a value from a line cache.
render/march2.go:68
↓ 47 callers
Function
Cut3D
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 callers
Method
MulScalar
MulScalar multiplies each vector component by a scalar.
vec/v2/v2.go:74
↓ 45 callers
Method
Dot
----------------------------------------------------------------------------- Dot returns the dot product of a and b.
vec/v2/v2.go:54
↓ 44 callers
Method
Length
Length returns the vector length.
vec/v2/v2.go:134
↓ 42 callers
Method
ISOAdd
ISOAdd adds an ISO Thread Standard to the thread database.
sdf/screw.go:84
↓ 42 callers
Function
PolyMin
PolyMin returns a minimum function (Try k = 0.1, a bigger k gives a bigger fillet).
sdf/utils.go:166
↓ 42 callers
Method
SetMin
SetMin sets the minimum function to control blending.
sdf/sdf3.go:698
↓ 42 callers
Method
Size
Size returns the size of a 3d box.
sdf/box3.go:46
↓ 41 callers
Method
Normalize
Normalize scales a vector to unit length.
vec/v2/v2.go:144
↓ 38 callers
Function
Difference2D
Difference2D returns the difference of two SDF2 objects, s0 - s1.
sdf/sdf2.go:646
↓ 38 callers
Method
Equals
Equals test the equality of 3d boxes.
sdf/box3.go:108
↓ 38 callers
Function
Multi3D
----------------------------------------------------------------------------- Multi3D creates a union of an SDF3 at translated positions.
sdf/sdf3.go:1144
↓ 37 callers
Function
RotateX
RotateX returns a 4x4 matrix with rotation about the X axis.
sdf/matrix.go:149
↓ 35 callers
Function
Union2D
Union2D returns the union of multiple SDF2 objects.
sdf/sdf2.go:548
↓ 34 callers
Function
RotateY
RotateY returns a 4x4 matrix with rotation about the Y axis.
sdf/matrix.go:154
↓ 34 callers
Function
RotateZ
RotateZ returns a 4x4 matrix with rotation about the Z axis.
sdf/matrix.go:159
↓ 34 callers
Function
randomRange
randomRange returns a random float64 [a,b)
sdf/utils.go:50
↓ 33 callers
Method
warning
(self, msg, *args, **kwargs)
tools/ply/yacc.py:118
↓ 31 callers
Method
MulPosition
----------------------------------------------------------------------------- MulPosition multiplies a v3.Vec position with a rotate/translate matrix.
sdf/matrix.go:316
↓ 30 callers
Method
error
(self, msg, *args, **kwargs)
tools/ply/lex.py:85
↓ 28 callers
Method
Add
Add adds two vectors. Returns a + b.
vec/v2/v2.go:109
↓ 28 callers
Method
Cos
Cos takes the cosine of each vector component.
vec/v3/v3.go:168
↓ 28 callers
Method
MaxComponent
MaxComponent returns the maximum component of the vector.
vec/v2/v2.go:154
↓ 28 callers
Method
UTSAdd
UTSAdd adds a Unified Thread Standard to the thread database.
sdf/screw.go:65
↓ 27 callers
Method
Cross
Cross returns the cross product of a and b.
vec/v2/v2.go:59
↓ 26 callers
Function
Revolve3D
Revolve3D returns an SDF3 for a solid of revolution.
sdf/sdf3.go:117
↓ 23 callers
Method
Sch40Add
(name string, outer, inner float64)
obj/pipe.go:34
↓ 22 callers
Method
error
(self, msg, *args, **kwargs)
tools/ply/yacc.py:121
↓ 19 callers
Method
Add
(name string, k *ServoParms)
obj/servo.go:43
↓ 19 callers
Function
Panel2D
Panel2D returns a 2d panel with holes on the edges.
obj/panel.go:46
↓ 19 callers
Function
Standoff3D
Standoff3D returns a single board standoff.
obj/standoff.go:80
↓ 18 callers
Method
BoundingBox
()
sdf/sdf2.go:26
↓ 18 callers
Method
DivScalar
DivScalar divides each vector component by a scalar.
vec/v2/v2.go:79
↓ 18 callers
Method
Neg
Neg negates a vector.
vec/v2/v2.go:129
↓ 18 callers
Function
TruncRectPyramid3D
TruncRectPyramid3D returns a truncated rectangular pyramid with rounded edges.
obj/trp.go:35
↓ 17 callers
Method
AddScalar
AddScalar adds a scalar to each vector component.
vec/v2/v2.go:64
↓ 17 callers
Method
Mul
----------------------------------------------------------------------------- Mul multiplies 4x4 matrices.
sdf/matrix.go:351
↓ 17 callers
Function
Screw3D
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 callers
Method
Sin
Sin takes the sine of each vector component.
vec/v3/v3.go:163
↓ 16 callers
Method
Close
Close the bezier curve.
sdf/bezier.go:378
↓ 16 callers
Method
Evaluate
(p v2.Vec)
sdf/sdf2.go:25
↓ 16 callers
Function
NewBezier
----------------------------------------------------------------------------- Public API for Bezier Curves. NewBezier returns an empty bezier curve.
sdf/bezier.go:373
↓ 15 callers
Method
Length2
Length2 returns the vector length * length.
vec/v2/v2.go:139
↓ 15 callers
Function
RevolveTheta3D
RevolveTheta3D returns an SDF3 for a solid of revolution.
sdf/sdf3.go:77
↓ 15 callers
Function
Rotate2d
Rotate2d returns an orthographic 3x3 rotation matrix (right hand rule).
sdf/matrix.go:216
↓ 15 callers
Method
SubScalar
SubScalar subtracts a scalar from each vector component.
vec/v2/v2.go:69
↓ 14 callers
Method
Close
()
sdf/line.go:137
↓ 14 callers
Function
ISOThread
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 callers
Function
LineOf3D
----------------------------------------------------------------------------- LineOf3D returns a union of 3D objects positioned along a line from p0 t
sdf/sdf3.go:1126
↓ 14 callers
Function
Rotate3d
Rotate3d returns an orthographic 4x4 rotation matrix (right hand rule).
sdf/matrix.go:136
↓ 14 callers
Function
V3iToV3
----------------------------------------------------------------------------- V3i to X V3iToV3 converts a 3D integer vector to a float vector.
vec/conv/conv.go:33
↓ 14 callers
Function
colinearSlow
----------------------------------------------------------------------------- colinearSlow return true if 3 points are colinear (slow test).
sdf/bezier.go:25
↓ 13 callers
Method
Extend
Extend returns a box enclosing two 3d boxes.
sdf/box3.go:31
↓ 13 callers
Function
Line2D
Line2D returns a line from (-l/2,0) to (l/2,0).
sdf/sdf2.go:117
↓ 13 callers
Function
colinearFast
colinearFast return true if 3 points are colinear (fast test).
sdf/bezier.go:33
↓ 12 callers
Method
AddV2
AddV2 adds a V2 vertex to a polygon.
sdf/bezier.go:383
↓ 12 callers
Method
Div
Div divides two vectors by component.
vec/v2/v2.go:124
↓ 12 callers
Method
Mesh2D
Mesh2D returns the Mesh2D for the bezier curve.
sdf/bezier.go:493
↓ 12 callers
Method
MulBox
----------------------------------------------------------------------------- Transform bounding boxes - keep them axis aligned http://dev.theomader.c
sdf/matrix.go:430
↓ 12 callers
Method
NPTAdd
NPTAdd adds an National Pipe Thread to the thread database.
sdf/screw.go:103
↓ 12 callers
Method
Polar
Polar treats the polygon vertex values as polar coordinates (r, theta).
sdf/poly.go:57
↓ 12 callers
Method
Write
(in []*Line2)
sdf/line.go:136
↓ 11 callers
Method
Ceil
Ceil takes the ceiling value of each vector component.
vec/v2/v2.go:89
↓ 11 callers
Function
Cut2D
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