你可以使用 is_contrained 来自约束三角剖分的方法。
if (cdt.is_constrained(e)) ...
如果您可以使用dandling边缘,则必须首先标记域,如下所示 例 并检查边缘是否与两个具有不同面的面相关 nesting_level 。
nesting_level