Model - Other
API reference for 101 public exports whose source module the bundled .d.ts does not carry — mostly compute catalog namespace objects.
See the Guide for the ModelJSON / evaluate pipeline.
API reference
Signatures are generated from the live package .d.ts - not hand-written.
add
const
const add: typeof _huukhanhnguyen_geometry_catalog_vector.addadd3D
const
const add3D: typeof add3Dalpha
const
const alpha: typeof _huukhanhnguyen_geometry_catalog_colorValue.alphaannotation
namespace
namespace annotationMembers: BUILTIN_ANNOTATION_STYLE, BUILTIN_TEXT_STYLE, centerMark, dimensionAngular, dimensionLinear, dimensionRadial, drawAngularDimension, drawLeader, drawLinearDimension, drawRadialDimension, formatDimension, imageEntity, leader, resolveStyles, resolveStylesForMethod, resolveTextStyle, textEntity
apply
const
const apply: typeof applyasShapes
function
asShapes(input: unknown): ShellEntity[]axis
namespace
namespace axisMembers: direction, fromPointDirection, fromTwoPoints, origin, pointAt
between
const
const between: typeof _huukhanhnguyen_geometry_catalog_vector.betweenboundsValue
namespace
namespace boundsValueMembers: center, point, size
chainCutLoops
const
const chainCutLoops: typeof chainCutLoopsclipMeshToPlane
const
const clipMeshToPlane: typeof clipMeshToPlaneclipPolygonToWindow
const
const clipPolygonToWindow: typeof clipPolygonToWindowclipSegmentToLoops
const
const clipSegmentToLoops: typeof clipSegmentToLoopsclipSegmentToWindow
const
const clipSegmentToWindow: typeof clipSegmentToWindowcolorValue
namespace
namespace colorValueMembers: alpha, contrast, darken, hsl, lighten, luminance, mix, rgb, rotate, saturate
compose
const
const compose: typeof composecontrast
const
const contrast: typeof _huukhanhnguyen_geometry_catalog_colorValue.contrastcross
const
const cross: typeof _huukhanhnguyen_geometry_catalog_vector.crossdarken
const
const darken: typeof _huukhanhnguyen_geometry_catalog_colorValue.darkenDEFAULT_SET_SHEET
const
const DEFAULT_SET_SHEET: { width: 420deform
namespace
namespace deformMembers: bend, taper, twist
direction
const
const direction: typeof directiondisplacement
namespace
namespace displacementMembers: displaceEntities
distance
const
const distance: typeof distancedot
const
const dot: typeof _huukhanhnguyen_geometry_catalog_vector.dotdot3D
const
const dot3D: typeof dot3Dentity
namespace
namespace entityMembers: applyLabel, applyLocked, applyPoint, applyVector, applyVisible, attribute, curveSelfUnion, entitiesBoundingBox, flatten, flattenToXY, flip, keepEntities, layer, material, move, moveMatrix, reflectionMatrix, resize, reverse, rotate, rotateMatrix, solidSelfUnion, transformEntity, vertexDelete, vertexMove, vertexRotate, vertexScale, view
face
namespace
namespace faceMembers: asPaths, asShapes, coplanarGroups, faceOffset, faceTrim, fill, fromPath2d, groupedThickenPaths, newellNormal, planarIntersect, planarOffsetAll, planarSubtract, planarUnion, planarUnionAll, planarUnionRegions, planeMatrix, planeNormal, reverseShape, straightSkeleton, thickenPaths, toPath2d, toPolylines3D
faceValue
namespace
namespace faceValueMembers: area, centroid, contains, normal
fitLine
const
const fitLine: typeof _huukhanhnguyen_geometry_catalog_statValue.fitLineformatValue
namespace
namespace formatValueMembers: currency, date, formatDimension, number, percent
forwardOf
const
const forwardOf: typeof forwardOffromAxisAngle
const
const fromAxisAngle: typeof fromAxisAnglefromEuler
const
const fromEuler: typeof fromEulerfromPointDirection
const
const fromPointDirection: typeof fromPointDirectionfromPointNormal
const
const fromPointNormal: typeof fromPointNormalfromTwoPoints
const
const fromTwoPoints: typeof fromTwoPointshsl
const
const hsl: typeof _huukhanhnguyen_geometry_catalog_colorValue.hslhydrateCurves
function
hydrateCurves(input: unknown): NurbsCurve[]identity
const
const identity: typeof identityinterpolate
const
const interpolate: typeof interpolateinvert
const
const invert: typeof invertlength3D
const
const length3D: typeof length3Dlighten
const
const lighten: typeof _huukhanhnguyen_geometry_catalog_colorValue.lightenluminance
const
const luminance: typeof _huukhanhnguyen_geometry_catalog_colorValue.luminancemax
const
const max: typeof _huukhanhnguyen_geometry_catalog_statValue.maxmean
const
const mean: typeof _huukhanhnguyen_geometry_catalog_statValue.meanmedian
const
const median: typeof _huukhanhnguyen_geometry_catalog_statValue.medianmesh
namespace
namespace meshMembers: chunkTriangleIndices, computeVertexNormals, faceToMesh, meshFacesToTriangles, meshLattice, meshSubdivision, placeMesh
midpoint
const
const midpoint: typeof midpointmin
const
const min: typeof _huukhanhnguyen_geometry_catalog_statValue.minmix
const
const mix: typeof _huukhanhnguyen_geometry_catalog_colorValue.mixmultiply
const
const multiply: typeof multiplynoiseValue
namespace
namespace noiseValueMembers: fbm, perlin, turbulence, worley
normalize
const
const normalize: typeof _huukhanhnguyen_geometry_catalog_vector.normalizeorigin
const
const origin: typeof originparameter
namespace
namespace parameterMembers: angle, area, boolean, color, currency, curve, fn, font, group, length, mass, model, number, object, point, string, surface, text, vector, volume
parseMutable
const
Parse OUTSIDE the shared cache — for callers that mutate the tree.
const parseMutable: (expr: string) => Expressionpercentile
const
const percentile: typeof _huukhanhnguyen_geometry_catalog_statValue.percentileperlin
const
const perlin: typeof _huukhanhnguyen_geometry_catalog_noiseValue.perlinplanarization
namespace
namespace planarizationMembers: facePlanarize
plane
namespace
namespace planeMembers: distance, fromPointNormal, normal, point
planeMatrix
function
planeMatrix(face: ShellEntity): Transformation$1planeNormal
function
planeNormal(face: ShellEntity): Point$1pointCloudValue
namespace
namespace pointCloudValueMembers: bounds, centroid, cluster, convexHull, downsample, fitPlane, nearest, normals, principalAxes
pointInLoops
const
const pointInLoops: typeof pointInLoopsPRINCIPAL_VIEW_BASIS
const
const PRINCIPAL_VIEW_BASIS: typeof PRINCIPAL_VIEW_BASISprojection
namespace
namespace projectionMembers: PRINCIPAL_VIEW_BASIS, add3D, chainCutLoops, clipMeshToPlane, clipPolygonToWindow, clipSegmentToLoops, clipSegmentToWindow, dot3D, forwardOf, length3D, pointInLoops, scale3D, sectionBasis, subtract3D, viewForwardOf
quaternionValue
namespace
namespace quaternionValueMembers: fromAxisAngle, fromEuler, identity, multiply, rotate, slerp, toAxisAngle, toEuler
randomValue
namespace
namespace randomValueMembers: integer, normal, pointsInLoops, uniform, value
rgb
const
const rgb: typeof _huukhanhnguyen_geometry_catalog_colorValue.rgbrotation
const
const rotation: typeof rotationsaturate
const
const saturate: typeof _huukhanhnguyen_geometry_catalog_colorValue.saturatescale
const
const scale: typeof _huukhanhnguyen_geometry_catalog_vector.scalescale3D
const
const scale3D: typeof scale3Dscaling
const
const scaling: typeof scalingsection
namespace
namespace sectionMembers: clipFaces, sectionCut, sectionCutWithPatterns, sectionPlane, stampCutPatternHatches
sectionBasis
const
const sectionBasis: typeof sectionBasissiteSunDirection
function
Unit vector TOWARD the sun in model space (Z-up, +Y = project north before northAngle). This is what resolveEnvironment turns settings.environment into (document/environment.ts); project a silhouette along its negation for a shadow range. Below the horizon the vector simply has z < 0 — the caller decides whether a night study means "no shadows".
siteSunDirection(site: Site, moment: SunMoment): [number, number, number]siteSunPosition
function
Altitude/azimuth of the sun (degrees). Azimuth is the compass bearing of the sun measured from true north, clockwise (90 = east, 180 = south).
siteSunPosition(site: Site, moment: SunMoment): { altitudeDegrees: number; azimuthDegrees: number; }skeleton
namespace
namespace skeletonMembers: evaluateAnimationChain, evaluateSkeletonChain, evaluateTrackNode, faceSkeleton, jointWorldPoses, jointsToNestedNodes
slerp
const
const slerp: typeof slerpsolid
namespace
namespace solidMembers: asFaces, curveFill, edgeFillet, extrude, faceEdgeDissolve, faceExtrude, faceVertexDelete, faceVertexMove, faceVertexRotate, faceVertexScale, facesToMesh, facesToTriangleMesh, isClosedSolid, markWholeArray, meshToFaces, nurbsToFaces, solidIntersect, solidSelfUnionImpl, solidSubtract, solidUnion, sweep, tessellateFaces, vertexFillet
solidValue
namespace
namespace solidValueMembers: centroid, isClosed, surfaceArea, toFaces, volume
statValue
namespace
namespace statValueMembers: fitLine, max, mean, median, min, percentile, std, sum, variance
std
const
const std: typeof _huukhanhnguyen_geometry_catalog_statValue.stdsubdivision
namespace
namespace subdivisionMembers: triangleArea, weldTriangleMesh
subtract
const
const subtract: typeof _huukhanhnguyen_geometry_catalog_vector.subtractsubtract3D
const
const subtract3D: typeof subtract3Dsum
const
const sum: typeof _huukhanhnguyen_geometry_catalog_statValue.sumsurfaceValue
namespace
namespace surfaceValueMembers: area, curvature, isocurve, normalAt, pointAt
toAxisAngle
const
const toAxisAngle: typeof toAxisAngletoEuler
const
const toEuler: typeof toEulertransformValue
namespace
namespace transformValueMembers: apply, applyVector, compose, invert, rotation, scaling, translation
translate
const
const translate: typeof translatetranslation
const
const translation: typeof translationturbulence
const
const turbulence: typeof _huukhanhnguyen_geometry_catalog_noiseValue.turbulenceunfold
namespace
namespace unfoldMembers: faceUnfold
UnitSymbols
const
const UnitSymbols: Record<UnitType, Record<string, string>>variance
const
const variance: typeof _huukhanhnguyen_geometry_catalog_statValue.varianceviewForwardOf
const
const viewForwardOf: typeof viewForwardOf