inst/pyramid-stl-x3p.R

library(rgl)

x3p <- read_x3p("inst/pyramid.x3p")

z <- x3p$surface.matrix


open3d()
surface3d(x=(1:5), y = (1:5), z = x3p$surface.matrix)
writeSTL("inst/pyramid.stl")

Try the x3ptools package in your browser

Any scripts or data that you put into this service are public.

x3ptools documentation built on May 29, 2024, 10:33 a.m.