From david.thompson at kitware.com Thu Feb 5 16:23:56 2015 From: david.thompson at kitware.com (David Thompson) Date: Thu, 5 Feb 2015 16:23:56 -0500 Subject: [Smtk-developers] Iterator class Message-ID: <117EE306-54CC-4684-9EFC-70EA64DE60DF@kitware.com> Hi all, Due to popular demand, SMTK now has an iterator class for traversing model entities: https://github.com/Kitware/SMTK/blob/master/smtk/model/EntityIterator.h https://github.com/Kitware/SMTK/blob/master/smtk/model/testing/cxx/unitIterators.cxx The iterator can traverse * a fixed set of EntityRefs you provide, * the children of all the items in a set you provide (without repetition), or * the children of all the models of all the items in a set you provide (without repetition). The unit test above illustrates how to use it. To avoid revisiting entities and for robustness against cycles (such as a model owning itself), the iterator maintains a set of entities it has traversed. This also allows for multiple passes to be performed simply (by recycling the list of traversed entities as the source list on the next pass). David From robert.maynard at kitware.com Wed Feb 18 14:42:38 2015 From: robert.maynard at kitware.com (Robert Maynard) Date: Wed, 18 Feb 2015 14:42:38 -0500 Subject: [Smtk-developers] Adding testing data. Message-ID: 1) What is the offical smtk testing data repository? 2) Is there anything special I need to do before adding new testing data? The data I am looking at adding is 3 files each roughly 700K in size. From yumin.yuan at kitware.com Wed Feb 18 14:52:34 2015 From: yumin.yuan at kitware.com (Yumin Yuan) Date: Wed, 18 Feb 2015 14:52:34 -0500 Subject: [Smtk-developers] Adding testing data. In-Reply-To: References: Message-ID: Hi Rob, On Wed, Feb 18, 2015 at 2:42 PM, Robert Maynard wrote: > 1) What is the offical smtk testing data repository? > > git at www.kitware.com:SMTKTestData.git > 2) Is there anything special I need to do before adding new testing > data? The data I am looking at adding is 3 files each roughly 700K in > size. > Nothing I know of. Yumin > _______________________________________________ > Smtk-developers mailing list > Smtk-developers at smtk.org > http://public.kitware.com/mailman/listinfo/smtk-developers > -------------- next part -------------- An HTML attachment was scrubbed... URL: From david.thompson at kitware.com Thu Feb 19 21:43:46 2015 From: david.thompson at kitware.com (David Thompson) Date: Thu, 19 Feb 2015 21:43:46 -0500 Subject: [Smtk-developers] New Python unit tests Message-ID: Hi all, I am switching to using the python unittest module for SMTK's python tests. One reason to do this is that test classes can be imported into interactive sessions and debugged. As a side effect, there is now a new smtk submodule named smtk.testing that contains a function named process_arguments() and a variable named DATA_DIR, to handle fetching command-line arguments before the unittest framework sees them and complains. Use it like so: import smtk import smtk.testing from smtk.simple import * import unitttest, os class AnSMTKUnitTest(unittest.TestCase): def test(self): # do stuff like: model = Read(os.path.join(smtk.testing.DATA_DIR, 'foo.brep')) self.assertTrue(stuff, "Stuff was false") if __name__ == '__main__': smtk.testing.process_arguments() # Now sys.argv is empty and smtk.testing.DATA_DIR is set. unittest.main() A full example is in smtk/model/testing/python/integrationMultiSessionDescriptivePhrase.py . David From david.thompson at kitware.com Fri Feb 20 19:56:05 2015 From: david.thompson at kitware.com (David Thompson) Date: Fri, 20 Feb 2015 19:56:05 -0500 Subject: [Smtk-developers] Fixes in Message-ID: Hi all, Model edges and vertices should once again be visible in renderings of SMTK models and are being properly updated across operations, as illustrated below. Also, the discrete bridge should now be able to load both 2D and 3D models. There appears to be a selection bug in ModelBuilder (or ParaView or VTK) with the OpenGL2 backend, but I do not think SMTK is at fault; setting the camera's center of rotation does not work properly, which I take to be an indication that GL picking is failing. David -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-02-20 at 7.48.42 PM.png Type: image/png Size: 71230 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-02-20 at 7.49.45 PM.png Type: image/png Size: 73310 bytes Desc: not available URL: From david.thompson at kitware.com Fri Feb 27 10:31:04 2015 From: david.thompson at kitware.com (David Thompson) Date: Fri, 27 Feb 2015 10:31:04 -0500 Subject: [Smtk-developers] smtk tagging for v4 release. In-Reply-To: References: Message-ID: <83CE075B-B2EC-4953-8970-4801AB0E25E1@kitware.com> > Do you have a process in place for tagging smtk? I would like to have > a fixed tag or sha1 that the superbuild can use when we tag the v4 > version of cmb. Nothing yet, but I think a branch for the major version number + tags on that branch would be wise. Shall we call the branch release-v1 or release-v0? :-) David From david.thompson at kitware.com Sat Feb 28 15:38:36 2015 From: david.thompson at kitware.com (David Thompson) Date: Sat, 28 Feb 2015 15:38:36 -0500 Subject: [Smtk-developers] Packaging SMTK remote bridge. In-Reply-To: References: <2D56FAD1-5D2C-4714-9831-8584CB1E095B@kitware.com> <4E630F19-89E9-42BA-BC0C-F9893CD620B5@kitware.com> Message-ID: <6D1C6637-0685-4E0A-AB5E-9D6A7F8E098F@kitware.com> Hi Rob (et al.), > Awesome! If we think it [SMTK remote session] isn't stable we can hold it back from the initial release and dig into the issue in April. I just didn't want to not package the Remus bridge if it was ready to be released. Actually, I tried to create a python script (pull request #88) that would replicate the issue I was seeing and cannot. So then I hacked ModelBuilder to create a connection to the server and ask the server for available workers (which get registered as new session types in SMTK) and was able to load a model, translate it, and write it back out from within ModelBuilder. So, it looks like the Remus remote session should be included in the SMTK release. It will take a little work to make things right in ModelBuilder: 1. No tessellation information is being included in the data transmitted from the smtk-model-worker, so the tree view is correct but the 3D view is empty. However, writing a model from the remote process and loading it into a process-local CGM session showed that the operations performed on it were done as requested. It was also neat to see the dialog below pop up when I went to load the test file! 2. There should be a UI to connect to a Remus server (and then update the list of available session types). The hack I did was to create a local, in-process server that will spawn separate worker processes. David -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: Screen Shot 2015-02-28 at 3.35.46 PM.png Type: image/png Size: 34469 bytes Desc: not available URL: