File tree Expand file tree Collapse file tree
infrastructure/mongodb/models Expand file tree Collapse file tree Original file line number Diff line number Diff 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 {
Original file line number Diff line number Diff 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
5960export interface TopographicBoundary {
Original file line number Diff line number Diff 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 ,
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments