0001137: Incomplete slices when using Part.slice on a torus

This commit is contained in:
wmayer
2013-08-25 17:31:04 +02:00
parent 224d17a984
commit 6257d923ad
3 changed files with 99 additions and 42 deletions

View File

@@ -1306,7 +1306,7 @@ TopoDS_Shape TopoShape::section(TopoDS_Shape shape) const
std::list<TopoDS_Wire> TopoShape::slice(const Base::Vector3d& dir, double d) const
{
CrossSection cs(dir.x, dir.y, dir.z, this->_Shape);
return cs.section(d);
return cs.slice(d);
}
TopoDS_Compound TopoShape::slices(const Base::Vector3d& dir, const std::vector<double>& d) const
@@ -1314,7 +1314,7 @@ TopoDS_Compound TopoShape::slices(const Base::Vector3d& dir, const std::vector<d
std::vector< std::list<TopoDS_Wire> > wire_list;
CrossSection cs(dir.x, dir.y, dir.z, this->_Shape);
for (std::vector<double>::const_iterator jt = d.begin(); jt != d.end(); ++jt) {
wire_list.push_back(cs.section(*jt));
wire_list.push_back(cs.slice(*jt));
}
std::vector< std::list<TopoDS_Wire> >::const_iterator ft;