[cgma-dev] Facet/Cholla engine

David Thompson david.thompson at kitware.com
Wed Jan 15 14:47:09 CST 2014


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


More information about the cgma-dev mailing list