+ function to create points from mesh

This commit is contained in:
wmayer
2016-03-04 16:00:08 +01:00
parent a5e6edff87
commit 288841cf98
4 changed files with 58 additions and 6 deletions

View File

@@ -252,6 +252,16 @@ MeshPoint MeshObject::getPoint(unsigned long index) const
return point;
}
void MeshObject::getPoints(std::vector<Base::Vector3d> &Points,
float Accuracy, uint16_t flags) const
{
unsigned long ctpoints = _kernel.CountPoints();
Points.reserve(ctpoints);
for (unsigned long i=0; i<ctpoints; i++) {
Points.push_back(this->getPoint(i));
}
}
Mesh::Facet MeshObject::getFacet(unsigned long index) const
{
Mesh::Facet face(_kernel.GetFacets()[index], const_cast<MeshObject*>(this), index);