diff --git a/projects/Roads/nodes/src/cost.cpp b/projects/Roads/nodes/src/cost.cpp index 73261c2fab..c98c239e2b 100644 --- a/projects/Roads/nodes/src/cost.cpp +++ b/projects/Roads/nodes/src/cost.cpp @@ -18,7 +18,7 @@ roads::DynamicGrid BuildGridFromPrimitive(const zeno::AttrVector Grid(Nx, Ny); for (size_t i = 0; i < Nx * Ny; ++i) { - Grid[i] = roads::Point { DataSource[i][0], DataSource[i][0], DataSource[i][0] }; + Grid[i] = DataSource[i]; } return Grid; @@ -53,7 +53,7 @@ namespace { ZENO_BINDING_PRIMITIVE_ATTRIBUTE(Primitive, PositionList, "pos", zeno::reflect::EZenoPrimitiveAttr::VERT); void apply() override { -// BuildGridFromPrimitive(PositionList, Nx, Ny); + BuildGridFromPrimitive(PositionList, Nx, Ny); zeno::log_info("aaa: {} {}", AutoParameter->Nx, AutoParameter->Ny); } }; diff --git a/projects/Roads/utilities/include/roads/data.h b/projects/Roads/utilities/include/roads/data.h index 3168ef99b9..ebbbc80888 100644 --- a/projects/Roads/utilities/include/roads/data.h +++ b/projects/Roads/utilities/include/roads/data.h @@ -17,6 +17,7 @@ namespace roads { struct Point : public Eigen::Vector3d { Point(const std::array& InArray) : Eigen::Vector3d(InArray[0], InArray[1], InArray[2]) {} + Point() = default; }; struct Triangle : public std::array {