From 4b2ae57a3369541f39b401e4098210144008584d Mon Sep 17 00:00:00 2001 From: William French Date: Mon, 2 Jun 2025 14:24:15 -0700 Subject: [PATCH 1/2] fix: Removes duplicate vertices This PR removes duplicate vertices from 3d-polygon and 3d-polygon-extruded-hole. --- samples/3d-polygon/index.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/samples/3d-polygon/index.ts b/samples/3d-polygon/index.ts index 4bc0c6bd..1c1beb2e 100644 --- a/samples/3d-polygon/index.ts +++ b/samples/3d-polygon/index.ts @@ -28,8 +28,7 @@ async function init() { examplePolygon.outerCoordinates = [ { lat: 40.7144, lng: -74.0208 }, { lat: 40.6993, lng: -74.019 }, - { lat: 40.7035, lng: -74.0004 }, - { lat: 40.7144, lng: -74.0208 } + { lat: 40.7035, lng: -74.0004 } ]; map3DElement.append(examplePolygon); From 3b233fca3cec30b51d276fe778e6021d0e160df3 Mon Sep 17 00:00:00 2001 From: William French Date: Mon, 2 Jun 2025 14:25:37 -0700 Subject: [PATCH 2/2] fix: Removes duplicate vertices --- samples/3d-polygon-extruded-hole/index.ts | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/samples/3d-polygon-extruded-hole/index.ts b/samples/3d-polygon-extruded-hole/index.ts index f4fd8b59..1a11de44 100644 --- a/samples/3d-polygon-extruded-hole/index.ts +++ b/samples/3d-polygon-extruded-hole/index.ts @@ -30,16 +30,14 @@ async function init() { examplePolygon.outerCoordinates = [ { lat: 40.7144, lng: -74.0208, altitude: 200 }, { lat: 40.6993, lng: -74.019, altitude: 200 }, - { lat: 40.7035, lng: -74.0004, altitude: 200 }, - { lat: 40.7144, lng: -74.0208, altitude: 200 } + { lat: 40.7035, lng: -74.0004, altitude: 200 } ]; examplePolygon.innerCoordinates = [ [ { lat: 40.71, lng: -74.0175, altitude: 200 }, { lat: 40.703, lng: -74.0165, altitude: 200 }, - { lat: 40.7035, lng: -74.006, altitude: 200 }, - { lat: 40.71, lng: -74.0175, altitude: 200 } + { lat: 40.7035, lng: -74.006, altitude: 200 } ] ];