Rakshika, Therefore, you want to write a function automatic_polygonal_mesh_healing(struct polygonal_mesh mesh) which can be used both in BRL-CAD and OpenSCAD. The main problem for a portable module here is the polygonal_mesh structure which both applications have to provide. Possible solutions could be:
1.) There are converters for BRL-CAD and OpenSCAD which convert the specific mesh structures (e.g. bot in BRL-CAD) to "struct polygonal_mesh" and back. 2.) polygonal_mesh is the application specific mesh structure. Access to it is handled via compiler switches: #if defined(BRLCAD) use polygonal_mesh like a bot #elif defined(OPENSCAD) use polygonal_mesh like a OpenSCAD mesh structure #endif 3.) Use C++. polygonal_mesh is an abstract base class with instantiable implementations for BRL-CAD and OpenSCAD which has methods for all types of accesses needed by your algorithm. 4.) ? Regards, Daniel 2016-03-28 16:09 GMT+02:00 Rakshika Bagavathy <rakshika.bagava...@gmail.com>: > Hello all, > > I had submitted the proposal 'Automatic Polygonal Mesh Healing'. On the IRC, > kintel had said that OpenSCAD required similar functionalities, and so > suggested a portable module that could be used by both organisations. I > would like to know how to go forward with this. > > Regards, > Rakshika > > ------------------------------------------------------------------------------ > Transform Data into Opportunity. > Accelerate data analysis in your applications with > Intel Data Analytics Acceleration Library. > Click to learn more. > http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 > _______________________________________________ > BRL-CAD Developer mailing list > brlcad-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/brlcad-devel > ------------------------------------------------------------------------------ Transform Data into Opportunity. Accelerate data analysis in your applications with Intel Data Analytics Acceleration Library. Click to learn more. http://pubads.g.doubleclick.net/gampad/clk?id=278785471&iu=/4140 _______________________________________________ BRL-CAD Developer mailing list brlcad-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/brlcad-devel