Skip to content

Commit

Permalink
rayshader v0.38.1: Fix bug with render_polygons() due to new raymesh …
Browse files Browse the repository at this point in the history
…structure
  • Loading branch information
tylermorganwall committed May 11, 2024
1 parent f91b725 commit 53498da
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Package: rayshader
Type: Package
Title: Create Maps and Visualize Data in 2D and 3D
Version: 0.38.0
Date: 2024-03-28
Version: 0.38.1
Date: 2024-05-10
Authors@R:
person("Tyler", "Morgan-Wall", email = "[email protected]",role = c("aut", "cph", "cre"),
comment = c(ORCID = "0000-0002-3131-3814"))
Expand Down
2 changes: 1 addition & 1 deletion R/render_polygons.R
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ render_polygons = function(polygon, extent, color = "red", top = 1, bottom = NA
mesh = rayrender::extruded_polygon(polygon[i,],top=top,bottom=bottom,
data_column_top=data_column_top,
data_column_bottom=data_column_bottom,
scale_data=scale_data,holes=holes)$mesh_info[[1]]
scale_data=scale_data,holes=holes)$shape_info[[1]]$mesh_info[[1]]
mesh_obj = rgl::mesh3d(vertices=c(t(mesh$vertices)),
triangles =c(t(mesh$indices))+1)
vertex_list[[i]] = mesh_obj
Expand Down

0 comments on commit 53498da

Please sign in to comment.