[cgma-dev] CGM Instance

Patrick Shriwise shriwise at wisc.edu
Fri Jan 17 15:28:52 CST 2014


On 01/16/2014 11:47 AM, Paul Wilson wrote:
> On 01/16/2014 11:30 AM, Patrick Shriwise wrote:
>> On 01/15/2014 03:33 PM, David Thompson wrote:
>>>> I'm currently writing tests for MOAB's Read_CGM. In this process 
>>>> I'm loading an ACIS file multiple times in different MOAB 
>>>> instances. This causes the file loads to 'stack' upon one another 
>>>> when I do this however. Any recommendations on how to clear the CGM 
>>>> data if I want to load a file more than once?
>>> Have you tried
>>>
>>>     GeometryQueryTool::instance()->delete_geometry();
>>>
>>> or does that not do what you want?
>>>
>>>     David
>> Haven't tried that yet. Going to give it a shot today. Do you think 
>> the function is accessible from within a MOAB instance?
>>
> Patrick,
>
> This is available through the same (or similar) CGM interface that is 
> used to to call get_graphics() in ReadCGM.  You'll need to set it up 
> in your tests probably.
>
> Paul
>
Just got this implemented. Works well. Thank you!

Patrick

-- 
Patrick C. Shriwise
Research Assistant
University of Wisconsin - Madison
Engineering Research Building - Rm. 428
1500 Engineering Drive
Madison, WI 53706
(608) 446-8173



More information about the cgma-dev mailing list