[cgma-dev] Facet/Cholla engine

David Thompson david.thompson at kitware.com
Fri Jan 17 05:57:56 CST 2014


Hi Jane,

> ... 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?

I tried using feature_angle+split_surfaces but always get a single surface back.

	Thanks,
	David

> 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)



More information about the cgma-dev mailing list