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-clang/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:266:70: runtime error: reference binding to null pointer of type 'CGAL::Delaunay_triangulation_cell_base_3>, CGAL::Triangulation_cell_base_with_info_3>, CGAL::Triangulation_cell_base_3>, CGAL::Triangulation_ds_cell_base_3>>, CGAL::Delaunay_triangulation_cell_base_3>, CGAL::Triangulation_cell_base_with_info_3>>>>>>>>' #0 0x7f2529f51e46 in CGAL::Poisson_reconstruction_function::Cell_hint::get() const /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:266:14 #1 0x7f2529f51548 in CGAL::Poisson_reconstruction_function::operator()(CGAL::Point_3 const&) const /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:619:31 #2 0x7f2529d2e28d in std::__1::function)>::operator()(CGAL::Point_3) const /usr/local/bin/../include/c++/v1/__functional/function.h:1184:12 #3 0x7f2529d2e28d in CGAL::Implicit_surface_3 >::operator()(CGAL::Point_3) const /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Implicit_surface_3.h:64:14 #4 0x7f2529d2e28d in 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>::Intersect_3::surf_equation(CGAL::Implicit_surface_3 > const&, CGAL::Point_3 const&) /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:325:34 #5 0x7f2529d2df16 in 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>::Intersect_3::operator()(CGAL::Implicit_surface_3 > const&, CGAL::Segment_3) /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:252:12 #6 0x7f2529d2d616 in CGAL::Insert_iterator, 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>::Construct_initial_points::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> > >(CGAL::Implicit_surface_3 > const&, CGAL::Insert_iterator, 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> >, int) /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Surface_mesher/Implicit_surface_oracle_3.h:446:22 #7 0x7f2529d2d616 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::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>(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::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>::Surface_3 const&, 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> 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-clang/RcppCGAL/include/CGAL/make_surface_mesh.h:92:3 #8 0x7f2529d3c229 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-clang/RcppCGAL/include/CGAL/make_surface_mesh.h:51:3 #9 0x7f2529d3c229 in bool CGAL::poisson_surface_reconstruction_delaunay, 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>(std::__1::__wrap_iter, CGAL::Vector_3 >*>, std::__1::__wrap_iter, 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-clang/RcppCGAL/include/CGAL/poisson_surface_reconstruction.h:126:5 #10 0x7f2529d2ab40 in Poisson_reconstruction_cpp(Rcpp::Matrix<14, Rcpp::PreserveStorage>, Rcpp::Matrix<14, Rcpp::PreserveStorage>, double, double, double, double) /data/gannet/ripley/R/packages/tests-clang-SAN/SurfaceReconstruction/src/reconstruction.cpp:155:20 #11 0x7f2529baf9fb in _SurfaceReconstruction_Poisson_reconstruction_cpp /data/gannet/ripley/R/packages/tests-clang-SAN/SurfaceReconstruction/src/RcppExports.cpp:73:34 #12 0x6eb8e1 in R_doDotCall /data/gannet/ripley/R/svn/R-devel/src/main/dotcode.c:617:17 #13 0x84882e in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7682:21 #14 0x829ade in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:748:8 #15 0x891fd3 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #16 0x88dc7f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1844:16 #17 0x84e96f in bcEval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:7094:12 #18 0x829ade in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:748:8 #19 0x891fd3 in R_execClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c #20 0x88dc7f in Rf_applyClosure /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:1844:16 #21 0x82a518 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:871:12 #22 0x89e0d1 in do_set /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:2981:8 #23 0x829ec8 in Rf_eval /data/gannet/ripley/R/svn/R-devel/src/main/eval.c:823:12 #24 0x95ade6 in Rf_ReplIteration /data/gannet/ripley/R/svn/R-devel/src/main/main.c:264:2 #25 0x95e340 in R_ReplConsole /data/gannet/ripley/R/svn/R-devel/src/main/main.c:316:11 #26 0x95e149 in run_Rmainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1194:5 #27 0x95e482 in Rf_mainloop /data/gannet/ripley/R/svn/R-devel/src/main/main.c:1201:5 #28 0x4f30ba in main /data/gannet/ripley/R/svn/R-devel/src/main/Rmain.c:29:5 #29 0x7f253b85cb74 in __libc_start_main (/lib64/libc.so.6+0x27b74) (BuildId: 08df60634339b221bb854d4e10b7278cafde70c4) #30 0x43231d in _start (/data/gannet/ripley/R/R-clang-SAN/bin/exec/R+0x43231d) SUMMARY: UndefinedBehaviorSanitizer: undefined-behavior /data/gannet/ripley/R/test-clang/RcppCGAL/include/CGAL/Poisson_reconstruction_function.h:266:70 in 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) > > > > ### *