Skip to content

Commit ba190e1

Browse files
committed
main
1 parent de09567 commit ba190e1

5 files changed

Lines changed: 6 additions & 1 deletion

File tree

src/adapters/validators/PlanValidator.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,7 @@ export class PlanValidator {
9191
boundary_label_scale: 'numeric',
9292
tin: 'boolean',
9393
grid: 'boolean',
94+
show_mesh: 'boolean',
9495
};
9596

9697
try {

src/domain/entities/Plan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ export interface TopographicSetting {
5454
boundary_label_scale: number;
5555
tin?: boolean;
5656
grid?: boolean;
57+
show_mesh?: boolean;
5758
}
5859

5960
export interface TopographicBoundary {

src/infrastructure/mongodb/models/Plan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ export const topographicSettingSchema = new Schema(
145145
boundary_label_scale: Number,
146146
tin: Boolean,
147147
grid: Boolean,
148+
show_mesh: Boolean,
148149
},
149150
{
150151
_id: false,

src/use-cases/plan/CreatePlan.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,8 @@ export class CreatePlan {
6161
show_boundary: true,
6262
boundary_label_scale: 0.2,
6363
tin: false,
64-
grid: false,
64+
grid: true,
65+
show_mesh: false,
6566
};
6667
}
6768

src/use-cases/plan/GeneratePlan.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export class GeneratePlan {
6969

7070
plan.topographic_boundary.legs = backComputationResult.traverse_legs;
7171
plan.topographic_boundary.area = backComputationResult.traverse.area;
72+
plan.topographic_setting?.show_mesh = false;
7273
}
7374

7475
// call python server to generate plan

0 commit comments

Comments
 (0)