[cgma-dev] Facet/Cholla engine

Jane Hu janejhu at gmail.com
Thu Jan 16 10:59:02 CST 2014


Ok, my fault, I did notice that you just wanted to create 4 individual
surfaces, but kept shell and body making out of the loop, so they should be
coming one. They are correct logically and codewise. Just the bug stepped
in when the code is doing the second surface, while querying for the shared
edge( with the first surface created) info, it failed and returned a NULL
pointer, thus resulted the crash.

Other than sending facet group separately to make individual surfaces, I
understand it's the most accurate approach, can you try to give an
feature_angle and set split_surfaces=true to see if, first of all, it gives
4 surfaces?

Jane


On Wed, Jan 15, 2014 at 2:47 PM, David Thompson
<david.thompson at kitware.com>wrote:

> Hi Jane,
>
> > I debugged your program today, it seems that the code does have some bug
> when trying to create individual surface and body through individual
>  build_facet_surface() calls, here you are trying to create 4 surfaces and
> 4 bodies.
>
> I do need 4 surfaces, but just 1 body. I thought that by calling
> make_facet_shell() with all 4 of the surfaces returned by
> build_faceted_surface() that the surfaces might be stitched (or at least
> included in the same shell and thus body). Is that wrong?
>
> > However, I am not familiar with the code enough to make any changes.
>
> Thanks for taking a look at it; it's good to know it's not all my fault.
> :-)
>
> > I did checked that if you pass in all the facets, with empty point list,
> it can create a single FacetBody and  you can export it.
> >
> > I attached the changed code for you, don't know if it's sufficient for
> your purpose.
>
> The problem is that the faceted model I am trying to import has multiple
> model-faces (each with multiple triangles) on the same shell, which I would
> like to model with CGM. Among other things, I need to attach attributes
> (ToolData) to portions of a shell, not an entire shell at a time. Is there
> another way to do that?
>
>         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)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mcs.anl.gov/pipermail/cgma-dev/attachments/20140116/cab9922e/attachment.html>


More information about the cgma-dev mailing list