Skip to content

Commit

Permalink
refine test
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaMan123 committed Dec 16, 2024
1 parent 1ef7406 commit db5e23f
Show file tree
Hide file tree
Showing 6 changed files with 4,081 additions and 91 deletions.
2 changes: 0 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,6 @@
/bin
/minkowski
/deepnest-*win32-x64
/output
# package-lock.json
git_token.rtf
.idea
*.zip
Expand Down
44 changes: 44 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
export type DeepNestConfig = {
units: "mm" | "inch";
scale: number;
spacing: number;
curveTolerance: number;
clipperScale: number;
rotations: number;
threads: number;
populationSize: number;
mutationRate: number;
placementType: "gravity" | "box" | "convexhull";
mergeLines: boolean;
/**
* ratio of material reduction to laser time. 0 = optimize material only, 1 = optimize laser time only
*/
timeRatio: number;
simplify: boolean;
dxfImportScale: number;
dxfExportScale: number;
endpointTolerance: number;
conversionServer: string;
};

export type SheetPlacement = {
filename: string;
id: number;
rotation: number;
source: number;
x: number;
y: number;
};

export type NestingResult = {
area: number;
fitness: number;
index: number;
mergedLength: number;
selected: boolean;
placements: {
sheet: number;
sheetid: number;
sheetplacements: SheetPlacement[];
}[];
};
Loading

0 comments on commit db5e23f

Please sign in to comment.