Skip to content

Commit

Permalink
fix: compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
DarcJC committed Aug 9, 2023
1 parent bc2e059 commit 31c018c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/Roads/nodes/src/cost.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ roads::DynamicGrid<GridType> BuildGridFromPrimitive(const zeno::AttrVector<zeno:

roads::DynamicGrid<GridType> 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;
Expand Down Expand Up @@ -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);
}
};
Expand Down
1 change: 1 addition & 0 deletions projects/Roads/utilities/include/roads/data.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ namespace roads {

struct Point : public Eigen::Vector3d {
Point(const std::array<float, 3>& InArray) : Eigen::Vector3d(InArray[0], InArray[1], InArray[2]) {}
Point() = default;
};

struct Triangle : public std::array<Point, 3> {
Expand Down

0 comments on commit 31c018c

Please sign in to comment.