+ Remove unused method
This commit is contained in:
parent
0afb17ac20
commit
7bd7ed8dda
|
@ -153,12 +153,6 @@ protected:
|
||||||
{
|
{
|
||||||
return getTransform() * Base::Vector3d(vec.x,vec.y,vec.z);
|
return getTransform() * Base::Vector3d(vec.x,vec.y,vec.z);
|
||||||
}
|
}
|
||||||
/// from local to outside
|
|
||||||
inline Base::Vector3d transformToOutside3d(const Base::Vector3d& vec) const
|
|
||||||
{
|
|
||||||
return getTransform() * vec;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// from local to inside
|
/// from local to inside
|
||||||
inline Base::Vector3f transformToInside(const Base::Vector3d& vec) const
|
inline Base::Vector3f transformToInside(const Base::Vector3d& vec) const
|
||||||
{
|
{
|
||||||
|
@ -167,13 +161,6 @@ protected:
|
||||||
Base::Vector3d tmp = tmpM * vec;
|
Base::Vector3d tmp = tmpM * vec;
|
||||||
return Base::Vector3f((float)tmp.x,(float)tmp.y,(float)tmp.z);
|
return Base::Vector3f((float)tmp.x,(float)tmp.y,(float)tmp.z);
|
||||||
}
|
}
|
||||||
inline Base::Vector3d transformToInside3d(const Base::Vector3d& vec) const
|
|
||||||
{
|
|
||||||
Base::Matrix4D tmpM(getTransform());
|
|
||||||
tmpM.inverse();
|
|
||||||
return tmpM * vec;
|
|
||||||
}
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
} //namespace App
|
} //namespace App
|
||||||
|
|
|
@ -653,7 +653,6 @@ void Document::Save (Base::Writer &writer) const
|
||||||
<< " FreeCAD Document, see http://www.freecadweb.org for more information..." << endl
|
<< " FreeCAD Document, see http://www.freecadweb.org for more information..." << endl
|
||||||
<< "-->" << endl;
|
<< "-->" << endl;
|
||||||
|
|
||||||
//writer.Stream() << "<Document SchemaVersion=\"4\">" << endl;
|
|
||||||
writer.Stream() << "<Document SchemaVersion=\"4\" ProgramVersion=\""
|
writer.Stream() << "<Document SchemaVersion=\"4\" ProgramVersion=\""
|
||||||
<< App::Application::Config()["BuildVersionMajor"] << "."
|
<< App::Application::Config()["BuildVersionMajor"] << "."
|
||||||
<< App::Application::Config()["BuildVersionMinor"] << "R"
|
<< App::Application::Config()["BuildVersionMinor"] << "R"
|
||||||
|
@ -751,11 +750,11 @@ void Document::exportObjects(const std::vector<App::DocumentObject*>& obj,
|
||||||
Base::ZipWriter writer(out);
|
Base::ZipWriter writer(out);
|
||||||
writer.putNextEntry("Document.xml");
|
writer.putNextEntry("Document.xml");
|
||||||
writer.Stream() << "<?xml version='1.0' encoding='utf-8'?>" << endl;
|
writer.Stream() << "<?xml version='1.0' encoding='utf-8'?>" << endl;
|
||||||
//writer.Stream() << "<Document SchemaVersion=\"4\">" << endl;
|
|
||||||
writer.Stream() << "<Document SchemaVersion=\"4\" ProgramVersion=\""
|
writer.Stream() << "<Document SchemaVersion=\"4\" ProgramVersion=\""
|
||||||
<< App::Application::Config()["BuildVersionMajor"] << "."
|
<< App::Application::Config()["BuildVersionMajor"] << "."
|
||||||
<< App::Application::Config()["BuildVersionMinor"] << "R"
|
<< App::Application::Config()["BuildVersionMinor"] << "R"
|
||||||
<< App::Application::Config()["BuildRevision"] << "\" FileVersion=\"1\">" << endl;
|
<< App::Application::Config()["BuildRevision"]
|
||||||
|
<< "\" FileVersion=\"1\">" << endl;
|
||||||
// Add this block to have the same layout as for normal documents
|
// Add this block to have the same layout as for normal documents
|
||||||
writer.Stream() << "<Properties Count=\"0\">" << endl;
|
writer.Stream() << "<Properties Count=\"0\">" << endl;
|
||||||
writer.Stream() << "</Properties>" << endl;
|
writer.Stream() << "</Properties>" << endl;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user