mirror of https://github.com/CGAL/cgal
Make the VertexCostMap a member of the policy
If the dynamic property map isn't attached to the mesh, this could not work previously.
This commit is contained in:
parent
55bb46a383
commit
6cbb0d0712
|
|
@ -170,9 +170,9 @@ public:
|
|||
GarlandHeckbert_policies(TriangleMesh& tmesh,
|
||||
const FT discontinuity_multiplier = FT(100))
|
||||
{
|
||||
Vertex_cost_map vcm = get(Cost_property(), tmesh);
|
||||
get_cost_ = Get_cost(vcm, discontinuity_multiplier);
|
||||
get_placement_ = Get_placement(vcm);
|
||||
vcm_ = get(Cost_property(), tmesh);
|
||||
get_cost_ = Get_cost(vcm_, discontinuity_multiplier);
|
||||
get_placement_ = Get_placement(vcm_);
|
||||
}
|
||||
|
||||
Get_cost& get_cost() { return get_cost_; }
|
||||
|
|
@ -181,6 +181,7 @@ public:
|
|||
const Get_placement& get_placement() const { return get_placement_; }
|
||||
|
||||
private:
|
||||
Vertex_cost_map vcm_;
|
||||
Get_cost get_cost_;
|
||||
Get_placement get_placement_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue