polyline ---->region 有问题
BlockTable bt = (BlockTable)tr.GetObject(db.BlockTableId, OpenMode.ForRead);BlockTableRecord btr = (BlockTableRecord)tr.GetObject(bt, OpenMode.ForWrite);
Entity entity = tr.GetObject(entityID, OpenMode.ForWrite) as Entity;
//MgGeometry geometry = EntityToGeometryConverter.EntityToGeometry(entity);
Entity entity2 = tr.GetObject(entityID2, OpenMode.ForWrite) as Entity;
DBObjectCollection curveSegments = new DBObjectCollection();
curveSegments.Add(entity);
DBObjectCollection regions = Region.CreateFromCurves(curveSegments);
Region region = regions as Region;
polyline ---->region 有问题 大家帮助看下。
需要“闭合”且不能自相交 entity 是闭合的 polyline,不知道哪儿设置不对?
页:
[1]