版上各位高手,现有一问题想向各位求助,我想在三维空间中利用自定义规则创建一个面,请问如何操作。代码如下: wd.Geometry中哪些函数可以利用,谢谢大家了! public class DrawOverrule : DrawableOverrule { public static DrawOverrule TheOverrule = new DrawOverrule(); //显示重载 public override bool WorldDraw(Drawable drawable, WorldDraw wd) { try { if (!(drawable is Line)) { return base.WorldDraw(drawable, wd); } Line wall = (Line)drawable; ResultBuffer rb = ModelSpace.GetXRecordData(wall, "WallPropertyDic", "WallPropertyXRec"); Point3d point1 = (Point3d)rb.AsArray()[0].Value; Point3d point2 = (Point3d)rb.AsArray()[1].Value; Point3d point3 = (Point3d)rb.AsArray()[2].Value; Point3d point4 = (Point3d)rb.AsArray()[3].Value; //利用以上四个点在三维空间创建一个面 //创建思路:在XY平面创建一个面,然后以point1,point2为轴旋转90度 wd.Geometry..... return base.WorldDraw(drawable, wd); } catch { return false; } } } |