[cgma-dev] Facet/Cholla engine

David Thompson david.thompson at kitware.com
Tue Jan 14 13:35:15 CST 2014


Hi Jane,

Thanks for your help. I've tried passing an empty point list into build_facet_surface() but it still crashes, and a plist containing just the points used by the triangle list. I've pared it down to a minimal reproducible, which is attached. If you understand what I am doing wrong, it would really help as I'm not sure I understand what CGM is doing where the crash occurs.

	Thanks,
	David

-------------- next part --------------
A non-text attachment was scrubbed...
Name: multifaceted.cxx
Type: application/octet-stream
Size: 3250 bytes
Desc: not available
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20140114/86257eb8/attachment.obj>
-------------- next part --------------
On Jan 14, 2014, at 1:46 PM, Jane Hu <janejhu at gmail.com> wrote:

> From what I read, facets sharing the same points and edges, if they are called from different build_facet_surface(), they should internally just create one set of points and edges, and should be automatically divided into two separate volumn/surface sets.
> 
> There are functions to check existing points and use the old ones instead of create new ones.
> 
> Jane
> 
> Jane
> 
> 
> On Tue, Jan 14, 2014 at 10:39 AM, Jane Hu <janejhu at gmail.com> wrote:
> Hi, David
> 
> I double checked the prototype as well as the code (I don't have a program suitable to debug), it seems that if your plist is not corresponding to the tflist and qflist, you may leave it empty. The code should fill the point list for you.
> Unless the points are extra points which are not in the tflist nor in the qflist.
> 
> Can you try it out and see if it works, I am now reading this part of code to see if coincident points are recognized if you call separately.
> 
> Jane
> 
> 
> 
> On Mon, Jan 13, 2014 at 10:03 PM, David Thompson <david.thompson at kitware.com> wrote:
> Hi all,
> 
> I have a question about the facet engine in CGM. Are multiple faceted surfaces per body supported? I see crashes if I call
> 
>         DLIList <CubitPoint*> plist;
>         DLIList<CubitFacet*> tflist;
>         DLIList<CubitQuadFacet*> qflist;
>         DLIList<Surface*> slist;
> 
>         FacetModifyEngine::instance()->build_facet_surface(
>           qflist, tflist, plist, -1, 0, false, false, slist);
> 
> where tflist and qflist do not use every point in plist (because another call to build_facet_surface() will use those points later).
> 
> If I create a separate plist for each call to build_facet_surface(), it does not crash... but will coincident points be recognized as identical and merged -- or will the geometry need some kind of stitching?
> 
>         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)



More information about the cgma-dev mailing list