BoundingBoxUV与BoundingBoxXYZ
2014-02-25 15:55
309 查看
start
UIApplication app = commandData.Application;
Document doc = app.ActiveUIDocument.Document;
//
Face face = null;
BoundingBoxUV boxUV = face.GetBoundingBox();//二维矩形
UV center = (boxUV.Max + boxUV.Min) * 0.5;//二维坐标
UV uv = boxUV.get_Bounds(0);
//
Element elem = null;
BoundingBoxXYZ bbXYZ = elem.get_BoundingBox(doc.ActiveView);//三维矩形,立方体
//找到线穿过的墙
Outline outline = new Outline(bbXYZ.Min, bbXYZ.Max);
FilteredElementCollector collector = new FilteredElementCollector(doc);
BoundingBoxIntersectsFilter invertFilter = new BoundingBoxIntersectsFilter(outline, false);
IList<Element> intersectWalls = collector.OfClass(typeof(Wall)).WherePasses(invertFilter).ToElements();end
UIApplication app = commandData.Application;
Document doc = app.ActiveUIDocument.Document;
//
Face face = null;
BoundingBoxUV boxUV = face.GetBoundingBox();//二维矩形
UV center = (boxUV.Max + boxUV.Min) * 0.5;//二维坐标
UV uv = boxUV.get_Bounds(0);
//
Element elem = null;
BoundingBoxXYZ bbXYZ = elem.get_BoundingBox(doc.ActiveView);//三维矩形,立方体
//找到线穿过的墙
Outline outline = new Outline(bbXYZ.Min, bbXYZ.Max);
FilteredElementCollector collector = new FilteredElementCollector(doc);
BoundingBoxIntersectsFilter invertFilter = new BoundingBoxIntersectsFilter(outline, false);
IList<Element> intersectWalls = collector.OfClass(typeof(Wall)).WherePasses(invertFilter).ToElements();end
相关文章推荐
- 使django与数据库保持长连接
- 从Linux程序中执行shell(程序、脚本)并获得输出结果
- JDK下载地址
- SQL Server 2000 删除注册的服务器
- python 常见问题
- cacti关于spine轮询的设置
- LeetCode | Pascal's Triangle II
- java的正则表达式验证
- WinSock网络编程学习笔记(五):查询主机信息
- MySql varchar排序,加減 CAST ,CONVERT
- 8.1.3: 两种后处理器---容器后处理器
- 8.1.4: 两种后处理器---属性占位符配置器
- select input 样式
- 关于pageContext
- UVALive 3713 Astronauts(2-sat+输出任意路径)
- FrameLayout使用
- 升级到xcode4.2 iOS sdk 5.0旧版工程编译后出现的警告解决办法
- JavaScript之正则表达式
- pdp
- Ubuntu Linux系统环境变量配置文件