Is the way to calculate concavity and convexity between adjacent face works ?

jianbaoxia

CAD community veteran
Hi Bros, I try to extract the AAG (Attributed Adjacency Graph) from my step file. It's a challenge for me to calculate the concavity and convexity between adjacent face. I try to solve it with this way:
1648436552779.png
I'm not sure whether this is suitable for the curved surface.
I have no idea how to get a point in the surface.
I was try to get normal of surface with the way: TopoDS_Shape → BRepAdaptor_Surface.Surface() → GeomAdaptor_Surface.Surface() → Geom_Surface → GeomLProp_SLProps::Normal (). However, normal has no location.

I have read the code of "asiAlgo_CheckDihedralAngle::AngleBetweenFaces" in Analysis Situs, it's a long code, deal with many types. As my skill is limited, I can't understand it completely. So I try to calculate concavity and convexity between adjacent face in a simple way. I don't know is it works.
 

Attachments

  • 68fcd2c99b7aea10d1335866633127b.jpg
    68fcd2c99b7aea10d1335866633127b.jpg
    300.7 KB · Views: 0
Top