On Mar 29, 2016, at 10:01 AM, Daniel Roßberg <[email protected]> wrote:
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.
[snip]
4.)
The project can define a polygonal mesh structure that is compatible with the
STL format, which both OpenSCAD and BRL-CAD support. It's a simple and limited
format, but trivial to convert to/from. It is essentially an array of floating
point vertices and an array of faces with integer references into the vertex
array [*]. Doing anything more complex will probably need to be discussed in
further detail with both groups to make sure converting to our respectively
more advanced mesh structures (e.g., BRL-CAD NMG) will not be a problem. This
of course would not preclude you from using a more complex structure yourself
under the hood for processing convenience.
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.
This is what our collaboration is all about so please do ensure that creating a
shared reusable library is part of your project plan, and that you include time
to discuss and test with both communities, should your proposal get selected.
Cheers!
Sean
[*] This is essentially what BRL-CAD's BoT structure implements, but this
shared library could implement a simpler compatible structure.
------------------------------------------------------------------------------
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/brlcad-devel