trimesh icon indicating copy to clipboard operation
trimesh copied to clipboard

[WIP] Refactor Path

Open mikedh opened this issue 1 year ago • 0 comments

trimesh.Path is one of the older parts of the library and has some warts. To match the data model of Shapely more closely the following fields were moved:

  • Path2D.polygons_closed -> Path2D.linear_ring
  • Path2D.polygons_full -> Path2D.polygons
  • Path2D.paths -> Path2D.entity_cycles
  • Path2D.discrete -> Path2D.discrete_cycles

There are wrappers with deprecation warnings for the old methods for now.

mikedh avatar Mar 01 '24 20:03 mikedh