1. 09 Feb, 2015 1 commit
    • David Thompson's avatar
      Expose CGM's sweep helix op and fix bugs. · 41638f21
      David Thompson authored
      This branch includes initial support for helical sweeps,
      but be aware that only Cubit/ACIS support this kind of
      sweep; the CGM OpenCascade backend does not yet perform
      sweeps.
      
      This also fixes a bug in `ModelEntityItem::appendValue()`.
      This bug causes issues when `Operator::associateEntity()` is
      called and the association has a minimum number of expected
      values; because there are not default UUID values, the first
      numberOfValues() entries are null UUIDs; the associated entity
      is appended to the end of this array, which leaves null values
      at the front of the array. So, even though it is slow, we must
      verify that existing slots for model entities are actually in use.
      
      Finally, this branch tweaks the smtk.simple API a little bit:
      
      * Add CreateCylinder to simple python API.
      * Solid modeling operations print the error
        log when an operation does not succeed.
      41638f21
  2. 07 Feb, 2015 2 commits
  3. 06 Feb, 2015 5 commits
  4. 05 Feb, 2015 10 commits
  5. 04 Feb, 2015 8 commits
  6. 03 Feb, 2015 1 commit
    • David Thompson's avatar
      Clean up session relationships. · f8e6bbdd
      David Thompson authored
      Make the documentation match reality as far as model ownership
      goes (it did not show Model→Group relations and incorrectly had
      submodels related by `INCLUDES/EMBEDDED_IN` instead of
      `SUPERSET_OF/SUBSET_OF`).
      
      Add methods to EntityRef for managing superset/subset arrangements
      and use those (instead of raw relations) for parent-child of Model
      and Session.
      
      Rename ModelEntities and GroupEntities typedefs to Models and Groups.
      
      Clean up Read operator in all bridges to use new session storage
      style (where `Entity::relations()` holds session children) instead
      of having Session instance track top-level models.
      
      Get rid of `smtk::model::Manager::m_modelSessions`; this information
      is now stored in the sessions's `Entity::relations()`.
      f8e6bbdd
  7. 02 Feb, 2015 5 commits
    • David Thompson's avatar
      201f2938
    • David Thompson's avatar
      Clean up storage of Sessions (issue #3). · 7d0c6466
      David Thompson authored
      Change the API to deal more directly with SessionRef instances
      and less directly with Session instances (which may be obtained
      from a SessionRef when needed).
      7d0c6466
    • David Thompson's avatar
      Merge model's BRepModel and Manager classes. · dcf63462
      David Thompson authored
      There is still a need for some cleanup of methods that take
      UUIDs instead of EntityRef (cursor) instances.
      
      The main reason for the commit is that often the BRepModel
      implementations had to cast to Manager internally in order
      to access arrangements, trigger callbacks, etc., which
      complicated managing entities.
      
      Doing this now so that cleanup of session registration can
      use simpler EntityRef-based API.
      dcf63462
    • Yumin Yuan's avatar
      Merge pull request #46 from yumin/master · fe779f6d
      Yumin Yuan authored
      Fixed a bug in Session destructor.
      fe779f6d
    • Yumin Yuan's avatar
      Fixed a bug in Session destructor. · 795be04e
      Yumin Yuan authored
      The session has a map of UUIDs to vtkModelItem, and has observers on
      these items. In the session destrutor, it tries to remove the observers,
      and it will crash if any of those vtkModelItem(s) is invalid. Two changes
      are added to fix this. One is to use vtkWeakPointer in the map; second is
      to listen to the DeleteEvent of vtkModelItem, and remove it from the map.
      795be04e
  8. 30 Jan, 2015 7 commits
  9. 29 Jan, 2015 1 commit