Something went wrong. Try again.
[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft. flo-bit.dev/shapecraft
Something went wrong. Try again.
3.2 kB · 59 lines
TypeScript
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960// Coreexport { Mesh } from './core/mesh'export { Asset, part, group, type Socket } from './core/asset'export { material, VERTEX_COLOR_MATERIAL, type Material } from './core/material'export type { Vec2, Vec3, Vec4, ColorInput, ColorFn, DisplaceFn, WarpFn, NoiseLike } from './core/types'
// Primitivesexport { box, sphere, cylinder, plane, cone, torus, icosphere } from './primitives'
// Operationsexport { merge, center, clone, loft, tube, thicken, snow, decimate, weld, mirror, array, radialArray, boolean, union, subtract, intersect, extrudeFaces, insetFaces, bevel } from './ops'export type { SnowOptions, DecimateOptions, WeldOptions, MirrorOptions, ArrayOptions, RadialArrayOptions, BooleanOp, ExtrudeOptions, InsetOptions, BevelOptions, FaceFilter } from './ops'
// Modifiersexport { twist, bend, taper } from './modifiers'export { smooth } from './modifiers/smooth'
// Colorexport { gradient, heightGradient, normalGradient, lerpColor, parseColorToRgb, hexToRgb, rgbToHex } from './color'export { pickRandom, paletteGradient, axisGradient, noiseColor, varyColor, type Palette } from './color'
// UVexport { projectUVs } from './uv'
// Texture (full field/pattern toolkit via 'shapecraft/texture')export { rasterize, noiseField, voronoi, normalMap, textureStyles } from './texture'export type { Field, TextureData, TextureStyle } from './texture'
// Style profiles — cross-cutting style system (see 'shapecraft/style')export { lowpoly, ghibli, styles, resolveStyle, stylePalette, styleMaterial } from './style'export type { StyleProfile, StyleGeometry, StyleInput } from './style'
// Utilitiesexport { createRng } from './core/rng'export type { Rng } from './core/rng'export { scatterOnSphere } from './core/scatter'
// Build — composable model primitivesexport { setup, trunk, foliageBlob, facetShade, heightShade, scatterOnSurface, blade, branches, metaballs, surfaceNets } from './build'export type { TrunkOptions, FoliageBlobOptions, FacetShadeOptions, SurfacePoint, ScatterOnSurfaceOptions, BladeOptions, BranchesOptions, BranchResult, BranchTip, MetaBall, MetaballsOptions, SurfaceNetsOptions } from './build'
// Schema & optionsexport { resolveOptions } from './core/schema'export type { OptionSchema, OptionDef, OptionValues, OptionInput, Randomizable } from './core/schema'
// Generatorsexport { tree, treeSchema, treePresets } from './generators'export { pine, pineSchema, pinePresets } from './generators'export { palm, palmSchema, palmPresets } from './generators'export { bush, bushSchema, bushPresets } from './generators'export { grass, grassSchema, grassPresets } from './generators'export { fern, fernSchema, fernPresets } from './generators'export { flower, flowerSchema, flowerPresets } from './generators'export { deadTree, deadTreeSchema, deadTreePresets } from './generators'export { leafyTree, leafyTreeSchema, leafyTreePresets } from './generators'export { rock, rockSchema, rockPresets } from './generators'export { sharpRock, sharpRockSchema, sharpRockPresets } from './generators'export { blockRock, blockRockSchema, blockRockPresets } from './generators'export { mushroom, mushroomSchema, mushroomPresets } from './generators'