Commit 9583ce66 authored by Andrew Wilson's avatar Andrew Wilson
Browse files

STYLE: Uncrustify

parent 06c638aa
......@@ -58,8 +58,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("BoneDrilling");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("BoneDrilling");
// Add virtual coupling object in the scene.
#ifdef iMSTK_USE_OPENHAPTICS
......
......@@ -47,8 +47,8 @@ main()
#endif
// Create simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("CameraController");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("CameraController");
#ifdef iMSTK_USE_OPENHAPTICS
......
......@@ -189,8 +189,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Collision Test");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Collision Test");
simManager->setActiveScene(scene);
// Get the VTKViewer
......
......@@ -86,8 +86,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Debug rendering example");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Debug rendering example");
simManager->setActiveScene(scene);
// Get the VTKViewer
......
......@@ -44,8 +44,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("DeformableBodyFEM");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("DeformableBodyFEM");
scene->getCamera()->setPosition(0, 2.0, 15.0);
// Load a tetrahedral mesh
......
......@@ -36,9 +36,9 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("GraphicalUserInterface");
auto canvas = simManager->getViewer()->getCanvas();
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("GraphicalUserInterface");
auto canvas = simManager->getViewer()->getCanvas();
// Cube
auto cube = apiutils::createVisualAnalyticalSceneObject(Geometry::Type::Cube, scene, "cube", 0.5);
......
......@@ -35,8 +35,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("GeometryTransforms");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("GeometryTransforms");
auto sceneObj = apiutils::createAndAddVisualSceneObject(scene, iMSTK_DATA_ROOT "/asianDragon/asianDragon.obj", "Dragon");
......
......@@ -36,8 +36,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("LineMeshRenderingTest");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("LineMeshRenderingTest");
// Construct line mesh
auto lineMesh = std::make_shared<LineMesh>();
......
......@@ -32,8 +32,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ReadMesh");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ReadMesh");
// Read surface mesh
/*auto objMesh = MeshIO::read(iMSTK_DATA_ROOT"/asianDragon/asianDragon.obj");
......
......@@ -32,8 +32,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("MshAndVegaIO");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("MshAndVegaIO");
// Load a volumetric mesh (from .msh file)
std::string ifile = iMSTK_DATA_ROOT "/liver/liver.msh";
......
......@@ -40,8 +40,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>(SimulationManager::Mode::runInBackground);
auto scene = simManager->createNewScene("NoRendering");
auto simManager = std::make_shared<SimulationManager>(SimulationManager::Mode::runInBackground);
auto scene = simManager->createNewScene("NoRendering");
// Create surface mesh
auto surfMesh = std::make_shared<SurfaceMesh>();
......
......@@ -39,8 +39,8 @@ main()
{
#ifdef iMSTK_USE_OPENHAPTICS
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ObjectController");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ObjectController");
// Device Client
auto client = std::make_shared<HDAPIDeviceClient>(phantomOmni1Name);
......
......@@ -34,8 +34,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ObjectControllerDummyClient");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("ObjectControllerDummyClient");
// Device Client
auto client = std::make_shared<DummyClient>("DummyClient");
......
......@@ -99,8 +99,8 @@ int
main()
{
// simManager and Scene
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Octree Example");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("Octree Example");
simManager->setActiveScene(scene);
// Get the VTKViewer
......
......@@ -34,8 +34,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDCloth");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDCloth");
// Create surface mesh
auto surfMesh = std::make_shared<SurfaceMesh>();
......
......@@ -151,8 +151,8 @@ generateDragon(const std::shared_ptr<imstk::Scene>& scene,
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PbdCollision");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PbdCollision");
// Get the VTKViewer
auto viewer = std::dynamic_pointer_cast<VTKViewer>(simManager->getViewer());
......
......@@ -38,8 +38,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PbdCollision");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PbdCollision");
scene->getCamera()->setPosition(0, 10.0, 10.0);
......
......@@ -37,8 +37,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDFluid");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDFluid");
scene->getCamera()->setPosition(0, 10.0, 15.0);
......
......@@ -35,8 +35,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDString");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDString");
// Setup N separate string simulations with varying bend stiffnesses
const unsigned int numStrings = 8;
......
......@@ -36,8 +36,8 @@ using namespace imstk;
int
main()
{
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDVolume");
auto simManager = std::make_shared<SimulationManager>();
auto scene = simManager->createNewScene("PBDVolume");
scene->getCamera()->setPosition(0, 2.0, 15.0);
// Load a sample mesh
......@@ -74,11 +74,11 @@ main()
// Other parameters
pbdParams->m_uniformMassValue = 1.0;
pbdParams->m_gravity = Vec3d(0, -9.8, 0);
pbdParams->m_dt = 0.01;
pbdParams->m_maxIter = 5;
pbdParams->m_maxIter = 45;
// Set the parameters
pbdModel->configure(pbdParams);
pbdModel->setTimeStepSizeType(imstk::TimeSteppingType::realTime);
deformableObj->setDynamicalModel(pbdModel);
deformableObj->addVisualModel(surfMeshModel);
deformableObj->setPhysicsGeometry(volTetMesh);
......
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