Skip to content

Commit

Permalink
Fix bindings
Browse files Browse the repository at this point in the history
  • Loading branch information
tobre1 committed Jun 14, 2024
1 parent 116770d commit 4eb7a6b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion include/viennals/lsBooleanOperation.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ template <class T, int D> class BooleanOperation {
// vectors
for (unsigned i = 0; i < AData.getVectorDataSize(); ++i) {
auto vectorDataLabel = AData.getVectorDataLabel(i);
auto BPointer = BData.getVectorData(vectorDataLabel);
auto BPointer = BData.getVectorData(vectorDataLabel, true);
if (BPointer != nullptr) {
auto APointer = AData.getVectorData(i);
// copy all data into the new vectorData
Expand Down
2 changes: 1 addition & 1 deletion include/viennals/lsCalculateNormalVectors.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ template <class T, int D> class CalculateNormalVectors {

// insert into pointData of levelSet
auto &pointData = levelSet->getPointData();
auto vectorDataPointer = pointData.getVectorData(normalVectorsLabel);
auto vectorDataPointer = pointData.getVectorData(normalVectorsLabel, true);
// if it does not exist, insert new normals vector
if (vectorDataPointer == nullptr) {
pointData.insertNextVectorData(normalVectorsVector[0],
Expand Down
12 changes: 6 additions & 6 deletions python/pyWrap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -764,16 +764,16 @@ PYBIND11_MODULE(VIENNALS_MODULE_NAME, module) {
.def("getScalarData",
(PointData<T>::ScalarDataType * (PointData<T>::*)(int)) &
PointData<T>::getScalarData)
.def("getScalarData",
(PointData<T>::ScalarDataType * (PointData<T>::*)(std::string)) &
PointData<T>::getScalarData)
.def("getScalarData", (PointData<T>::ScalarDataType *
(PointData<T>::*)(std::string, bool)) &
PointData<T>::getScalarData)
.def("getScalarDataLabel", &PointData<T>::getScalarDataLabel)
.def("getVectorData",
(PointData<T>::VectorDataType * (PointData<T>::*)(int)) &
PointData<T>::getVectorData)
.def("getVectorData",
(PointData<T>::VectorDataType * (PointData<T>::*)(std::string)) &
PointData<T>::getVectorData)
.def("getVectorData", (PointData<T>::VectorDataType *
(PointData<T>::*)(std::string, bool)) &
PointData<T>::getVectorData)
.def("getVectorDataLabel", &PointData<T>::getVectorDataLabel);

// MaterialMap
Expand Down

0 comments on commit 4eb7a6b

Please sign in to comment.