Skip to content
Snippets Groups Projects
  1. Feb 27, 2017
  2. Feb 24, 2017
    • Mayeul Chassagnard's avatar
      ENH: Add ExternalData Management System · 267b7f72
      Mayeul Chassagnard authored
      Download Data from Girder according to data key files contained in iMSTK/Data
      
      This uses ExternalData.cmake (Requires CMake >= 2.8.11 release).
      
      Add TEST: Add ExternalDataTest to verify downloaded files from Girder
      * Be sure the data requiered for the test is not there (delete it)
      * Add the imstk_add_data(${target} ${data_list}) function in CMakeList.txt
      which calls ExternalData_expand_arguments().
      * It downloads the data provided by the data_list (relative path from
      iMSTK/Data)
      
      Add DOC: Add documentation on ExternalData Management
      * How to add data to iMSTK from Grider
      * Update data
      * Use data
      267b7f72
  3. Jan 31, 2017
  4. Jan 30, 2017
  5. Jan 26, 2017
    • Andinet enquobahrie's avatar
      Merge branch 'add-contribution-instructions' into 'master' · 0c0c541e
      Andinet enquobahrie authored
      DOC: Add CONTRIBUTING.md
      
      See merge request !125
      0c0c541e
    • Alexis Girault's avatar
      ENH: Triangulate polydata in VTK reader · a8959a29
      Alexis Girault authored
      Ensure the surface mesh read will only have triangles and
      no triangle strips or other cells.
      a8959a29
    • Alexis Girault's avatar
      ENH: default DATA_ROOT_PATH and alert if not set · f5715893
      Alexis Girault authored
      DATA_ROOT_PATH is used to quickly define the root path
      for all your ressources in the Sandbox example. Its value
      will therefore vary for every user, which is why it should
      not be commited.
      
      This commit adds comments explaining not to commit changes
      to this line, as well as how to commit part of a file only,
      and displays an error when the path is not set locally.
      f5715893
    • Alexis Girault's avatar
      40a00b93
    • Alexis Girault's avatar
      ENH: Allow debug rendering while simulation runs · f1a8342d
      Alexis Girault authored
      Addresses suggestions made here:
      alexis-girault/iMSTK@a63f98b5 (comment 212643)
      
      >8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8
      It would be great to have the option of using pan-zoom-rotate
      when simulation is running for certain applications. I keep
      pressing 'S' and 'E' in succession to see if everything is good
      for an example i was working on. It need not be a default run
      mode option.
      >8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8>8
      
      * Rename VTKRenderer::setup into VTKRenderer::setMode
      * Add VTKRenderer::getMode
      * Add VTKViewer::getRenderingMode wrapping the one above
      * Consider Rendering Mode in Mouse event callbacks instead of
      simulation status
      * Allow to switch to Debug rendering and back with the `d` key
      f1a8342d
    • Alexis Girault's avatar
      ENH: Display framerate in window · 2094e396
      Alexis Girault authored
      Press the `P` key (for "Print text", since f should be for
      fullscreen) to display the rendering framerate in the left
      bottom corner.
      
      Needed to override `SetCurrentRenderer` to add the textActor.
      
      Only update the displayed framerate value every 100ms, which
      requires the variables `m_lastFpsUpdate` (last time since the
      value was updated), and `m_lastFps` (to compute the framerate
      value using a moving average).
      2094e396
    • Alexis Girault's avatar
      BUG: fix VTK rendering when framerate not fixed · 70d57b87
      Alexis Girault authored
      When the framerate was not fixed, the next render pass
      would be called using `CreateOneShotTimer(0)` while its
      parameter minimum value is 1 (in milliseconds). 0 would
      set it up for the default value of 10 ms.
      70d57b87
    • Alexis Girault's avatar
      ENH: Use vtkTriangleMeshPointNormals · 969659fd
      Alexis Girault authored
      The main bottleneck with real-time VTK rendering so far
      appeared to be the normals computation. This commit addresses
      that issue by making use of the latest normals computation
      filter in VTK: vtkTriangleMeshPointNormals.
      
      While this filter is much (5 to 16 times) faster than
      vtkPolyDataNormals, it does not check for consistency in the
      cell orientations that could cause inverted normals, which
      is why the vtkPolyDataNormals is called once in the surfacemesh
      renderdelegate to retrieve consistent cells for the input mesh.
      
      See VTK merge request for more information :
      vtk/vtk!2271
      
      PS: That MR requires the latest commits from VTK master, which
      does not include work made on texture wrap mode nor on multi
      texture attributes yet:
      - iMSTK/vtk@62a7ecd8
      - iMSTK/vtk@ae373026
      969659fd
    • Alexis Girault's avatar
      DOC: Add CONTRIBUTING.md · d6c16b8b
      Alexis Girault authored
      d6c16b8b
  6. Jan 24, 2017
  7. Jan 06, 2017
    • Alexis Girault's avatar
      Merge branch 'fix-std-functional-msvc' into 'master' · 402d718f
      Alexis Girault authored
      COMP: Fix function is not a member of std (Win)
      
      The merge request !117 to add custom event handlers
      for vtk interaction introduced a bug on Windows, where
      the <functional> header needs to be included to be able
      to use `std::function`.
      
      This fixes the 50 errors listed on cdash (due to those
      `std::function` members being used frequently):
      http://my.cdash.org/viewBuildError.php?buildid=1111691
      
      PS: The experimental build for this MR did not show any
      issues on CDash [1], but they appeared once merged in the
      master branch (continuous). There seem to be an issue
      with how buildbot runs those builds on Windows, since a
      similar issue happened on windows 32 bits with Eigen
      aligned data structures in stl containers.
      
      [1] http://my.cdash.org/buildSummary.php?buildid=1111615
      
      See merge request !122
      402d718f
    • Alexis Girault's avatar
      COMP: Fix function is not a member of std (Win) · b746ea57
      Alexis Girault authored
      The merge request !117 to add custom event handlers
      for vtk interaction introduced a bug on Windows, where
      the <functional> header needs to be included to be able
      to use `std::function`.
      
      This fixes the 50 errors listed on cdash (due to those
      `std::function` members being used frequently):
      http://my.cdash.org/viewBuildError.php?buildid=1111691
      
      PS: The experimental build for this MR did not show any
      issues on CDash [1], but they appeared once merged in the
      master branch (continuous). There seem to be an issue
      with how buildbot runs those builds on Windows, since a
      similar issue happened on windows 32 bits with Eigen
      aligned data structures in stl containers.
      
      [1] http://my.cdash.org/buildSummary.php?buildid=1111615
      b746ea57
    • Alexis Girault's avatar
      Merge branch 'custom-vtk-interactor' into 'master' · a20d4483
      Alexis Girault authored
      ENH: Add custom event handlers for vtk interaction
      
      1. Allow to set up lambda functions from `VTKViewer`
      as custom behavior to run in the interactor Style
      in event callbacks.
      2. Simplify `VTKInteractorStyle::OnChar()` to only have
      simple default behaviors (start, stop, pause, play, quit)
      3. Move the implementation of `getTargetFrameRate()`,
      `setTargetFrameRate()` and `setSimulationManager()` from
      `VTKInteractorStyle` to `VTKViewer`, which becomes friend class
      of the private members of `VTKInteractorStyle` to avoid
      repeatedly wrapping around the interactor style methods.
      
      Co-authored-by: Hina Shah <hina.shah@kitware.com> (@hina), adapted from iMSTK/iMSTK!113
      
      See merge request !117
      a20d4483
  8. Jan 05, 2017
Loading