started testing a new grid-builder
minor fixes worked on walkers
This commit is contained in:
@@ -174,10 +174,11 @@ namespace GW3 {
|
||||
|
||||
public:
|
||||
|
||||
static GridPoint p3ToGp(const Point3 p) {
|
||||
const Point3 p100 = p*100;
|
||||
return GridPoint( std::round(p100.x), std::round(p100.y), std::round(p100.z) );
|
||||
}
|
||||
// static GridPoint p3ToGp(const Grid<Node>& grid, const Point3 p) {
|
||||
// const Point3 p100 = p*100;
|
||||
// //return GridPoint( std::round(p100.x), std::round(p100.y), std::round(p100.z) );
|
||||
// return GridPoint( grid.snapX(p100.x), grid.snapY(p100.y), grid.snapZ(p100.z) );
|
||||
// }
|
||||
|
||||
static Point3 gpToP3(const GridPoint gp) {
|
||||
return Point3(gp.x_cm / 100.0f, gp.y_cm / 100.0f, gp.z_cm / 100.0f);
|
||||
|
||||
Reference in New Issue
Block a user