Skip to Content.
Sympa Menu

cgal-discuss - Re: [cgal-discuss] A problem on sdf example

Subject: CGAL users discussion list

List archive

Re: [cgal-discuss] A problem on sdf example


Chronological Thread 
  • From: "Sebastien Loriot (GeometryFactory)" <>
  • To:
  • Subject: Re: [cgal-discuss] A problem on sdf example
  • Date: Mon, 21 Jul 2014 09:26:07 +0200
  • Organization: GeometryFactory

Your problem is not related to CGAL but to C++.

SDFPropertyMap is not defined in your class. So either it's a template
parameter and you're missing a template< class SDFPropertyMap> before
the function declaration and definition, or it should be nested type
in the class and you're missing a typedef.

Sebastien.


On 07/21/2014 08:49 AM, sean wrote:
Thank you for your answer and my code is as follows:
class MeshSegmentation//the class
{

private:
//sdf
// create a property-map
typedef map<Polyhedron::Facet_const_handle, double> Facet_double_map;
Facet_double_map internal_map;
boost::associative_property_map<Facet_double_map> sdf_property_map;

Polyhedron m_pPolyhedron;

public:

MeshSegmentation(Polyhedron&
pPolyhedron):sdf_property_map(internal_map),m_pPolyhedron(pPolyhedron){}
void SDFSegmentation(const Polyhedron &polyhedron, SDFPropertyMap
sdf_values_map);
};

void MeshSegmentation::SDFSegmentation(const Polyhedron &polyhedron,
SDFPropertyMap sdf_values_map)
{
// compute SDF values
std::pair<double, double> min_max_sdf = CGAL::sdf_values(polyhedron,
sdf_values_map);
}

The compiler can't identify "SDFPropertyMap "
Three ".h" files, " <CGAL/IO/Polyhedron_iostream.h>
<CGAL/mesh_segmentation.h> <CGAL/property_map.h>" was included in my code.




--
View this message in context:
http://cgal-discuss.949826.n4.nabble.com/A-problem-on-sdf-example-tp4659574p4659580.html
Sent from the cgal-discuss mailing list archive at Nabble.com.





Archive powered by MHonArc 2.6.18.

Top of Page