Skip to content

Commit

Permalink
glue: whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
stephengold committed Feb 9, 2024
1 parent 3dc6bb8 commit 11993bb
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 9 deletions.
9 changes: 4 additions & 5 deletions src/main/native/glue/vhacd4_Vhacd4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,6 @@ class Callback4 : public IVHACD::IUserCallback {
jstring arg4 = pEnv->NewStringUTF(stageName);
EXCEPTION_CHK(pEnv,);


jstring arg5 = pEnv->NewStringUTF(operationName);
EXCEPTION_CHK(pEnv,);

Expand Down Expand Up @@ -145,8 +144,8 @@ JNIEXPORT void JNICALL Java_vhacd4_Vhacd4_compute
IVHACD * const pIvhacd = CreateVHACD();
const uint32_t nPoints = capacityFloats / 3;
const uint32_t nTriangles = capacityInts / 3;
const bool success = pIvhacd->Compute(pPositions, nPoints, pTriangles,
nTriangles, *pParams);
const bool success = pIvhacd->Compute(
pPositions, nPoints, pTriangles, nTriangles, *pParams);

if (success) {
const uint32_t n_hulls = pIvhacd->GetNConvexHulls();
Expand All @@ -157,8 +156,8 @@ JNIEXPORT void JNICALL Java_vhacd4_Vhacd4_compute
pIvhacd->GetConvexHull(i, *pHull);
const jlong hullId = reinterpret_cast<jlong> (pHull);

pEnv->CallStaticVoidMethod(jmeClasses::Vhacd4,
jmeClasses::Vhacd4_addHull, hullId);
pEnv->CallStaticVoidMethod(
jmeClasses::Vhacd4, jmeClasses::Vhacd4_addHull, hullId);
EXCEPTION_CHK(pEnv,);
delete pHull; //dance002
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/native/glue/vhacd_VHACD.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -135,8 +135,8 @@ JNIEXPORT void JNICALL Java_vhacd_VHACD_compute
IVHACD * const pIvhacd = CreateVHACD();
const uint32_t nPoints = capacityFloats / 3;
const uint32_t nTriangles = capacityInts / 3;
const bool success = pIvhacd->Compute(pPositions, nPoints, pTriangles,
nTriangles, *pParams);
const bool success = pIvhacd->Compute(
pPositions, nPoints, pTriangles, nTriangles, *pParams);

if (success) {
const uint32_t n_hulls = pIvhacd->GetNConvexHulls();
Expand All @@ -147,8 +147,8 @@ JNIEXPORT void JNICALL Java_vhacd_VHACD_compute
pIvhacd->GetConvexHull(i, *pHull);
const jlong hullId = reinterpret_cast<jlong> (pHull);

pEnv->CallStaticVoidMethod(jmeClasses::Vhacd,
jmeClasses::Vhacd_addHull, hullId);
pEnv->CallStaticVoidMethod(
jmeClasses::Vhacd, jmeClasses::Vhacd_addHull, hullId);
EXCEPTION_CHK(pEnv,);
delete pHull; //dance002
}
Expand Down

0 comments on commit 11993bb

Please sign in to comment.