Reference
API Quick Reference
A compact index of Pine3D scene, geometry, renderer, camera, vector, overlay, surface, bar, trail, and helper APIs.
Updated Publisher Alien_AlgorithmsPine Script v6
Top-level entry points
newScene()render(scene, ...)vec3(x, y, z)colorBrightness()Mesh API
Factories
cube()cuboid()pyramid()plane()sphere()cylinder()torus()grid()disc()circle()customMesh()mergeMeshes()surface()bars3D()Transforms
moveTo()moveBy()rotateTo()rotateBy()scaleTo()scaleUniform()Appearance and lifecycle
setColor()setFaceColor()setStyle()show()hide()setTag()clone()faceCount()invalidateCache()Direct fields
lineWidthlineStyledrawModecastShadowData and overlays
updateSurface()updateBars()gridBox()gridLabels()barLabels()Scene and camera
Lighting
setLightDir()setLightPos()setLightMode()setAmbient()setShadowStrength()showLightSource()Scene graph
add()remove()clear()getMesh()getLabel()getLine()getPolyline()lookAt(tag)totalFaces()invalidateLightCache()invalidateAllCaches()Scene fields
guiShiftyOffsetlight.positionlight.directionlight.ambientlight.shadowStrengthlight.shadowBiaslight.selfShadowCamera
setPosition()lookAt()orbit()setFov()positiontargetfovVec3
add()sub()scale()negate()dot()cross()length()normalize()distanceTo()lerp()rotateX()rotateY()rotateZ()copy()toString()Overlay primitives
Label3D: move, text, text color, tooltip, visibility, tag, style, size, font, and background.Line3D: start, end, points, color, width, style, visibility, and tag.Polyline3D: points, color, fill, width, closed state, style, visibility, and tag.Face: vertex-index array and color for custom topology.
Data visualization primitives
Surface
surface()updateSurface()gridBox()gridLabels()Bars3D
bars3D()updateBars()barLabels()Trail3D
trail3D()pushSample()axisLabels()cage()moveTo()show()hide()Helpers
wireGrid()scene.add(array<Label3D>)Pine imports are version-pinned. Update the version number only when you intend to move to a newly published Pine3D API version.