[Jderobot-admin] jderobot-r1100 - trunk/src/stable/libs/geometry/collada
lr.morales en jderobot.org
lr.morales en jderobot.org
Mar Nov 12 00:04:25 CET 2013
Author: lr.morales
Date: 2013-11-12 00:04:25 +0100 (Tue, 12 Nov 2013)
New Revision: 1100
Modified:
trunk/src/stable/libs/geometry/collada/colladaparser.cpp
Log:
#113 Fixes 2D map limits and rotation
Modified: trunk/src/stable/libs/geometry/collada/colladaparser.cpp
===================================================================
--- trunk/src/stable/libs/geometry/collada/colladaparser.cpp 2013-11-11 20:28:01 UTC (rev 1099)
+++ trunk/src/stable/libs/geometry/collada/colladaparser.cpp 2013-11-11 23:04:25 UTC (rev 1100)
@@ -15,7 +15,7 @@
}
this->colladaXml = xmlDoc.FirstChildElement("COLLADA");
if (!this->colladaXml){
- std::cout << "Falta la etiqueta Collada" << std::endl;
+ std::cout << "Collada label not found" << std::endl;
return;
}
if (std::string(this->colladaXml->Attribute("version")) != "1.4.0" &&
@@ -1454,8 +1454,8 @@
Eigen::Vector3d max = mesh->getMax();
Eigen::Vector3d min = mesh->getMin();
- image.create((max(1) - min(1)),
- (max(0) - min(1)),
+ image.create((max(0) - min(0)+5),
+ (max(1) - min(1)+5),
CV_8UC3);
image = cv::Scalar(255, 255, 255);
@@ -1465,8 +1465,8 @@
for(int i = 0; i < listaSegmentos.size(); i++){
cv::line(image,
- cv::Point2f((listaSegmentos[i].x1 - min(0)), (listaSegmentos[i].y1 - min(1))),
- cv::Point2f((listaSegmentos[i].x2 - min(0)), (listaSegmentos[i].y2 - min(1))),
+ cv::Point2f((listaSegmentos[i].y1 - min(1)), (listaSegmentos[i].x1 - min(0))),
+ cv::Point2f((listaSegmentos[i].y2 - min(1)), (listaSegmentos[i].x2 - min(0))),
cv::Scalar(0, 0, 0),
3);
fprintf(fp, "%.2f %.2f %.2f %.2f\n", listaSegmentos[i].x1, listaSegmentos[i].y1,
More information about the Jderobot-admin
mailing list