Hello, I have a similar question. If we can known to which STL triangle a mesh point belongs, is it also possible to known to which STL triangle a mesh element (Element2d) belongs? Or this info has to be completely rebuilt a posteriori? Regards Giovanni
Hello forum, I already posted a question about adding edges to an STL geometry. I think I didn't explain clearly. I would like to completely bypass the automatic - angle based - generation of edges in an stl geometry. This because, in case of complex geometries, the stl edges generated using this criterion, differ from the "topology" edges which are present in the - e.g. step file -, from which the .stl representation is generated from. In retrieving the stl mesh of a complex model using a "face...
Hello forum, the subject has been faced many times in this forum. Sorry for that, but I did not find among the previous comments a clear solution to my problem. I use nblib with OCC 7.1.0 support, on Windows10, compiled with MSVC2013 (12.0 compiler) I've a .stl file, and I exactly know the definition of the edges through sequences of points (one ordered sequence of points for each edge). After: 1) Ng_STL_Geometry *aGeo = Ng_STLNewGeometry(); 2) for(...) Ng_STL_AddTriangle(aGeo,p1,p2,p3); 3) for(...)...
Ciao Giovanni, probably you should read the code more carefully before posting unexisting problems void Ng_Generate_SeconOrder(Ng_Mesh *aMesh) generates a second order superparametric (straight sides) elements. Indeed the geometry does not appear within the list of arguments, while void Ng_OCC_GenerateSecondOrder(Ng_OCC_Geometry geometry, Ng_Mesh aMesh) "converts" mesh to second order with geometry adaption, as stated in the -h file. Regards
Hello forum, nglib (5.3.1) function Ng_Generate_SecondOrder does not put midside nodes on boundary (edges/faces): element are straight. Is this behavior unexpected or nglib is not already able to do that (I mean, programmatically). Regards Giovanni
Thank you very much Joachim, yesterday I've been successful in find the nodes on a topology edge using the following algorithm (which is essentially a workaround) Choose a body. Loop over the edges { 1) find the current edge number edgeNr in eMap 2) find the two adjacent faces using OCC TopExp::mapShapeAndAncestors now the edge edgeNr is defined by the pair (face1, face2) 3) append (face 1, face 2) to a vector } Since (face1, face2) and (face2, face1) define the same edge: eliminate the duplicates...
Hello, what is the aim of the class Edge Descriptor? It seems to be never used Regards Giovanni
Hello, same problem... did you find a solution? Regards Giovanni