[cgma-dev] CGMA with Cubit not reading ACIS files
Jane Hu
janejhu at gmail.com
Thu Aug 1 21:31:23 CDT 2013
Yes, it should support all engines. You can look at CubitCompat.cpp for
file types that current cgm supports for importing:
Model_File_Type
CubitCompat_file_type( const char* file_type )
{
if (!file_type)
return MFT_NOT_DEFINED;
CUBIT_COMPAT_FT_ELIF(ACIS);
CUBIT_COMPAT_FT_ELIF(ACIS_SAT);
CUBIT_COMPAT_FT_ELIF(ACIS_SAB);
CUBIT_COMPAT_FT_ELIF(ACIS_DEBUG);
CUBIT_COMPAT_FT_ELIF(IGES);
CUBIT_COMPAT_FT_ELIF(CATIA);
CUBIT_COMPAT_FT_ELIF(STEP);
CUBIT_COMPAT_FT_ELIF(PROE);
CUBIT_COMPAT_FT_ELIF(GRANITE);
CUBIT_COMPAT_FT_ELIF(GRANITE_G);
CUBIT_COMPAT_FT_ELIF(GRANITE_SAT);
CUBIT_COMPAT_FT_ELIF(GRANITE_PROE_PART);
CUBIT_COMPAT_FT_ELIF(GRANITE_PROE_ASM);
CUBIT_COMPAT_FT_ELIF(GRANITE_NEUTRAL);
CUBIT_COMPAT_FT_ELIF(NCGM);
CUBIT_COMPAT_FT_ELIF(CATIA_NCGM);
CUBIT_COMPAT_FT_ELIF(CATPART);
CUBIT_COMPAT_FT_ELIF(CATPRODUCT);
CUBIT_COMPAT_FT_ELIF(FACET);
CUBIT_COMPAT_FT_ELIF(SOLIDWORKS);
CUBIT_COMPAT_FT_ELIF(OCC);
else
return MFT_NOT_DEFINED;
}
Jane
On Thu, Aug 1, 2013 at 3:04 PM, David Thompson
<david.thompson at kitware.com>wrote:
> Hi Jane,
>
> > After we changed to cubit13.1 in truck, we support interface defined in
> CubitCompat.hpp, which is CubitCompat_import_solid_model. Can you try this
> out and let us know if it works?
>
> Yup, that works!
>
> Will CubitCompat_import_solid_model also work for other engines (OCC,
> Cholla/facet/facetbool) or is it just for the Cubit engine?
>
> Thanks,
> David
>
> > On Wed, Jul 31, 2013 at 5:39 PM, David Thompson <
> david.thompson at kitware.com> wrote:
> > Hi Iulian,
> >
> > > We are building usually on linux only; ...
> >
> > The software we're working on needs to support the big 3 (Linux, OS X,
> Windows).
> >
> > > Rajeev is building on 64 bit OSx, but only with occ.
> > > Does it pass make check for you or not?
> >
> > Yes. I have to fiddle with DYLD_LIBRARY_PATH because of the way Cubit is
> prepared on OS X, but make check passes.
> >
> > Thanks,
> > David
> >
> >
> > > > You cannot configure with cubit and occ at the same time.
> > >
> > > I did not.
> > >
> > > > What is your configuration ?
> > >
> > > CXX=clang++ CC=clang CXXFLAGS="-arch i386" CFLAGS="-arch i386"
> /path/to/cgm/configure --prefix=/path/to/cgm/x86_install --enable-shared
> --with-cubit=/Applications/Cubit-13.1/Cubit.app/Contents/MacOS
> > >
> > >
> > > Thanks,
> > > David
> > >
> > >
> > > > Hi all,
> > > >
> > > > I have a version of CGMA working with OCC but when I build with
> cubit support, some simple test programs I wrote don't work any longer.
> Specifically, calling
> > > >
> > > > const char* filename = "/path/to/cgm/test/model1.sat";
> > > > ModelImportOptions opts;
> > > > DLIList<RefEntity*> entities;
> > > > stat = GeometryQueryTool::instance()->import_solid_model(
> > > > filename, ACIS_SAT_TYPE, opts, entities);
> > > >
> > > > returns CUBIT_SUCCESS and prints a non-zero number of "ACIS
> Entities" have been read but then
> > > >
> > > > 1. entities is an empty list and
> > > > 2. calling GeometryQueryTool::instance()->bodies() also returns an
> empty list.
> > > >
> > > > Has anyone else seen this problem?
> > > >
> > > > Thanks,
> > > > David
> >
> >
> >
> >
> > --
> > Jane Hu
> >
> > Asst. Researcher
> > Dept. of Engineering Physics
> > UW @ Madison
> >
> > "And we know that for those who love God, that is, for those who are
> called according to his purpose, all things are working together for good."
> (Romans 8:28)
>
>
--
Jane Hu
Asst. Researcher
Dept. of Engineering Physics
UW @ Madison
"And we know that for those who love God, that is, for those who are called
according to his purpose, all things are working together for good."
(Romans 8:28)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20130801/94db08f2/attachment.html>
More information about the cgma-dev
mailing list