The Sheet Metal Nesting example displays converted sheet-metal nesting data. It switches among available original, unfolded, and nested views, with 3D or 2D camera modes according to the active view. An unfolded view is available only when the converted process data includes that stage.
Use this example to study layout-oriented manufacturing results:
The shared NestingViewer inherits analysis loading, current-analysis state, scene roots, view-based camera updates, and cleanup from BaseAnalysisViewer. Its own specialization leaves drawing-sheet nested views with their imported materials while other active views use the default analysis material resolver.
| Source | Description |
|---|---|
NestingImportreact/src/pages/mtk/nesting-import/NestingImport.tsx | Import route component. It restricts available processes and preview cards to nesting results. |
AnalysisImportreact/src/pages/mtk/analysis-import/AnalysisImport.tsx | Shared import page for server availability, STEP conversion, folder import, and converted preview selection. |
NestingViewerreact/src/pages/mtk/nesting-viewer/NestingViewer.tsx | Viewer route component. It loads nesting data, renders analysis controls, analysis information, and the viewport. |
AnalysisSelectAndViewControlsreact/src/pages/mtk/analysis-viewer/ui/analysis-select-and-view-controls/AnalysisSelectAndViewControls.tsx | Selects current analysis and switches sheet-metal display modes. |
AnalysisInformationPanelreact/src/pages/mtk/nesting-viewer/ui/analysis-information-panel/AnalysisInformationPanel.tsx | Displays sheet-metal and nesting details for the current analysis. |
| Source | Description |
|---|---|
NestingViewershared/src/viewers/mtk/nesting-viewer/NestingViewer.ts | Inherits analysis loading, current-analysis switching, and camera behavior from BaseAnalysisViewer. Customizes material resolution so drawing-sheet nested views keep their imported materials while other views use the default analysis materials. |
NestingAnalysisDatashared/src/features/mtk/analysis/nesting/NestingAnalysisData.ts | Defines the nesting target data schema reused from flat-pattern data and the nested-sheet process-data schema. |
NestingAnalysisBuildershared/src/features/mtk/analysis/nesting/NestingAnalysisBuilder.ts | Converts nesting process data into sheet-metal nesting analyses. |
ManufacturingAnalysisshared/src/features/mtk/analysis/base/ManufacturingAnalysis.ts | Stores the target, process metadata, views, analysis trees, item geometry, and target-level import error used by every manufacturing analysis. |
SheetMetalAnalysisDatashared/src/features/mtk/analysis/sheet-metal/SheetMetalAnalysisData.ts | Defines the sheet-metal target analysis data schema reused by sheet-metal processing. |
AnalysisSessionshared/src/features/mtk/import/AnalysisSession.ts | Reads converted nesting folders through a FileSource. |
shared/src/features/mtk/analysis/sheet-metal/ | Contains sheet-metal analysis data, the sheet-metal process definition, and the base sheet-metal analysis builder reused by nesting. |
shared/src/features/mtk/analysis/nesting/ | Defines nesting process-data schemas and builds the nested sheet view. |