Skip to content

Commit

Permalink
KCore - booleans map to C int in int32 and int64, create B in Array.h
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentcasseau committed Jun 17, 2024
1 parent ffdb154 commit 76887b2
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Cassiopee/Generator/Generator/close.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ PyObject* K_GENERATOR::closeMesh(PyObject* self, PyObject* args)
E_Bool rmDegeneratedFaces = true;
E_Bool rmDegeneratedElts = true;

if (!PYPARSETUPLE_(args, O_ R_ II_ IIII_,
if (!PYPARSETUPLE_(args, O_ R_ BB_ BBBB_,
&array, &eps, &rmOverlappingPts, &rmOrphanPts,
&rmDuplicatedFaces, &rmDuplicatedElts,
&rmDegeneratedFaces, &rmDegeneratedElts)) return NULL;
Expand All @@ -51,7 +51,7 @@ PyObject* K_GENERATOR::closeMesh(PyObject* self, PyObject* args)
FldArrayF* f; FldArrayI* cn;
char* varString; char* eltType;

E_Int res = K_ARRAY::getFromArray(array, varString, f, im, jm, km, cn, eltType);
E_Int res = K_ARRAY::getFromArray3(array, varString, f, im, jm, km, cn, eltType);
E_Int posx = K_ARRAY::isCoordinateXPresent(varString);
E_Int posy = K_ARRAY::isCoordinateYPresent(varString);
E_Int posz = K_ARRAY::isCoordinateZPresent(varString);
Expand Down
4 changes: 4 additions & 0 deletions Cassiopee/KCore/KCore/Array/Array.h
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,10 @@
#define TRRR_ "(fff)"
#define TRRRR_ "(ffff)"
#endif
#define B_ "i"
#define BB_ "ii"
#define BBB_ "iii"
#define BBBB_ "iiii"
#define O_ "O"
#define OO_ "OO"
#define OOO_ "OOO"
Expand Down

0 comments on commit 76887b2

Please sign in to comment.