@kruschdev/pascal-plugin-mit-assets 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ASSETS.md +298 -0
- package/LICENSE +21 -0
- package/README.md +71 -2
- package/dist/agent-operations.d.ts +8 -0
- package/dist/agent-operations.js +305 -0
- package/dist/agent-tools.d.ts +7 -0
- package/dist/agent-tools.js +128 -0
- package/dist/audit.d.ts +78 -0
- package/dist/bin/pascal-mit-assets.js +5238 -0
- package/dist/bom.d.ts +123 -0
- package/dist/cad/appliance-mep-builders.d.ts +7 -0
- package/dist/cad/furniture-builders.d.ts +9 -0
- package/dist/cad/index.d.ts +48 -0
- package/dist/cad/index.js +23 -0
- package/dist/cad/kitchen-bath-builders.d.ts +9 -0
- package/dist/cad/outdoor-fenestration-builders.d.ts +8 -0
- package/dist/cad/primitives.d.ts +56 -0
- package/dist/cad/props-vehicles-builders.d.ts +8 -0
- package/dist/chunk-2qgndrap.js +5200 -0
- package/dist/chunk-6hzyh6qv.js +346 -0
- package/dist/chunk-f72r2bmp.js +84 -0
- package/dist/chunk-hqgm57dv.js +310 -0
- package/dist/chunk-kgwk6kan.js +150 -0
- package/dist/chunk-raafkn3w.js +286 -0
- package/dist/chunk-vzmjt9dz.js +4380 -0
- package/dist/chunk-xhkwv6t4.js +5080 -0
- package/dist/hdri/index.d.ts +1 -0
- package/dist/hdri/index.js +322 -0
- package/dist/hdri/sky.d.ts +26 -0
- package/dist/index.d.ts +30 -0
- package/dist/index.js +198 -0
- package/dist/manifest.d.ts +46 -0
- package/dist/materials/index.d.ts +10 -0
- package/dist/materials/index.js +1464 -0
- package/dist/materials/ktx2.d.ts +10 -0
- package/dist/materials/noise.d.ts +89 -0
- package/dist/materials/patterns.d.ts +15 -0
- package/dist/nodes/mit-item.d.ts +76 -0
- package/dist/render.d.ts +10 -0
- package/dist/render.js +24 -0
- package/dist/scripts/build-assets.js +17129 -0
- package/dist/sfx/index.d.ts +1 -0
- package/dist/sfx/index.js +1223 -0
- package/dist/sfx/synth.d.ts +25 -0
- package/dist/sku-crosswalk.d.ts +46 -0
- package/dist/ui/chat-card.d.ts +7 -0
- package/dist/ui/host-panel.d.ts +1 -0
- package/dist/ui/inspector-card.d.ts +4 -0
- package/dist/ui/schedule-view.d.ts +1 -0
- package/package.json +135 -4
- package/src/agent-operations.ts +373 -0
- package/src/agent-tools.ts +136 -0
- package/src/audit.ts +356 -0
- package/src/bom.ts +512 -0
- package/src/cad/appliance-mep-builders.ts +1336 -0
- package/src/cad/furniture-builders.ts +1622 -0
- package/src/cad/index.ts +993 -0
- package/src/cad/kitchen-bath-builders.ts +1189 -0
- package/src/cad/outdoor-fenestration-builders.ts +1499 -0
- package/src/cad/primitives.ts +286 -0
- package/src/cad/props-vehicles-builders.ts +1065 -0
- package/src/hdri/index.ts +5 -0
- package/src/hdri/sky.ts +481 -0
- package/src/index.ts +127 -0
- package/src/manifest.ts +5296 -0
- package/src/materials/index.ts +56 -0
- package/src/materials/ktx2.ts +138 -0
- package/src/materials/noise.ts +417 -0
- package/src/materials/patterns.ts +1507 -0
- package/src/nodes/mit-item.ts +163 -0
- package/src/render.ts +25 -0
- package/src/sfx/index.ts +6 -0
- package/src/sfx/synth.ts +1495 -0
- package/src/sku-crosswalk.ts +3868 -0
- package/src/ui/chat-card.tsx +93 -0
- package/src/ui/host-panel.tsx +330 -0
- package/src/ui/inspector-card.tsx +213 -0
- package/src/ui/schedule-view.tsx +188 -0
package/dist/bom.d.ts
ADDED
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Priced Multi-Trade Real-SKU Procurement BOM & `pascal-bom/1.1` Fragment Adapter (`src/bom.ts`).
|
|
3
|
+
* Ties every clean-room MIT 3D item and PBR material pack directly into CSI MasterFormat
|
|
4
|
+
* pricing, markup/tax rollups, formula-safe CSV export, and `@kruschdev/pascal-mep-kernel/bom`.
|
|
5
|
+
*
|
|
6
|
+
* Strictly pure TypeScript: zero React, Three.js, viewer, editor, or node:* imports.
|
|
7
|
+
*/
|
|
8
|
+
import { type MitBomTrade, type MitItemSkuRecord } from './sku-crosswalk';
|
|
9
|
+
export interface MitAssetsBomLine {
|
|
10
|
+
readonly sku: string;
|
|
11
|
+
readonly slug: string;
|
|
12
|
+
readonly catalogSku: string | null;
|
|
13
|
+
readonly catalogRecipeId: string | null;
|
|
14
|
+
readonly manufacturer: string;
|
|
15
|
+
readonly series: string;
|
|
16
|
+
readonly name: string;
|
|
17
|
+
readonly trade: MitBomTrade;
|
|
18
|
+
readonly csiDivision: string;
|
|
19
|
+
readonly retailCategory: string;
|
|
20
|
+
readonly retailChannel: string;
|
|
21
|
+
readonly unitOfMeasure: string;
|
|
22
|
+
readonly quantity: number;
|
|
23
|
+
readonly unitPriceUsd: number;
|
|
24
|
+
readonly extendedUsd: number;
|
|
25
|
+
readonly pricingSource: MitItemSkuRecord['pricingSource'];
|
|
26
|
+
readonly nodeIds: readonly string[];
|
|
27
|
+
}
|
|
28
|
+
export interface MitAssetsBomOptions {
|
|
29
|
+
readonly markupPct?: number;
|
|
30
|
+
readonly salesTaxPct?: number;
|
|
31
|
+
/** Optional surface material takeoff quantities (e.g. `{ 'wood/wood_parquet_14': 12 }` boxes/sqft). */
|
|
32
|
+
readonly materialQuantities?: Readonly<Record<string, number>>;
|
|
33
|
+
/** Also price legacy Pascal `item` nodes whose `asset.src` maps to a known MIT slug. Default: true. */
|
|
34
|
+
readonly includeMappedPascalItems?: boolean;
|
|
35
|
+
}
|
|
36
|
+
export interface MitAssetsBomResult {
|
|
37
|
+
readonly itemCount: number;
|
|
38
|
+
readonly uniqueSkuCount: number;
|
|
39
|
+
readonly catalogLinkedSkuCount: number;
|
|
40
|
+
readonly lines: readonly MitAssetsBomLine[];
|
|
41
|
+
readonly subtotalByTrade: Readonly<Record<string, number>>;
|
|
42
|
+
readonly subtotalByCsi: Readonly<Record<string, number>>;
|
|
43
|
+
readonly materialSubtotalUsd: number;
|
|
44
|
+
readonly markupPct: number;
|
|
45
|
+
readonly markupUsd: number;
|
|
46
|
+
readonly salesTaxPct: number;
|
|
47
|
+
readonly salesTaxUsd: number;
|
|
48
|
+
readonly grandTotalUsd: number;
|
|
49
|
+
readonly unpricedNodeIds: readonly string[];
|
|
50
|
+
}
|
|
51
|
+
/**
|
|
52
|
+
* Canonical `pascal-bom/1.1` `PascalBomLine` & `PascalBomFragment` shapes matching
|
|
53
|
+
* `@kruschdev/pascal-mep-kernel/bom` (`mergePascalBoms()` + `assertValidPascalBomDocument()`),
|
|
54
|
+
* keeping `@kruschdev/pascal-plugin-mit-assets` standalone with zero mandatory workspace deps.
|
|
55
|
+
*/
|
|
56
|
+
export type MitBomUnit = 'ea' | 'lf' | 'sf' | 'sy' | 'cy' | 'cf' | 'lb' | 'gal' | 'box' | 'bag' | 'roll' | 'stick' | 'sheet' | 'panel' | 'bundle' | 'sq' | 'coil' | 'ls' | 'hr';
|
|
57
|
+
export interface MitPascalBomFragmentLine {
|
|
58
|
+
readonly lineId: string;
|
|
59
|
+
readonly classification: {
|
|
60
|
+
readonly csiMasterFormat: string;
|
|
61
|
+
readonly csiDivision: string;
|
|
62
|
+
readonly csiDivisionTitle: string;
|
|
63
|
+
readonly uniFormat: string;
|
|
64
|
+
readonly trade: MitBomTrade;
|
|
65
|
+
readonly category: string;
|
|
66
|
+
readonly retailCategory?: string;
|
|
67
|
+
};
|
|
68
|
+
readonly identity: {
|
|
69
|
+
readonly sku: string;
|
|
70
|
+
readonly name: string;
|
|
71
|
+
readonly manufacturer?: string;
|
|
72
|
+
readonly series?: string;
|
|
73
|
+
readonly cadSlug?: string;
|
|
74
|
+
};
|
|
75
|
+
readonly cost: {
|
|
76
|
+
readonly quantity: number;
|
|
77
|
+
readonly wastePct: number;
|
|
78
|
+
readonly unit: MitBomUnit;
|
|
79
|
+
readonly unitLabel?: string;
|
|
80
|
+
readonly unitMaterialUsd: number;
|
|
81
|
+
readonly extendedMaterialUsd: number;
|
|
82
|
+
readonly laborHoursPerUnit: number;
|
|
83
|
+
readonly extendedLaborHours: number;
|
|
84
|
+
readonly laborRateUsd: number;
|
|
85
|
+
readonly extendedLaborUsd: number;
|
|
86
|
+
readonly unitEquipmentUsd: number;
|
|
87
|
+
readonly extendedEquipmentUsd: number;
|
|
88
|
+
readonly extendedTotalUsd: number;
|
|
89
|
+
};
|
|
90
|
+
readonly provenance: {
|
|
91
|
+
readonly sourcePlugin: 'custom';
|
|
92
|
+
readonly costScope: 'finish-sku';
|
|
93
|
+
readonly nodeIds: readonly string[];
|
|
94
|
+
readonly levels: readonly string[];
|
|
95
|
+
readonly rooms: readonly string[];
|
|
96
|
+
};
|
|
97
|
+
readonly partRef: {
|
|
98
|
+
readonly canonicalPartId: string;
|
|
99
|
+
readonly ontologyConcept: string;
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
export interface MitPascalBomFragment {
|
|
103
|
+
readonly schemaVersion: 'pascal-bom/1.1';
|
|
104
|
+
readonly plugin: 'custom';
|
|
105
|
+
readonly pluginVersion: '0.1.0';
|
|
106
|
+
readonly laborIncluded: false;
|
|
107
|
+
readonly lines: readonly MitPascalBomFragmentLine[];
|
|
108
|
+
readonly diagnostics: readonly {
|
|
109
|
+
readonly severity: 'warning';
|
|
110
|
+
readonly code: 'UNKNOWN_SKU_NODE';
|
|
111
|
+
readonly plugin: 'custom';
|
|
112
|
+
readonly message: string;
|
|
113
|
+
readonly nodeIds: readonly string[];
|
|
114
|
+
}[];
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* Aggregate placed `mit-assets:item` nodes (plus optional mapped Pascal `item` nodes and
|
|
118
|
+
* material takeoff quantities) into a CSI MasterFormat priced BOM.
|
|
119
|
+
*/
|
|
120
|
+
export declare function buildMitAssetsBom(nodes: Readonly<Record<string, unknown>>, options?: MitAssetsBomOptions): MitAssetsBomResult;
|
|
121
|
+
export declare function toMitAssetsPascalBom(bom: MitAssetsBomResult): MitPascalBomFragment;
|
|
122
|
+
export declare function buildMitAssetsPascalBom(nodes: Readonly<Record<string, unknown>>, options?: MitAssetsBomOptions): MitPascalBomFragment;
|
|
123
|
+
export declare function formatMitAssetsBomCsv(bom: MitAssetsBomResult): string;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clean-room MIT Parametric 3D CAD Builders: Appliances, HVAC, MEP & Safety.
|
|
3
|
+
* Strictly Three.js + ./primitives only. Zero React, @pascal-app/*, Next, or node:* imports.
|
|
4
|
+
* Never caches global materials; uses only the passed MaterialPalette.
|
|
5
|
+
*/
|
|
6
|
+
import { type SlugBuilderFn } from './primitives';
|
|
7
|
+
export declare const APPLIANCE_MEP_BUILDERS: Record<string, SlugBuilderFn>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clean-room MIT parametric 3D CAD builders for Furniture, Seating, Beds, Tables,
|
|
3
|
+
* Desks, Storage, Soft Goods, Mirrors, Art, Fireplaces, Interior Lighting & Laundry.
|
|
4
|
+
*
|
|
5
|
+
* Strictly React-free, editor-free, and node:*-free.
|
|
6
|
+
* Every builder uses only materials from the per-call MaterialPalette `p`.
|
|
7
|
+
*/
|
|
8
|
+
import { type SlugBuilderFn } from './primitives';
|
|
9
|
+
export declare const FURNITURE_BUILDERS: Record<string, SlugBuilderFn>;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Unified 155-Item Clean-Room MIT Parametric 3D CAD Registry (`@kruschdev/pascal-plugin-mit-assets/cad`).
|
|
3
|
+
* Strictly React-free, editor-free, and node:*-free.
|
|
4
|
+
*/
|
|
5
|
+
import * as THREE from 'three';
|
|
6
|
+
import { type SlugBuilderFn } from './primitives';
|
|
7
|
+
export { createMitMaterialPalette, normalizeAndGroundGroup } from './primitives';
|
|
8
|
+
export type { MaterialPalette, SlugBuilderFn } from './primitives';
|
|
9
|
+
export declare const ALL_MIT_ITEM_BUILDERS: Readonly<Record<string, SlugBuilderFn>>;
|
|
10
|
+
export type MitCadBuildOptions = {
|
|
11
|
+
readonly widthM?: number;
|
|
12
|
+
readonly heightM?: number;
|
|
13
|
+
readonly depthM?: number;
|
|
14
|
+
readonly accentHex?: number;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Slugs whose Pascal `CATALOG_ITEMS` `dimensions` encode a narrow trunk/pole footprint
|
|
18
|
+
* rather than the overhanging canopy diameter (`patio-umbrella`, `palm`, `tree`, `fir-tree`).
|
|
19
|
+
* These scale uniformly to match exact target height `h` while preserving natural crown width.
|
|
20
|
+
*/
|
|
21
|
+
export declare const CANOPY_OVERHANG_SLUGS: ReadonlySet<string>;
|
|
22
|
+
/**
|
|
23
|
+
* Build a clean-room MIT procedural Three.js `Group` for any of the 155 Pascal item slugs.
|
|
24
|
+
* Guaranteed grounded at `y = 0`, centered on `x = 0, z = 0`, matching target `[w, h, d]`
|
|
25
|
+
* (or exact target `h` with natural canopy overhang for trunk/pole-footprint botanicals & umbrellas).
|
|
26
|
+
*/
|
|
27
|
+
export declare function buildMitItemCad(slugOrId: string, options?: MitCadBuildOptions): THREE.Group;
|
|
28
|
+
export declare function listSupportedMitCadSlugs(): string[];
|
|
29
|
+
/**
|
|
30
|
+
* Generate a crisp architectural 2D top-down CAD drafting SVG (`128x128`) for any item slug.
|
|
31
|
+
* Uses standard architectural plan conventions (door swing arcs, stair treads + UP arrow,
|
|
32
|
+
* sanitary fixture bowls/drains, stove burners, cushion/pillow lines, canopy ribs, etc.).
|
|
33
|
+
*/
|
|
34
|
+
export declare function renderFloorPlanSvg(slug: string, widthM: number, depthM: number): string;
|
|
35
|
+
/**
|
|
36
|
+
* True per-pixel Z-buffered software 3D rasterizer (pure TypeScript, zero GPU/browser deps).
|
|
37
|
+
* Renders crisp 2x2 supersampled studio thumbnails (`RGBA8`) with exact per-pixel depth testing,
|
|
38
|
+
* eliminating painter's-algorithm diagonal triangle overlap on flush doors, screens, felt, and trim.
|
|
39
|
+
*/
|
|
40
|
+
export declare function renderIsometricPreviewRgba(group: THREE.Group, outSize?: number): {
|
|
41
|
+
width: number;
|
|
42
|
+
height: number;
|
|
43
|
+
rgba: Uint8ClampedArray;
|
|
44
|
+
};
|
|
45
|
+
/**
|
|
46
|
+
* Deterministic software 3D triangle renderer (SVG).
|
|
47
|
+
*/
|
|
48
|
+
export declare function renderIsometricPreviewSvg(group: THREE.Group, label: string, _category?: string): string;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import {
|
|
2
|
+
createMitMaterialPalette2,
|
|
3
|
+
normalizeAndGroundGroup2,
|
|
4
|
+
ALL_MIT_ITEM_BUILDERS2,
|
|
5
|
+
CANOPY_OVERHANG_SLUGS2,
|
|
6
|
+
buildMitItemCad2,
|
|
7
|
+
listSupportedMitCadSlugs2,
|
|
8
|
+
renderFloorPlanSvg2,
|
|
9
|
+
renderIsometricPreviewRgba2,
|
|
10
|
+
renderIsometricPreviewSvg2
|
|
11
|
+
} from "../chunk-xhkwv6t4.js";
|
|
12
|
+
import"../chunk-2qgndrap.js";
|
|
13
|
+
export {
|
|
14
|
+
ALL_MIT_ITEM_BUILDERS2 as ALL_MIT_ITEM_BUILDERS,
|
|
15
|
+
CANOPY_OVERHANG_SLUGS2 as CANOPY_OVERHANG_SLUGS,
|
|
16
|
+
buildMitItemCad2 as buildMitItemCad,
|
|
17
|
+
createMitMaterialPalette2 as createMitMaterialPalette,
|
|
18
|
+
listSupportedMitCadSlugs2 as listSupportedMitCadSlugs,
|
|
19
|
+
normalizeAndGroundGroup2 as normalizeAndGroundGroup,
|
|
20
|
+
renderFloorPlanSvg2 as renderFloorPlanSvg,
|
|
21
|
+
renderIsometricPreviewRgba2 as renderIsometricPreviewRgba,
|
|
22
|
+
renderIsometricPreviewSvg2 as renderIsometricPreviewSvg
|
|
23
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clean-room MIT parametric 3D CAD builders for Kitchen & Bathroom fixtures,
|
|
3
|
+
* cabinetry, appliances, tableware, and plumbing hardware.
|
|
4
|
+
*
|
|
5
|
+
* Strictly React-free, editor-free, and node:*-free.
|
|
6
|
+
* Every builder uses only materials from the per-call MaterialPalette `p`.
|
|
7
|
+
*/
|
|
8
|
+
import { type SlugBuilderFn } from './primitives';
|
|
9
|
+
export declare const KITCHEN_BATH_BUILDERS: Record<string, SlugBuilderFn>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clean-room MIT Parametric 3D CAD Builders:
|
|
3
|
+
* Doors, Windows, Stairs, Columns, Fences, Outdoor Structures & Botanicals.
|
|
4
|
+
* Strictly Three.js + ./primitives only. Zero React, @pascal-app/*, Next, or node:* imports.
|
|
5
|
+
* Never caches global materials; uses only the passed MaterialPalette.
|
|
6
|
+
*/
|
|
7
|
+
import { type SlugBuilderFn } from './primitives';
|
|
8
|
+
export declare const OUTDOOR_FENESTRATION_BUILDERS: Record<string, SlugBuilderFn>;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Shared clean-room MIT procedural Three.js geometry & fresh PBR material helpers.
|
|
3
|
+
* Strictly React-free, editor-free, and node:*-free.
|
|
4
|
+
*
|
|
5
|
+
* INVARIANT: Always create fresh materials per build call (never cache global singletons)
|
|
6
|
+
* so Pascal <GeometrySystem> disposal never breaks sibling meshes.
|
|
7
|
+
*/
|
|
8
|
+
import * as THREE from 'three';
|
|
9
|
+
export type MaterialPalette = {
|
|
10
|
+
woodWarm: THREE.MeshStandardMaterial;
|
|
11
|
+
woodDark: THREE.MeshStandardMaterial;
|
|
12
|
+
woodLight: THREE.MeshStandardMaterial;
|
|
13
|
+
fabricNeutral: THREE.MeshStandardMaterial;
|
|
14
|
+
fabricAccent: THREE.MeshStandardMaterial;
|
|
15
|
+
leatherDark: THREE.MeshStandardMaterial;
|
|
16
|
+
metalChrome: THREE.MeshStandardMaterial;
|
|
17
|
+
metalBrushed: THREE.MeshStandardMaterial;
|
|
18
|
+
metalDark: THREE.MeshStandardMaterial;
|
|
19
|
+
metalCopper: THREE.MeshStandardMaterial;
|
|
20
|
+
ceramicWhite: THREE.MeshStandardMaterial;
|
|
21
|
+
ceramicMatte: THREE.MeshStandardMaterial;
|
|
22
|
+
glass: THREE.MeshStandardMaterial;
|
|
23
|
+
mirror: THREE.MeshStandardMaterial;
|
|
24
|
+
plasticWhite: THREE.MeshStandardMaterial;
|
|
25
|
+
plasticDark: THREE.MeshStandardMaterial;
|
|
26
|
+
rubberBlack: THREE.MeshStandardMaterial;
|
|
27
|
+
foliageDark: THREE.MeshStandardMaterial;
|
|
28
|
+
foliageLight: THREE.MeshStandardMaterial;
|
|
29
|
+
barkBrown: THREE.MeshStandardMaterial;
|
|
30
|
+
terracotta: THREE.MeshStandardMaterial;
|
|
31
|
+
stoneLight: THREE.MeshStandardMaterial;
|
|
32
|
+
stoneDark: THREE.MeshStandardMaterial;
|
|
33
|
+
screenGlow: THREE.MeshStandardMaterial;
|
|
34
|
+
emissiveWarm: THREE.MeshStandardMaterial;
|
|
35
|
+
emissiveGreen: THREE.MeshStandardMaterial;
|
|
36
|
+
emissiveRed: THREE.MeshStandardMaterial;
|
|
37
|
+
feltGreen: THREE.MeshStandardMaterial;
|
|
38
|
+
paintRed: THREE.MeshStandardMaterial;
|
|
39
|
+
paintBlue: THREE.MeshStandardMaterial;
|
|
40
|
+
paintYellow: THREE.MeshStandardMaterial;
|
|
41
|
+
paintWhite: THREE.MeshStandardMaterial;
|
|
42
|
+
custom: (hex: number, roughness?: number, metalness?: number) => THREE.MeshStandardMaterial;
|
|
43
|
+
};
|
|
44
|
+
export declare function createMitMaterialPalette(accentHex?: number): MaterialPalette;
|
|
45
|
+
export declare function addBox(parent: THREE.Object3D, w: number, h: number, d: number, x: number, y: number, z: number, material: THREE.Material, rot?: [number, number, number]): THREE.Mesh;
|
|
46
|
+
export declare function addCyl(parent: THREE.Object3D, rTop: number, rBot: number, h: number, x: number, y: number, z: number, material: THREE.Material, radialSegments?: number, rot?: [number, number, number]): THREE.Mesh;
|
|
47
|
+
export declare function addSphere(parent: THREE.Object3D, r: number, x: number, y: number, z: number, material: THREE.Material, scale?: [number, number, number], segments?: number): THREE.Mesh;
|
|
48
|
+
export declare function addTorus(parent: THREE.Object3D, r: number, tube: number, x: number, y: number, z: number, material: THREE.Material, rot?: [number, number, number]): THREE.Mesh;
|
|
49
|
+
export declare function addRoundedRectExtrude(parent: THREE.Object3D, w: number, d: number, h: number, radius: number, x: number, y: number, z: number, material: THREE.Material): THREE.Mesh;
|
|
50
|
+
export declare function addFourLegs(parent: THREE.Object3D, w: number, d: number, legH: number, legR: number, inset: number, material: THREE.Material, taperRatio?: number): void;
|
|
51
|
+
/**
|
|
52
|
+
* Fits a procedurally built group cleanly into exact target [w, h, d] bounds,
|
|
53
|
+
* centered on X/Z and resting on Y = 0.
|
|
54
|
+
*/
|
|
55
|
+
export declare function normalizeAndGroundGroup(inner: THREE.Group, targetW: number, targetH: number, targetD: number): THREE.Group;
|
|
56
|
+
export type SlugBuilderFn = (w: number, h: number, d: number, p: MaterialPalette, slug: string) => THREE.Group;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Clean-room MIT Parametric 3D CAD Builders:
|
|
3
|
+
* Vehicles, Mobility, Gym, Sports, Musical Instruments, Games & Props.
|
|
4
|
+
* Strictly Three.js + ./primitives only. Zero React, @pascal-app/*, Next, or node:* imports.
|
|
5
|
+
* Never caches global materials; uses only the passed MaterialPalette.
|
|
6
|
+
*/
|
|
7
|
+
import { type SlugBuilderFn } from './primitives';
|
|
8
|
+
export declare const PROPS_VEHICLES_BUILDERS: Record<string, SlugBuilderFn>;
|