1- import { TriangleListPrimitive , type Point3 } from "@foxglove/schemas" ;
2- import { Time } from "@foxglove/schemas" ;
1+ import { TriangleListPrimitive , Time } from "@foxglove/schemas" ;
32import { LaneBoundary , LaneBoundary_Classification_Type , Lane } from "@lichtblick/asam-osi-types" ;
43import {
54 pointListToTriangleListPrimitive ,
@@ -42,7 +41,7 @@ export function buildLaneBoundaryEntity(
4241 // Create LaneBoundaryPoint objects using only necessary fields for rendering
4342 const laneBoundaryPoints = osiLaneBoundary . boundary_line . map ( ( point ) => {
4443 return {
45- position : { x : point . position . x , y : point . position . y , z : point . position . z } as Point3 ,
44+ position : { x : point . position . x , y : point . position . y , z : point . position . z } ,
4645 width : point . width === 0 ? LANE_BOUNDARY_MIN_RENDERING_WIDTH : point . width , // prevent zero-width lane boundaries from being invisible
4746 height : point . height ,
4847 dash : point . dash ,
@@ -83,7 +82,7 @@ export function buildLaneEntity(
8382 for ( const lb of osiLeftLaneBoundaries ) {
8483 const laneBoundaryPoints = lb . boundary_line . map ( ( point ) => {
8584 return {
86- position : { x : point . position . x , y : point . position . y , z : point . position . z } as Point3 ,
85+ position : { x : point . position . x , y : point . position . y , z : point . position . z } ,
8786 width : point . width === 0 ? LANE_BOUNDARY_MIN_RENDERING_WIDTH : point . width , // prevent zero-width lane boundaries from being invisible
8887 height : point . height ,
8988 dash : point . dash ,
@@ -95,7 +94,7 @@ export function buildLaneEntity(
9594 for ( const lb of osiRightLaneBoundaries ) {
9695 const laneBoundaryPoints = lb . boundary_line . map ( ( point ) => {
9796 return {
98- position : { x : point . position . x , y : point . position . y , z : point . position . z } as Point3 ,
97+ position : { x : point . position . x , y : point . position . y , z : point . position . z } ,
9998 width : point . width === 0 ? LANE_BOUNDARY_MIN_RENDERING_WIDTH : point . width , // prevent zero-width lane boundaries from being invisible
10099 height : point . height ,
101100 dash : point . dash ,
@@ -109,7 +108,7 @@ export function buildLaneEntity(
109108 if ( LANE_CENTERLINE_SHOW ) {
110109 const centerlinePoints = osiLane . classification . centerline . map ( ( point ) => {
111110 return {
112- position : { x : point . x , y : point . y , z : point . z } as Point3 ,
111+ position : { x : point . x , y : point . y , z : point . z } ,
113112 width : LANE_CENTERLINE_WIDTH ,
114113 height : 0 ,
115114 } ;
0 commit comments