tests/testthat/test-stl_to_x3p.R

test_that("read STL file", {
  stl <- stl_to_x3p(system.file("pyramid.stl", package="x3ptools"))
  x3p <- x3p_read(system.file("pyramid.x3p", package="x3ptools"))
  expect_identical(stl$surface.matrix, x3p$surface.matrix)
  expect_equal(stl %>% x3p_get_scale(), x3p %>% x3p_get_scale())
})

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.