[cgma-dev] Seg fault when loading OCC geometry with associations

Jed Brown jed at 59A2.org
Sat Mar 28 18:18:07 CDT 2009


On Sat 2009-03-28 18:06, Tim Tautges wrote:
> Jed Brown wrote:
>> Since I'm creating the geometry and mesh at the same time, and setting
>> relations using Lasso, shouldn't this be taken care of?  Both the mesh
>> and geometry files have tags ASSOCIATION0, but neither GLOBAL_ID or
>> GEOM_DIMENSION have been applied to my boundary sets.  I'm not sure how
>> to read the .brep output but there is no mention of GLOBAL_ID or
>> GEOM_DIMENSION.
>>
>
> Yeah, iRel currently does *not* look for associations it saved to the  
> mesh/geometry, rather I count on having to call inferAssociations again  
> at the start of a run.  I'm surprised I've never thought of doing that,  
> but that just shows I've been using Cubit to generate the mesh up to now  
> (that's changing more quickly now).

Of course, after reading geometry and mesh, I'm using

  iRel_createAssociation(assoc,geom,0,iRel_IGEOM_IFACE,mesh,1,iRel_IMESH_IFACE,&rel,&err);RCHK(err);
  iRel_inferAllAssociations(assoc,rel,&err);RCHK(err);

When I had related my boundary sets with the volume, the relation I'm
recovering is with vertices.  When I related them with surfaces, I can't
get to here because iGeom_load seg-faults.  Since it recovers some
relation, even if it's the wrong one, this seems quite close to working.

>> As a separate issue, is there a quick way to get a mesh of a geometric
>> entity for visualization (can be low quality, ideally triangular strips
>> for surfaces)?  I assume not yet, but it if we could then it's not a lot
>> of work to get it into VisIt next to the mesh.
>>
>
> As a matter of fact, the latest version of MOAB has a ReadCGM class,  
> which can read geometry files into a facet-based representation.  We  
> haven't tried it yet, but it should work directly with the ITAPS reader  
> for Visit.

I'll take a look at that.

> Also, I heard from the Visit guys that they'll be moving to an open svn  
> repo in about a month, so you'll be able to anonymous checkout.  They're  
> just getting started on redoing the set structure within Visit, which  
> will make it possible eventually to browse the geometric topology sets  
> as a graph.

Great, I asked Mark about a repo a few weeks ago.

Jed
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20090329/231b5f89/attachment.pgp>


More information about the cgma-dev mailing list