rename 2d tool classes to be consistent with 3d classes
This commit is contained in:
@@ -986,11 +986,11 @@ void CmdMeshTrimByPlane::activated(int)
|
||||
p3 = mat * p3;
|
||||
p4 = mat * p4;
|
||||
|
||||
Base::Polygon2D polygon2d;
|
||||
polygon2d.Add(Base::Vector2D(p1.x, p1.y));
|
||||
polygon2d.Add(Base::Vector2D(p2.x, p2.y));
|
||||
polygon2d.Add(Base::Vector2D(p3.x, p3.y));
|
||||
polygon2d.Add(Base::Vector2D(p4.x, p4.y));
|
||||
Base::Polygon2d polygon2d;
|
||||
polygon2d.Add(Base::Vector2d(p1.x, p1.y));
|
||||
polygon2d.Add(Base::Vector2d(p2.x, p2.y));
|
||||
polygon2d.Add(Base::Vector2d(p3.x, p3.y));
|
||||
polygon2d.Add(Base::Vector2d(p4.x, p4.y));
|
||||
|
||||
Mesh::MeshObject::CutType type = Mesh::MeshObject::INNER;
|
||||
mesh->trim(polygon2d, proj, type);
|
||||
|
||||
@@ -1059,9 +1059,9 @@ void ViewProviderMesh::getFacetsFromPolygon(const std::vector<SbVec2f>& picked,
|
||||
{
|
||||
#if 1
|
||||
const bool ok = true;
|
||||
Base::Polygon2D polygon;
|
||||
Base::Polygon2d polygon;
|
||||
for (std::vector<SbVec2f>::const_iterator it = picked.begin(); it != picked.end(); ++it)
|
||||
polygon.Add(Base::Vector2D((*it)[0],(*it)[1]));
|
||||
polygon.Add(Base::Vector2d((*it)[0],(*it)[1]));
|
||||
|
||||
// Get the attached mesh property
|
||||
Mesh::PropertyMeshKernel& meshProp = static_cast<Mesh::Feature*>(pcObject)->Mesh;
|
||||
@@ -1289,9 +1289,9 @@ void ViewProviderMesh::trimMesh(const std::vector<SbVec2f>& polygon,
|
||||
{
|
||||
Mesh::MeshObject* mesh = static_cast<Mesh::Feature*>(pcObject)->Mesh.startEditing();
|
||||
|
||||
Base::Polygon2D polygon2d;
|
||||
Base::Polygon2d polygon2d;
|
||||
for (std::vector<SbVec2f>::const_iterator it = polygon.begin(); it != polygon.end(); ++it)
|
||||
polygon2d.Add(Base::Vector2D((*it)[0],(*it)[1]));
|
||||
polygon2d.Add(Base::Vector2d((*it)[0],(*it)[1]));
|
||||
|
||||
Mesh::MeshObject::CutType type = inner ?
|
||||
Mesh::MeshObject::INNER :
|
||||
|
||||
Reference in New Issue
Block a user