MCPcopy Create free account

hub / github.com/deadsy/sdfx / functions

Functions1,484 in github.com/deadsy/sdfx

↓ 4 callersFunctionNormal2
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 callersFunctionPipeLookup
PipeLookup returns the parameters for a named pipe.
obj/pipe.go:81
↓ 4 callersMethodRandomSet
RandomSet returns a set of random points from within a 3d box.
sdf/box3.go:233
↓ 4 callersFunctionRotateToVector
RotateToVector returns the rotation matrix that transforms a onto the same direction as b.
sdf/matrix.go:236
↓ 4 callersMethodSave
Save writes a dxf drawing object to a file.
render/dxf.go:82
↓ 4 callersFunctionSawTooth
----------------------------------------------------------------------------- SawTooth generates a sawtooth function. Returns [-period/2, period/2)
sdf/utils.go:116
↓ 4 callersMethodToV2i
ToV2i converts 2d region float coordinates to grid integer coordinates.
sdf/box2.go:191
↓ 4 callersFunctionboxHole3d
boxHole3d returns an oriented countersunk hole for the box side.
obj/panelbox.go:102
↓ 4 callersMethodcorner
-----------------------------------------------------------------------------
render/dc2.go:137
↓ 4 callersMethoddefine
(self,tokens)
tools/ply/cpp.py:793
↓ 4 callersMethoddeterminant
(a, b, c, d, e, f, g, h, i float64)
render/dc/leastsquares.go:10
↓ 4 callersMethodf0
f0 returns the function value for a given t value.
sdf/spline.go:188
↓ 4 callersMethodf0
Return the function value for a given t value.
sdf/bezier.go:184
↓ 4 callersMethodf1
Return the first derivative for a given t value.
sdf/spline.go:120
↓ 4 callersFunctionfilterTabs
----------------------------------------------------------------------------- 4 part panel box Convert the tab pattern to "..x.." form with the tab ty
obj/panelbox.go:132
↓ 4 callersFunctiongetLines
()
sdf/mesh2_test.go:60
↓ 4 callersFunctionlessVec
(a, b vec3)
tools/stldiff/main.go:52
↓ 4 callersMethodlineFilter
lineFilter returns the intersection of a box and a set of line segments.
sdf/box2.go:324
↓ 4 callersMethodminDistance2
minDistance2 returns the minium distance squared between a point and the line.
sdf/mesh2.go:45
↓ 4 callersFunctiontAppend
----------------------------------------------------------------------------- tAppend appends a t-value to the slice if it is unique and in range.
sdf/box2.go:250
↓ 3 callersFunctionAddTabs
AddTabs to an upper or lower object.
obj/tab.go:28
↓ 3 callersMethodAddV2
AddV2 adds a V2 vertex to a polygon.
sdf/poly.go:300
↓ 3 callersFunctionArrow3D
Arrow3D returns an arrow.
obj/arrow.go:56
↓ 3 callersFunctionAxes3D
Axes3D returns a set of axes for a 1, 2 or 3d coordinate systems.
obj/arrow.go:137
↓ 3 callersFunctionBolt
Bolt returns a simple bolt suitable for 3d printing.
obj/bolt.go:30
↓ 3 callersFunctionBoltCircle2D
----------------------------------------------------------------------------- BoltCircle2D returns a 2D profile for a flange bolt circle.
obj/hole.go:123
↓ 3 callersFunctionBoltCircle3D
BoltCircle3D returns a 3D object for a flange bolt circle.
obj/hole.go:138
↓ 3 callersFunctionChamferedCylinder
----------------------------------------------------------------------------- ChamferedCylinder intersects a chamfered cylinder with an SDF3.
obj/chamfer.go:16
↓ 3 callersMethodClose
----------------------------------------------------------------------------- Public API for polygons Close closes the polygon.
sdf/poly.go:280
↓ 3 callersMethodContains
Contains checks if the 2d box contains the point.
sdf/box2.go:76
↓ 3 callersMethodDegenerate
Degenerate returns true if the line is degenerate.
sdf/line.go:71
↓ 3 callersMethodEquals
----------------------------------------------------------------------------- Equals returns true if a == b within the tolerance limit.
vec/v2/v2.go:36
↓ 3 callersMethodEquals
Equals tests if two triangles are equal within tolerance.
sdf/triangle3.go:52
↓ 3 callersFunctionHex3D
Hex3D returns a 3d hexagon with rounded corners.
obj/hex.go:31
↓ 3 callersMethodHexRadius
HexRadius returns the hex head radius.
sdf/screw.go:228
↓ 3 callersFunctionInvoluteGear
InvoluteGear returns an 2D polygon for an involute gear.
obj/gear.go:104
↓ 3 callersMethodLength
Length returns the vector length.
vec/v3/v3.go:138
↓ 3 callersMethodLine
Line outputs a line to the SVG file.
render/svg.go:40
↓ 3 callersMethodLines
Lines adds a set of lines to a dxf drawing object.
render/dxf.go:50
↓ 3 callersFunctionLoft3D
Loft3D extrudes an SDF3 that transitions between two SDF2 shapes.
sdf/sdf3.go:314
↓ 3 callersFunctionMakeThreeArcCam
MakeThreeArcCam makes a three arc cam profile from design parameters.
sdf/cams.go:205
↓ 3 callersMethodMax
Max return the maximum components of a set of vectors.
vec/v2/v2.go:173
↓ 3 callersMethodMin
Min return the minimum components of a set of vectors.
vec/v2/v2.go:164
↓ 3 callersFunctionMirrorXZ
MirrorXZ returns a 4x4 matrix with mirroring across the XZ plane.
sdf/matrix.go:173
↓ 3 callersFunctionMirrorXeqY
MirrorXeqY returns a 4x4 matrix with mirroring across the X == Y plane.
sdf/matrix.go:191
↓ 3 callersMethodMul
Mul multiplies 3x3 matrices.
sdf/matrix.go:373
↓ 3 callersMethodMulScalar
MulScalar multiplies each vector component by a scalar.
vec/v3/v3.go:78
↓ 3 callersFunctionNut
Nut returns a simple nut suitable for 3d printing.
obj/nut.go:69
↓ 3 callersFunctionPlasticButtressThread
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 callersMethodPosition
Position returns the position on the line given the t value.
sdf/line.go:215
↓ 3 callersFunctionRotateCopy3D
RotateCopy3D rotates and creates N copies of an SDF3 about the z-axis.
sdf/sdf3.go:975
↓ 3 callersFunctionScale2d
Scale2d returns a 3x3 scaling matrix. Scaling does not preserve distance. See: ScaleUniform2D().
sdf/matrix.go:128
↓ 3 callersFunctionScale3d
Scale3d returns a 4x4 scaling matrix. Scaling does not preserve distance. See: ScaleUniform3D()
sdf/matrix.go:118
↓ 3 callersFunctionThreadLookup
ThreadLookup lookups the parameters for a thread by name.
sdf/screw.go:220
↓ 3 callersFunctionThreeArcCam2D
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 callersMethodToV2
ToV2 converts grid integer coordinates to 2d region float coordinates.
sdf/box2.go:178
↓ 3 callersFunctionVertexToLine
----------------------------------------------------------------------------- VertexToLine converts a set of vertices into a set of line segments.
sdf/mesh2.go:324
↓ 3 callersFunctionarrowStyle3D
-----------------------------------------------------------------------------
obj/arrow.go:20
↓ 3 callersFunctionaxis3D
-----------------------------------------------------------------------------
obj/arrow.go:103
↓ 3 callersMethodbegin
(self, state)
tools/ply/lex.py:263
↓ 3 callersFunctionbuildScrew
(t *testing.T, c screwTestConfig)
render/screw_test.go:40
↓ 3 callersFunctioncall_errorfunc
(errorfunc, token, parser)
tools/ply/yacc.py:188
↓ 3 callersFunctionclamp
----------------------------------------------------------------------------- clamp x between a and b, assume a <= b
vec/v3/v3.go:16
↓ 3 callersFunctioncolSpace
PLA ~0.1% var shrink = 1.0/0.995; // ABS ~0.5% ----------------------------------------------------------------------------- colSpace returns the spac
examples/mcg/main.go:30
↓ 3 callersFunctiondcMaxI
(i int, i2 int)
render/dc/utils.go:14
↓ 3 callersFunctionformat_result
(r)
tools/ply/yacc.py:139
↓ 3 callersFunctionget_source_range
(lines, tag)
tools/ply/ygen.py:13
↓ 3 callersFunctiongfShape
-----------------------------------------------------------------------------
obj/gridfinity.go:23
↓ 3 callersMethodindex
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 callersFunctioninvoluteTheta
return the involute angle for a given radial distance
obj/gear.go:34
↓ 3 callersFunctionmakeMeshEdge
makeMeshEdge returns a canonical (sorted) edge so (a,b) == (b,a).
render/mesh.go:63
↓ 3 callersFunctionnewTriangleInfo
newTriangleInfo pre-calculates the triangle information.
sdf/mesh3.go:27
↓ 3 callersFunctionnextPowerOfTwo
nextPowerOfTwo is https://stackoverflow.com/questions/466204/rounding-up-to-next-power-of-2
render/dc/dc3v1.go:161
↓ 3 callersFunctionnutAndBolt
-----------------------------------------------------------------------------
examples/nutsandbolts/main.go:22
↓ 3 callersMethodprevVertex
prevVertex returns the previous vertex in the polygon.
sdf/poly.go:109
↓ 3 callersFunctionquantizeVertex
(x, y, z float64)
render/mesh.go:53
↓ 3 callersMethodrotateToXY
----------------------------------------------------------------------------- rotateToXY returns the transformation matrix that maps t[0] to the origi
sdf/triangle3.go:80
↓ 3 callersFunctionsocketHeight
(k *DroneArmSocketParms)
obj/drone.go:199
↓ 3 callersFunctionsparkplugs
(mode string)
examples/cylinder_head/main.go:141
↓ 3 callersFunctionspincap
----------------------------------------------------------------------------- Basic spin cap with variable pin size.
examples/fidget/main.go:160
↓ 3 callersFunctionstlEdgePointAt
(edge1, edgeDelta v3.Vec, t float64)
obj/stl.go:151
↓ 3 callersFunctionstlEdgeProject
(edge1, edgeDelta, p v3.Vec)
obj/stl.go:147
↓ 3 callersFunctionstlPlaneIsAbove
(anyPoint, normal, testPoint v3.Vec)
obj/stl.go:155
↓ 3 callersFunctiontoPoint3D
----------------------------------------------------------------------------- toPoint3D converts a 3D float vector to a go3mf 3D vector.
render/3mf.go:36
↓ 3 callersFunctiontoV3
(x mat.Matrix)
render/dc/dc3v1.go:622
↓ 3 callersFunctiontoVec
(massPointClone v3.Vec)
render/dc/dc3v1.go:618
↓ 3 callersFunctionxOffset
xOffset returns the x-offset between adjacent rows
examples/mcg/main.go:40
↓ 2 callersFunctionANSIButtressThread
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 callersFunctionAcmeThread
----------------------------------------------------------------------------- Thread Profiles AcmeThread returns the 2d profile for an acme thread.
sdf/screw.go:241
↓ 2 callersMethodAdd
Add adds two vectors. Returns a + b.
vec/v3/v3.go:113
↓ 2 callersFunctionAngle3D
Angle3D returns a piece of 3d angle.
obj/angle.go:72
↓ 2 callersFunctionCache2D
Cache2D wraps the passed SDF2 with an evaluation cache.
sdf/cache2.go:34
↓ 2 callersMethodCanonical
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 callersFunctionCapsule3D
Capsule3D return an SDF3 for a capsule.
sdf/sdf3.go:484
↓ 2 callersMethodCenter
Center returns the center of a 2d box.
sdf/box2.go:54
↓ 2 callersMethodChamfer
Chamfer marks the polygon vertex for chamfering.
sdf/poly.go:73
↓ 2 callersMethodContains
Contains checks if the 3d box contains the point.
sdf/box3.go:73
↓ 2 callersFunctionCounterBoredHole3D
----------------------------------------------------------------------------- CounterBoredHole3D returns the SDF3 for a counterbored hole.
obj/hole.go:76
↓ 2 callersMethodDegenerate
Degenerate returns true if the triangle is degenerate.
sdf/triangle3.go:31
↓ 2 callersMethodDeterminant
Determinant returns the determinant of a 3x3 matrix.
sdf/matrix.go:484
← previousnext →201–300 of 1,484, ranked by callers