Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] build error when reconstruction surface without normals

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] build error when reconstruction surface without normals


Chronological Thread 
  • From: deeFisher <>
  • To:
  • Subject: Re: [cgal-discuss] build error when reconstruction surface without normals
  • Date: Tue, 2 Dec 2014 05:15:59 -0800 (PST)

I'm getting a similar error with cgal 4.5... whilst trying to carry out a
surface reconstruction without any external .xyz file. I'm trying to remesh
an existing polyhedron basically.

with the Exact_predicates_inexact_constructions_kernel Kernel;

i'm trying to:

-get the points (kernel::point_3) from a polyhedron,
-work out all the vertex normals (kernel::vector_3),
-combine them into a std::vector<Point_with_normal> (below)
-then call the Poisson_reconstruction_function function (below)

typedef CGAL::Point_with_normal_3<Kernel> Point_with_normal;
typedef std::vector<Point_with_normal> PointList;

PointList PVpoints;
for (int i = 0; i < mPoints.size(); i++){
Point_with_normal p(mPoints[i], vNormals[i]);

PVpoints.push_back(p);
}

Poisson_reconstruction_function function(PVpoints.begin(),
PVpoints.end(),

CGAL::make_normal_of_point_with_normal_pmap(PVpoints.begin()));

I don't fully understand the whole pmap thing... but the above code shows
the only place i've used the function in my program... the errors i get are
below:

Error 4 error C2039: 'R' : is not a member of
'std::back_insert_iterator<PointList>' c:\Program Files
(x86)\CGAL-4.5-beta1\include\CGAL\Kernel_traits.h 33 1
embody_mesh
Error 5 error C2146: syntax error : missing ';' before identifier
'Kernel'
c:\Program Files (x86)\CGAL-4.5-beta1\include\CGAL\Kernel_traits.h 33
1
embody_mesh
Error 6 error C4430: missing type specifier - int assumed. Note: C++
does
not support default-int c:\Program Files
(x86)\CGAL-4.5-beta1\include\CGAL\Kernel_traits.h 33 1
embody_mesh
Error 7 error C2208:
'CGAL::Exact_predicates_inexact_constructions_kernel' :
no members defined using this type c:\Program Files
(x86)\CGAL-4.5-beta1\include\CGAL\Kernel_traits.h 33 1
embody_mesh
Error 8 error C1903: unable to recover from previous error(s);
stopping
compilation c:\Program Files
(x86)\CGAL-4.5-beta1\include\CGAL\Kernel_traits.h 33 1
embody_mesh


any ideas?



--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/build-error-when-reconstruction-surface-without-normals-tp4658740p4660205.html
Sent from the cgal-discuss mailing list archive at Nabble.com.



Archive powered by MHonArc 2.6.18.

Top of Page