Commit aae66a72 authored by Andrew Wilson's avatar Andrew Wilson
Browse files

REFAC: Clear warnings

parent ed212e8f
Pipeline #241454 failed with stage
......@@ -27,7 +27,7 @@ namespace imstk
bool
OctreeDebugObject::updateGeom(OctreeNode* node)
{
if (node->m_Depth > m_maxDisplayDepth)
if (node->m_Depth > static_cast<uint32_t>(m_maxDisplayDepth))
{
return false;
}
......
......@@ -90,11 +90,10 @@ main()
int mode = 0; // 0: add point, 1: add line, 2: add triangle
int count = 0; // The number of times cycling between modes
int i = 0;
auto updateFunc =
[&](Event*)
{
if (count > 15)
if (count > 100)
{
count = 0;
debugGeometryObj->clear();
......@@ -153,7 +152,7 @@ main()
imstkNew<SimulationManager> driver;
driver->addModule(viewer);
driver->addModule(sceneManager);
driver->setDesiredDt(1.0);
driver->setDesiredDt(0.1);
// Add mouse and keyboard controls to the viewer
{
......
......@@ -28,6 +28,7 @@ imstk_add_executable(${PROJECT_NAME}
NeedleObject.h
RbdAngularNeedleLockingConstraint.h
RbdLinearNeedleLockingConstraint.h
PbdTriangleEmbeddingConstraint.h
NeedleInteraction.h)
#-----------------------------------------------------------------------------
......
......@@ -121,7 +121,7 @@ public:
std::vector<Vec3d>& dcdxA,
std::vector<Vec3d>& dcdxB) const override
{
const Vec3d& x0 = *m_bodiesFirst[0].vertex;
//const Vec3d& x0 = *m_bodiesFirst[0].vertex;
const Vec3d& x1 = *m_bodiesSecond[0].vertex;
const Vec3d& x2 = *m_bodiesSecond[1].vertex;
const Vec3d& x3 = *m_bodiesSecond[2].vertex;
......
......@@ -132,7 +132,6 @@ RigidBodyCH::handleRbdRbdTwoWay(
for (size_t i = 0; i < elementsA.getSize(); i++)
{
const CollisionElement& colElemA = elementsA[i];
const CollisionElement& colElemB = elementsB[i];
if (colElemA.m_type == CollisionElementType::PointDirection)
{
const Vec3d& contactPt = colElemA.m_element.m_PointDirectionElement.pt;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment