Hide menu
Loading...
Searching...
No Matches
Sheet Metal Nesting Example

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.

Preview

Sheet Metal Nesting

What It Demonstrates

Use this example to study layout-oriented manufacturing results:

  • import only nesting process data;
  • read sheet-metal analyses from converted MTK model folders;
  • switch among the available original, unfolded, and nested analysis views;
  • use a 3D camera for original parts and a top 2D camera for unfolded or nested layouts;
  • preserve analysis-driven refresh events as the display mode changes.

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.

User Flow

  1. Start the examples with the server-backed command.
  2. Open Sheet Metal Nesting.
  3. Import or choose a converted nesting model.
  4. Switch analyses or available display modes from the analysis controls.
  5. Inspect an available nested layout in the 2D top view.

Key Files

User Interface Components

Source Description
NestingImport
react/src/pages/mtk/nesting-import/NestingImport.tsx
Import route component. It restricts available processes and preview cards to nesting results.
AnalysisImport
react/src/pages/mtk/analysis-import/AnalysisImport.tsx
Shared import page for server availability, STEP conversion, folder import, and converted preview selection.
NestingViewer
react/src/pages/mtk/nesting-viewer/NestingViewer.tsx
Viewer route component. It loads nesting data, renders analysis controls, analysis information, and the viewport.
AnalysisSelectAndViewControls
react/src/pages/mtk/analysis-viewer/ui/analysis-select-and-view-controls/AnalysisSelectAndViewControls.tsx
Selects current analysis and switches sheet-metal display modes.
AnalysisInformationPanel
react/src/pages/mtk/nesting-viewer/ui/analysis-information-panel/AnalysisInformationPanel.tsx
Displays sheet-metal and nesting details for the current analysis.

Core Logic Classes

Source Description
NestingViewer
shared/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.
NestingAnalysisData
shared/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.
NestingAnalysisBuilder
shared/src/features/mtk/analysis/nesting/NestingAnalysisBuilder.ts
Converts nesting process data into sheet-metal nesting analyses.
ManufacturingAnalysis
shared/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.
SheetMetalAnalysisData
shared/src/features/mtk/analysis/sheet-metal/SheetMetalAnalysisData.ts
Defines the sheet-metal target analysis data schema reused by sheet-metal processing.
AnalysisSession
shared/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.