zoukankan      html  css  js  c++  java
  • BoundingBoxUV与BoundingBoxXYZ

    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
  • 相关阅读:
    构建之法8,9,10章
    作业6
    通过处理器类型获得处理器对象
    面经
    C语言实现字符串替换
    计算机网络整理
    常见面试题
    数据库常见面试题
    redis常见知识整理
    项目总结
  • 原文地址:https://www.cnblogs.com/greatverve/p/BoundingBoxUV-BoundingBoxXYZ.html
Copyright © 2011-2022 走看看