Skip to content

Commit

Permalink
minor cleanup to volume grid headers
Browse files Browse the repository at this point in the history
  • Loading branch information
nmwsharp committed Oct 23, 2023
1 parent 6b4b60d commit 39fdbda
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions include/polyscope/volume_grid.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,6 @@ class VolumeGrid : public QuantityStructure<VolumeGrid> {
template <class Func>
VolumeGridCellScalarQuantity* addCellScalarQuantityFromBatchCallable(std::string name, Func&& func, DataType dataType_ = DataType::STANDARD);


//template <class T> VolumeGridScalarIsosurface* addGridIsosurfaceQuantity(std::string name, double isoLevel, const T& values);

// Rendering helpers used by quantities
// void populateGeometry();
Expand Down Expand Up @@ -195,7 +193,7 @@ class VolumeGrid : public QuantityStructure<VolumeGrid> {


VolumeGrid* registerVolumeGrid(std::string name, glm::uvec3 gridNodeDim, glm::vec3 boundMin, glm::vec3 boundMax);
VolumeGrid* registerVolumeGrid(std::string name, uint64_t gridNodeDim, glm::vec3 boundMin, glm::vec3 boundMax);
VolumeGrid* registerVolumeGrid(std::string name, uint64_t gridNodeAxesDim, glm::vec3 boundMin, glm::vec3 boundMax);

// Shorthand to get a point cloud from polyscope
inline VolumeGrid* getVolumeGrid(std::string name = "");
Expand Down
2 changes: 1 addition & 1 deletion src/volume_grid.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ VolumeGrid* registerVolumeGrid(std::string name, glm::uvec3 gridNodeDim, glm::ve
return s;
}

VolumeGrid* registerVolumeGrid(std::string name, size_t gridNodeDim, glm::vec3 boundMin, glm::vec3 boundMax) {
VolumeGrid* registerVolumeGrid(std::string name, uint64_t gridNodeDim, glm::vec3 boundMin, glm::vec3 boundMax) {
return registerVolumeGrid(name, {gridNodeDim, gridNodeDim, gridNodeDim}, boundMin, boundMax);
}

Expand Down

0 comments on commit 39fdbda

Please sign in to comment.