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
↓ 4 callers
Function
Normal2
Normal2 returns the normal of an SDF3 at a point (doesn't need to be on the surface). Computed by sampling it several times inside a box of side 2*eps
sdf/utils.go:296
↓ 4 callers
Function
PipeLookup
PipeLookup returns the parameters for a named pipe.
obj/pipe.go:81
↓ 4 callers
Method
RandomSet
RandomSet returns a set of random points from within a 3d box.
sdf/box3.go:233
↓ 4 callers
Function
RotateToVector
RotateToVector returns the rotation matrix that transforms a onto the same direction as b.
sdf/matrix.go:236
↓ 4 callers
Method
Save
Save writes a dxf drawing object to a file.
render/dxf.go:82
↓ 4 callers
Function
SawTooth
----------------------------------------------------------------------------- SawTooth generates a sawtooth function. Returns [-period/2, period/2)
sdf/utils.go:116
↓ 4 callers
Method
ToV2i
ToV2i converts 2d region float coordinates to grid integer coordinates.
sdf/box2.go:191
↓ 4 callers
Function
boxHole3d
boxHole3d returns an oriented countersunk hole for the box side.
obj/panelbox.go:102
↓ 4 callers
Method
corner
-----------------------------------------------------------------------------
render/dc2.go:137
↓ 4 callers
Method
define
(self,tokens)
tools/ply/cpp.py:793
↓ 4 callers
Method
determinant
(a, b, c, d, e, f, g, h, i float64)
render/dc/leastsquares.go:10
↓ 4 callers
Method
f0
f0 returns the function value for a given t value.
sdf/spline.go:188
↓ 4 callers
Method
f0
Return the function value for a given t value.
sdf/bezier.go:184
↓ 4 callers
Method
f1
Return the first derivative for a given t value.
sdf/spline.go:120
↓ 4 callers
Function
filterTabs
----------------------------------------------------------------------------- 4 part panel box Convert the tab pattern to "..x.." form with the tab ty
obj/panelbox.go:132
↓ 4 callers
Function
getLines
()
sdf/mesh2_test.go:60
↓ 4 callers
Function
lessVec
(a, b vec3)
tools/stldiff/main.go:52
↓ 4 callers
Method
lineFilter
lineFilter returns the intersection of a box and a set of line segments.
sdf/box2.go:324
↓ 4 callers
Method
minDistance2
minDistance2 returns the minium distance squared between a point and the line.
sdf/mesh2.go:45
↓ 4 callers
Function
tAppend
----------------------------------------------------------------------------- tAppend appends a t-value to the slice if it is unique and in range.
sdf/box2.go:250
↓ 3 callers
Function
AddTabs
AddTabs to an upper or lower object.
obj/tab.go:28
↓ 3 callers
Method
AddV2
AddV2 adds a V2 vertex to a polygon.
sdf/poly.go:300
↓ 3 callers
Function
Arrow3D
Arrow3D returns an arrow.
obj/arrow.go:56
↓ 3 callers
Function
Axes3D
Axes3D returns a set of axes for a 1, 2 or 3d coordinate systems.
obj/arrow.go:137
↓ 3 callers
Function
Bolt
Bolt returns a simple bolt suitable for 3d printing.
obj/bolt.go:30
↓ 3 callers
Function
BoltCircle2D
----------------------------------------------------------------------------- BoltCircle2D returns a 2D profile for a flange bolt circle.
obj/hole.go:123
↓ 3 callers
Function
BoltCircle3D
BoltCircle3D returns a 3D object for a flange bolt circle.
obj/hole.go:138
↓ 3 callers
Function
ChamferedCylinder
----------------------------------------------------------------------------- ChamferedCylinder intersects a chamfered cylinder with an SDF3.
obj/chamfer.go:16
↓ 3 callers
Method
Close
----------------------------------------------------------------------------- Public API for polygons Close closes the polygon.
sdf/poly.go:280
↓ 3 callers
Method
Contains
Contains checks if the 2d box contains the point.
sdf/box2.go:76
↓ 3 callers
Method
Degenerate
Degenerate returns true if the line is degenerate.
sdf/line.go:71
↓ 3 callers
Method
Equals
----------------------------------------------------------------------------- Equals returns true if a == b within the tolerance limit.
vec/v2/v2.go:36
↓ 3 callers
Method
Equals
Equals tests if two triangles are equal within tolerance.
sdf/triangle3.go:52
↓ 3 callers
Function
Hex3D
Hex3D returns a 3d hexagon with rounded corners.
obj/hex.go:31
↓ 3 callers
Method
HexRadius
HexRadius returns the hex head radius.
sdf/screw.go:228
↓ 3 callers
Function
InvoluteGear
InvoluteGear returns an 2D polygon for an involute gear.
obj/gear.go:104
↓ 3 callers
Method
Length
Length returns the vector length.
vec/v3/v3.go:138
↓ 3 callers
Method
Line
Line outputs a line to the SVG file.
render/svg.go:40
↓ 3 callers
Method
Lines
Lines adds a set of lines to a dxf drawing object.
render/dxf.go:50
↓ 3 callers
Function
Loft3D
Loft3D extrudes an SDF3 that transitions between two SDF2 shapes.
sdf/sdf3.go:314
↓ 3 callers
Function
MakeThreeArcCam
MakeThreeArcCam makes a three arc cam profile from design parameters.
sdf/cams.go:205
↓ 3 callers
Method
Max
Max return the maximum components of a set of vectors.
vec/v2/v2.go:173
↓ 3 callers
Method
Min
Min return the minimum components of a set of vectors.
vec/v2/v2.go:164
↓ 3 callers
Function
MirrorXZ
MirrorXZ returns a 4x4 matrix with mirroring across the XZ plane.
sdf/matrix.go:173
↓ 3 callers
Function
MirrorXeqY
MirrorXeqY returns a 4x4 matrix with mirroring across the X == Y plane.
sdf/matrix.go:191
↓ 3 callers
Method
Mul
Mul multiplies 3x3 matrices.
sdf/matrix.go:373
↓ 3 callers
Method
MulScalar
MulScalar multiplies each vector component by a scalar.
vec/v3/v3.go:78
↓ 3 callers
Function
Nut
Nut returns a simple nut suitable for 3d printing.
obj/nut.go:69
↓ 3 callers
Function
PlasticButtressThread
PlasticButtressThread returns the 2d profile for a screw top style plastic buttress thread. Similar to ANSI 45/7 - but with more corner rounding. See
sdf/screw.go:352
↓ 3 callers
Method
Position
Position returns the position on the line given the t value.
sdf/line.go:215
↓ 3 callers
Function
RotateCopy3D
RotateCopy3D rotates and creates N copies of an SDF3 about the z-axis.
sdf/sdf3.go:975
↓ 3 callers
Function
Scale2d
Scale2d returns a 3x3 scaling matrix. Scaling does not preserve distance. See: ScaleUniform2D().
sdf/matrix.go:128
↓ 3 callers
Function
Scale3d
Scale3d returns a 4x4 scaling matrix. Scaling does not preserve distance. See: ScaleUniform3D()
sdf/matrix.go:118
↓ 3 callers
Function
ThreadLookup
ThreadLookup lookups the parameters for a thread by name.
sdf/screw.go:220
↓ 3 callers
Function
ThreeArcCam2D
ThreeArcCam2D creates a 2D cam profile. The profile is made from a base circle, a smaller nose circle and circular flank arcs. The base circle is cent
sdf/cams.go:142
↓ 3 callers
Method
ToV2
ToV2 converts grid integer coordinates to 2d region float coordinates.
sdf/box2.go:178
↓ 3 callers
Function
VertexToLine
----------------------------------------------------------------------------- VertexToLine converts a set of vertices into a set of line segments.
sdf/mesh2.go:324
↓ 3 callers
Function
arrowStyle3D
-----------------------------------------------------------------------------
obj/arrow.go:20
↓ 3 callers
Function
axis3D
-----------------------------------------------------------------------------
obj/arrow.go:103
↓ 3 callers
Method
begin
(self, state)
tools/ply/lex.py:263
↓ 3 callers
Function
buildScrew
(t *testing.T, c screwTestConfig)
render/screw_test.go:40
↓ 3 callers
Function
call_errorfunc
(errorfunc, token, parser)
tools/ply/yacc.py:188
↓ 3 callers
Function
clamp
----------------------------------------------------------------------------- clamp x between a and b, assume a <= b
vec/v3/v3.go:16
↓ 3 callers
Function
colSpace
PLA ~0.1% var shrink = 1.0/0.995; // ABS ~0.5% ----------------------------------------------------------------------------- colSpace returns the spac
examples/mcg/main.go:30
↓ 3 callers
Function
dcMaxI
(i int, i2 int)
render/dc/utils.go:14
↓ 3 callers
Function
format_result
(r)
tools/ply/yacc.py:139
↓ 3 callers
Function
get_source_range
(lines, tag)
tools/ply/ygen.py:13
↓ 3 callers
Function
gfShape
-----------------------------------------------------------------------------
obj/gridfinity.go:23
↓ 3 callers
Method
index
index uses fibonacci hashing (multiply by golden ratio constant, take high bits) to distribute keys evenly across the table. This gives better distrib
render/march3p.go:83
↓ 3 callers
Function
involuteTheta
return the involute angle for a given radial distance
obj/gear.go:34
↓ 3 callers
Function
makeMeshEdge
makeMeshEdge returns a canonical (sorted) edge so (a,b) == (b,a).
render/mesh.go:63
↓ 3 callers
Function
newTriangleInfo
newTriangleInfo pre-calculates the triangle information.
sdf/mesh3.go:27
↓ 3 callers
Function
nextPowerOfTwo
nextPowerOfTwo is https://stackoverflow.com/questions/466204/rounding-up-to-next-power-of-2
render/dc/dc3v1.go:161
↓ 3 callers
Function
nutAndBolt
-----------------------------------------------------------------------------
examples/nutsandbolts/main.go:22
↓ 3 callers
Method
prevVertex
prevVertex returns the previous vertex in the polygon.
sdf/poly.go:109
↓ 3 callers
Function
quantizeVertex
(x, y, z float64)
render/mesh.go:53
↓ 3 callers
Method
rotateToXY
----------------------------------------------------------------------------- rotateToXY returns the transformation matrix that maps t[0] to the origi
sdf/triangle3.go:80
↓ 3 callers
Function
socketHeight
(k *DroneArmSocketParms)
obj/drone.go:199
↓ 3 callers
Function
sparkplugs
(mode string)
examples/cylinder_head/main.go:141
↓ 3 callers
Function
spincap
----------------------------------------------------------------------------- Basic spin cap with variable pin size.
examples/fidget/main.go:160
↓ 3 callers
Function
stlEdgePointAt
(edge1, edgeDelta v3.Vec, t float64)
obj/stl.go:151
↓ 3 callers
Function
stlEdgeProject
(edge1, edgeDelta, p v3.Vec)
obj/stl.go:147
↓ 3 callers
Function
stlPlaneIsAbove
(anyPoint, normal, testPoint v3.Vec)
obj/stl.go:155
↓ 3 callers
Function
toPoint3D
----------------------------------------------------------------------------- toPoint3D converts a 3D float vector to a go3mf 3D vector.
render/3mf.go:36
↓ 3 callers
Function
toV3
(x mat.Matrix)
render/dc/dc3v1.go:622
↓ 3 callers
Function
toVec
(massPointClone v3.Vec)
render/dc/dc3v1.go:618
↓ 3 callers
Function
xOffset
xOffset returns the x-offset between adjacent rows
examples/mcg/main.go:40
↓ 2 callers
Function
ANSIButtressThread
ANSIButtressThread returns the 2d profile for an ANSI 45/7 buttress thread. https://en.wikipedia.org/wiki/Buttress_thread AMSE B1.9-1973 The polygon
sdf/screw.go:317
↓ 2 callers
Function
AcmeThread
----------------------------------------------------------------------------- Thread Profiles AcmeThread returns the 2d profile for an acme thread.
sdf/screw.go:241
↓ 2 callers
Method
Add
Add adds two vectors. Returns a + b.
vec/v3/v3.go:113
↓ 2 callers
Function
Angle3D
Angle3D returns a piece of 3d angle.
obj/angle.go:72
↓ 2 callers
Function
Cache2D
Cache2D wraps the passed SDF2 with an evaluation cache.
sdf/cache2.go:34
↓ 2 callers
Method
Canonical
Canonical converts a triangle set to it's canonical form. This common form is used to facilitate comparison between the results of different implement
render/delaunay.go:85
↓ 2 callers
Function
Capsule3D
Capsule3D return an SDF3 for a capsule.
sdf/sdf3.go:484
↓ 2 callers
Method
Center
Center returns the center of a 2d box.
sdf/box2.go:54
↓ 2 callers
Method
Chamfer
Chamfer marks the polygon vertex for chamfering.
sdf/poly.go:73
↓ 2 callers
Method
Contains
Contains checks if the 3d box contains the point.
sdf/box3.go:73
↓ 2 callers
Function
CounterBoredHole3D
----------------------------------------------------------------------------- CounterBoredHole3D returns the SDF3 for a counterbored hole.
obj/hole.go:76
↓ 2 callers
Method
Degenerate
Degenerate returns true if the triangle is degenerate.
sdf/triangle3.go:31
↓ 2 callers
Method
Determinant
Determinant returns the determinant of a 3x3 matrix.
sdf/matrix.go:484
← previous
next →
201–300 of 1,484, ranked by callers