R Under development (unstable) (2022-08-09 r82699) -- "Unsuffered Consequences" Copyright (C) 2022 The R Foundation for Statistical Computing Platform: x86_64-pc-linux-gnu (64-bit) R is free software and comes with ABSOLUTELY NO WARRANTY. You are welcome to redistribute it under certain conditions. Type 'license()' or 'licence()' for distribution details. Natural language support but running in an English locale R is a collaborative project with many contributors. Type 'contributors()' for more information and 'citation()' on how to cite R or R packages in publications. Type 'demo()' for some demos, 'help()' for on-line help, or 'help.start()' for an HTML browser interface to help. Type 'q()' to quit R. > pkgname <- "SurfaceReconstruction" > source(file.path(R.home("share"), "R", "examples-header.R")) > options(warn = 1) > library('SurfaceReconstruction') > > base::assign(".oldSearch", base::search(), pos = 'CheckExEnv') > base::assign(".old_wd", base::getwd(), pos = 'CheckExEnv') > cleanEx() > nameEx("AFSreconstruction") > ### * AFSreconstruction > > flush(stderr()); flush(stdout()) > > ### Name: AFSreconstruction > ### Title: Advancing front surface reconstruction > ### Aliases: AFSreconstruction > > ### ** Examples > > library(SurfaceReconstruction) > data(bunny, package = "onion") > mesh <- AFSreconstruction(bunny) > library(rgl) > shade3d(mesh, color = "firebrick") > > > > cleanEx() detaching ‘package:rgl’ > nameEx("PoissonReconstruction") > ### * PoissonReconstruction > > flush(stderr()); flush(stdout()) > > ### Name: PoissonReconstruction > ### Title: Poisson surface reconstruction > ### Aliases: PoissonReconstruction > > ### ** Examples > > library(SurfaceReconstruction) > library(rgl) > > # Solid Möbius strip > Psr_mesh <- PoissonReconstruction(SolidMobiusStrip) /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:266:70: runtime error: reference binding to null pointer of type 'struct value_type' #0 0x7f806a9c4eab in CGAL::Poisson_reconstruction_function::Cell_hint::get() const /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:266 #1 0x7f806a9c4eab in CGAL::Poisson_reconstruction_function::operator()(CGAL::Point_3 const&) const /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:619 #2 0x7f806a23d7d9 in std::function)>::operator()(CGAL::Point_3) const /usr/include/c++/11/bits/std_function.h:590 #3 0x7f806a23d7d9 in CGAL::Implicit_surface_3 >::operator()(CGAL::Point_3) const /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Implicit_surface_3.h:64 #4 0x7f806a23d7d9 in surf_equation /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:325 #5 0x7f806a23d7d9 in operator() /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:252 #6 0x7f806a23d7d9 in operator(), CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> > > /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:446 #7 0x7f806a23d7d9 in make_surface_mesh, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> >, CGAL::Surface_mesher::Implicit_surface_oracle_3 >, CGAL::INTERN_RET::Real_embeddable_traits_base >::Sgn, CGAL::Surface_mesher::(anonymous namespace)::Return_min, CGAL::Creator_uniform_3 >, CGAL::Surface_mesher::Null_oracle_visitor>, CGAL::Surface_mesh_default_criteria_3, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> >, CGAL::Manifold_with_boundary_tag> /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/make_surface_mesh.h:92 #8 0x7f806a2674bd in void CGAL::make_surface_mesh, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> >, CGAL::Implicit_surface_3 >, CGAL::Surface_mesh_default_criteria_3, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> >, CGAL::Manifold_with_boundary_tag>(CGAL::Surface_mesh_complex_2_in_triangulation_3, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> >&, CGAL::Implicit_surface_3 > const&, CGAL::Surface_mesh_default_criteria_3, CGAL::Triangulation_data_structure_3, CGAL::Triangulation_vertex_base_3, CGAL::Triangulation_ds_vertex_base_3 > >, CGAL::Delaunay_triangulation_cell_base_with_circumcenter_3, CGAL::Surface_mesh_cell_base_3, CGAL::Delaunay_triangulation_cell_base_3, CGAL::Triangulation_cell_base_3, CGAL::Triangulation_ds_cell_base_3 > > > >, CGAL::Sequential_tag>, CGAL::Default, CGAL::Default> > const&, CGAL::Manifold_with_boundary_tag, int) /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/make_surface_mesh.h:51 #9 0x7f806a2674bd in bool CGAL::poisson_surface_reconstruction_delaunay<__gnu_cxx::__normal_iterator, CGAL::Vector_3 >*, std::vector, CGAL::Vector_3 >, std::allocator, CGAL::Vector_3 > > > >, CGAL::First_of_pair_property_map, CGAL::Vector_3 > >, CGAL::Second_of_pair_property_map, CGAL::Vector_3 > >, CGAL::Polyhedron_3 >, CGAL::Manifold_with_boundary_tag>(__gnu_cxx::__normal_iterator, CGAL::Vector_3 >*, std::vector, CGAL::Vector_3 >, std::allocator, CGAL::Vector_3 > > > >, __gnu_cxx::__normal_iterator, CGAL::Vector_3 >*, std::vector, CGAL::Vector_3 >, std::allocator, CGAL::Vector_3 > > > >, CGAL::First_of_pair_property_map, CGAL::Vector_3 > >, CGAL::Second_of_pair_property_map, CGAL::Vector_3 > >, CGAL::Polyhedron_3 >&, double, double, double, double, CGAL::Manifold_with_boundary_tag) /data/gannet/ripley/R/test-dev/RcppCGAL/include/CGAL/poisson_surface_reconstruction.h:126 #10 0x7f806a2674bd in Poisson_reconstruction_cpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, double, double, double, double) /data/gannet/ripley/R/packages/tests-gcc-SAN/SurfaceReconstruction/src/reconstruction.cpp:155 #11 0x7f8069bd0065 in _SurfaceReconstruction_Poisson_reconstruction_cpp /data/gannet/ripley/R/packages/tests-gcc-SAN/SurfaceReconstruction/src/RcppExports.cpp:73 #12 0x580137 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:617 #13 0x63a716 in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7682 #14 0x6731d7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:748 #15 0x6782b0 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1918 #16 0x67a6a7 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1844 #17 0x647faf in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7094 #18 0x6731d7 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:748 #19 0x6782b0 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1918 #20 0x67a6a7 in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1844 #21 0x67384f in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:871 #22 0x67f929 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2981 #23 0x673c70 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:823 #24 0x6f7fed in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264 #25 0x6f8680 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:316 #26 0x6f87c4 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1194 #27 0x6f8812 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1201 #28 0x41b418 in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29 #29 0x7f8080159b74 in __libc_start_main (/lib64/libc.so.6+0x27b74) #30 0x41dc1d in _start (/data/gannet/ripley/R/gcc-SAN/bin/exec/R+0x41dc1d) Poisson reconstruction using average spacing: 0.03691. > shade3d(Psr_mesh, color= "yellow") > wire3d(Psr_mesh, color = "black") > > # Hopf torus > Psr_mesh <- PoissonReconstruction(HopfTorus, spacing = 0.2) > shade3d(Psr_mesh, color= "darkorange") > wire3d(Psr_mesh, color = "black") > > > > cleanEx() detaching ‘package:rgl’ > nameEx("getSomeNormals") > ### * getSomeNormals > > flush(stderr()); flush(stdout()) > > ### Name: getSomeNormals > ### Title: Normals for a points could > ### Aliases: getSomeNormals > > ### ** Examples > > library(SurfaceReconstruction) > library(rgl) > psr <- PoissonReconstruction(ICN5D_eight, getSomeNormals(6)) Poisson reconstruction using average spacing: 0.1178. > open3d() null 2 > shade3d(psr, color = "cyan") > wire3d(psr) > > > > ### *