Skip to content

Commit

Permalink
Update geometry_handler.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hanruihua committed Jan 8, 2025
1 parent b2312e5 commit 9355386
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions irsim/lib/handler/geometry_handler.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,15 +98,15 @@ def vertices(self):
x = self.geometry.xy[0]
y = self.geometry.xy[1]
return np.c_[x, y].T
return self.geometry.exterior.coords._coords.T
return self.geometry.exterior.coords._coords.T[:, :-1]

@property
def init_vertices(self):
if self.name == "linestring":
x = self._init_geometry.xy[0]
y = self._init_geometry.xy[1]
return np.c_[x, y].T
return self._init_geometry.exterior.coords._coords.T
return self._init_geometry.exterior.coords._coords.T[:, :-1]

@property
def radius(self):
Expand Down

0 comments on commit 9355386

Please sign in to comment.