Subject: CGAL users discussion list
List archive
- From: vanessa <>
- To:
- Subject: [cgal-discuss] build error when reconstruction surface without normals
- Date: Sun, 2 Feb 2014 09:32:53 -0800 (PST)
Hi all
I'm currently trying to reconstruct some meshes based on a xyz point set
without normals.
Managed to do it with normals_example and poisson_reconstruction_example,
but when I am trying to merge them together, the errors occur as follows:
1>c:\program files\cgal-4.2-beta1\include\cgal\kernel_traits.h(33): error
C2039: 'R' : is not a member of 'std::pair<_Ty1,_Ty2>'
1> with
1> [
1> _Ty1=Point,
1> _Ty2=Vector
1> ]
1> c:\program
files\cgal-4.2-beta1\include\cgal\poisson_reconstruction_function.h(304) :
see reference to class template instantiation 'CGAL::Kernel_traits<T>' being
compiled
1> with
1> [
1> T=std::pair<Point,Vector>
1> ]
1> f:\surfacewithoutnormal.cpp(88) : see reference to function
template instantiation
'CGAL::Poisson_reconstruction_function<Gt>::Poisson_reconstruction_function<std::_List_iterator<_Mylist>,CGAL::First_of_pair_property_map<Pair>,CGAL::Second_of_pair_property_map<Pair>>(InputIterator,InputIterator,PointPMap,NormalPMap)'
being compiled
1> with
1> [
1> Gt=Kernel,
1>
_Mylist=std::_List_val<PointVectorPair,std::allocator<PointVectorPair>>,
1> Pair=PointVectorPair,
1>
InputIterator=std::_List_iterator<std::_List_val<PointVectorPair,std::allocator<PointVectorPair>>>,
1> PointPMap=CGAL::First_of_pair_property_map<PointVectorPair>,
1>
NormalPMap=CGAL::Second_of_pair_property_map<PointVectorPair>
1> ]
1>c:\program files\cgal-4.2-beta1\include\cgal\kernel_traits.h(33): error
C2146: syntax error : missing ';' before identifier 'Kernel'
1>c:\program files\cgal-4.2-beta1\include\cgal\kernel_traits.h(33): error
C4430: missing type specifier - int assumed. Note: C++ does not support
default-int
1>c:\program files\cgal-4.2-beta1\include\cgal\kernel_traits.h(33): error
C2208: 'CGAL::Exact_predicates_inexact_constructions_kernel' : no members
defined using this type
1>c:\program files\cgal-4.2-beta1\include\cgal\kernel_traits.h(33): fatal
error C1903: unable to recover from previous error(s); stopping compilation
1>
1>Build FAILED.
Here I use <Point, Vector> to represent the points with normals and use the
First_of_pair_property_map and Second_of_pair_property_map as the parameters
in the poisson function. Attached is the combined code.
I have no ideas about what is wrong.
Any help will be greated appreciated. surfacewithoutnormal.cpp
<http://cgal-discuss.949826.n4.nabble.com/file/n4658740/surfacewithoutnormal.cpp>
--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/build-error-when-reconstruction-surface-without-normals-tp4658740.html
Sent from the cgal-discuss mailing list archive at Nabble.com.
- [cgal-discuss] build error when reconstruction surface without normals, vanessa, 02/02/2014
- Re: [cgal-discuss] build error when reconstruction surface without normals, Sebastien Loriot (GeometryFactory), 02/03/2014
- Re: [cgal-discuss] build error when reconstruction surface without normals, vanessa, 02/03/2014
- Re: [cgal-discuss] build error when reconstruction surface without normals, Sebastien Loriot (GeometryFactory), 02/03/2014
- Re: [cgal-discuss] build error when reconstruction surface without normals, vanessa, 02/03/2014
- Re: [cgal-discuss] build error when reconstruction surface without normals, Sebastien Loriot (GeometryFactory), 02/03/2014
Archive powered by MHonArc 2.6.18.