File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -431,10 +431,10 @@ class PyTriMesh
431
431
432
432
PyObject *pPyVertices = vertices.ptr ();
433
433
if (PyArray_Check (pPyVertices)) {
434
- if (PyArray_NDIM (pPyVertices) != 2 ) {
434
+ if (PyArray_NDIM ((PyArrayObject*) pPyVertices) != 2 ) {
435
435
throw openrave_exception (_ (" vertices must be a 2D array" ), ORE_InvalidArguments);
436
436
}
437
- if (!PyArray_ISFLOAT (pPyVertices)) {
437
+ if (!PyArray_ISFLOAT ((PyArrayObject*) pPyVertices)) {
438
438
throw openrave_exception (_ (" vertices must be in float" ), ORE_InvalidArguments);
439
439
}
440
440
PyArrayObject* pPyVerticesContiguous = PyArray_GETCONTIGUOUS (reinterpret_cast <PyArrayObject*>(pPyVertices));
@@ -477,7 +477,7 @@ class PyTriMesh
477
477
mesh.indices .resize (3 *numtris);
478
478
PyObject *pPyIndices = indices.ptr ();
479
479
if (PyArray_Check (pPyIndices)) {
480
- if (PyArray_NDIM (pPyIndices) != 2 || PyArray_DIM (pPyIndices, 1 ) != 3 || !PyArray_ISINTEGER (pPyIndices)) {
480
+ if (PyArray_NDIM ((PyArrayObject*) pPyIndices) != 2 || PyArray_DIM ((PyArrayObject*) pPyIndices, 1 ) != 3 || !PyArray_ISINTEGER ((PyArrayObject*) pPyIndices)) {
481
481
throw openrave_exception (_ (" indices must be a Nx3 int array" ), ORE_InvalidArguments);
482
482
}
483
483
PyArrayObject* pPyIndiciesContiguous = PyArray_GETCONTIGUOUS (reinterpret_cast <PyArrayObject*>(pPyIndices));
You can’t perform that action at this time.
0 commit comments