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
↓ 11 callers
Function
EqualFloat64
----------------------------------------------------------------------------- Floating Point Comparisons See: http://floating-point-gui.de/errors/Near
sdf/utils.go:350
↓ 11 callers
Method
Get
(x, y, z int)
render/march3.go:125
↓ 11 callers
Method
Vertices
Vertices returns a slice of 3d box corner vertices.
sdf/box3.go:83
↓ 11 callers
Method
input
(self, s)
tools/ply/lex.py:251
↓ 10 callers
Method
Center
Center returns the center of a 3d box.
sdf/box3.go:51
↓ 10 callers
Function
Intersect3D
Intersect3D returns the intersection of two SDF3s.
sdf/sdf3.go:795
↓ 10 callers
Function
MirrorXY
MirrorXY returns a 4x4 matrix with mirroring across the XY plane.
sdf/matrix.go:164
↓ 10 callers
Function
NewBox2
NewBox2 creates a 2d box with a given center and size.
sdf/box2.go:28
↓ 10 callers
Function
Offset2D
Offset2D returns an SDF2 that offsets the distance function of another SDF2.
sdf/sdf2.go:149
↓ 10 callers
Function
P2ToV2
----------------------------------------------------------------------------- P2 to X P2ToV2 converts a polar to a cartesian coordinate.
vec/conv/conv.go:67
↓ 10 callers
Method
Random
----------------------------------------------------------------------------- Random returns a random point within 3d box.
sdf/box3.go:215
↓ 10 callers
Function
SnapFloat64
SnapFloat64 snaps a float value to b if it is within epsilon of b.
sdf/utils.go:358
↓ 10 callers
Function
Sphere3D
Sphere3D return an SDF3 for a sphere.
sdf/sdf3.go:428
↓ 10 callers
Function
V2ToV3
V2ToV3 converts a 2D vector to a 3D vector with a specified Z value.
vec/conv/conv.go:46
↓ 10 callers
Function
V3ToV3i
----------------------------------------------------------------------------- V3 to X V3ToV3i converts a 3D float vector to a 3D integer vector.
vec/conv/conv.go:59
↓ 10 callers
Method
error
(self,file,line,msg)
tools/ply/cpp.py:197
↓ 9 callers
Method
Handle
Handle marks the vertex with a slope control handle.
sdf/bezier.go:421
↓ 9 callers
Function
NewBox3
NewBox3 creates a 3d box with a given center and size.
sdf/box3.go:25
↓ 9 callers
Function
NewMarchingCubesUniform
NewMarchingCubesUniform returns a Render3 object.
render/march3.go:271
↓ 9 callers
Function
Panel3D
Panel3D returns a 3d panel with holes on the edges.
obj/panel.go:76
↓ 9 callers
Method
Size
Size returns the size of a 2d box.
sdf/box2.go:49
↓ 9 callers
Method
Sort
Sort sorts the interval endpoints lowest to highest.
sdf/line.go:25
↓ 9 callers
Function
ZeroSmall
----------------------------------------------------------------------------- ZeroSmall zeroes out values that are small relative to a quantity.
sdf/utils.go:368
↓ 9 callers
Method
evaluate
(vi v3i.Vec)
render/march3x.go:80
↓ 9 callers
Method
evaluate
evaluate returns the world-space position and SDF distance for a grid point, using the cache to avoid redundant SDF evaluations. Vertices shared betwe
render/march3p.go:138
↓ 9 callers
Method
token
(self)
tools/ply/cpp.py:884
↓ 8 callers
Method
Random
----------------------------------------------------------------------------- Random returns a random point within a 2d box.
sdf/box2.go:338
↓ 8 callers
Function
boxTab3d
boxTab3d returns an oriented tab for the box side.
obj/panelbox.go:32
↓ 8 callers
Method
debug
(self, msg, *args, **kwargs)
tools/ply/yacc.py:113
↓ 8 callers
Method
find
find an individual spline and t value within the set of cubic splines making up the SDF2.
sdf/spline.go:174
↓ 7 callers
Function
BenchmarkSDF2
----------------------------------------------------------------------------- BenchmarkSDF2 reports the evaluation speed for an SDF2.
sdf/benchmark.go:37
↓ 7 callers
Function
Cone3D
Cone3D returns the SDF3 for a trucated cone (round > 0 gives rounded edges).
sdf/sdf3.go:515
↓ 7 callers
Function
ExtrudeRounded3D
ExtrudeRounded3D extrudes an SDF2 to an SDF3 with rounded edges.
sdf/sdf3.go:240
↓ 7 callers
Method
Include
Include enlarges a 3d box to include a point.
sdf/box3.go:36
↓ 7 callers
Function
Nagon
----------------------------------------------------------------------------- Nagon return the vertices of a N sided regular polygon.
sdf/poly.go:353
↓ 7 callers
Function
NewMarchingSquaresQuadtree
NewMarchingSquaresQuadtree returns a Render2 object.
render/march2x.go:154
↓ 7 callers
Function
Rotate
Rotate returns an orthographic 2x2 rotation matrix (right hand rule).
sdf/matrix.go:226
↓ 7 callers
Method
ScaleAboutCenter
ScaleAboutCenter returns a new 3d box scaled about the center of a box.
sdf/box3.go:56
↓ 7 callers
Function
StdPipeConnector3D
----------------------------------------------------------------------------- StdPipeConnector3D returns an n-way female pipe connector for a standard
obj/pipe.go:274
↓ 7 callers
Function
ToDXF
----------------------------------------------------------------------------- ToDXF renders an SDF2 to a DXF file.
render/render.go:104
↓ 7 callers
Method
Translate
Translate translates a 3d box.
sdf/box3.go:41
↓ 7 callers
Function
V2iToV2
----------------------------------------------------------------------------- V2i to X V2iToV2 converts a 2D integer vector to a float vector.
vec/conv/conv.go:25
↓ 7 callers
Method
expand_macros
(self,tokens,expanded=None)
tools/ply/cpp.py:488
↓ 7 callers
Method
radius
radius returns the radius for a given theta.
sdf/spiral.go:37
↓ 6 callers
Function
CounterSunkHole3D
CounterSunkHole3D returns the SDF3 for a countersunk hole (45 degrees).
obj/hole.go:113
↓ 6 callers
Function
Identity3d
----------------------------------------------------------------------------- Identity3d returns a 4x4 identity matrix.
sdf/matrix.go:76
↓ 6 callers
Method
Intersect
Intersect returns the intersection of two intervals.
sdf/line.go:43
↓ 6 callers
Method
Inverse
----------------------------------------------------------------------------- Inverse returns the inverse of a 4x4 matrix.
sdf/matrix.go:498
↓ 6 callers
Function
Mesh2D
Mesh2D returns an SDF2 made from a set of line segments.
sdf/mesh2.go:272
↓ 6 callers
Function
Multi2D
----------------------------------------------------------------------------- Multi2D creates a union of an SDF2 at a set of 2D positions.
sdf/sdf2.go:760
↓ 6 callers
Function
Raycast2
Raycast2 see Raycast3. NOTE: implementation using Raycast3 (inefficient?)
sdf/utils.go:276
↓ 6 callers
Method
Render
(sdf3 sdf.SDF3, output sdf.Triangle3Writer)
render/render.go:22
↓ 6 callers
Function
RotateUnion3D
RotateUnion3D creates a union of SDF3s rotated about the z-axis.
sdf/sdf3.go:920
↓ 6 callers
Function
_get_regex
(func)
tools/ply/lex.py:439
↓ 6 callers
Method
f2
Return the second derivative for a given t value.
sdf/spline.go:125
↓ 6 callers
Method
lr0_goto
(self, I, x)
tools/ply/yacc.py:2163
↓ 6 callers
Function
mountHeight
motorMountHeight returns the height of the motor mount.
obj/drone.go:39
↓ 6 callers
Function
quadratic
Return the real solutions of ax^2 + bx + c = 0
sdf/quadratic.go:25
↓ 6 callers
Method
read
read from the cache
render/dc2.go:76
↓ 6 callers
Method
relToSDF
(d sdf.SDF3, i v3i.Vec)
render/dc/dc3v1.go:229
↓ 6 callers
Method
tokenstrip
(self,tokens)
tools/ply/cpp.py:314
↓ 6 callers
Method
warning
(self, msg, *args, **kwargs)
tools/ply/lex.py:82
↓ 5 callers
Function
Array2D
Array2D returns an XY grid array of an existing SDF2.
sdf/sdf2.go:336
↓ 5 callers
Function
Clamp
----------------------------------------------------------------------------- Clamp x between a and b, assume a <= b
sdf/utils.go:85
↓ 5 callers
Function
CollectTriangles
----------------------------------------------------------------------------- CollectTriangles renders an SDF3 with the given renderer and returns all
render/mesh.go:25
↓ 5 callers
Method
Line
Line adds a line to a dxf drawing object.
render/dxf.go:44
↓ 5 callers
Function
LineOf2D
----------------------------------------------------------------------------- LineOf2D returns a union of 2D objects positioned along a line from p0 t
sdf/sdf2.go:742
↓ 5 callers
Method
Max
Max return a vector with the maximum components of two vectors.
vec/v3/v3.go:108
↓ 5 callers
Method
Min
Min return a vector with the minimum components of two vectors.
vec/v3/v3.go:103
↓ 5 callers
Method
Normal
Normal returns the normal vector to the plane defined by the 3D triangle.
sdf/triangle3.go:24
↓ 5 callers
Function
Offset3D
Offset3D returns an SDF3 that offsets the distance function of another SDF3.
sdf/sdf3.go:1071
↓ 5 callers
Function
PanelHole3D
PanelHole3D returns a panel hole and an indent for a retention pin.
obj/panel.go:234
↓ 5 callers
Method
Polygon
Polygon returns a polygon approximating the bezier curve.
sdf/bezier.go:428
↓ 5 callers
Function
RotateCopy2D
RotateCopy2D rotates and copies an SDF2 n times in a full circle.
sdf/sdf2.go:442
↓ 5 callers
Function
V2ToV2i
V2ToV2i converts a 2D float vector to a 2D integer vector.
vec/conv/conv.go:51
↓ 5 callers
Function
Washer3D
----------------------------------------------------------------------------- Washer3D returns a 3d washer. This can also be used to create circular w
obj/washer.go:53
↓ 5 callers
Method
evaluate
(vi v2i.Vec)
render/march2x.go:76
↓ 5 callers
Method
f0
Return the function value for a given t value.
sdf/spline.go:115
↓ 5 callers
Function
gfHoles
(r, h, zOfs float64)
obj/gridfinity.go:83
↓ 5 callers
Function
newLinePV
NewLinePV returns a 2d line defined by a point and vector.
sdf/line.go:193
↓ 5 callers
Function
polarDist2
----------------------------------------------------------------------------- polarDist2 returns the distance squared between two polar points.
sdf/spiral.go:25
↓ 5 callers
Function
triDiagonal
----------------------------------------------------------------------------- triDiagonal solves the tridiagonal matrix equation m.x = d, returns x. S
sdf/spline.go:31
↓ 4 callers
Method
Abs
Abs takes the absolute value of each vector component.
vec/v3/v3.go:88
↓ 4 callers
Method
Ceil
Ceil takes the ceiling value of each vector component.
vec/v3/v3.go:93
↓ 4 callers
Function
ChamferedHole3D
ChamferedHole3D returns the SDF3 for a chamfered hole (45 degrees).
obj/hole.go:95
↓ 4 callers
Method
Clamp
Clamp clamps a vector between 2 other vectors.
vec/v2/v2.go:94
↓ 4 callers
Function
CountBoundaryEdges
----------------------------------------------------------------------------- CountBoundaryEdges returns the number of edges shared by only one triang
render/mesh.go:75
↓ 4 callers
Function
DrainCover
DrainCover returns a grated drain pipe cover.
obj/draincover.go:169
↓ 4 callers
Method
Equals
----------------------------------------------------------------------------- Equals tests the equality of 4x4 matrices.
sdf/matrix.go:273
↓ 4 callers
Function
FlatFlankCam2D
FlatFlankCam2D creates a 2D cam profile. The profile is made from a base circle, a smaller nose circle and flat, tangential flanks. The base circle is
sdf/cams.go:37
↓ 4 callers
Method
HandleFwd
HandleFwd sets the slope handle in the forward direction.
sdf/bezier.go:403
↓ 4 callers
Method
HandleRev
HandleRev sets the slope handle in the reverse direction.
sdf/bezier.go:412
↓ 4 callers
Function
HexHead3D
----------------------------------------------------------------------------- HexHead3D returns the rounded hex head for a nut or bolt.
obj/hex.go:42
↓ 4 callers
Function
Identity2d
Identity2d returns a 3x3 identity matrix.
sdf/matrix.go:85
↓ 4 callers
Method
Info
(sdf3 sdf.SDF3)
render/render.go:23
↓ 4 callers
Method
IntersectLine
IntersectLine intersects 2 line segments. https://stackoverflow.com/questions/563198/how-do-you-detect-where-two-line-segments-intersect
sdf/line.go:78
↓ 4 callers
Function
KnurledHead3D
KnurledHead3D returns a generic cylindrical knurled head.
obj/knurl.go:85
↓ 4 callers
Function
Mesh2DSlow
Mesh2DSlow returns an SDF2 made from a set of line segments.
sdf/mesh2.go:367
↓ 4 callers
Function
NewDXF
NewDXF returns an empty dxf drawing object.
render/dxf.go:33
↓ 4 callers
Function
NewTriangle3Buffer
NewTriangle3Buffer returns a Triangle3Buffer.
sdf/triangle3.go:194
← previous
next →
101–200 of 1,484, ranked by callers