CAD*_*per 0 objectarx autocad-plugin
在ModelSpace中,我的区域受到某些曲线的限制(将它们连接起来具有AcDbRegion)。
我还绘制了AcDbLine。
我需要的是分割线以仅在区域内获得线。
我知道如何获取交点,但是如何找到连接两个交点的线是否在内部?还是外面?
您是否尝试过BREP API?尝试以下行:
Autodesk.AutoCAD.BoundaryRepresentation.Brep brepEnt = new Brep(myRegion);
PointContainment pointCont;
brepEnt.GetPointContainment(thePoint, out pointCont);
if (pointCont == PointContainment.Inside)
{
}
Run Code Online (Sandbox Code Playgroud)