[READ-ONLY] Mirror of https://github.com/flo-bit/shapecraft.
flo-bit.dev/shapecraft/
3.2 kB
59 lines
1// Core
2export { Mesh } from './core/mesh'
3export { Asset, part, group, type Socket } from './core/asset'
4export { material, VERTEX_COLOR_MATERIAL, type Material } from './core/material'
5export type { Vec2, Vec3, Vec4, ColorInput, ColorFn, DisplaceFn, WarpFn, NoiseLike } from './core/types'
6
7// Primitives
8export { box, sphere, cylinder, plane, cone, torus, icosphere } from './primitives'
9
10// Operations
11export { merge, center, clone, loft, tube, thicken, snow, decimate, weld, mirror, array, radialArray, boolean, union, subtract, intersect, extrudeFaces, insetFaces, bevel } from './ops'
12export type { SnowOptions, DecimateOptions, WeldOptions, MirrorOptions, ArrayOptions, RadialArrayOptions, BooleanOp, ExtrudeOptions, InsetOptions, BevelOptions, FaceFilter } from './ops'
13
14// Modifiers
15export { twist, bend, taper } from './modifiers'
16export { smooth } from './modifiers/smooth'
17
18// Color
19export { gradient, heightGradient, normalGradient, lerpColor, parseColorToRgb, hexToRgb, rgbToHex } from './color'
20export { pickRandom, paletteGradient, axisGradient, noiseColor, varyColor, type Palette } from './color'
21
22// UV
23export { projectUVs } from './uv'
24
25// Texture (full field/pattern toolkit via 'shapecraft/texture')
26export { rasterize, noiseField, voronoi, normalMap, textureStyles } from './texture'
27export type { Field, TextureData, TextureStyle } from './texture'
28
29// Style profiles — cross-cutting style system (see 'shapecraft/style')
30export { lowpoly, ghibli, styles, resolveStyle, stylePalette, styleMaterial } from './style'
31export type { StyleProfile, StyleGeometry, StyleInput } from './style'
32
33// Utilities
34export { createRng } from './core/rng'
35export type { Rng } from './core/rng'
36export { scatterOnSphere } from './core/scatter'
37
38// Build — composable model primitives
39export { setup, trunk, foliageBlob, facetShade, heightShade, scatterOnSurface, blade, branches, metaballs, surfaceNets } from './build'
40export type { TrunkOptions, FoliageBlobOptions, FacetShadeOptions, SurfacePoint, ScatterOnSurfaceOptions, BladeOptions, BranchesOptions, BranchResult, BranchTip, MetaBall, MetaballsOptions, SurfaceNetsOptions } from './build'
41
42// Schema & options
43export { resolveOptions } from './core/schema'
44export type { OptionSchema, OptionDef, OptionValues, OptionInput, Randomizable } from './core/schema'
45
46// Generators
47export { tree, treeSchema, treePresets } from './generators'
48export { pine, pineSchema, pinePresets } from './generators'
49export { palm, palmSchema, palmPresets } from './generators'
50export { bush, bushSchema, bushPresets } from './generators'
51export { grass, grassSchema, grassPresets } from './generators'
52export { fern, fernSchema, fernPresets } from './generators'
53export { flower, flowerSchema, flowerPresets } from './generators'
54export { deadTree, deadTreeSchema, deadTreePresets } from './generators'
55export { leafyTree, leafyTreeSchema, leafyTreePresets } from './generators'
56export { rock, rockSchema, rockPresets } from './generators'
57export { sharpRock, sharpRockSchema, sharpRockPresets } from './generators'
58export { blockRock, blockRockSchema, blockRockPresets } from './generators'
59export { mushroom, mushroomSchema, mushroomPresets } from './generators'