+ implement 'swap' for point kernel class to efficiently copy data
This commit is contained in:
parent
9a27d5845f
commit
372704f44b
|
@ -83,6 +83,8 @@ public:
|
||||||
{ return this->_Points; }
|
{ return this->_Points; }
|
||||||
void setBasicPoints(const std::vector<value_type>& pts)
|
void setBasicPoints(const std::vector<value_type>& pts)
|
||||||
{ this->_Points = pts; }
|
{ this->_Points = pts; }
|
||||||
|
void swap(std::vector<value_type>& pts)
|
||||||
|
{ this->_Points.swap(pts); }
|
||||||
void getFaces(std::vector<Base::Vector3d> &Points,std::vector<Facet> &Topo,
|
void getFaces(std::vector<Base::Vector3d> &Points,std::vector<Facet> &Topo,
|
||||||
float Accuracy, uint16_t flags=0) const;
|
float Accuracy, uint16_t flags=0) const;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user